Model API'si

Chatterbox

Chatterbox ile metni konuşmaya dönüştür; ses ve konuşma ayarlarını seç.

Model kimliği

Her istekte bunu kullan
chatterbox/text-to-speech

Ç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": "chatterbox/text-to-speech",
  "input": {
    "text": "example"
  }
}'

# 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": "chatterbox/text-to-speech", "quote_id": "QUOTE_ID", "input": {"text":"example"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

chatterbox/text-to-speech girdi alanları
AlanTürAçıklama
textzorunlustring
The text to be converted to speech (maximum 5000 characters). You can additionally add the following emotive tags: <laugh>, <chuckle>, <sigh>, <cough>, <sniffle>, <groan>, <yawn>, <gasp>
audio_urlstring (URL)
Optional URL to an audio file to use as a reference for the generated speech. If provided, the model will try to match the style and tone of the reference audio.
exaggerationnumber
Exaggeration factor for the generated speech (0.0 = no exaggeration, 1.0 = maximum exaggeration).

Varsayılan: 0.25

temperaturenumber
Temperature for generation (higher = more creative).

Varsayılan: 0.7

cfgnumber
Cfg

Varsayılan: 0.5

seedinteger
Useful to control the reproducibility of the generated audio. Assuming all other properties didn't change, a fixed seed should always generate the exact same audio file. Set to 0 for random seed..

Çı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.

İş yanıtından bir bölüm
"outputs": [
  { "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Fiyatlandırma

  • en fazla · 1,000 ASCII characters$0,04/ üretim

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?