mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Add text mode (#321)
* Pretty good spot * Working draft * Fix other mode * Add js to git * Working * Add code * fix * Fix * Add code * Fix submit race condition * demo * fix * Fix * Fix
This commit is contained in:
0
backend/fastrtc/text_to_speech/test_tts.py
Normal file
0
backend/fastrtc/text_to_speech/test_tts.py
Normal file
@@ -51,7 +51,6 @@ def get_tts_model(
|
||||
return m
|
||||
elif model == "cartesia":
|
||||
m = CartesiaTTSModel(api_key=kwargs.get("cartesia_api_key", ""))
|
||||
m.tts("Hello, world!")
|
||||
return m
|
||||
else:
|
||||
raise ValueError(f"Invalid model: {model}")
|
||||
|
||||
Reference in New Issue
Block a user