say.js icon indicating copy to clipboard operation
say.js copied to clipboard

Linux: Audio file export

Open tlhunter opened this issue 11 years ago • 10 comments

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);

tlhunter avatar Sep 25 '14 07:09 tlhunter

+1 for .mp3

ralyodio avatar Dec 26 '14 10:12 ralyodio

How to export the audio to the file

svnindia avatar Jul 26 '15 16:07 svnindia

+1 for .mp3

keithics avatar Sep 04 '15 09:09 keithics

+1 for audio output to file

timelf123 avatar Dec 09 '15 19:12 timelf123

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

0-mykola avatar Feb 03 '16 17:02 0-mykola

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

z3a avatar Feb 17 '16 18:02 z3a

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.

tlhunter avatar Feb 18 '16 03:02 tlhunter

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

AshwinTayson avatar Oct 24 '17 09:10 AshwinTayson

Not yet... PR's welcome ;)

tlhunter avatar Nov 05 '17 02:11 tlhunter

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.

AshwinTayson avatar Nov 08 '17 11:11 AshwinTayson