13 instantiations of SpeechToTextResponseUpdate
Microsoft.Extensions.AI.Abstractions (1)
SpeechToText\SpeechToTextResponse.cs (1)
79SpeechToTextResponseUpdate update = new SpeechToTextResponseUpdate
Microsoft.Extensions.AI.Abstractions.Tests (9)
SpeechToText\SpeechToTextClientExtensionsTests.cs (1)
64var update = new SpeechToTextResponseUpdate();
SpeechToText\SpeechToTextClientTests.cs (3)
80yield return new("hello "); 81yield return new("world "); 82yield return new("!");
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (2)
94updates.Add(new(text)); 115updates.Add(new() { Contents = [new DataContent("data:image/png;base64,aGVsbG8=")] });
SpeechToText\SpeechToTextResponseUpdateTests.cs (3)
16SpeechToTextResponseUpdate update = new(); 30SpeechToTextResponseUpdate update = new() 86SpeechToTextResponseUpdate original = new()
Microsoft.Extensions.AI.Tests (3)
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");
71 references to SpeechToTextResponseUpdate
Microsoft.Extensions.AI (5)
SpeechToText\ConfigureOptionsSpeechToTextClient.cs (2)
47public override async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 50await foreach (var update in base.GetStreamingTextAsync(audioSpeechStream, Configure(options), cancellationToken))
SpeechToText\LoggingSpeechToTextClient.cs (3)
95public override async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 110IAsyncEnumerator<SpeechToTextResponseUpdate> e; 128SpeechToTextResponseUpdate? update = null;
Microsoft.Extensions.AI.Abstractions (27)
SpeechToText\DelegatingSpeechToTextClient.cs (1)
51public virtual IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\ISpeechToTextClient.cs (1)
46IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\SpeechToTextClientExtensions.cs (1)
62public static IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
SpeechToText\SpeechToTextResponse.cs (4)
75/// <summary>Creates an array of <see cref="SpeechToTextResponseUpdate" /> instances that represent this <see cref="SpeechToTextResponse" />.</summary> 76/// <returns>An array of <see cref="SpeechToTextResponseUpdate" /> instances that may be used to represent this <see cref="SpeechToTextResponse" />.</returns> 77public SpeechToTextResponseUpdate[] ToSpeechToTextResponseUpdates() 79SpeechToTextResponseUpdate update = new SpeechToTextResponseUpdate
SpeechToText\SpeechToTextResponseUpdate.cs (8)
18/// <para><see cref="SpeechToTextResponseUpdate"/> is so named because it represents streaming updates 22/// but all of those with a non-<see langword="null"/> value must have the same value (e.g. <see cref="SpeechToTextResponseUpdate.ResponseId"/>). 25/// The relationship between <see cref="SpeechToTextResponse"/> and <see cref="SpeechToTextResponseUpdate"/> is 29/// all have different <see cref="SpeechToTextResponseUpdate.RawRepresentation"/> objects whereas there's 38/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 44/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 51/// <summary>Initializes a new instance of the <see cref="SpeechToTextResponseUpdate"/> class.</summary> 75/// 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) 34foreach (var update in updates) 58/// <summary>Combines <see cref="SpeechToTextResponseUpdate"/> instances into a single <see cref="SpeechToTextResponse"/>.</summary> 63this IAsyncEnumerable<SpeechToTextResponseUpdate> updates, CancellationToken cancellationToken = default) 70IAsyncEnumerable<SpeechToTextResponseUpdate> updates, CancellationToken cancellationToken) 79await foreach (var update in updates.WithCancellation(cancellationToken).ConfigureAwait(false)) 105/// <summary>Processes the <see cref="SpeechToTextResponseUpdate"/>, incorporating its contents and properties.</summary> 112SpeechToTextResponseUpdate update,
Utilities\AIJsonUtilities.Defaults.cs (2)
71[JsonSerializable(typeof(SpeechToTextResponseUpdate))] 72[JsonSerializable(typeof(IReadOnlyList<SpeechToTextResponseUpdate>))]
Microsoft.Extensions.AI.Abstractions.Tests (25)
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( 78private static async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingUpdatesAsync()
SpeechToText\SpeechToTextResponseTests.cs (2)
208SpeechToTextResponseUpdate[] updates = response.ToSpeechToTextResponseUpdates(); 213SpeechToTextResponseUpdate update = updates[0];
SpeechToText\SpeechToTextResponseUpdateExtensionsTests.cs (6)
38Assert.Throws<ArgumentNullException>("updates", () => ((List<SpeechToTextResponseUpdate>)null!).ToSpeechToTextResponse()); 46SpeechToTextResponseUpdate[] updates = 79List<SpeechToTextResponseUpdate> updates = []; 132private static async IAsyncEnumerable<SpeechToTextResponseUpdate> YieldAsync(IEnumerable<SpeechToTextResponseUpdate> updates) 134foreach (SpeechToTextResponseUpdate update in updates)
SpeechToText\SpeechToTextResponseUpdateTests.cs (5)
16SpeechToTextResponseUpdate update = new(); 30SpeechToTextResponseUpdate update = new() 61SpeechToTextResponseUpdate update = new( 86SpeechToTextResponseUpdate original = new() 100SpeechToTextResponseUpdate? result = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.SpeechToTextResponseUpdate);
TestJsonSerializerContext.cs (1)
20[JsonSerializable(typeof(SpeechToTextResponseUpdate))]
TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
Microsoft.Extensions.AI.Integration.Tests (3)
SpeechToTextClientIntegrationTests.cs (1)
52await foreach (var chunk in _client.GetStreamingTextAsync(audioSpeechStream))
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(
Microsoft.Extensions.AI.OpenAI (2)
OpenAISpeechToTextClient.cs (2)
68public async IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync( 75foreach (var update in speechResponse.ToSpeechToTextResponseUpdates())
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAISpeechToTextClientTests.cs (2)
166await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions 201await foreach (var update in client.GetStreamingTextAsync(audioSpeechStream, new SpeechToTextOptions
Microsoft.Extensions.AI.Tests (7)
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(
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestSpeechToTextClient.cs (2)
32IAsyncEnumerable<SpeechToTextResponseUpdate>>? 47public IAsyncEnumerable<SpeechToTextResponseUpdate> GetStreamingTextAsync(