-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty response #6
Comments
I got exactly the same. Tried nearly everything. Do you have any solution to this? |
Thanks for the answer, i started to think that was a problem affecting only me. However i couldn't find nothing, at least it doesn't seem an api related error. But seems Mike google its changing his apis those days |
@markussomething this seems working for me
pfilter, seems to un-filter the second answer |
unfortunately not working for me :/ still got an empty result. I'm doing nearly the same as you with the same file. the only thing i could think of is that its related to the api key. Have you generated on on your own or are you using one you found here? |
for me it's working with both, try the exact command as mine, maybe |
mh...I downloaded the "good-morning-google.flac" from this repository and exactly copied your command (just inserted my API key). Still an empty result. I guess I have to find a different solution for speech recognition. But thanks four your effort :) |
i am having the same issue, getting an empty response from google. " {"result":[]} " |
I can confirm that the API endpoint is still working. curl -X POST \
--data-binary @'audio/hello (16bit PCM).wav' \
--header 'Content-Type: audio/l16; rate=16000;' \
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-us&key=<your key>' Be sure to
Let me know if you're still experiencing any issues. |
@gillesdemey thanks for your quick reply. |
Working java code: //libs to import
|
@fatdh Working Java Library: https://github.com/The-Shadow/java-speech-api |
Hi Github, new user here! I am having the same problem as everyone else, and I can't get v2 working whatever I try from the posts above. I had a program working perfectly with the following code: arecord -D plughw:0,0 -q -f cd -t wav -d 2 -r 16000 | flac - -f --best --sample-rate 16000 -s -o mic.flac; ...and then the speech was output into the stt.txt file. I am using a Raspberry Pi (Debian) and would appreciate any help on how to get v2 working. Thanks. |
Hello there ! If you are using same link as you've written in you query, then that link is for Google Speech API V1, whch is not available now, you have to use link for V2. find the details in comment of @gillesdemey . |
Thanks for your response. I've finally managed to get a reply by just experimenting with the curl command :) |
I never saw a RESTful API returning two responses.
This code does not work without the comment. ;) |
Cannot get the API key to work, the response is always that the key in invalid... I have generated a public API key via google developer console to no avail... Any ideas? |
first, empty response is always send. second response is sended only if google can recognise something. this problem may by caused microphone problems or just quiet voice |
Hello everybody,
Some time ago I created this shell script which packages everything you need to use the API (record data for a given duration or use a file, specify language, et.): https://github.com/amsehili/gspeech-rec For more details about the reverse engineering being used, check out this article: https://aminesehili.wordpress.com/2015/02/08/on-the-use-of-googles-speech-recognition-api-version-2/ Cheers! |
I was getting empty responses too. I re-recorded "good-morning-google.flac" from stereo into mono (using Audacity). Now I'm getting correct responses. USE MONO, NOT STEREO. Also, be aware that multiple chunks may be sent. The first chunk is empty, the second may contain a response, depending on the result of the recognition process. |
thanks @BSalita very much! I got the correct response by your method! |
Thanks @BSalita, your suggestion worked for me too. |
Hi there, I'm also getting returned an empty file. It's clearly writing to the file because if I manually write to the file, it overwrites it with the empty file. Any suggestions.. I'm very new to this! I'm using bash. Also- if anyone has any python script for Raspberry Pi that would call the Google Speech API- that would be really helpful too! I don't get any errors. The programs prints "You said:" but nothing after it. And the txt file is empty. Thank you! !/bin/bash echo "recording..press Ctrl+C to stop" echo "processing..." echo -n 'You Said:' rm file.flac > /dev/null 2>&1 |
Hi All, I am recoding audio in flac format and sending for to convert into text. Please help me where I am ding wrong. I spend on this 2 days on the same. Thanks in advance. Here the my code import java.io.File; import com.darkprograms.speech.microphone.Microphone; import net.sourceforge.javaflacencoder.FLACFileWriter; public class QuickstartSample {
} `
|
I got the same problem. I am sending a flac audio file and all that I am getting is an empty response. I have no idea how to proceed. |
Hello everyone,
today google (at least for me) it's not giving any result:
it just returns []
it's the same for you ?
the flac in the test was in the same dir, also changing files, empty results are given (with both my personal api key and chromium one)
The text was updated successfully, but these errors were encountered: