Model API'si
MiniMax Voice Cloning
Ses örneğinden bir ses referansı oluştur; istersen örnek bir metni seslendir.
Model kimliği
minimax/voice-cloneÇalıştır
Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/voice-clone",
"input": {
"audio_url": "https://example.com/input.mp3"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "minimax/voice-clone", "quote_id": "QUOTE_ID", "input": {"audio_url":"https://example.com/input.mp3"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Girdi
| Alan | Tür | Açıklama |
|---|---|---|
audio_urlzorunlu | string (URL) | URL of the input audio file for voice cloning. Should be at least 10 seconds long. To retain the voice permanently, use it with a TTS (text-to-speech) endpoint at least once within 7 days. Otherwise, it will be automatically deleted. |
noise_reduction | boolean | Enable noise reduction for the cloned voice |
need_volume_normalization | boolean | Enable volume normalization for the cloned voice |
accuracy | number | Text validation accuracy threshold (0-1) |
text | string | Text to generate a TTS preview with the cloned voice (optional) |
model | string (enum) | TTS model to use for preview. Options: speech-02-hd, speech-02-turbo, speech-01-hd, speech-01-turbo |
Çıktı
Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.
"outputs": [
{ "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]Fiyatlandırma
- en fazla · 1.000 karakter$2,86/ üretim
Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?