kripken / speak.js

Text-to-Speech in JavaScript using eSpeak
GNU General Public License v3.0
1.29k stars 294 forks source link

Getting raw data without decoding the wav #19

Open jussi-kalliokoski opened 12 years ago

jussi-kalliokoski commented 12 years ago

Hey there!

Great job on this, but I'm currently needing only the raw data as a Float32Array (applying effects to it and using Audio APIs for playback), so it feels somewhat silly that I have to decode the wav file to get that. The process takes a while as it is and eliminating the step where speak.js first encodes the file as a wav and then I decode that wav would probably save a good while of the user's time.

Am I missing something and is this possible? Or would it be possible to get this in the future?

Cheers, Jussi