Skip to content

Commit

Permalink
Merge pull request #891 from louisjoecodes/louis/flush-shorter-messag…
Browse files Browse the repository at this point in the history
…es-elevenlabs

feat: set auto_mode=true - ElevenLabs tts WSS
  • Loading branch information
markbackman authored Dec 19, 2024
2 parents 6e0d3ae + b7b8e59 commit 5b0fc3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipecat/services/elevenlabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ async def _connect_websocket(self):
voice_id = self._voice_id
model = self.model_name
output_format = self._settings["output_format"]
url = f"{self._url}/v1/text-to-speech/{voice_id}/stream-input?model_id={model}&output_format={output_format}"
url = f"{self._url}/v1/text-to-speech/{voice_id}/stream-input?model_id={model}&output_format={output_format}&auto_mode=true"

if self._settings["optimize_streaming_latency"]:
url += f"&optimize_streaming_latency={self._settings['optimize_streaming_latency']}"
Expand Down

0 comments on commit 5b0fc3f

Please sign in to comment.