Defines the required parameters for creating audio translation requests using OpenAI's Whisper model. Use this to ensure type-safe API calls for audio processing.
# Source: https://github.com/openai/openai-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing import Union
from typing_extensions import Literal, Required, TypedDict
from ..._types import FileTypes
from ..audio_model import AudioModel
__all__ = ["TranslationCreateParams"]
class TranslationCreateParams(TypedDict, total=False):
file: Required[FileTypes]
"""
The audio file object (not file name) translate, in one of these formats: flac,
mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. The request must include enough
format metad
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key