BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

[Question] does bing speech api only support audio/wav files?

Open Sid245439 opened this issue 9 years ago • 4 comments

Is it there a way to add support for audio/aac and video/mp4 file formats used in Facebook Messenger, as currently the Bing Speech API is only able to handle audio/wav files? For example, is there a way to convert audio/aac or video/mp4 files into audio/wav files online?

Sid245439 avatar Jan 25 '17 11:01 Sid245439

Hi @Sid245439, Currently, the Bing Speech API only supports WAV/PCM. You'll need to convert from AAC or MP4 into PCM.

For C# I think one of the best options is to use NAudio (https://www.nuget.org/packages/NAudio/ | https://github.com/naudio/NAudio). For Node, I'm not aware of any out-of-the-box AAC/MP3 to PCM encoders, but there are Node wrappers for ffmpeg (e.g.: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) that could be used for the same purpose.

Also, there are a few online converters that expose some kind of API and could be helpful, search for "mp3 to wav API".

Regards, -PabloC.

pcostantini avatar Jan 25 '17 12:01 pcostantini

what changes should I make in the existing code so that it would be working with facebook messenger channel

SomaSharathSurya avatar Jan 25 '17 13:01 SomaSharathSurya

duplicate of #52

nwhitmont avatar Jul 05 '17 17:07 nwhitmont

@SomaSharathSurya If you still have questions, please post on Stack Overflow using the tag "botframework", or BotBuilder repository

nwhitmont avatar Jul 05 '17 18:07 nwhitmont