Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -538,7 +538,7 @@ class AudioAPI:
|
|
538 |
input: str = Field(..., description="The text to convert to speech")
|
539 |
output_format: OpenaiTTSModels.OutputFormat = Field(default=OpenaiTTSModels.OutputFormat.mp3, description="The audio output format")
|
540 |
|
541 |
-
@app.
|
542 |
async def text_to_speech_v2(request: AudioAPI.TTSRequest, api_key: str = Depends(verify_api_key)):
|
543 |
"""
|
544 |
Convert text to speech using OpenAI's TTS API with real-time audio streaming.
|
|
|
538 |
input: str = Field(..., description="The text to convert to speech")
|
539 |
output_format: OpenaiTTSModels.OutputFormat = Field(default=OpenaiTTSModels.OutputFormat.mp3, description="The audio output format")
|
540 |
|
541 |
+
@app.post("v2/tts")
|
542 |
async def text_to_speech_v2(request: AudioAPI.TTSRequest, api_key: str = Depends(verify_api_key)):
|
543 |
"""
|
544 |
Convert text to speech using OpenAI's TTS API with real-time audio streaming.
|