-
Notifications
You must be signed in to change notification settings - Fork 134
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
Save output to file #6
Comments
I'd also be interested in learning how to do this! I intend on using PyTTSx for text-to-speech on a webpage I am serving from a python script. |
I would love to have this feature. |
Yeah me too - if you need any help just mail me. I can't find the right place to start this, so if you could tell me where the byte-or-whatever stream is 'created' I could do the rest .. |
I see two ways to approach this feature. One is to extend the API with a speakToFile method or some such exists and all the platform drivers implement it A second would be to create a new driver per platform specifically for speaking to disk. This would double the number of drivers, but would keep the existing API. In either case, code needs to be added per platform driver to output to disk. To the best of my knowledge, all three of the existing drivers (NSSpeechSynthesizer, espeak, and SAPI) have this capability. Finding and reading the doc is where it's at. If someone has time to implement this feature and associated tests, I'll happily review a pull request. I don't have the cycles to work on it myself right now. |
… for OS X only. Includes doc and unittest additions
Hi @parente . First of all, thank you for writing I too would like a "write to file" API, instead of flushing the generated data at the output sound device, on Linux. I have done some research on (Full disclosure: I am looking for a lib-based approach to synthesize text in Python (or a C extension), to replace this code which uses |
Hi,
I would be very interesting if instead of playing the sound I could also use the library to save it to a file.
At the moment I have to use system call to do this and using pyttsx for this would be nice.
I wish I could provide a patch but this is beyond my python skills.
The text was updated successfully, but these errors were encountered: