Google Cloud Speech Translate Operators¶
Prerequisite Tasks¶
To use these operators, you must do a few things:
Select or create a Cloud Platform project using Cloud Console.
Enable billing for your project, as described in Google Cloud documentation.
Enable API, as described in Cloud Console documentation.
Install API libraries via pip.
Detailed information is available Installation
GcpTranslateSpeechOperator¶
Recognizes speech in audio input and translates it.
For parameter definition, take a look at
airflow.contrib.operators.gcp_translate_speech_operator.GcpTranslateSpeechOperator
Arguments¶
Config and audio arguments need to be dicts or objects of corresponding classes from
google.cloud.speech_v1.types
module.
for more information, see: https://googleapis.github.io/google-cloud-python/latest/speech/gapic/v1/api.html#google.cloud.speech_v1.SpeechClient.recognize
Arguments for translation need to be specified.