You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title suggests, when using streaming with the 1.7.0 version of the python interface, it seems like ssml isn't recognized; instead it's read as part of the narration. Perhaps I'm not setting some needed switch in client.generate, but I've combed the api docs and can't find a solution.
Here's a minimum reproducible example:
fromelevenlabs.clientimportElevenLabsfromelevenlabsimportplay, streamssml_test_string1='This is the beginning of a beautiful 'ssml_test_string2='<break time="1.0s"/> friendship.'client=ElevenLabs()
audio=client.generate(
text=ssml_test_string1+ssml_test_string2,
voice="Rachel",
model="eleven_turbo_v2"
)
play(audio)
deftext_stream():
yieldssml_test_string1yieldssml_test_string2audio_stream=client.generate(
text=text_stream(),
voice="Rachel",
model="eleven_turbo_v2",
stream=True
)
stream(audio_stream)
The text was updated successfully, but these errors were encountered:
Hi folks,
As the title suggests, when using streaming with the 1.7.0 version of the python interface, it seems like ssml isn't recognized; instead it's read as part of the narration. Perhaps I'm not setting some needed switch in client.generate, but I've combed the api docs and can't find a solution.
Here's a minimum reproducible example:
The text was updated successfully, but these errors were encountered: