mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-19 23:04:49 +00:00
Add hu test sentences
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user