Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ response = client.speak.v1.audio.generate(

# Save the audio file
with open("output.mp3", "wb") as audio_file:
audio_file.write(response.stream.getvalue())
for chunk in response:
audio_file.write(chunk)
```

#### Text Analysis
Expand Down
3 changes: 2 additions & 1 deletion docs/Migrating-v3-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ response = client.speak.v1.audio.generate(

# Save the audio file
with open("output.mp3", "wb") as audio_file:
audio_file.write(response.stream.getvalue())
for chunk in response:
audio_file.write(chunk)
```

#### WebSocket Streaming (Speak V1)
Expand Down