airflow.providers.google.cloud.operators.text_to_speech

This module contains a Google Text to Speech operator.

Module Contents

class airflow.providers.google.cloud.operators.text_to_speech.CloudTextToSpeechSynthesizeOperator(*, input_data: Union[Dict, SynthesisInput], voice: Union[Dict, VoiceSelectionParams], audio_config: Union[Dict, AudioConfig], target_bucket_name: str, target_filename: str, project_id: Optional[str] = None, gcp_conn_id: str = 'google_cloud_default', retry: Optional[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 = ['input_data', 'voice', 'audio_config', 'project_id', 'gcp_conn_id', 'target_bucket_name', 'target_filename', 'impersonation_chain'][source]
_validate_inputs(self)[source]
execute(self, context)[source]

Was this entry helpful?