airflow.providers.google.cloud.operators.speech_to_text

This module contains a Google Speech to Text operator.

Module Contents

Classes

CloudSpeechToTextRecognizeSpeechOperator

Recognizes speech from audio file and returns it as text.

class airflow.providers.google.cloud.operators.speech_to_text.CloudSpeechToTextRecognizeSpeechOperator(*, audio: airflow.providers.google.cloud.hooks.speech_to_text.RecognitionAudio, config: google.cloud.speech_v1.types.RecognitionConfig, 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

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

Parameters
template_fields :Sequence[str] = ['audio', 'config', 'project_id', 'gcp_conn_id', 'timeout', 'impersonation_chain'][source]
execute(self, context: airflow.utils.context.Context)[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?