Synthesizes text to audio file and stores it to Google Cloud Storage
For parameter definition, take a look at airflow.contrib.operators.gcp_text_to_speech_operator.GcpTextToSpeechSynthesizeOperator
Some arguments in the example DAG are taken from the OS environment variables:
../../../../airflow/contrib/example_dags/example_gcp_speech.py
input, voice and audio_config arguments need to be dicts or objects of corresponding classes from google.cloud.texttospeech_v1.types module
for more information, see: https://googleapis.github.io/google-cloud-python/latest/texttospeech/gapic/v1/api.html#google.cloud.texttospeech_v1.TextToSpeechClient.synthesize_speech
../../../../airflow/contrib/example_dags/example_gcp_speech.py
filename is a simple string argument:
../../../../airflow/contrib/example_dags/example_gcp_speech.py
../../../../airflow/contrib/example_dags/example_gcp_speech.py
../../../../airflow/contrib/operators/gcp_text_to_speech_operator.py
Recognizes speech in audio input and returns text.
For parameter definition, take a look at airflow.contrib.operators.gcp_speech_to_text_operator.GcpSpeechToTextRecognizeSpeechOperator
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
../../../../airflow/contrib/example_dags/example_gcp_speech.py
filename is a simple string argument:
../../../../airflow/contrib/example_dags/example_gcp_speech.py
../../../../airflow/contrib/example_dags/example_gcp_speech.py
../../../../airflow/contrib/operators/gcp_speech_to_text_operator.py
For further information, look at: