github livekit/agents livekit-agents@1.9.1

one hour ago

First-token timeout for LLM fallbacks

You can now fail over when a provider keeps a connection alive without producing text or a tool call. first_token_timeout limits the wait for useful output, including recovery probes; it is disabled by default.

llm.FallbackAdapter([primary, fallback], first_token_timeout=4.0)

Audio input for decision models

You can now evaluate decisions from audio, capturing signals a transcript misses, such as tone or frustration. Hume’s new DecisionModel supports recordings from 5 seconds to 5 minutes.

from livekit.agents import llm
from livekit.plugins import hume

response = await hume.DecisionModel().evaluate(
    audio=frames,
    decisions={
        "frustrated": llm.Probability("Does the caller sound frustrated?"),
    },
)

New providers and models

  • Finesse: streaming TTS in 60 languages with instant voice cloning.
  • AirCaps AI: streaming English STT with AirCaps Live 1.
  • SpatialReal: avatars rendered on the viewer’s device.
  • Hume: audio-based decisions through the Audio Decisions API.
  • Zoom AI: TTS and zoom-decisions / zoom-decisions-pro decision models.
  • Fish Audio: s3-pro TTS through the plugin and LiveKit Inference, plus transcribe-stream-2 STT.
  • Murf: Falcon 2.1 TTS.
  • OpenAI: direct-provider support for gpt-realtime-2.1 and gpt-realtime-2.1-mini.
  • Meta: Muse Voice Transcribe 1.0, Muse Spark 1.3, and Muse Wonder 1.0 through LiveKit Inference.
  • Google: Gemini 3.8 Flash TTS and Flash Lite TTS through LiveKit Inference.

Breaking changes

  • Gradium: vad_flush is now ignored as STT uses server-side flushing; remove this setting.

Behavior changes

  • TTS/STT defaults: Murf now uses Falcon 2.1 and Gordon; Fish Audio uses s3-pro and transcribe-stream-2.
  • OpenAI: direct Realtime defaults to gpt-realtime-2.1; Azure is unchanged.
  • Groq: the default LLM is now openai/gpt-oss-120b with low reasoning effort.
  • xAI: Responses defaults to grok-4.3 with reasoning effort none.
  • Dependencies: livekit-agents now requires livekit-api>=2.0.1 and livekit-protocol>=2.0.1.
  • Turn detection: now retains 0.5 seconds of audio before user speech for better endpointing.

This release also improves interruption handling, transcript accuracy, realtime reconnection, job termination, provider connections, and GPT-Live tracing.

What's Changed

  • feat(murf): default TTS to Falcon 2.1 and Gordon voice by @gaurav-murf in #8707
  • fix(vad): keep trailing silence out of the interruption speech duration by @Sakuta014 in #8754
  • fix(voice): skip the generated-text fallback when TTS synthesis fails by @russellmartin-livekit in #8775
  • fix(telemetry): trace GPT-Live delegations and session usage by @longcw in #8782
  • feat(llm): add first_token_timeout to FallbackAdapter by @longcw in #8691
  • fix(voice): keep a ChatMessage's extra when a realtime model generates the reply by @Darshak03 in #8783
  • fix(openai): keep Azure connections alive between turns in with_azure() by @furkan-v in #8793
  • fix(realtime): send eager tool outputs as each tool returns by @longcw in #8735
  • fix(gradium): end STT turns with flush instead of silence padding by @nvizzari in #8731
  • plugins/phonic: keep caller audio pushed before the conversation is ready by @arunwpm-work in #8818
  • feat(finesse): add Finesse TTS plugin by @iyashjayesh in #7950
  • feat(fishaudio): add s3-pro and make it the default TTS model by @cshape in #8822
  • fix(openai): default RealtimeModel to gpt-realtime-2.1 before gpt-realtime shuts down by @leninworld in #8825
  • fix(groq): update the default LLM model to openai/gpt-oss-120b by @leninworld in #8835
  • fix(voice): ignore pauses exceeding max_delay in DynamicEndpointing by @NabiBukhsh-AI in #7750
  • fix(google): let Gemini Live declare tools with parameters_json_schema by @Osmanoor in #8424
  • support for token mode by @davidzhao in #8557
  • fix(voice): hold text-only speech until the room is ready by @u9g in #8741
  • feat(hume): Hume audio DecisionModel, with an audio_input decision capability by @tinalenguyen in #8334
  • feat(openai): add with_modal() convenience method by @andrewhinh in #8790
  • feat(fishaudio): add transcribe-stream-2 and make it the default STT model by @cshape in #8863
  • feat(inference): add fishaudio/s3-pro to the inference TTS models by @tinalenguyen in #8866
  • plugins/phonic: add data_retention_policy and external_storage_policy options by @arunwpm-work in #8817
  • fix: cancel terminated jobs waiting for an executor by @chenghao-mou in #8865
  • feat(plugins-aircaps): add AirCaps AI STT plugin by @AirCapsPBC in #8694
  • [🤖 readme-manager] Update README by @alan-george-lk in #8867
  • fix(google): handle empty trailing user messages by @Luxe7 in #8848
  • fix(google): use the declared httpx2 dependency by @Luxe7 in #8849
  • fix(telnyx): honor interim_results=False in STT by @abhishekacharya200 in #8837
  • fix(xai): default the Responses LLM to grok-4.3 with reasoning effort none by @leninworld in #8857
  • fix(openai): ignore events of a replaced realtime response by @longcw in #8871
  • fix(google): connect Gemini Live Translate on v1beta on the Gemini API by @tinalenguyen in #8874
  • fix(aws): close input_stream when Transcribe stream setup fails by @xuilen in #8629
  • feat(plugins): add SpatialReal avatar plugin by @YuehengHan in #8583
  • fix(ultravox): accept a raw tool whose schema has no properties by @Caezarr in #8838
  • feat(zoom-ai): add Zoom TTS by @cdliao in #8774
  • fix(voice): arm transcription timeout when STT EOS flushes VAD by @chenghao-mou in #8854
  • feat(amd): add gate_replies to detect without the reply gate by @chenghao-mou in #8795
  • fix(rtzr): finalize utterances without reconnecting by @kimdwkimdw in #7284
  • fix(gradium): ask the TTS server for 48 kHz pcm by name by @davencyw in #8877
  • feat(sarvam): send updated keyterms to open STTRealtime streams by @neil-sarvam in #8876
  • feat(zoom-ai): add Zoom Decisions DecisionModel by @cdliao in #8776
  • feat(inference): add Meta Muse STT and LLM models by @shawnfeldman in #8881
  • feat(inference): add Gemini 3.8 TTS models by @shawnfeldman in #8882
  • fix(openai): reconnect when the socket closes during the reconnect wait by @longcw in #8873
  • fix(voice): retry preemptive generation after a barge-in interrupts speech by @chenghao-mou in #8892
  • fix(drive_thru): call the ordering tool before confirming an order by @longcw in #8902
  • feat(google): expose and log the Gemini Live session ID by @jamesdawsonWD in #8905
  • fix(assemblyai): enforce 10-code language_codes cap on universal-3-6-pro by @pylrn in #8509
  • fix(eot): start the user turn 0.5 s before its speech by @chenghao-mou in #8802
  • fix(inference): keep no-break spaces in streamed Gradium words by @shawnfeldman in #8862
  • feat(google): add gemini-4-live-translate to GeminiTranslationModels by @tinalenguyen in #8906
  • feat(google): add gemini-4-live Live model by @tinalenguyen in #8907
  • livekit-agents@1.9.1 by @github-actions[bot] in #8908

New Contributors

Full Changelog: https://github.com/livekit/agents/compare/livekit-agents@1.9.0...livekit-agents@1.9.1

Don't miss a new agents release

NewReleases is sending notifications on new releases.