[go: up one dir, main page]

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 · 0 comments
Open

Provide option to save audio to file #639

justjam2013 opened this issue Nov 9, 2024 · 0 comments

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.

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

1 participant