@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?
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.