8 references to SpeechToTextClientExtensions
Microsoft.Extensions.AI.Abstractions.Tests (8)
SpeechToText\SpeechToTextClientExtensionsTests.cs (6)
19_ = SpeechToTextClientExtensions.GetService<object>(null!); 29var ex1 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetTextAsync(client!, content)); 34var ex2 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetTextAsync(testClient, nullContent!)); 43var ex1 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetStreamingTextAsync(client!, content).GetAsyncEnumerator().MoveNextAsync().AsTask()); 48var ex2 = await Assert.ThrowsAsync<ArgumentNullException>(() => SpeechToTextClientExtensions.GetStreamingTextAsync(testClient, nullContent!).GetAsyncEnumerator().MoveNextAsync().AsTask()); 71await foreach (var update in SpeechToTextClientExtensions.GetStreamingTextAsync(
SpeechToText\SpeechToTextClientTests.cs (2)
32SpeechToTextResponse response = await SpeechToTextClientExtensions.GetTextAsync( 60await foreach (var update in SpeechToTextClientExtensions.GetStreamingTextAsync(