community
community copied to clipboard
Issue with tutorials/speech2srt/index.md
Here is an issue that was initially reported through our internal bug reporting system:
https://cloud.google.com/community/tutorials/speech2srt
By following the steps in this guide, the command:
python3 translate_txt.py --project_id $PROJECT_ID --source_lang en --target_lang ko,hi --input_uri gs://$BUCKET_IN/en.txt --output_uri gs://$BUCKET_OUT/
fails with error:
AttributeError: 'TranslationServiceClient' object has no attribute 'location_path'
It seems some code in file translate_txt.py is deprecated, the new method calls are described in https://googleapis.dev/python/translation/latest/UPGRADING.html.