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