python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

gcs_uri error on speech/grpc transcribe call

Open jcastill0 opened this issue 10 years ago • 1 comments

In which file did you encounter the issue?

speech/grpc$ python transcribe.py

Did you change the file? If so, how?

Describe the issue

Trying to transcribe a file that resides on an S3 bucket yields the following error (the file is accessible as you can do a wget on it and it works fine):

(env) vagrant@ubuntu16:~/speech/python/python-docs-samples/speech/grpc$ python transcribe.py https://s3-us-west-1.amazonaws.com/hackthon-audio/Happy-mac.raw usage: transcribe.py [-h] [--encoding {LINEAR16,FLAC,MULAW,AMR,AMR_WB}] [--sample_rate SAMPLE_RATE] input_uri transcribe.py: error: argument input_uri: invalid _gcs_uri value: 'https://s3-us-west-1.amazonaws.com/hackthon-audio/Happy-mac.raw'

jcastill0 avatar Nov 10 '16 01:11 jcastill0

The input_uri needs to be a GCS (Google Cloud Storage) Uri.

puneith avatar Nov 10 '16 03:11 puneith