-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
When I try the example:
curl -X POST http://localhost:5050/v1/audio/speech \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_api_key_here" \
-d '{
"model": "tts-1",
"input": "This will stream as Server-Sent Events with JSON data containing base64-encoded audio chunks.",
"voice": "alloy",
"stream_format": "sse"
}'
data: {"type": "error", "error": "a coroutine was expected, got <async_generator object _generate_audio_stream at 0x7ffffcafc7b0>"}
Normal streaming to ffplay or mp3 file works fine.
Thanks for this project!
Metadata
Metadata
Assignees
Labels
No labels