StevenHickson / PiAUISuite

Raspberry PI AUI Suite
Other
695 stars 204 forks source link

Google Speech API Null Return #65

Closed hankp46 closed 8 years ago

hankp46 commented 8 years ago

I am trying to use the Google Speech API instead of Translate.. As a test I ran the following with these results

wget -U "Mozilla/5.0" --post-file /home/pi/good-morning-google.flac --header "Content-Type: audio/x-flac; rate=44100" -O - "https://www.google.com/speech-api/v2/recognize?lang=en-us&key=mykey" > stt.txt

--2016-05-22 23:38:29-- https://www.google.com/speech-api/v2/recognize?lang=en-us&key=mykey Resolving www.google.com (www.google.com)... 216.58.219.164, 2607:f8b0:4002:c03::69

Connecting to www.google.com (www.google.com)|216.58.219.164|:443... connected. HTTP request sent, awaiting response... 200 OK

Length: unspecified [application/json]

Saving to: ‘STDOUT’

2016-05-22 23:38:31 (529 KB/s) - written to stdout [14]

Stt.txt {"result":[]}

anyone know why results were null?