catiR
commited on
Commit
·
971211e
1
Parent(s):
99c2d01
audio
Browse files
scripts/clusterprosody.py
CHANGED
@@ -333,10 +333,14 @@ def clusters_audio(clusters,audios):
|
|
333 |
|
334 |
for rec in recs:
|
335 |
html += f'<tr><td><audio controls id="{rec}">' #width="20%">
|
336 |
-
html += f'<source src="{audios[rec][0]}#t={audios[rec][1]*60:.2f},{audios[rec][2]*60:.2f}" type="audio/wav">'
|
|
|
337 |
html += '</audio></td>'
|
338 |
html += f'<td>{rec}</td></tr>'
|
339 |
|
|
|
|
|
|
|
340 |
html += '</tbody></table>'
|
341 |
html += '</div>'
|
342 |
#html += '<div style="height:2%;background:#e7fefc"></div>'
|
|
|
333 |
|
334 |
for rec in recs:
|
335 |
html += f'<tr><td><audio controls id="{rec}">' #width="20%">
|
336 |
+
#html += f'<source src="{audios[rec][0]}#t={audios[rec][1]*60:.2f},{audios[rec][2]*60:.2f}" type="audio/wav">'
|
337 |
+
html += f'<source src="{audios[rec][0]}" type="audio/wav">'
|
338 |
html += '</audio></td>'
|
339 |
html += f'<td>{rec}</td></tr>'
|
340 |
|
341 |
+
print(f'{audios[rec][0]}')
|
342 |
+
print(f'{audios[rec][0]}#t={audios[rec][1]*60:.2f},{audios[rec][2]*60:.2f}')
|
343 |
+
|
344 |
html += '</tbody></table>'
|
345 |
html += '</div>'
|
346 |
#html += '<div style="height:2%;background:#e7fefc"></div>'
|