Spaces:
Runtime error
Runtime error
Update audio_foundation_models.py
Browse files
audio_foundation_models.py
CHANGED
|
@@ -280,8 +280,11 @@ class TTS:
|
|
| 280 |
def __init__(self, device=None):
|
| 281 |
self.model = TTSInference(device)
|
| 282 |
|
| 283 |
-
@prompts(name="Synthesize Speech Given the User Input Text",
|
| 284 |
-
|
|
|
|
|
|
|
|
|
|
| 285 |
"The input to this tool should be a string, "
|
| 286 |
"representing the text used to be converted to speech.")
|
| 287 |
def inference(self, text):
|
|
|
|
| 280 |
def __init__(self, device=None):
|
| 281 |
self.model = TTSInference(device)
|
| 282 |
|
| 283 |
+
# @prompts(name="Synthesize Speech Given the User Input Text",
|
| 284 |
+
# description="useful for when you want to convert a user input text into speech audio it saved it to a file."
|
| 285 |
+
# "The input to this tool should be a string, "
|
| 286 |
+
# "representing the text used to be converted to speech.")
|
| 287 |
+
@prompts(description="useful for when you want to convert a user input text into speech audio it saved it to a file."
|
| 288 |
"The input to this tool should be a string, "
|
| 289 |
"representing the text used to be converted to speech.")
|
| 290 |
def inference(self, text):
|