Skip to main content

enterprise_ai.multimodal.stt

Source: sdks/python/src/enterprise_ai/multimodal/stt/__init__.py. Back to the Python SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class SttClient​

/v1/multimodal/stt.

Resource

SttClient.transcribe​

transcribe(media_id: str, language: str | None = None, model: str | None = None, **extra: Any) -> Any

Transcribe speech to text. Starts a speech to text job on an audio media or inline audio (201, the job). The transcript goes through the DLP with dlp_mode. Only word_timestamps applies here (speaker bounds answer 422 parameter_unsupported). Usage is counted in audio seconds (duration_seconds, or read from a WAV header). Needs tenant_admin, developer or agent.

Route: /v1/multimodal/stt (POST).

NameTypeDefaultRequiredDescription
media_idstryesStored audio media.
languagestr | NoneNonenoSpoken language, for example fr. Default: detected by the adapter.
modelstr | NoneNonenoModel to use. Default: the configured adapter.
**extraAnynoExtra fields merged into the request body.

Returns: Any. Decoded JSON answer of the operation "Transcribe speech to text".

Raises: the typed errors of the transport (Errors).