Files
semantic-kernel/.github
Dmytro Struk b9abe0ad6d .Net: Text-to-Audio abstraction and OpenAI implementation (#4933)
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

This PR contains new interface for text-to-audio services and
implementation of OpenAI connector to use Azure/OpenAI TTS model. The
implementation is custom (for now) and could be replaced with Azure .NET
SDK when such functionality will be available.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
1. Added new `ITextToAudioService` interface.
2. Added new `AzureOpenAITextToAudioService` and
`OpenAITextToAudioService` implementations.
3. Added new `OpenAITextToAudioExecutionSettings` to define
text-to-audio configuration (e.g. voice, speed, response_format etc.).
4. Added new `AudioContent` class which will store binary data of audio.
5. Added unit and integration tests.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
2024-02-14 10:38:35 +00:00
..
2023-08-24 16:07:34 -07:00
2023-07-03 16:32:35 -07:00