[Perf] Enable compile for MOSS-TTS-Local v1.5 talker and codec (#5530)
Signed-off-by: Canlin Guo <canlinguosdu@gmail.com>
This commit is contained in:
1 parent
1c6e731339
commit
18be2ba3df
7 files changed
+336
-52
No files matched your search
@@ -1764,7 +1764,7 @@ class OmniOpenAIServingSpeech(OpenAIServing, AudioMixin):
|
||||
# headline improvement is multilingual synthesis when the language is
|
||||
# given (build_user_message(..., language=...)); 1.0 ignores it
|
||||
# gracefully. Sound-effect output is non-verbal, so skip it there.
|
||||
if v in ("tts", "ttsd", "voice_generator") and getattr(request, "language", None):
|
||||
if v in ("tts", "local", "ttsd", "voice_generator") and getattr(request, "language", None):
|
||||
user_kwargs["language"] = request.language
|
||||
|
||||
# Build the unified-codes prompt: (L, 1+n_vq) where col 0 is text/special
|
||||
|
||||
Reference in new issue
Block a user