A few Groq-related tweaks:

- Wire up passing speed setting to Groq, even though only a value of 1.0 is supported today
- Update the 55y example to switch voices instead of changing speed
- Add a 55zn example to exercise runtime updates of Groq STT
This commit is contained in:
Paul Kompfner
2026-02-25 15:10:11 -05:00
parent 937c691f2a
commit ff0f3dce32
3 changed files with 133 additions and 2 deletions

View File

@@ -97,8 +97,8 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
await task.queue_frames([LLMRunFrame()])
await asyncio.sleep(10)
logger.info("Updating Groq TTS settings: speed=1.5")
await task.queue_frame(TTSUpdateSettingsFrame(delta=GroqTTSSettings(speed=1.5)))
logger.info("Updating Groq TTS settings: voice=troy")
await task.queue_frame(TTSUpdateSettingsFrame(delta=GroqTTSSettings(voice="troy")))
@transport.event_handler("on_client_disconnected")
async def on_client_disconnected(transport, client):