Marak / say.js

TTS (text to speech) for node.js. send text from node.js to your speakers.
MIT License
1.48k stars 214 forks source link

Linux: Audio file export #20

Open tlhunter opened 9 years ago

tlhunter commented 9 years ago

The instantiated say objects could have a method other than say for performing exports of voice to filesystems. Most engines support WAV and AIFF.

speaker.export("hello", Say.Export.WAV, "./output.wav", callback);
ralyodio commented 9 years ago

+1 for .mp3

svnindia commented 9 years ago

How to export the audio to the file

keithics commented 9 years ago

+1 for .mp3

timelf123 commented 8 years ago

+1 for audio output to file

0-mykola commented 8 years ago

Can u provide more explain, how to do that???

z3a commented 8 years ago

I implemented a method that exports the audio as a WAV file: #35

tlhunter commented 8 years ago

Note: PR #35 only works for OSX. The ability to export WAV can be done using Festival using the text2wave binary it provides:

echo "hello bob" | text2wave -o output.wav

Additional parameters (voice, speed) can be set with the -eval flag, using the same awkward LISP commands.

AshwinTayson commented 6 years ago

Is there any update on this. Would really love to see export feature for linux?

tlhunter commented 6 years ago

Not yet... PR's welcome ;)

AshwinTayson commented 6 years ago

Can u point me where the byte stream for the converted audio is coming from? Or if we can expose a method that returns the byte stream then we can use it to export the audio.