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

Provide option to save audio to file #639

Open
justjam2013 opened this issue Nov 9, 2024 · 1 comment
Open

Provide option to save audio to file #639

justjam2013 opened this issue Nov 9, 2024 · 1 comment

Comments

@justjam2013
Copy link

Update http_server.py with the option of saving the generated speech to file, rather than streaming it back.

By adding a file argument to both the POST and GET requests, the synthesized audio can be stored to the requested filename. Maybe a startup audio_path argument can passed to http_server.py to provide a default location for the audio files, to both control location and not force the file argument to include path information.

Using the changes described above, I have modified http_server.py locally to process incoming requests and store the audio files in a common folder. Once they are available, another process picks up and plays back the audio files.

@thelabcat
Copy link

Using the changes described above, I have modified http_server.py

Please fork the repository, and file a pull request that mentions this issue (For example, have the commit message read "Completed #639")

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

No branches or pull requests

2 participants