Create Transcription
Seçilen bir transcription modeli ve yanıt formatıyla sesi metne dönüştürmek için CometAPI POST /v1/audio/transcriptions uç noktasını kullanın.
İlk istek
model ve file ile desteklenen bir ses dosyası gönderin. Yükleme işleme, kimlik doğrulama ve yanıt ayrıştırmayı doğrularken ilk dosyayı kısa tutun.
Yanıtı okuyun
Varsayılan yanıt, dönüştürülentext alanını içerir. Başka bir yanıt formatı isterseniz, istemcinizin varsayılan JSON yapısını varsaymak yerine bu formatı ayrıştırdığından emin olun.
Sonraki adımlar
- Metinden sese çıktı gerektiğinde Create Speech kullanın.
- Hedef çıktı İngilizce olmalıysa Create Translation kullanın.
Yetkilendirmeler
Bearer token authentication. Use your CometAPI key.
Gövde
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 <= 1Yanıt
The transcription result.
The transcribed text.