sreuter / node-speakable

A continuous speech recognition module for node.js
284 stars 50 forks source link

Does you script supposed to run on mac os 10.9 #9

Open Koka5 opened 10 years ago

Koka5 commented 10 years ago

When i run the example.js

i get the error :

rec FAIL formats: no handler for given file type `flac'.

I have installed SoX from 'brew' and and I do have flac 1.2.1 installed.

I have gone though man pages at http://sox.sourceforge.net/sox.pdf but did not get the information that I am looking for.

How can I add support for .flac files?

I am on OS X 10.9.3

fsad commented 10 years ago

@Koka5 I had the same issue and followed the instructions on this page: http://apple.stackexchange.com/questions/137108/how-can-i-add-support-for-flac-files-in-sox This worked for me.

Now I'm getting a '400' status code - "Non-200 answer from Google Speech API (400)" indicating something's wrong with the request :( ..

Jamil commented 10 years ago

@fsad Google updated their Speech API; node-speakable uses v1.0 which is deprecated and no longer supported. I've forked this repo and submitted a PR to use v2, but you'll still need an API key from Google (which limits you to 50 requests/day). You can see the README in my fork for info on how to get one. https://github.com/sreuter/node-speakable/pull/8

sreuter commented 10 years ago

Just merged that PR. Thanks @Jamil for that one!

fsad commented 10 years ago

@Jamil @sreuter Thanks a lot!