8 references to TextToSpeechResponse
Microsoft.Extensions.AI.Abstractions.Tests (4)
TextToSpeech\DelegatingTextToSpeechClientTests.cs (1)
28var expectedResponse = new TextToSpeechResponse([]);
TextToSpeech\TextToSpeechClientTests.cs (1)
24return Task.FromResult(new TextToSpeechResponse([new DataContent(new byte[] { 1, 2, 3 }, "audio/mpeg")]));
TextToSpeech\TextToSpeechResponseTests.cs (2)
16Assert.Throws<ArgumentNullException>("contents", () => new TextToSpeechResponse(null!)); 44TextToSpeechResponse response = new(content);
Microsoft.Extensions.AI.OpenAI (1)
OpenAITextToSpeechClient.cs (1)
72return new TextToSpeechResponse([new DataContent(result.Value.ToMemory(), mediaType)])
Microsoft.Extensions.AI.Tests (3)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
37TextToSpeechResponse expectedResponse = new([]);
TextToSpeech\LoggingTextToSpeechClientTests.cs (1)
59return Task.FromResult(new TextToSpeechResponse([new DataContent(new byte[] { 1, 2, 3 }, "audio/mpeg")]));
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (1)
44return new([new DataContent(new byte[] { 1, 2, 3 }, "audio/mpeg")])