Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local file for Google Speech

I followed this page: https://cloud.google.com/speech/docs/getting-started

and I could reach the end of it without problems.

In the example though, the file 'uri':'gs://cloud-samples-tests/speech/brooklyn.flac' is processed.

What if I want to process a local file? In case this is not possible, how can I upload my .flac via command line?

Thanks

like image 455
Giuseppe Avatar asked Sep 20 '25 23:09

Giuseppe


1 Answers

You're now able to process a local file by specifying a local path instead of the google storage one:

gcloud ml speech recognize '/Users/xxx/cloud-samples-tests/speech/brooklyn.flac' \ --language-code='en-US'

You can send this command by using the gcloud tool (https://cloud.google.com/speech-to-text/docs/quickstart-gcloud).

like image 185
lildesert Avatar answered Sep 23 '25 12:09

lildesert