Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Improved Audio API by adding default setting values #5026

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

dmytrostruk
Copy link
Member

@dmytrostruk dmytrostruk commented Feb 14, 2024

Motivation and Context

Current audio interfaces have optional execution settings parameters in order to be able to use audio API through Kernel in the future, where execution settings are optional. But when using audio services directly, this is not user friendly, because when optional execution settings are not configured, services will throw an error.

In case of text-to-audio service, required field is voice. This PR sets default value to alloy with the ability to overwrite.
For audio-to-text service, required field is filename. This PR sets default value to file.mp3 with the ability to overwrite.

With these changes execution settings are no longer required (they are optional) for text-to-audio and audio-to-text conversion.

Contribution Checklist

@dmytrostruk dmytrostruk requested a review from a team as a code owner February 14, 2024 23:33
@shawncal shawncal added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Feb 14, 2024
@dmytrostruk dmytrostruk self-assigned this Feb 14, 2024
@dmytrostruk dmytrostruk added the PR: ready for review All feedback addressed, ready for reviews label Feb 14, 2024
@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Feb 15, 2024
Merged via the queue into microsoft:main with commit 1ba6236 Feb 15, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants