Skip to content

Commit

Permalink
Merge pull request #50 from jteijema/patch-1
Browse files Browse the repository at this point in the history
Update README.md with new local endpoint usage example
  • Loading branch information
remsky authored Jan 14, 2025
2 parents 880fa7a + a51ea53 commit 5fc3696
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ The service can be accessed through either the API endpoints or the Gradio web i
api_key="not-needed"
)
response = client.audio.speech.create(
with client.audio.speech.with_streaming_response.create(
model="kokoro",
voice="af_sky+af_bella", #single or multiple voicepack combo
input="Hello world!",
response_format="mp3"
)
response.stream_to_file("output.mp3")
) as response:
response.stream_to_file("output.mp3")
```

or visit http://localhost:7860
Expand Down

0 comments on commit 5fc3696

Please sign in to comment.