sendAudioRealtime

actual suspend fun sendAudioRealtime(audio: InlineData)(source)

Sends an audio input stream to the model, using the realtime API.

To learn more about audio formats, and the required state they should be provided in, see the docs on Supported audio formats

Parameters

audio

Raw audio data used to update the model on the client's conversation. For best results, send 16-bit PCM audio at 24kHz.

expect suspend fun sendAudioRealtime(audio: InlineData)(source)

Sends an audio input stream to the model, using the realtime API.

To learn more about audio formats, and the required state they should be provided in, see the docs on Supported audio formats

Parameters

audio

Raw audio data used to update the model on the client's conversation. For best results, send 16-bit PCM audio at 24kHz.

actual suspend fun sendAudioRealtime(audio: InlineData)(source)

Sends an audio input stream to the model, using the realtime API.

To learn more about audio formats, and the required state they should be provided in, see the docs on Supported audio formats

Parameters

audio

Raw audio data used to update the model on the client's conversation. For best results, send 16-bit PCM audio at 24kHz.