airflow.providers.google.cloud.operators.text_to_speech

This module contains a Google Text to Speech operator.

Module Contents

Classes

CloudTextToSpeechSynthesizeOperator

Synthesizes text to speech and stores it in Google Cloud Storage

class airflow.providers.google.cloud.operators.text_to_speech.CloudTextToSpeechSynthesizeOperator(*, input_data: Union[Dict, google.cloud.texttospeech_v1.types.SynthesisInput], voice: Union[Dict, google.cloud.texttospeech_v1.types.VoiceSelectionParams], audio_config: Union[Dict, google.cloud.texttospeech_v1.types.AudioConfig], target_bucket_name: str, target_filename: str, project_id: Optional[str] = None, gcp_conn_id: str = 'google_cloud_default', retry: Optional[google.api_core.retry.Retry] = None, timeout: Optional[float] = None, impersonation_chain: Optional[Union[str, Sequence[str]]] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

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 :Sequence[str] = ['input_data', 'voice', 'audio_config', 'project_id', 'gcp_conn_id', 'target_bucket_name',...[source]
execute(self, context: airflow.utils.context.Context) None[source]

This is the main method to 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?