say.js
say.js copied to clipboard
Linux: Audio file export
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);
+1 for .mp3
How to export the audio to the file
+1 for .mp3
+1 for audio output to file
Can u provide more explain, how to do that???
I implemented a method that exports the audio as a WAV file: #35
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.
Is there any update on this. Would really love to see export feature for linux?
Not yet... PR's welcome ;)
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.