-
Notifications
You must be signed in to change notification settings - Fork 209
grpc streaming error in sample app #7
Comments
this was also reported here: https://groups.google.com/forum/#!topic/cloud-speech-discuss/vY_akkl1dAA |
Marc, thank you. I've filed a bug report with the speech API team on this. |
thanks! |
Marc, what device are you using to test this? I'm unable to reproduce the problem with an iPhone 6s Plus. |
this is in xcode, emulating iphone 6s. also, many others have reported the problem in the forum. |
Thanks, I see it now in the simulator. The error is inconsistent but frequent. I seem to get better results when I set the sample rate to 8kHz. Currently that requires changes in two places... |
changing the sample rate to alternate values has no effect on my end. |
We're still investigating this, but I seem to get better results when I reduce the size of audio chunks that we send to the service. If you could try this, you'd find the related code in ViewController.m: if ([self.audioData length] > 16384) { If you replace 16384 with 0, audio chunks will be sent as soon as they are received from the audio unit, and at least in my tests, recognition runs without errors. |
so far that works locally within xcode for me simulating iphone 6s. |
I'm experiencing the same issue, and have had some results when altering the sample rate, and the audioData length variable. However the results have been inconsistent and i'm currently still experiencing the error. |
We believe this has been fixed. |
i am experiencing the same issue |
we are streaming AMR data at 8Khz, our buffer size is about 256 bytes per write request. please help debug. |
the ios streaming sample app now returns this error after about a second of audio processing:
{
error {
code: 10
message: "Audio data is being streamed too fast. Please stream audio data approximately at real time."
}
}
The text was updated successfully, but these errors were encountered: