{title}" if title is not None else ""
html = f"""
Samples
{title}
"""
return html
def make_html_end():
html = """
"""
return html
def make_sample_entry(wav_path: str, text: str):
text = text.replace('<', '<').replace('>', '>')
html = f"""
"""
return html
def make_multi_entry(wavs_list, row_titles,
text0: str, text1: str, ar_dir: str='ltr'):
text0 = text0.replace('<', '<').replace('>', '>')
text1 = text1.replace('<', '<').replace('>', '>')
rows = ""
for i in range(0,len(wavs_list),2):
row_title = row_titles[i//2]
rows += f"""
{row_title}
"""
html = f"""
{rows}
{text0}
{text1}
"""
return html
def make_h_tag(text: str, n: int = 2):
html = f"""{text}
"""
return html
def make_img_tag(src: str, alt: str = ""):
html = f"""
"""
return html
def make_volume_script(volume: float = 0.35):
html = f"""
"""
return html