Skip to content

stream_format: sse broken? #34

Description

@DanTulovsky

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions