Im trying to use IBM speech to text API to transcript the audio in messenger to text script.
request({
uri: attachment.url,
method: 'GET',
encoding: null
}, (err, res, audio) => {... do something...}
I use request to get the audio file from the url I get in message. But I can only get w4a file, Watson only supports
audio/flac
audio/wav
audio/l16
audio/ogg
How do I convert w4a format audio to wav to fit the spec.
Or there exists other way to do that?
thanks.