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

Already on GitHub? Sign in to your account

Can't use createSpeech without saving to file. #168

Open
allComputableThings opened this issue Apr 3, 2024 · 3 comments
Open

Can't use createSpeech without saving to file. #168

allComputableThings opened this issue Apr 3, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@allComputableThings
Copy link

OpenAI.instance.audio.createSpeech insists on saving the result to a file.
It doesn't seem necessary (and is problematic for me). (Perhaps it could return the result if the file and directory were null?)

Looking at its implementation, I also can't directly call
await OpenAINetworkingClient.post
... since it is not exported.

@anasfik anasfik self-assigned this May 8, 2024
@anasfik anasfik added the enhancement New feature or request label May 8, 2024
@anasfik
Copy link
Owner

anasfik commented May 8, 2024

Yeah, this makes sense, but what would be the expected behavior here?

@dylandhall
Copy link

I'd like to invoke it using a BytesSource: https://pub.dev/documentation/audioplayers/latest/audioplayers/BytesSource-class.html

would that be possible?

@dylandhall
Copy link

dylandhall commented May 29, 2024

I have opened a PR that hopefully adds this: #177

I'm new to Dart so please check it over, it should work however.

Edit: works, example code in PR

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

No branches or pull requests

3 participants