19 references to new
Microsoft.Extensions.AI (1)
TextToSpeech\ConfigureOptionsTextToSpeechClient.cs (1)
59
options = options?.Clone() ??
new
();
Microsoft.Extensions.AI.Abstractions.Tests (7)
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
25
var expectedOptions = new
TextToSpeechOptions
();
57
var expectedOptions = new
TextToSpeechOptions
();
TextToSpeech\TextToSpeechClientTests.cs (2)
17
var expectedOptions = new
TextToSpeechOptions
();
41
var expectedOptions = new
TextToSpeechOptions
();
TextToSpeech\TextToSpeechOptionsTests.cs (3)
15
TextToSpeechOptions options =
new
();
39
TextToSpeechOptions options =
new
();
83
TextToSpeechOptions options =
new
();
Microsoft.Extensions.AI.Integration.Tests (3)
TextToSpeechClientIntegrationTests.cs (3)
52
var response = await _client.GetAudioAsync("The quick brown fox jumps over the lazy dog.", new
TextToSpeechOptions
71
var response = await _client.GetAudioAsync("Testing audio format selection.", new
TextToSpeechOptions
90
var response = await _client.GetAudioAsync("This should be spoken quickly.", new
TextToSpeechOptions
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAITextToSpeechClientTests.cs (4)
109
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
138
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
171
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
201
var response = await client.GetAudioAsync("Hello world",
new
()
Microsoft.Extensions.AI.Tests (4)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
35
TextToSpeechOptions? providedOptions = nullProvidedOptions ? null :
new
() { ModelId = "test" };
TextToSpeech\LoggingTextToSpeechClientTests.cs (2)
70
new
TextToSpeechOptions
{ VoiceId = "alloy" });
121
new
TextToSpeechOptions
{ VoiceId = "alloy" }))
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (1)
90
TextToSpeechOptions options =
new
()