Add hu test sentences

This commit is contained in:
Michael Hansen
2023-08-02 16:50:15 -05:00
parent c7f8671beb
commit 0300be8ff4
3 changed files with 13 additions and 19 deletions

View File

@@ -145,7 +145,7 @@ def main():
for speaker in speaker_details
}
with open(args.write_json, "w") as json_file:
with open(args.write_json, "w", encoding="utf-8") as json_file:
json.dump(
{
speaker: {
@@ -239,24 +239,6 @@ class ProcessUtterance:
return duration_sec
# return float(
# subprocess.check_output(
# [
# "ffprobe",
# "-i",
# str(audio_path),
# "-show_entries",
# "format=duration",
# "-v",
# "quiet",
# "-of",
# "csv=p=0",
# ],
# stderr=subprocess.DEVNULL,
# universal_newlines=True,
# ).strip()
# )
if __name__ == "__main__":
main()