Skip to content

Add streaming convenience methods for chunk-encoded TTS audio #145

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trrwilson
Copy link
Collaborator

No description provided.

/// <param name="voice"> The voice to use. </param>
/// <param name="options"> Additional options to tailor the text-to-speech request. </param>
/// <returns> The generated audio in the specified output format. </returns>
public virtual AsyncResultCollection<BinaryData> GenerateSpeechFromTextStreamingAsync(string text, GeneratedSpeechVoice voice, SpeechGenerationOptions options = null)
Copy link
Owner

@joseharriaga joseharriaga Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my head, I was thinking this would return a Stream similar to how you can get the ContentStream when using the protocol method: openai/openai-dotnet#45

Maybe we need a sample of how audio streaming should be used in a real scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants