Repository navigation
Conversation
…kens - nemo_speech_tts_synthesize_tokens ignored options.voice_name: with speaker < 0 the request was always spoken by the synthesizer's default speaker, while nemo_speech_tts_synthesize_text resolved the name - Synthesizer::synthesize_tokens takes the voice name and resolves it the way prepare() does; an empty name still gives the default speaker - tts_c_smoke --tokens takes an optional SPEAKER_INDEX and checks that voice_name and the speaker field give the same PCM Fixes NVIDIA#64 Signed-off-by: moonsik.song <sikso1892@gmail.com>
|
No actionable comments were generated in the recent review. Summary
Severity of issue fixed: Medium Merge Risk:
|
[Medium impact] The PR appears safe to merge. SummaryFixes voice selection for pre-tokenized TTS requests.
No actionable issues found. Review was based on source inspection; model-backed tests were not run. Reviews (1) · Last reviewed commit: "fix(tts): resolve options.voice_name in ..." · Reviewed by Greptile |
Summary
Fixes #64.
nemo_speech_tts_synthesize_tokensignoredoptions.voice_name. Withspeaker < 0and the voice given only by name, whichtts.hallows ("voice_name— ignored when speaker >= 0"), every pre-tokenized request was spoken by the synthesizer's default speaker.nemo_speech_tts_synthesize_textresolved the name; the token call never received it.Synthesizer::synthesize_tokenstakes the voice name and resolves it withresolve_speaker(), the same ruleprepare()uses. An empty name still gives the default speaker, so existing callers are unchanged.nemo_speech_tts_synthesize_tokenspassesvoice_of(options).include/nemo_speech/tts.h; the new C++ parameter is trailing with a default.voice_namenow fails the token call withINVALID_ARGUMENT, as it already does for the text call.language_codeis not touched: the token path does not use it for synthesis.Test
tts_c_smoke --tokens MAGPIE.gguf CODEC.gguf TOKENS [SPEAKER_INDEX]: withSPEAKER_INDEX, it synthesizes the tokens once withvoice_name = SPEAKER_INDEX, speaker = -1and once withspeaker = SPEAKER_INDEX, both withseed = 1234, and fails if the PCM differs. It needs model files, so it is not registered with ctest.CUDA build (
cuda-ttspreset, RTX PRO 5000, CUDA 13.5),magpie_tts_multilingual_357m.v2607.f16.gguf, 12 token IDs,SPEAKER_INDEX = 2:voice_name = "2",speaker = -1speaker = 2main(e790e46)f254e53bef2c70021b43b410c86a8b8c1b43b410c86a8b8c1b43b410c86a8b8cThe values are PCM byte counts and an FNV-1a hash of the PCM.