sendAudioRealtime method
Sends audio data to the server in realtime.
Check https://ai.google.dev/api/live#bidigeneratecontentrealtimeinput for
details about the realtime input usage.
audio: The audio data to send.
Implementation
Future<void> sendAudioRealtime(InlineDataPart audio) async {
_checkWsStatus();
var clientMessage = LiveClientRealtimeInput.audio(audio);
var clientJson = jsonEncode(clientMessage.toJson());
_ws.sink.add(clientJson);
}