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

Add streaming support for Audio #1048

Closed
1 task done
NinoSkopac opened this issue Sep 7, 2024 · 2 comments
Closed
1 task done

Add streaming support for Audio #1048

NinoSkopac opened this issue Sep 7, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@NinoSkopac
Copy link

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

Currently, it's easy to stream in Python as per docs, but I haven't been able to pull it off in Node. Concurrency works just great, tho.

we need a response.stream_to_file("output.mp3")

Additional context

No response

@RobertCraigie RobertCraigie added the documentation Improvements or additions to documentation label Sep 9, 2024
@RobertCraigie
Copy link
Collaborator

we need a response.stream_to_file("output.mp3")

Unfortunately it's unlikely that we can add something like that as JS doesn't always have file system access or a runtime independent way of writing files.

Currently, it's easy to stream in Python as per docs, but I haven't been able to pull it off in Node.

I'm curious what you've tried so far in case there's any docs we could update?

We do have an example script here that shows how to stream the response to a file.

@RobertCraigie
Copy link
Collaborator

I'm going to close this due to the above mentioned reasons, please let us know if there are any docs we could improve here!

@RobertCraigie RobertCraigie closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants