Skip to main content
POST
Python
Usa este endpoint para transcribir audio a texto en el idioma de origen. Es adecuado para notas de reuniones, mensajes de voz, indexación de medios, subtítulos y flujos de trabajo de soporte que necesitan texto buscable.

Primera solicitud

Envía un archivo de audio compatible con model y file. Mantén el primer archivo corto mientras validas el manejo de cargas, la autenticación y el análisis de la respuesta.

Leer la respuesta

La respuesta predeterminada incluye el text transcrito. Si solicitas otro formato de respuesta, asegúrate de que tu cliente analice ese formato en lugar de asumir la estructura JSON predeterminada.

Próximos pasos

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Use your CometAPI key.

Cuerpo

multipart/form-data
file
file
requerido

The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.

model
string
predeterminado:whisper-1
requerido

The speech-to-text model to use. Choose a current speech model from the Models page.

language
string

The language of the input audio in ISO-639-1 format (e.g., en, zh, ja). Supplying the language improves accuracy and latency.

prompt
string

Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.

response_format
enum<string>
predeterminado:json

The output format for the transcription.

Opciones disponibles:
json,
text,
srt,
verbose_json,
vtt
temperature
number
predeterminado:0

Sampling temperature between 0 and 1. Higher values produce more random output; lower values are more focused. When set to 0, the model auto-adjusts temperature using log probability.

Rango requerido: 0 <= x <= 1

Respuesta

200 - application/json

The transcription result.

text
string
requerido

The transcribed text.