Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
db6b7e3
Initial speech to text abstractions
rogerbarreto Mar 18, 2025
4bdb7b9
Address some feedback (still more things to address)
stephentoub Mar 18, 2025
14c37c2
Merge branch 'main' of https://github.com/rogerbarreto/extensions int…
rogerbarreto Mar 29, 2025
fad8017
Resolve conflict
rogerbarreto Mar 29, 2025
3448daa
Ensure UT are working before further changes
rogerbarreto Mar 29, 2025
ef93211
Update method names Transcribe / Response to GetText
rogerbarreto Mar 29, 2025
43d610c
Update Test Names to new Method names
rogerbarreto Mar 29, 2025
ff4ae4a
Change interface from IList<IAsyncEnumerable> to one stream item at a…
rogerbarreto Mar 29, 2025
0831000
Update XmlDocs with corret definition, ensure correct naming
rogerbarreto Mar 29, 2025
8c893a9
Dropping the Choice / Message concept, flattering the Message with th…
rogerbarreto Mar 29, 2025
3d91982
Remove CultureInfo complexity from language properties
rogerbarreto Mar 30, 2025
009eeca
Adding Prompt property to options + UT
rogerbarreto Mar 30, 2025
305e7e4
Revert global.json changes
rogerbarreto Mar 30, 2025
1feac6d
Add missing experimental
rogerbarreto Mar 30, 2025
956097d
Fix UT
rogerbarreto Mar 30, 2025
0830a51
Address PR comments
rogerbarreto Mar 31, 2025
72407f2
Fix unit tests
rogerbarreto Mar 31, 2025
3c7e4ae
Fix UT
rogerbarreto Apr 1, 2025
8763c8c
Merge branch 'main' into audio-transcription-abstraction
rogerbarreto Apr 1, 2025
8d473cb
Merge branch 'audio-transcription-abstraction' of https://github.com/…
rogerbarreto Apr 1, 2025
c6c016e
Address PR comments
rogerbarreto Apr 1, 2025
b3d7819
Merge branch 'main' into audio-transcription-abstraction
rogerbarreto Apr 2, 2025
ca1338b
Remove async wrapping
rogerbarreto Apr 2, 2025
d3a14c9
Adjusting concat / text fields
rogerbarreto Apr 2, 2025
263f0e0
Start time and end time added to update + UT covering
rogerbarreto Apr 2, 2025
dd5ec14
AsISpeechToText renaming
rogerbarreto Apr 2, 2025
9eabb98
Remove OpenAIClient ctor + small fixes
rogerbarreto Apr 2, 2025
78e4ebb
Removing rawrepresentation impl from Update -> Response
rogerbarreto Apr 2, 2025
46acd1c
Merge branch 'main' into audio-transcription-abstraction
rogerbarreto Apr 2, 2025
8bf3389
Add missing AsISpeechToText UT
rogerbarreto Apr 2, 2025
c5c6e89
Add GetService UT
rogerbarreto Apr 2, 2025
977a0e5
Warning fix
rogerbarreto Apr 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static IChatClient AsIChatClient(this OpenAIResponseClient responseClient
/// <param name="audioClient">The client.</param>
/// <returns>An <see cref="ISpeechToTextClient"/> that can be used to transcribe audio via the <see cref="AudioClient"/>.</returns>
[Experimental("MEAI001")]
public static ISpeechToTextClient AsSpeechToTextClient(this AudioClient audioClient) =>
public static ISpeechToTextClient AsISpeechToTextClient(this AudioClient audioClient) =>
new OpenAISpeechToTextClient(audioClient);

/// <summary>Gets an <see cref="IEmbeddingGenerator{String, Single}"/> for use with this <see cref="OpenAIClient"/>.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public class OpenAISpeechToTextClientIntegrationTests : SpeechToTextClientIntegr
protected override ISpeechToTextClient? CreateClient()
=> IntegrationTestHelpers.GetOpenAIClient()?
.GetAudioClient(TestRunnerConfiguration.Instance["OpenAI:AudioTranscriptionModel"] ?? "whisper-1")
.AsSpeechToTextClient();
.AsISpeechToTextClient();
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,5 @@ private static Stream GetAudioStream()
private static ISpeechToTextClient CreateSpeechToTextClient(HttpClient httpClient, string modelId) =>
new OpenAIClient(new ApiKeyCredential("apikey"), new OpenAIClientOptions { Transport = new HttpClientPipelineTransport(httpClient) })
.GetAudioClient(modelId)
.AsSpeechToTextClient();
.AsISpeechToTextClient();
}