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
VoiceChanger in playground: https://elevenlabs.io/app/speech-synthesis/speech-to-speech
does not require any "audio" file. Just voice and parameters.
(btw. it would be very helpful is playground would generate working code snippets with parameters one set in playground...)
Also there is parameter annotated as "voice_settings" , as "json parameters", to be frank it's pretty hard how to go from parameters in playground ( https://elevenlabs.io/app/speech-synthesis/speech-to-speech ) to json, there should be button "copy as json" that would copy to clipboard, or sth like that. (or whole code snippet generation)
Code example
#!/usr/bin/env python3fromelevenlabsimportElevenLabsclient=ElevenLabs(
# api_key="YOUR_API_KEY", #commented to use environment variable
)
## Brianvoice_id='nPczCjzI2devNBz1zQrb'# as making minimal working example, commenting parameters that are optional to see if it worksclient.speech_to_speech.convert_as_stream(
voice_id=voice_id,
enable_logging="0",
#output_format="mp3_22050_32", #default: mp3_44100_128 #should work with default value#remove_background_noise=true, #default: false #should work with default value
)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
VoiceChanger in playground:
https://elevenlabs.io/app/speech-synthesis/speech-to-speech
does not require any "audio" file. Just voice and parameters.
(btw. it would be very helpful is playground would generate working code snippets with parameters one set in playground...)
However in "speech-to-speech" API reference I see
https://elevenlabs.io/docs/api-reference/speech-to-speech
that "audio" is marked as "required" for normal endpoint,
but is not in "streaming" endpoint.
However when I try to run as stream I get error to provide audio parameter:
Also there is parameter annotated as "voice_settings" , as "json parameters", to be frank it's pretty hard how to go from parameters in playground ( https://elevenlabs.io/app/speech-synthesis/speech-to-speech ) to json, there should be button "copy as json" that would copy to clipboard, or sth like that. (or whole code snippet generation)
Code example
Additional context
No response
The text was updated successfully, but these errors were encountered: