Esnek parametreler
background_music, custom_mode, prompt, script, tone dahil 7 belgelenmiş parametreyi yapılandırın.
Bir sahne veya senaryodan, isteğe bağlı konuşma tonu ve arka plan müziğiyle ses oluşturma
curl -X POST https://runapi.ai/api/v1/suno/text_to_speech \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-speech",
"custom_mode": false,
"prompt": "A short morning news introduction."
}'
import { SunoClient } from "@runapi.ai/suno";
const client = new SunoClient();
const result = await client.textToSpeech.run({
model: "suno-speech",
custom_mode: false,
prompt: "A short morning news introduction.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/suno/text_to_speech",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/suno/text_to_speech");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'suno-speech',
'custom_mode' => false,
'prompt' => 'A short morning news introduction.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToSpeech().run({"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."});
task.waitForResult();
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.text_to_speech.run(
model: "suno-speech",
custom_mode: false,
prompt: "A short morning news introduction."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToSpeech.Run({"model":"suno-speech","custom_mode":false,"prompt":"A short morning news introduction."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model suno-speech \
--endpoint text_to_speech \
--wait
10 varyant mevcut
Herhangi bir modeli seçin ve saniyeler içinde oluşturun.
Şu anda kullanılabilir model yok.
| Sağlayıcı | Suno |
| Model kimliği | suno-speech |
| Modality | Ses & Müzik |
| Görev türleri | Asynchronous |
| API uç noktası | /api/v1/suno/text_to_speech |
| Faturalandırma birimi | çağrı |
| Girdi parametreleri | background_music, callback_url, custom_mode, model, prompt, script, tone, variety, vocal_gender |
| Katalog durumu | Operasyonel |
Ücretsiz kaydolun ve kontrol panelinden suno-speech için bir API anahtarı oluşturun.
suno-speech model kimliği ve parametrelerinizle /api/v1/suno/text_to_speech adresine POST isteği gönderin.
Görevi sorgulayın veya tamamlanan suno-speech sonucunu almak için callback'i izleyin.
background_music, custom_mode, prompt, script, tone dahil 7 belgelenmiş parametreyi yapılandırın.
1 genel endpoint sunar: text_to_speech.
Asenkron görevler, tamamlanma bildirimleri için bir geri çağırma URL'si kabul eder.
Abonelik gerektirmeksizin çağrı ile ölçülür.
toneTone, rhythm, emotion, and setting, trimmed before validation. Only allowed when custom_mode is true.
promptScene description, trimmed before validation. Required when custom_mode is false; forbidden when true.
scriptText to speak, trimmed before validation. Required when custom_mode is true; forbidden when false.
varietyStyle variety from exact to highly varied. Only allowed when custom_mode is true. (0, 1, 2, 3, 4)
custom_modeRequired mode switch. False creates a script from prompt; true speaks the supplied script. (true, false)
callback_urlWebhook URL for async notifications.
vocal_genderVocal gender. Only allowed when custom_mode is true. (male, female)
background_musicWhether to add background music. Only allowed when custom_mode is true. (true, false)
Bölümün ruh haline uygun, telifsiz arka plan müziği üretin; lisans ücreti ödemeyin.
Procedurally generated seviyeler için uyarlanabilir ambiyans ses manzaraları ve efektler üretin.
Müşteri spotları için stüdyo gerektirmeden özel seslendirmeler ve ses efektleri üretin.
Quickstart'ta gösterilen model ID'sini gönderin.
Anahtar bazlı hız limitleri kullanım kademesine göre ölçeklenir. Güncel limitler için fiyatlandırma sayfasına bakın.
Evet — varyant bir bayraktır. model parametresini değiştirerek geçiş yapın.
Streaming उपलब्ध olduğunda RunAPI uçtan uca stream eder.
Herkese açık GitHub reposunda bir issue açın veya desteğe e-posta gönderin.
Hayır. RunAPI API anahtarınız bu varyanta ve katalogdaki diğer tüm modellere erişmek için yeterlidir. Alttaki sağlayıcıda hesap açmanıza gerek yoktur.
Kurumsal kurulum, entegrasyonlar ve teknik sorular konusunda yardımcı oluruz.
İletişime geçin