ibmresearchuk / node-red-bluemix-nodes

A collection of node-red nodes for the IBM Bluemix platform
Apache License 2.0
33 stars 36 forks source link

Change file type in Speech to Text node #27

Closed geovanisouza92 closed 8 years ago

geovanisouza92 commented 8 years ago

Hi, thank you or this library.

I'm trying to use the Speech to Text node to parse Telegram Bot API voice notes, but the node supports only WAV, while Telegram sends audio/ogg.

There is a way to put an option to select the file type, direct on node or through "msg"?

knolleary commented 8 years ago

The docs for the underlying Watson service do say ogg is supported - https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/speech-to-text/using.shtml#formats - so we just need to find the right way to handle it.

Ideally it would just work, but I suspect trying to determine the right mime type would be hard to do.

Will have a look.