Edit voice settings
This commit is contained in:
@@ -70,19 +70,20 @@ def _speak_elevenlabs(text: str, agent_id: str):
|
|||||||
return
|
return
|
||||||
|
|
||||||
voice_settings = VoiceSettings(
|
voice_settings = VoiceSettings(
|
||||||
stability=0.65, # ниже = живее интонация (для multilingual_v2)
|
stability=0.5, # ниже = живее интонация (для multilingual_v2)
|
||||||
similarity_boost=0.6,
|
similarity_boost=0.8,
|
||||||
style=0.45, # выше = эмоциональнее
|
style=0.0, # выше = эмоциональнее
|
||||||
use_speaker_boost=True,
|
use_speaker_boost=True,
|
||||||
speed=1.05
|
speed=1.0
|
||||||
)
|
)
|
||||||
|
|
||||||
audio_stream = client.text_to_speech.convert(
|
audio_stream = client.text_to_speech.convert(
|
||||||
text=text,
|
text=text,
|
||||||
voice_id=voice_id,
|
voice_id=voice_id,
|
||||||
model_id=ELEVENLABS_MODEL,
|
model_id=ELEVENLABS_MODEL,
|
||||||
output_format="mp3_44100_128",
|
output_format="mp3_22050_32",
|
||||||
voice_settings=voice_settings
|
voice_settings=voice_settings,
|
||||||
|
optimize_streaming_latency=3
|
||||||
)
|
)
|
||||||
|
|
||||||
with _process_lock:
|
with _process_lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user