airflow.providers.google.cloud.operators.speech_to_text

This module contains a Google Speech to Text operator.

Classes

CloudSpeechToTextRecognizeSpeechOperator

Recognizes speech from audio file and returns it as text.

Module Contents

class airflow.providers.google.cloud.operators.speech_to_text.CloudSpeechToTextRecognizeSpeechOperator(*, audio, config, 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

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: collections.abc.Sequence[str] = ('audio', 'config', 'project_id', 'gcp_conn_id', 'timeout', 'impersonation_chain')[source]
audio[source]
config[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?