OpenAI icon indicating copy to clipboard operation
OpenAI copied to clipboard

Add create audio speech stream support

Open batanus opened this issue 1 year ago • 3 comments

What

OpenAI supports sending audio speech by chunks (see my issue here: https://github.com/MacPaw/OpenAI/issues/185). This PR adds support for this feature.

Why

With this change, clients can start audio playback with less latency, as far as first audio chunk will be received.

Affected Areas

In OpenAIProtocol was added new method audioCreateSpeechStream

Note

This PR Was already opened, but I reopened it from new branch name (according to Contribution Guidelines). All requested changes were already applied

  • https://github.com/MacPaw/OpenAI/pull/188

batanus avatar Apr 02 '24 13:04 batanus

Do you have an example of how to use it?

DanielhCarranza avatar May 03 '24 02:05 DanielhCarranza

Do you have an example of how to use it?

Thanks for the question, here's my answer - https://github.com/MacPaw/OpenAI/issues/185#issuecomment-2092484759

batanus avatar May 03 '24 07:05 batanus