1 write to _audioClient
Microsoft.Extensions.AI.OpenAI (1)
OpenAISpeechToTextClient.cs (1)
42_audioClient = audioClient;
5 references to _audioClient
Microsoft.Extensions.AI.OpenAI (5)
OpenAISpeechToTextClient.cs (5)
51_metadata = new("openai", providerUrl, _audioClient.Model); 62serviceType == typeof(AudioClient) ? _audioClient : 81var translation = (await _audioClient.TranslateAudioAsync(audioSpeechStream, filename, ToOpenAITranslationOptions(options), cancellationToken).ConfigureAwait(false)).Value; 95var transcription = (await _audioClient.TranscribeAudioAsync(audioSpeechStream, filename, ToOpenAITranscriptionOptions(options), cancellationToken).ConfigureAwait(false)).Value; 139await foreach (var update in _audioClient.TranscribeAudioStreamingAsync(