-
Notifications
You must be signed in to change notification settings - Fork 45
chore: streaming tts changes #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
scripts/tts/talk.py
Outdated
| ======= | ||
| parser.add_argument("--text-list", type=Path, default=None, help="A file path to a list of texts to synthesize.") | ||
| parser.add_argument("--stream", action="store_true", help="If this option is set, then streaming synthesis is applied. Streaming means that audio is yielded as it gets ready. If `--stream` is not set, then a synthesized audio is returned in 1 response only when all text is processed.") | ||
| >>>>>>> de4d527 (chore: streaming tts changes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the stream argument is already present, this got carried over with merge conflict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, during rebase it got added
scripts/tts/talk.py
Outdated
| help="Transcript corresponding to Zero shot audio prompt.", | ||
| ) | ||
| ======= | ||
| parser.add_argument("--text-list", type=Path, default=None, help="A file path to a list of texts to synthesize.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep argument name as --text-file to be same as tts perf client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
fdff99d to
9b4b582
Compare
|
|
||
| if args.text_file is not None: | ||
| with open(args.text_file, 'r') as file: | ||
| text_list = [line.split("|")[1].strip() for line in file.readlines()] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we document somewhere the text file must have each line pipe separated? Can we not add handling for format without |?
CPP client is flexible enough to handle both formats of text_file, text with <audio_file_name>|<transcript> and just <transcript>
No description provided.