Create Transcription
Usa CometAPI POST /v1/audio/transcriptions para transcribir audio a texto con un modelo de transcripción y formato de respuesta seleccionados.
Primera solicitud
Envía un archivo de audio compatible conmodel 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 eltext 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
- Usa Create Speech cuando necesites salida de texto a voz.
- Usa Create Translation cuando la salida de destino deba ser en inglés.
Autorizaciones
Bearer token authentication. Use your CometAPI key.
Cuerpo
The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
The speech-to-text model to use. Choose a current speech model from the Models page.
The language of the input audio in ISO-639-1 format (e.g., en, zh, ja). Supplying the language improves accuracy and latency.
Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
The output format for the transcription.
json, text, srt, verbose_json, vtt 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.
0 <= x <= 1Respuesta
The transcription result.
The transcribed text.