26 instantiations of TextToSpeechResponseUpdate
Microsoft.Extensions.AI.Abstractions (2)
Generated\361d1da7f942c932\JsonContext.TextToSpeechResponseUpdate.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate(),
TextToSpeech\TextToSpeechResponse.cs (1)
57TextToSpeechResponseUpdate update = new()
Microsoft.Extensions.AI.Abstractions.Tests (17)
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechResponseUpdate.g.cs (1)
31ObjectCreator = () => new global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate(),
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
61new([new DataContent(new byte[] { 1, 2 }, "audio/mpeg")]), 62new([new DataContent(new byte[] { 3, 4 }, "audio/mpeg")])
TextToSpeech\TextToSpeechClientTests.cs (3)
68yield return new([new DataContent(new byte[] { 1 }, "audio/mpeg")]); 69yield return new([new DataContent(new byte[] { 2 }, "audio/mpeg")]); 70yield return new([new DataContent(new byte[] { 3 }, "audio/mpeg")]);
TextToSpeech\TextToSpeechResponseUpdateExtensionsTests.cs (8)
26new([new DataContent(new byte[] { 1 }, "audio/mpeg")]) { ModelId = "model123", AdditionalProperties = new() { ["a"] = "b" } }, 27new([new DataContent(new byte[] { 2 }, "audio/mpeg")]) { ModelId = "model123" }, 28new([new DataContent(new byte[] { 3 }, "audio/mpeg")]) { ModelId = "model123", AdditionalProperties = new() { ["c"] = "d" } }, 29new() { ResponseId = "someResponse", ModelId = "model123" }, 57new() { Contents = [new DataContent(new byte[] { 1 }, "audio/mpeg")] }, 58new() { Contents = [new UsageContent(new() { TotalTokenCount = 42 })] }, 59new() { Contents = [new DataContent(new byte[] { 2 }, "audio/mpeg")] }, 60new() { Contents = [new UsageContent(new() { InputTokenCount = 12, TotalTokenCount = 24 })] },
TextToSpeech\TextToSpeechResponseUpdateTests.cs (3)
15TextToSpeechResponseUpdate update = new(); 25TextToSpeechResponseUpdate update = new() 47TextToSpeechResponseUpdate original = new()
Microsoft.Extensions.AI.OpenAI (2)
OpenAITextToSpeechClient.cs (2)
118yield return new TextToSpeechResponseUpdate 128var sessionClose = new TextToSpeechResponseUpdate
Microsoft.Extensions.AI.Tests (5)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
38var expectedUpdates = Enumerable.Range(0, 3).Select(i => new TextToSpeechResponseUpdate()).ToArray();
TextToSpeech\LoggingTextToSpeechClientTests.cs (2)
110yield return new([new DataContent(new byte[] { 1 }, "audio/mpeg")]); 111yield return new([new DataContent(new byte[] { 2 }, "audio/mpeg")]);
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
66yield return new([new DataContent(new byte[] { 1 }, "audio/mpeg")]); 67yield return new()
152 references to TextToSpeechResponseUpdate
Microsoft.Extensions.AI (9)
TextToSpeech\ConfigureOptionsTextToSpeechClient.cs (2)
47public override async IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync( 50await foreach (var update in base.GetStreamingAudioAsync(text, Configure(options), cancellationToken))
TextToSpeech\LoggingTextToSpeechClient.cs (3)
97public override async IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync( 112IAsyncEnumerator<TextToSpeechResponseUpdate> e; 130TextToSpeechResponseUpdate? update = null;
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (4)
132public override async IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync( 141IAsyncEnumerable<TextToSpeechResponseUpdate> updates; 153List<TextToSpeechResponseUpdate> trackedUpdates = []; 159TextToSpeechResponseUpdate update;
Microsoft.Extensions.AI.Abstractions (71)
Generated\361d1da7f942c932\JsonContext.IReadOnlyListTextToSpeechResponseUpdate.g.cs (12)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>>? _IReadOnlyListTextToSpeechResponseUpdate; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>> IReadOnlyListTextToSpeechResponseUpdate 24get => _IReadOnlyListTextToSpeechResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>> Create_IReadOnlyListTextToSpeechResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>, global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>(options, info); 47private void IReadOnlyListTextToSpeechResponseUpdateSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>? value) 57foreach (global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate element in value)
Generated\361d1da7f942c932\JsonContext.TextToSpeechResponseUpdate.g.cs (32)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>? _TextToSpeechResponseUpdate; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> TextToSpeechResponseUpdate 24get => _TextToSpeechResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> Create_TextToSpeechResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 60Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Kind, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Kind = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("Kind", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 80Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ResponseId, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ResponseId = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("ResponseId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 100Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ModelId, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ModelId = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("RawRepresentation", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 140Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 158DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 160Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Contents, 161Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Contents = value!, 168AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("Contents", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (2)
336if (type == typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)) 432if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>))
TextToSpeech\DelegatingTextToSpeechClient.cs (1)
51public virtual IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync(
TextToSpeech\ITextToSpeechClient.cs (1)
47IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync(
TextToSpeech\TextToSpeechResponse.cs (4)
47/// <summary>Creates an array of <see cref="TextToSpeechResponseUpdate" /> instances that represent this <see cref="TextToSpeechResponse" />.</summary> 48/// <returns>An array of <see cref="TextToSpeechResponseUpdate" /> instances that may be used to represent this <see cref="TextToSpeechResponse" />.</returns> 49public TextToSpeechResponseUpdate[] ToTextToSpeechResponseUpdates() 57TextToSpeechResponseUpdate update = new()
TextToSpeech\TextToSpeechResponseUpdate.cs (7)
16/// <para><see cref="TextToSpeechResponseUpdate"/> is so named because it represents streaming updates 20/// but all of those with a non-<see langword="null"/> value must have the same value (e.g. <see cref="TextToSpeechResponseUpdate.ResponseId"/>). 23/// The relationship between <see cref="TextToSpeechResponse"/> and <see cref="TextToSpeechResponseUpdate"/> is 27/// all have different <see cref="TextToSpeechResponseUpdate.RawRepresentation"/> objects whereas there's 34/// <summary>Initializes a new instance of the <see cref="TextToSpeechResponseUpdate"/> class.</summary> 40/// <summary>Initializes a new instance of the <see cref="TextToSpeechResponseUpdate"/> class.</summary> 58/// If a <see cref="TextToSpeechResponseUpdate"/> is created to represent some underlying object from another object
TextToSpeech\TextToSpeechResponseUpdateExtensions.cs (10)
14/// Provides extension methods for working with <see cref="TextToSpeechResponseUpdate"/> instances. 19/// <summary>Combines <see cref="TextToSpeechResponseUpdate"/> instances into a single <see cref="TextToSpeechResponse"/>.</summary> 23this IEnumerable<TextToSpeechResponseUpdate> updates) 29foreach (var update in updates) 37/// <summary>Combines <see cref="TextToSpeechResponseUpdate"/> instances into a single <see cref="TextToSpeechResponse"/>.</summary> 42this IAsyncEnumerable<TextToSpeechResponseUpdate> updates, CancellationToken cancellationToken = default) 49IAsyncEnumerable<TextToSpeechResponseUpdate> updates, CancellationToken cancellationToken) 53await foreach (var update in updates.WithCancellation(cancellationToken).ConfigureAwait(false)) 62/// <summary>Processes the <see cref="TextToSpeechResponseUpdate"/>, incorporating its contents and properties.</summary> 66TextToSpeechResponseUpdate update,
Utilities\AIJsonUtilities.Defaults.cs (2)
135[JsonSerializable(typeof(TextToSpeechResponseUpdate))] 136[JsonSerializable(typeof(IReadOnlyList<TextToSpeechResponseUpdate>))]
Microsoft.Extensions.AI.Abstractions.Tests (54)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
338if (type == typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate))
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechResponseUpdate.g.cs (32)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>? _TextToSpeechResponseUpdate; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> TextToSpeechResponseUpdate 22get => _TextToSpeechResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> Create_TextToSpeechResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 58Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Kind, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Kind = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("Kind", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 78Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ResponseId, 79Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ResponseId = value!, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("ResponseId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 98Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ModelId, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).ModelId = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("RawRepresentation", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 138Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 156DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate), 158Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Contents, 159Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate)obj).Contents = value!, 166AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechResponseUpdate).GetProperty("Contents", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
TestJsonSerializerContext.cs (1)
24[JsonSerializable(typeof(TextToSpeechResponseUpdate))]
TestTextToSpeechClient.cs (2)
31IAsyncEnumerable<TextToSpeechResponseUpdate>>? 46public IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync(
TextToSpeech\DelegatingTextToSpeechClientTests.cs (1)
59TextToSpeechResponseUpdate[] expectedResults =
TextToSpeech\TextToSpeechClientTests.cs (3)
53List<TextToSpeechResponseUpdate> updates = []; 54await foreach (var update in client.GetStreamingAudioAsync("Hello!", expectedOptions, cts.Token)) 66private static async IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingUpdatesAsync()
TextToSpeech\TextToSpeechResponseTests.cs (2)
152TextToSpeechResponseUpdate[] updates = response.ToTextToSpeechResponseUpdates(); 157TextToSpeechResponseUpdate update = updates[0];
TextToSpeech\TextToSpeechResponseUpdateExtensionsTests.cs (6)
16Assert.Throws<ArgumentNullException>("updates", () => ((List<TextToSpeechResponseUpdate>)null!).ToTextToSpeechResponse()); 24TextToSpeechResponseUpdate[] updates = 55TextToSpeechResponseUpdate[] updates = 75private static async IAsyncEnumerable<TextToSpeechResponseUpdate> YieldAsync(IEnumerable<TextToSpeechResponseUpdate> updates) 77foreach (TextToSpeechResponseUpdate update in updates)
TextToSpeech\TextToSpeechResponseUpdateTests.cs (6)
15TextToSpeechResponseUpdate update = new(); 25TextToSpeechResponseUpdate update = new() 47TextToSpeechResponseUpdate original = new() 58TextToSpeechResponseUpdate? result = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.TextToSpeechResponseUpdate); 86TextToSpeechResponseUpdate? result = JsonSerializer.Deserialize<TextToSpeechResponseUpdate>(Json, AIJsonUtilities.DefaultOptions);
Microsoft.Extensions.AI.Integration.Tests (1)
TextToSpeechClientIntegrationTests.cs (1)
109await foreach (var update in _client.GetStreamingAudioAsync("Hello, world!"))
Microsoft.Extensions.AI.OpenAI (3)
OpenAITextToSpeechClient.cs (3)
80public async IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync( 105foreach (var update in (await GetAudioAsync(text, options, cancellationToken).ConfigureAwait(false)).ToTextToSpeechResponseUpdates()) 128var sessionClose = new TextToSpeechResponseUpdate
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAITextToSpeechClientIntegrationTests.cs (1)
33await foreach (var update in client.GetStreamingAudioAsync("The quick brown fox jumps over the lazy dog."))
OpenAITextToSpeechClientTests.cs (3)
266await foreach (var update in client.GetStreamingAudioAsync("Hello streaming")) 310List<TextToSpeechResponseUpdate> updates = []; 311await foreach (var update in client.GetStreamingAudioAsync("Hello streaming"))
Microsoft.Extensions.AI.Tests (10)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestTextToSpeechClient.cs (2)
31IAsyncEnumerable<TextToSpeechResponseUpdate>>? 46public IAsyncEnumerable<TextToSpeechResponseUpdate> GetStreamingAudioAsync(
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (3)
89static async IAsyncEnumerable<TextToSpeechResponseUpdate> YieldUpdates(TextToSpeechResponseUpdate[] updates) 91foreach (var update in updates)
TextToSpeech\LoggingTextToSpeechClientTests.cs (2)
107static async IAsyncEnumerable<TextToSpeechResponseUpdate> GetUpdatesAsync() 119await foreach (var update in client.GetStreamingAudioAsync(
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (3)
62static async IAsyncEnumerable<TextToSpeechResponseUpdate> TestClientStreamAsync( 102await foreach (var update in client.GetStreamingAudioAsync("Hello, world!", options)) 168await foreach (var update in client.GetStreamingAudioAsync("Hello"))