18 references to new
Microsoft.Extensions.AI (1)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (1)
59
options = options?.Clone() ??
new
();
Microsoft.Extensions.AI.Abstractions.Tests (8)
SpeechToText\DelegatingSpeechToTextClientTests.cs (2)
26
var expectedOptions = new
SpeechToTextOptions
();
58
var expectedOptions = new
SpeechToTextOptions
();
SpeechToText\SpeechToTextClientExtensionsTests.cs (1)
56
var expectedOptions = new
SpeechToTextOptions
();
SpeechToText\SpeechToTextClientTests.cs (2)
18
var expectedOptions = new
SpeechToTextOptions
();
46
var expectedOptions = new
SpeechToTextOptions
();
SpeechToText\SpeechToTextOptionsTests.cs (3)
15
SpeechToTextOptions options =
new
();
31
SpeechToTextOptions options =
new
();
63
SpeechToTextOptions options =
new
();
Microsoft.Extensions.AI.OpenAI.Tests (5)
OpenAISpeechToTextClientTests.cs (5)
87
var response = await client.GetTextAsync(audioSpeechStream, new
SpeechToTextOptions
162
await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new
SpeechToTextOptions
197
await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new
SpeechToTextOptions
234
Assert.NotNull(await client.GetTextAsync(audioSpeechStream,
new
()
271
Assert.NotNull(await client.GetTextAsync(audioSpeechStream,
new
()
Microsoft.Extensions.AI.Tests (4)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
36
SpeechToTextOptions? providedOptions = nullProvidedOptions ? null :
new
() { ModelId = "test" };
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
73
new
SpeechToTextOptions
{ SpeechLanguage = "pt" });
123
new
SpeechToTextOptions
{ SpeechLanguage = "pt" }))
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (1)
92
SpeechToTextOptions options =
new
()