From 9e098b5f797a38fcc6355bda8d41068be5fd92d7 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Fri, 19 Sep 2025 17:03:53 -0300 Subject: [PATCH 1/2] Changing InworldTTSService default temperature to 1.1 --- .../foundational/07ab-interruptible-inworld-http.py | 2 +- src/pipecat/services/inworld/tts.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/foundational/07ab-interruptible-inworld-http.py b/examples/foundational/07ab-interruptible-inworld-http.py index 60666bbf6..73af364d8 100644 --- a/examples/foundational/07ab-interruptible-inworld-http.py +++ b/examples/foundational/07ab-interruptible-inworld-http.py @@ -68,7 +68,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): model="inworld-tts-1", streaming=streaming, # True: real-time chunks, False: complete audio then playback params=InworldTTSService.InputParams( - temperature=0.8, + temperature=1.1, ), ) diff --git a/src/pipecat/services/inworld/tts.py b/src/pipecat/services/inworld/tts.py index fdd0d1a5c..eef1440e3 100644 --- a/src/pipecat/services/inworld/tts.py +++ b/src/pipecat/services/inworld/tts.py @@ -38,7 +38,7 @@ Examples:: model="inworld-tts-1", streaming=True, # Default params=InworldTTSService.InputParams( - temperature=0.8, # Optional: control synthesis variability (range: [0, 2]) + temperature=1.1, # Optional: control synthesis variability (range: [0, 2]) ), ) @@ -50,7 +50,7 @@ Examples:: model="inworld-tts-1", streaming=False, params=InworldTTSService.InputParams( - temperature=0.8, + temperature=1.1, ), ) """ @@ -123,7 +123,7 @@ class InworldTTSService(TTSService): model="inworld-tts-1", streaming=True, # Default behavior params=InworldTTSService.InputParams( - temperature=0.8, # Add variability to speech synthesis (range: [0, 2]) + temperature=1.1, # Add variability to speech synthesis (range: [0, 2]) ), ) @@ -135,7 +135,7 @@ class InworldTTSService(TTSService): model="inworld-tts-1-max", streaming=False, params=InworldTTSService.InputParams( - temperature=0.8, + temperature=1.1, ), ) """ @@ -144,7 +144,7 @@ class InworldTTSService(TTSService): """Optional input parameters for Inworld TTS configuration. Parameters: - temperature: Voice temperature control for synthesis variability (e.g., 0.8). + temperature: Voice temperature control for synthesis variability (e.g., 1.1). Valid range: [0, 2]. Higher values increase variability. Note: @@ -197,7 +197,7 @@ class InworldTTSService(TTSService): - "LINEAR16" (default) - Uncompressed PCM, best quality - Other formats as supported by Inworld API params: Optional input parameters for additional configuration. Use this to specify: - - temperature: Voice temperature control for variability (range: [0, 2], e.g., 0.8, optional) + - temperature: Voice temperature control for variability (range: [0, 2], e.g., 1.1, optional) Language is automatically inferred from input text. **kwargs: Additional arguments passed to the parent TTSService class. From 326bfe4239ec955d5801be171aca1f688547571e Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Mon, 22 Sep 2025 09:30:53 -0300 Subject: [PATCH 2/2] Removing the temperature from InworldTTSService example. --- examples/foundational/07ab-interruptible-inworld-http.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/foundational/07ab-interruptible-inworld-http.py b/examples/foundational/07ab-interruptible-inworld-http.py index 73af364d8..34132c255 100644 --- a/examples/foundational/07ab-interruptible-inworld-http.py +++ b/examples/foundational/07ab-interruptible-inworld-http.py @@ -67,9 +67,6 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): voice_id="Ashley", model="inworld-tts-1", streaming=streaming, # True: real-time chunks, False: complete audio then playback - params=InworldTTSService.InputParams( - temperature=1.1, - ), ) llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"))