Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 503 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 503 Bytes

Uses Google Cloud to translate audio to text.

Need to login first with something like:

gcloud auth activate-service-account '[email protected]' --key-file=/Users/blah/Downloads/translator-01234-1111111111111.json

Check with:

gcloud auth list

Service account needs Storage Object and Translator service roles.

Run like:

$  ~/Dropbox/translate/run-en.sh Foo.m4a > 'data.json'
$  jq '.results[] | .alternatives[] | .transcript' data.json | tr -d '"'