32 instantiations of SpeechToTextResponseUpdate
Microsoft.Extensions.AI.Abstractions (2)
Generated\361d1da7f942c932\JsonContext.SpeechToTextResponseUpdate.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate(),
SpeechToText\SpeechToTextResponse.cs (1)
84SpeechToTextResponseUpdate update = new()
Microsoft.Extensions.AI.Abstractions.Tests (23)
Generated\361d1da7f942c932\TestJsonSerializerContext.SpeechToTextResponseUpdate.g.cs (1)
31ObjectCreator = () => new global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate(),
SpeechToText\DelegatingSpeechToTextClientTests.cs (2)
62new("Text update 1"), 63new("Text update 2")
SpeechToText\SpeechToTextClientExtensionsTests.cs (1)
64var update = new SpeechToTextResponseUpdate();
SpeechToText\SpeechToTextClientTests.cs (3)
79yield return new("hello "); 80yield return new("world "); 81yield return new("!");
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (12)
48new("Hello ") { ModelId = "model123", StartTime = null, AdditionalProperties = new() { ["a"] = "b" } }, 49new("human, ") { ModelId = "model123", StartTime = TimeSpan.FromSeconds(10), EndTime = TimeSpan.FromSeconds(20) }, 50new("How ") { ModelId = "model123", StartTime = TimeSpan.FromSeconds(22), EndTime = TimeSpan.FromSeconds(23) }, 51new("are ") { ModelId = "model123", StartTime = TimeSpan.FromSeconds(23), EndTime = TimeSpan.FromSeconds(24) }, 52new([new TextContent("You?")]) { ModelId = "model123", StartTime = TimeSpan.FromSeconds(24), EndTime = TimeSpan.FromSeconds(25), AdditionalProperties = new() { ["c"] = "d" } }, 53new() { ResponseId = "someResponse", ModelId = "model123", StartTime = TimeSpan.FromSeconds(25), EndTime = TimeSpan.FromSeconds(35) }, 96updates.Add(new(text)); 117updates.Add(new() { Contents = [new DataContent("data:image/png;base64,aGVsbG8=")] }); 139new() { Contents = [new TextContent("Hello, ")] }, 140new() { Contents = [new UsageContent(new() { TotalTokenCount = 42 })] }, 141new() { Contents = [new TextContent("world!")] }, 142new() { Contents = [new UsageContent(new() { InputTokenCount = 12, TotalTokenCount = 24 })] },
SpeechToText\SpeechToTextResponseUpdateTests.cs (4)
16SpeechToTextResponseUpdate update = new(); 30SpeechToTextResponseUpdate update = new() 60SpeechToTextResponseUpdate update = new( 85SpeechToTextResponseUpdate original = new()
Microsoft.Extensions.AI.OpenAI (1)
OpenAISpeechToTextClient.cs (1)
134SpeechToTextResponseUpdate result = new()
Microsoft.Extensions.AI.Tests (6)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
39var expectedUpdates = Enumerable.Range(0, 3).Select(i => new SpeechToTextResponseUpdate()).ToArray();
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
111yield return new SpeechToTextResponseUpdate("blue "); 112yield return new SpeechToTextResponseUpdate("whale");
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (3)
69yield return new("This is"); 70yield return new(" the recognized"); 71yield return new()
184 references to SpeechToTextResponseUpdate
Microsoft.Extensions.AI (9)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (2)
48public override async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 51await foreach (var update in base.GetStreamingTextAsync(audioSpeechStream, Configure(options), cancellationToken))
SpeechToText\LoggingSpeechToTextClient.cs (3)
104public override async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 119IAsyncEnumerator<SpeechToTextResponseUpdate> e; 137SpeechToTextResponseUpdate? update = null;
SpeechToText\OpenTelemetrySpeechToTextClient.cs (4)
133public override async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 142IAsyncEnumerable<SpeechToTextResponseUpdate> updates; 154List<SpeechToTextResponseUpdate> trackedUpdates = []; 160SpeechToTextResponseUpdate update;
Microsoft.Extensions.AI.Abstractions (83)
Generated\361d1da7f942c932\JsonContext.IReadOnlyListSpeechToTextResponseUpdate.g.cs (12)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>>? _IReadOnlyListSpeechToTextResponseUpdate; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>> IReadOnlyListSpeechToTextResponseUpdate 24get => _IReadOnlyListSpeechToTextResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>> Create_IReadOnlyListSpeechToTextResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>, global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>(options, info); 47private void IReadOnlyListSpeechToTextResponseUpdateSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>? value) 57foreach (global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate element in value)
Generated\361d1da7f942c932\JsonContext.SpeechToTextResponseUpdate.g.cs (42)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>? _SpeechToTextResponseUpdate; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> SpeechToTextResponseUpdate 24get => _SpeechToTextResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> Create_SpeechToTextResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).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.SpeechToTextResponseUpdate>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 60Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Kind, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Kind = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("Kind", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdateKind), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 80Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ResponseId, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ResponseId = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("ResponseId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 100Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).StartTime, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).StartTime = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("StartTime", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 120Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).EndTime, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).EndTime = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("EndTime", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan?), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 140Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ModelId, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ModelId = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 158DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 168AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("RawRepresentation", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 178DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 180Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).AdditionalProperties, 181Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).AdditionalProperties = value!, 188AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 198DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 208AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 219DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 221Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Contents, 222Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Contents = value!, 229AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).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)
304if (type == typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)) 428if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>))
SpeechToText\DelegatingSpeechToTextClient.cs (1)
52public virtual IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\ISpeechToTextClient.cs (1)
47IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\SpeechToTextClientExtensions.cs (1)
63public static IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\SpeechToTextResponse.cs (4)
74/// <summary>Creates an array of <see cref="SpeechToTextResponseUpdate" /> instances that represent this <see cref="SpeechToTextResponse" />.</summary> 75/// <returns>An array of <see cref="SpeechToTextResponseUpdate" /> instances that may be used to represent this <see cref="SpeechToTextResponse" />.</returns> 76public SpeechToTextResponseUpdate[] ToSpeechToTextResponseUpdates() 84SpeechToTextResponseUpdate update = new()
SpeechToText\SpeechToTextResponseUpdate.cs (8)
17/// <para><see cref="SpeechToTextResponseUpdate"/> is so named because it represents streaming updates 21/// but all of those with a non-<see langword="null"/> value must have the same value (e.g. <see cref="SpeechToTextResponseUpdate.ResponseId"/>). 24/// The relationship between <see cref="SpeechToTextResponse"/> and <see cref="SpeechToTextResponseUpdate"/> is 28/// all have different <see cref="SpeechToTextResponseUpdate.RawRepresentation"/> objects whereas there's 37/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 43/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 50/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 74/// If a <see cref="SpeechToTextResponseUpdate"/> is created to represent some underlying object from another object
SpeechToText\SpeechToTextResponseUpdateExtensions.cs (10)
14/// Provides extension methods for working with <see cref="SpeechToTextResponseUpdate"/> instances. 19/// <summary>Combines <see cref="SpeechToTextResponseUpdate"/> instances into a single <see cref="SpeechToTextResponse"/>.</summary> 23this IEnumerable<SpeechToTextResponseUpdate> updates) 29foreach (var update in updates) 39/// <summary>Combines <see cref="SpeechToTextResponseUpdate"/> instances into a single <see cref="SpeechToTextResponse"/>.</summary> 44this IAsyncEnumerable<SpeechToTextResponseUpdate> updates, CancellationToken cancellationToken = default) 51IAsyncEnumerable<SpeechToTextResponseUpdate> updates, CancellationToken cancellationToken) 55await foreach (var update in updates.WithCancellation(cancellationToken).ConfigureAwait(false)) 66/// <summary>Processes the <see cref="SpeechToTextResponseUpdate"/>, incorporating its contents and properties.</summary> 70SpeechToTextResponseUpdate update,
Utilities\AIJsonUtilities.Defaults.cs (2)
128[JsonSerializable(typeof(SpeechToTextResponseUpdate))] 129[JsonSerializable(typeof(IReadOnlyList<SpeechToTextResponseUpdate>))]
Microsoft.Extensions.AI.Abstractions.Tests (71)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
310if (type == typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate))
Generated\361d1da7f942c932\TestJsonSerializerContext.SpeechToTextResponseUpdate.g.cs (42)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>? _SpeechToTextResponseUpdate; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> SpeechToTextResponseUpdate 22get => _SpeechToTextResponseUpdate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> Create_SpeechToTextResponseUpdate(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).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.SpeechToTextResponseUpdate>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 58Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Kind, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Kind = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("Kind", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdateKind), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 78Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ResponseId, 79Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ResponseId = value!, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("ResponseId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 98Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).StartTime, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).StartTime = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("StartTime", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 118Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).EndTime, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).EndTime = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("EndTime", InstanceMemberBindingFlags, null, typeof(global::System.TimeSpan?), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 138Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ModelId, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).ModelId = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 156DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 166AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("RawRepresentation", InstanceMemberBindingFlags, null, typeof(object), global::System.Array.Empty<global::System.Type>(), null), 176DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 178Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).AdditionalProperties, 179Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).AdditionalProperties = value!, 186AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 196DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 206AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 217DeclaringType = typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate), 219Getter = static obj => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Contents, 220Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate)obj).Contents = value!, 227AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.SpeechToTextResponseUpdate).GetProperty("Contents", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.Extensions.AI.AIContent>), global::System.Array.Empty<global::System.Type>(), null),
SpeechToText\DelegatingSpeechToTextClientTests.cs (1)
60SpeechToTextResponseUpdate[] expectedResults =
SpeechToText\SpeechToTextClientExtensionsTests.cs (5)
64var update = new SpeechToTextResponseUpdate(); 71await foreach (var update in SpeechToTextClientExtensions.GetStreamingTextAsync( 85private static async IAsyncEnumerable<SpeechToTextResponseUpdate> YieldAsync(params SpeechToTextResponseUpdate[] updates) 88foreach (var update in updates)
SpeechToText\SpeechToTextClientTests.cs (3)
59List<SpeechToTextResponseUpdate> updates = []; 60await foreach (var update in SpeechToTextClientExtensions.GetStreamingTextAsync( 77private static async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingUpdatesAsync()
SpeechToText\SpeechToTextResponseTests.cs (2)
223SpeechToTextResponseUpdate[] updates = response.ToSpeechToTextResponseUpdates(); 228SpeechToTextResponseUpdate update = updates[0];
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (7)
38Assert.Throws<ArgumentNullException>("updates", () => ((List<SpeechToTextResponseUpdate>)null!).ToSpeechToTextResponse()); 46SpeechToTextResponseUpdate[] updates = 81List<SpeechToTextResponseUpdate> updates = []; 137SpeechToTextResponseUpdate[] updates = 156private static async IAsyncEnumerable<SpeechToTextResponseUpdate> YieldAsync(IEnumerable<SpeechToTextResponseUpdate> updates) 158foreach (SpeechToTextResponseUpdate update in updates)
SpeechToText\SpeechToTextResponseUpdateTests.cs (7)
16SpeechToTextResponseUpdate update = new(); 30SpeechToTextResponseUpdate update = new() 60SpeechToTextResponseUpdate update = new( 85SpeechToTextResponseUpdate original = new() 99SpeechToTextResponseUpdate? result = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.SpeechToTextResponseUpdate); 136SpeechToTextResponseUpdate? result = JsonSerializer.Deserialize<SpeechToTextResponseUpdate>(Json, AIJsonUtilities.DefaultOptions);
TestJsonSerializerContext.cs (1)
20[JsonSerializable(typeof(SpeechToTextResponseUpdate))]
TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
Microsoft.Extensions.AI.Integration.Tests (3)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToTextClientIntegrationTests.cs (1)
51await foreach (var chunk in _client.GetStreamingTextAsync(audioSpeechStream))
Microsoft.Extensions.AI.OpenAI (3)
OpenAISpeechToTextClient.cs (3)
112public async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 121foreach (var update in (await GetTextAsync(audioSpeechStream, options, cancellationToken).ConfigureAwait(false)).ToSpeechToTextResponseUpdates()) 134SpeechToTextResponseUpdate result = new()
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAISpeechToTextClientTests.cs (6)
165await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 200await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 316var updates = new System.Collections.Generic.List<SpeechToTextResponseUpdate>(); 317await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream)) 433await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream)) 499await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream))
Microsoft.Extensions.AI.Tests (9)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (3)
92static async IAsyncEnumerable<SpeechToTextResponseUpdate> YieldUpdates(SpeechToTextResponseUpdate[] updates) 94foreach (var update in updates)
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
108static async IAsyncEnumerable<SpeechToTextResponseUpdate> GetUpdatesAsync() 121await foreach (var update in client.GetStreamingTextAsync(
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (2)
65static async IAsyncEnumerable<SpeechToTextResponseUpdate> TestClientStreamAsync( 188await foreach (var update in client.GetStreamingTextAsync(Stream.Null))