Discussion:
[chromium-dev] speech-api returning empty results no matter what
E. Schmidbauer
2015-03-05 15:34:35 UTC
Permalink
Hello,
I'm trying to test out google's speech API using just simple curl command.
No matter what I try (different files/sample rates/etc...) google
returns an empty JSON result.

Here is my call:

curl -X POST --data-binary @audio/message.flac --header 'Content-Type:
audio/x-flac; rate=16000;'
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&key=___API_KEY___&maxresults=9&pfilter=0'


Any ideas?

Thanks,
E
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
Anand Mistry
2015-03-05 23:23:27 UTC
Permalink
That API is only for Chrome and Chromium development/testing.
Post by E. Schmidbauer
Hello,
I'm trying to test out google's speech API using just simple curl command.
No matter what I try (different files/sample rates/etc...) google
returns an empty JSON result.
audio/x-flac; rate=16000;'
'
https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&key=___API_KEY___&maxresults=9&pfilter=0'
Any ideas?
Thanks,
E
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
Igor Rodriguez
2015-03-06 07:46:40 UTC
Permalink
Do you have your own API KEY? If you got it try with this call:

curl -X POST \
--data-binary @'PATH_TO_YOUR_FILE' \
--header 'Content-Type: audio/l16; rate=16000;' \
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&client=chromium&maxresults=1&key=YOUR_API_KEY'
Post by E. Schmidbauer
Hello,
I'm trying to test out google's speech API using just simple curl command.
No matter what I try (different files/sample rates/etc...) google
returns an empty JSON result.
audio/x-flac; rate=16000;'
'
https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&key=___API_KEY___&maxresults=9&pfilter=0'
Any ideas?
Thanks,
E
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
E. Schmidbauer
2015-03-06 13:09:17 UTC
Permalink
Hi Igor,
I tried that as you specified. I know my API key is valid because if I
change it (to something invalid) I get an error

curl -X POST --data-binary @audio/message.flac --header 'Content-Type:
audio/x-flac; rate=16000;'
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&client=chromium&maxresults=1&key=___KEY____'


Only returns:

{"result":[]}

On Fri, Mar 6, 2015 at 2:46 AM, Igor Rodriguez
Post by Igor Rodriguez
curl -X POST \
--header 'Content-Type: audio/l16; rate=16000;' \
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&client=chromium&maxresults=1&key=YOUR_API_KEY'
Post by E. Schmidbauer
Hello,
I'm trying to test out google's speech API using just simple curl command.
No matter what I try (different files/sample rates/etc...) google
returns an empty JSON result.
audio/x-flac; rate=16000;'
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&key=___API_KEY___&maxresults=9&pfilter=0'
Any ideas?
Thanks,
E
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
Igor Rodriguez
2015-03-06 14:06:12 UTC
Permalink
If you tried with my example, your audio data should be in "wav" format.
Can you try it with a wav audio recording?
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
E. Schmidbauer
2015-03-06 14:52:19 UTC
Permalink
Hi Igor,
I tried with your example too:

curl -X POST --data-binary @'hello (16bit PCM).wav' --header
'Content-Type: audio/l16; rate=16000;'
'https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&client=chromium&maxresults=1&key=__KEY__'


Still only returns:

{"result":[]}

Thanks
/E

On Fri, Mar 6, 2015 at 9:06 AM, Igor Rodriguez
If you tried with my example, your audio data should be in "wav" format. Can
you try it with a wav audio recording?
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
Christian Biesinger
2015-03-06 17:07:52 UTC
Permalink
This mailing list is not an appropriate place to discuss how to break
Google's terms of service.

-christian
Post by E. Schmidbauer
Hi Igor,
'Content-Type: audio/l16; rate=16000;'
'
https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&client=chromium&maxresults=1&key=__KEY__
'
{"result":[]}
Thanks
/E
On Fri, Mar 6, 2015 at 9:06 AM, Igor Rodriguez
Post by Igor Rodriguez
If you tried with my example, your audio data should be in "wav" format.
Can
Post by Igor Rodriguez
you try it with a wav audio recording?
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an
--
--
http://groups.google.com/a/chromium.org/group/chromium-dev
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
Rohit Kumar
2018-12-09 17:18:54 UTC
Permalink
Did you find any solution? I am stuck in a very similar situation. Not
matter what I send, wav files, mp3, RAW files or linear16, I always get
empty response.

On Thursday, March 5, 2015 at 9:05:52 PM UTC+5:30, Emmanuel Schmidbauer
Post by E. Schmidbauer
Hello,
I'm trying to test out google's speech API using just simple curl command.
No matter what I try (different files/sample rates/etc...) google
returns an empty JSON result.
audio/x-flac; rate=16000;'
'
https://www.google.com/speech-api/v2/recognize?output=json&lang=en-US&key=___API_KEY___&maxresults=9&pfilter=0'
Any ideas?
Thanks,
E
--
--
Chromium Developers mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+***@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/5562472c-7d99-4fb7-9b17-76d92bba28b8%40chromium.org.
Loading...