Added
-
Added automatic hangup logic to the Twilio serializer. This feature hangs up the Twilio call when an
EndFrameorCancelFrameis received. It is enabled by default and is configurable via theauto_hang_upInputParam. -
Added
SmartTurnMetricsData, which contains end-of-turn prediction metrics, to theMetricsFrame. UsingMetricsFrame, you can now retrieve prediction confidence scores and processing time metrics from the smart turn analyzers. -
Added support for Application Default Credentials in Google services,
GoogleSTTService,GoogleTTSService, andGoogleVertexLLMService. -
Added support for Smart Turn Detection via the
turn_analyzertransport parameter. You can now choose betweenHttpSmartTurnAnalyzer()orFalSmartTurnAnalyzer()for remote inference orLocalCoreMLSmartTurnAnalyzer()for on-device inference using Core ML. -
DeepgramTTSServiceacceptsbase_urlargument again, allowing you to connect to an on-prem service. -
Added
LLMUserAggregatorParamsandLLMAssistantAggregatorParamswhich allow you to control aggregator settings. You can now pass these arguments when creating aggregator pairs withcreate_context_aggregator(). -
Added
previous_textcontext support to ElevenLabsHttpTTSService, improving speech consistency across sentences within an LLM response. -
Added word/timestamp pairs to
ElevenLabsHttpTTSService. -
It is now possible to disable
SoundfileMixerwhen created. You can then useMixerEnableFrameto dynamically enable it when necessary. -
Added
on_client_connectedandon_client_disconnectedevent handlers to theDailyTransportclass. These handlers map to the same underlying Daily events ason_participant_joinedandon_participant_left, respectively. This makes it easier to write a single bot pipeline that can also use other transports likeSmallWebRTCTransportandFastAPIWebsocketTransport.
Changed
-
GrokLLMServicenow usesgrok-3-betaas its default model. -
Daily's REST helpers now include an
eject_at_token_expparam, which ejects the user when their token expires. This new parameter defaults to False. Also, the default value forenable_prejoin_uichanged to False andeject_at_room_expchanged to False. -
OpenAILLMServiceandOpenPipeLLMServicenow usegpt-4.1as their default model. -
SoundfileMixerconstructor arguments need to be keywords.
Deprecated
DeepgramSTTServiceparameterurlis now deprecated, usebase_urlinstead.
Removed
- Parameters
user_kwargsandassistant_kwargswhen creating a context aggregator pair usingcreate_context_aggregator()have been removed. Useuser_paramsandassistant_paramsinstead.
Fixed
-
Fixed an issue that would cause TTS websocket-based services to not cleanup resources properly when disconnecting.
-
Fixed a
TavusVideoServiceissue that was causing audio choppiness. -
Fixed an issue in
SmallWebRTCTransportwhere an error was thrown if the client did not create a video transceiver. -
Fixed an issue where LLM input parameters were not working and applied correctly in
GoogleVertexLLMService, causing unexpected behavior during inference.
Other
- Updated the
twilio-chatbotexample to use the auto-hangup feature.