合成語音
進行旁白時,請傳送文字、模型,以及所選模型可用的語音。將回覆當作二進位音訊串流處理,而非 JSON 字串。
儲存或播放前,請依實際回覆格式指定副檔名與 Content-Type。
文字轉語音請求
bash
curl --request POST https://cicora.ai/api/v1/audio/speech \
--header "Authorization: Bearer $CICORA_API_KEY" \
--header 'Content-Type: application/json' \
--output narration.mp3 \
--data '{
"model": "mistralai/voxtral-mini-tts-2603",
"voice": "en_paul_neutral",
"input": "Your delivery is scheduled for tomorrow.",
"response_format": "mp3"
}'轉錄與輸入
- 依文件所載格式將音訊檔傳送至 /audio/transcriptions。
- 上傳開始前,請先在您端限制檔案時長與大小。
- 只有所選操作會傳回語言、時間戳記與片段時,才保留這些資料。
品質與供應情況
語音、格式、語言與同步方式取決於模型。只向使用者顯示目錄已確認的控制項。
對較長的檔案,請在產品中建立背景工作,避免讓網路逾時決定使用者工作流程。