FYI, I experienced this same issue with LINEAR16 PCM data and setting the
sampleRate to 16k. I then realized that my actual data was at 44.1k.
After resampling, I get a reasonable response, although an error message
or even an empty list of responses would be nice in the case that the
recognizer didn't properly understand the audio.
The response for my admittedly malformed request was this:
{"metadata": {"@type":
"type.googleapis.com/google.cloud.speech.v1beta1.AsyncRecognizeMetadata",
"progressPercent": 100, "lastUpdateTime": "2016-09-29T21:57:16.761811Z",
"startTime": "2016-09-29T21:56:56.355536Z"}, "response": {"@type":
"type.googleapis.com/google.cloud.speech.v1beta1.AsyncRecognizeResponse"},
"name": "1622634151588923227", "done": true}
I'm not sure if it's in the docs, but I take this to mean that the absence
of results field in the response indicates that the speech api did not
recognize the audio.
On Wednesday, August 10, 2016 at 8:30:55 PM UTC-4, Bruno Leitão wrote:
>
> Hi all,
>
> I perform a async request to google speech-to-text, and now i do not know
> how to get the result of operation.
>
> I already know that operation was successful
>
> Thanks
> BL
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/825ddc47-9cc7-4c7c-8591-46e4f13e8226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.