startAudioConversation
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
A callback function that is invoked when the server initiates a disconnect via a LiveServerGoAway message. This allows the application to handle server-initiated session termination gracefully.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A LiveAudioConversationConfig provided by the user to control the various aspects of the conversation.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
A callback function that is invoked when the server initiates a disconnect via a LiveServerGoAway message. This allows the application to handle server-initiated session termination gracefully.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A LiveAudioConversationConfig provided by the user to control the various aspects of the conversation.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A callback function that is invoked whenever the model receives a function call. The FunctionResponsePart that the callback function returns will be automatically sent to the model.
A callback function that is invoked whenever the model receives a transcript. The first Transcription object is the input transcription, and the second is the output transcription.
A callback function that is invoked when the server initiates a disconnect via a LiveServerGoAway message. This allows the application to handle server-initiated session termination gracefully.
If enabled, allows the user to speak over or interrupt the model's ongoing reply.
WARNING: The user interruption feature relies on device-specific support, and may not be consistently available.
Starts an audio conversation with the model, which can only be stopped using stopAudioConversation or close.
Parameters
A LiveAudioConversationConfig provided by the user to control the various aspects of the conversation.