1 write to _audioClient
Microsoft.Extensions.AI.OpenAI (1)
OpenAISpeechToTextClient.cs (1)
38_audioClient = Throw.IfNull(audioClient);
5 references to _audioClient
Microsoft.Extensions.AI.OpenAI (5)
OpenAISpeechToTextClient.cs (5)
40_metadata = new("openai", audioClient.Endpoint, _audioClient.Model); 51serviceType == typeof(AudioClient) ? _audioClient : 68var translation = (await _audioClient.TranslateAudioAsync(audioSpeechStream, filename, ToOpenAITranslationOptions(options), cancellationToken).ConfigureAwait(false)).Value; 82var transcription = (await _audioClient.TranscribeAudioAsync(audioSpeechStream, filename, ToOpenAITranscriptionOptions(options), cancellationToken).ConfigureAwait(false)).Value; 129AsyncStreamingResult<StreamingAudioTranscriptionUpdate> streamingResult = await _audioClient.TranscribeAudioStreamingAsync(