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);
51
serviceType == typeof(AudioClient) ?
_audioClient
:
68
var translation = (await
_audioClient
.TranslateAudioAsync(audioSpeechStream, filename, ToOpenAITranslationOptions(options), cancellationToken).ConfigureAwait(false)).Value;
82
var transcription = (await
_audioClient
.TranscribeAudioAsync(audioSpeechStream, filename, ToOpenAITranscriptionOptions(options), cancellationToken).ConfigureAwait(false)).Value;
129
AsyncStreamingResult<StreamingAudioTranscriptionUpdate> streamingResult = await
_audioClient
.TranscribeAudioStreamingAsync(