For Google service-specific issues, please start a question on Stack
Overflow. In this case it seems you should tag it with google-speech-api.

On Wed, Sep 7, 2016 at 9:56 AM, <john.scott.wi...@gmail.com> wrote:

>
> I'm trying to use the Google Speech API Streaming recognition using
> browser mic data but im receiving "audio_content too long" response.
>
> I'm sending the data to server like this with WebSockets:
>
> var left = e.inputBuffer.getChannelData(0);
> converted = convertFloat32ToInt16(left)
> ws.send(converted);
>
> Previously i sent the sample_rate.
>
> And in the server (Python - Tornado):
>
> encoding='LINEAR16'
>
> yield cloud_speech.StreamingRecognizeRequest(audio_content=data)
>
> data is websocket on_message received data.
>
> Error:
> E0907 11:06:54.917320718   14891 chttp2_transport.c:1810]
>  close_transport: {"created":"@1473246414.916153833","description":"Secure
> read failed","file":"src/core/lib/security/transport/secure_endpoint.c",
> "file_line":157,"referenced_errors":[{"created":"@1483156814.912117880",
> "description":"FD shutdown","file":"src/core/lib/iomgr/ev_poll_posix.c",
> "file_line":427}]}
> Server error: Audio data is being streamed too fast. Please stream audio
> data approximately at real time.
>
> Thank you very much.
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to grpc-io+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@googlegroups.com.
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/5a28a259-116b-4f0f-b642-d9cdbee5c52e%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/5a28a259-116b-4f0f-b642-d9cdbee5c52e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oMsKas%2BZ%3DZJL6LURBV14d8qvSJr6EPNUmkfD%3Dh1ZtQ7OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to