Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

airflow.providers.google.cloud.operators.text_to_speech

This module contains a Google Text to Speech operator.

Classes

CloudTextToSpeechSynthesizeOperator

Synthesizes text to speech and stores it in Google Cloud Storage.

Module Contents

class airflow.providers.google.cloud.operators.text_to_speech.CloudTextToSpeechSynthesizeOperator(*, input_data, voice, audio_config, target_bucket_name, target_filename, project_id=PROVIDE_PROJECT_ID, gcp_conn_id='google_cloud_default', retry=DEFAULT, timeout=None, impersonation_chain=None, **kwargs)[source]

Bases: airflow.providers.google.cloud.operators.cloud_base.GoogleCloudBaseOperator

Synthesizes text to speech and stores it in Google Cloud Storage.

See also

For more information on how to use this operator, take a look at the guide: CloudTextToSpeechSynthesizeOperator

Parameters:
template_fields: collections.abc.Sequence[str] = ('input_data', 'voice', 'audio_config', 'project_id', 'gcp_conn_id', 'target_bucket_name',...[source]
input_data[source]
voice[source]
audio_config[source]
target_bucket_name[source]
target_filename[source]
project_id = None[source]
gcp_conn_id = 'google_cloud_default'[source]
retry[source]
timeout = None[source]
impersonation_chain = None[source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?