Merge pull request #2696 from pipecat-ai/filipi/inworld_default_temperature

Changing InworldTTSService default temperature to 1.1
This commit is contained in:
Filipi da Silva Fuchter
2025-09-22 09:33:52 -03:00
committed by GitHub
2 changed files with 6 additions and 9 deletions

View File

@@ -73,9 +73,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=0.8,
),
)
llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"))

View File

@@ -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.