Google-cloud-go: Speech Recognition API: Create complete example for streaming

Created on 15 Jun 2017  路  5Comments  路  Source: googleapis/google-cloud-go

Hey,

I would like to use the golang SDK for the speech recognition streaming API. But I can't find a complete example. Neither in the official documentation nor here.

Most helpful comment

@PhillippOhlandt, we have a live caption sample that reads from os.Stdin, see https://github.com/GoogleCloudPlatform/golang-samples/blob/master/speech/livecaption/livecaption.go. You can modify it read from an os.File.

All 5 comments

@broady @rakyll Do we have one somewhere?

In case it was not clear. I talk about streaming from a file in realtime.

@PhillippOhlandt, we have a live caption sample that reads from os.Stdin, see https://github.com/GoogleCloudPlatform/golang-samples/blob/master/speech/livecaption/livecaption.go. You can modify it read from an os.File.

Thanks! Will try to modify it to my needs!

Hey, I almost got it working. I get my text but the last thing I get is an error.

Client GRPC deadline too short. Should be at least: 3 * audio-duration + 5 seconds. Current deadline is: 199.99940844543744 second(s). Required at least: 201 second(s).

I used this as blueprint, so it's basically the same, except that it reads from a file.
https://github.com/GoogleCloudPlatform/golang-samples/blob/master/speech/livecaption/livecaption.go

How can I set the GRPC deadline?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukaszraczylo picture lukaszraczylo  路  3Comments

ianrose14 picture ianrose14  路  3Comments

MoreThanCarbon picture MoreThanCarbon  路  3Comments

rntk picture rntk  路  3Comments

deelienardy picture deelienardy  路  3Comments