enterprise_ai.multimodal.stt
Source: sdks/python/src/enterprise_ai/multimodal/stt/__init__.py. Back to the Python SDK reference index.
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).
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
media_id | str | yes | Stored audio media. | |
language | str | None | None | no | Spoken language, for example fr. Default: detected by the adapter. |
model | str | None | None | no | Model to use. Default: the configured adapter. |
**extra | Any | no | Extra 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).