usingvarclient=newGeminiClient(apiKey);try{usingvarcts=newCancellationTokenSource(TimeSpan.FromSeconds(30));// Enables output audio transcription to receive text alongside audio.varconfig=CreateLiveConfig();config.OutputAudioTranscription=newLiveOutputAudioTranscription();awaitusingvarsession=awaitclient.ConnectLiveAsync(config,cancellationToken:cts.Token);// Send a text message and collect transcription events.awaitsession.SendTextAsync("Say the word hello",cts.Token);boolreceivedTranscription=false;boolreceivedAudio=false;awaitforeach(varmessageinsession.ReadEventsAsync(cts.Token)){if(message.ServerContent?.ModelTurn?.Partsis{Count:>0}){receivedAudio=true;}if(message.ServerContent?.OutputTranscription?.Textis{Length:>0}){receivedTranscription=true;}if(message.ServerContent?.TurnComplete==true){break;}}}catch(WebSocketExceptionex){}catch(OperationCanceledException){}