This module contains a Google Speech to Text operator.

Module Contents

class*, audio: RecognitionAudio, config: RecognitionConfig, 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

Recognizes speech from audio file and returns it as text.

See also

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

template_fields = ['audio', 'config', 'project_id', 'gcp_conn_id', 'timeout', 'impersonation_chain'][source]
execute(self, context)[source]

Was this entry helpful?