Síntesis de voz síncrona MiniMax Speech 2.8 HD
curl --request POST \
--url https://api.highwayapi.ai/v3/minimax-speech-2.8-hd \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"text": "<string>",
"stream": true,
"voice_modify": {
"pitch": 123,
"timbre": 123,
"intensity": 123,
"sound_effects": "<string>"
},
"audio_setting": {
"format": "<string>",
"bitrate": 123,
"channel": 123,
"force_cbr": true,
"sample_rate": 123
},
"output_format": "<string>",
"voice_setting": {
"vol": 123,
"pitch": 123,
"speed": 123,
"emotion": "<string>",
"voice_id": "<string>",
"latex_read": true,
"text_normalization": true
},
"aigc_watermark": true,
"language_boost": "<string>",
"stream_options": {
"exclude_aggregated_audio": true
},
"timber_weights": [
{
"weight": 123,
"voice_id": "<string>"
}
],
"subtitle_enable": true,
"continuous_sound": true,
"pronunciation_dict": {
"tone": [
"<string>"
]
}
}
'import requests
url = "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd"
payload = {
"text": "<string>",
"stream": True,
"voice_modify": {
"pitch": 123,
"timbre": 123,
"intensity": 123,
"sound_effects": "<string>"
},
"audio_setting": {
"format": "<string>",
"bitrate": 123,
"channel": 123,
"force_cbr": True,
"sample_rate": 123
},
"output_format": "<string>",
"voice_setting": {
"vol": 123,
"pitch": 123,
"speed": 123,
"emotion": "<string>",
"voice_id": "<string>",
"latex_read": True,
"text_normalization": True
},
"aigc_watermark": True,
"language_boost": "<string>",
"stream_options": { "exclude_aggregated_audio": True },
"timber_weights": [
{
"weight": 123,
"voice_id": "<string>"
}
],
"subtitle_enable": True,
"continuous_sound": True,
"pronunciation_dict": { "tone": ["<string>"] }
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
text: '<string>',
stream: true,
voice_modify: {pitch: 123, timbre: 123, intensity: 123, sound_effects: '<string>'},
audio_setting: {
format: '<string>',
bitrate: 123,
channel: 123,
force_cbr: true,
sample_rate: 123
},
output_format: '<string>',
voice_setting: {
vol: 123,
pitch: 123,
speed: 123,
emotion: '<string>',
voice_id: '<string>',
latex_read: true,
text_normalization: true
},
aigc_watermark: true,
language_boost: '<string>',
stream_options: {exclude_aggregated_audio: true},
timber_weights: [{weight: 123, voice_id: '<string>'}],
subtitle_enable: true,
continuous_sound: true,
pronunciation_dict: {tone: ['<string>']}
})
};
fetch('https://api.highwayapi.ai/v3/minimax-speech-2.8-hd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => '<string>',
'stream' => true,
'voice_modify' => [
'pitch' => 123,
'timbre' => 123,
'intensity' => 123,
'sound_effects' => '<string>'
],
'audio_setting' => [
'format' => '<string>',
'bitrate' => 123,
'channel' => 123,
'force_cbr' => true,
'sample_rate' => 123
],
'output_format' => '<string>',
'voice_setting' => [
'vol' => 123,
'pitch' => 123,
'speed' => 123,
'emotion' => '<string>',
'voice_id' => '<string>',
'latex_read' => true,
'text_normalization' => true
],
'aigc_watermark' => true,
'language_boost' => '<string>',
'stream_options' => [
'exclude_aggregated_audio' => true
],
'timber_weights' => [
[
'weight' => 123,
'voice_id' => '<string>'
]
],
'subtitle_enable' => true,
'continuous_sound' => true,
'pronunciation_dict' => [
'tone' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/minimax-speech-2.8-hd")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/minimax-speech-2.8-hd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"trace_id": "<string>",
"base_resp": {},
"extra_info": {}
}Audio
Síntesis de voz síncrona MiniMax Speech 2.8 HD
POST
/
v3
/
minimax-speech-2.8-hd
Síntesis de voz síncrona MiniMax Speech 2.8 HD
curl --request POST \
--url https://api.highwayapi.ai/v3/minimax-speech-2.8-hd \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"text": "<string>",
"stream": true,
"voice_modify": {
"pitch": 123,
"timbre": 123,
"intensity": 123,
"sound_effects": "<string>"
},
"audio_setting": {
"format": "<string>",
"bitrate": 123,
"channel": 123,
"force_cbr": true,
"sample_rate": 123
},
"output_format": "<string>",
"voice_setting": {
"vol": 123,
"pitch": 123,
"speed": 123,
"emotion": "<string>",
"voice_id": "<string>",
"latex_read": true,
"text_normalization": true
},
"aigc_watermark": true,
"language_boost": "<string>",
"stream_options": {
"exclude_aggregated_audio": true
},
"timber_weights": [
{
"weight": 123,
"voice_id": "<string>"
}
],
"subtitle_enable": true,
"continuous_sound": true,
"pronunciation_dict": {
"tone": [
"<string>"
]
}
}
'import requests
url = "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd"
payload = {
"text": "<string>",
"stream": True,
"voice_modify": {
"pitch": 123,
"timbre": 123,
"intensity": 123,
"sound_effects": "<string>"
},
"audio_setting": {
"format": "<string>",
"bitrate": 123,
"channel": 123,
"force_cbr": True,
"sample_rate": 123
},
"output_format": "<string>",
"voice_setting": {
"vol": 123,
"pitch": 123,
"speed": 123,
"emotion": "<string>",
"voice_id": "<string>",
"latex_read": True,
"text_normalization": True
},
"aigc_watermark": True,
"language_boost": "<string>",
"stream_options": { "exclude_aggregated_audio": True },
"timber_weights": [
{
"weight": 123,
"voice_id": "<string>"
}
],
"subtitle_enable": True,
"continuous_sound": True,
"pronunciation_dict": { "tone": ["<string>"] }
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
text: '<string>',
stream: true,
voice_modify: {pitch: 123, timbre: 123, intensity: 123, sound_effects: '<string>'},
audio_setting: {
format: '<string>',
bitrate: 123,
channel: 123,
force_cbr: true,
sample_rate: 123
},
output_format: '<string>',
voice_setting: {
vol: 123,
pitch: 123,
speed: 123,
emotion: '<string>',
voice_id: '<string>',
latex_read: true,
text_normalization: true
},
aigc_watermark: true,
language_boost: '<string>',
stream_options: {exclude_aggregated_audio: true},
timber_weights: [{weight: 123, voice_id: '<string>'}],
subtitle_enable: true,
continuous_sound: true,
pronunciation_dict: {tone: ['<string>']}
})
};
fetch('https://api.highwayapi.ai/v3/minimax-speech-2.8-hd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => '<string>',
'stream' => true,
'voice_modify' => [
'pitch' => 123,
'timbre' => 123,
'intensity' => 123,
'sound_effects' => '<string>'
],
'audio_setting' => [
'format' => '<string>',
'bitrate' => 123,
'channel' => 123,
'force_cbr' => true,
'sample_rate' => 123
],
'output_format' => '<string>',
'voice_setting' => [
'vol' => 123,
'pitch' => 123,
'speed' => 123,
'emotion' => '<string>',
'voice_id' => '<string>',
'latex_read' => true,
'text_normalization' => true
],
'aigc_watermark' => true,
'language_boost' => '<string>',
'stream_options' => [
'exclude_aggregated_audio' => true
],
'timber_weights' => [
[
'weight' => 123,
'voice_id' => '<string>'
]
],
'subtitle_enable' => true,
'continuous_sound' => true,
'pronunciation_dict' => [
'tone' => [
'<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/minimax-speech-2.8-hd"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/minimax-speech-2.8-hd")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/minimax-speech-2.8-hd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"text\": \"<string>\",\n \"stream\": true,\n \"voice_modify\": {\n \"pitch\": 123,\n \"timbre\": 123,\n \"intensity\": 123,\n \"sound_effects\": \"<string>\"\n },\n \"audio_setting\": {\n \"format\": \"<string>\",\n \"bitrate\": 123,\n \"channel\": 123,\n \"force_cbr\": true,\n \"sample_rate\": 123\n },\n \"output_format\": \"<string>\",\n \"voice_setting\": {\n \"vol\": 123,\n \"pitch\": 123,\n \"speed\": 123,\n \"emotion\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"latex_read\": true,\n \"text_normalization\": true\n },\n \"aigc_watermark\": true,\n \"language_boost\": \"<string>\",\n \"stream_options\": {\n \"exclude_aggregated_audio\": true\n },\n \"timber_weights\": [\n {\n \"weight\": 123,\n \"voice_id\": \"<string>\"\n }\n ],\n \"subtitle_enable\": true,\n \"continuous_sound\": true,\n \"pronunciation_dict\": {\n \"tone\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"trace_id": "<string>",
"base_resp": {},
"extra_info": {}
}Convierte texto en voz, compatible con múltiples voces, control de emociones, ajuste de velocidad y otras funciones. El límite de longitud del texto es inferior a 10000 caracteres; si la longitud del texto supera los 3000 caracteres, se recomienda usar salida en streaming.
Encabezados de solicitud
Valores enumerados:
application/jsonFormato de autenticación Bearer: Bearer {{API Key}}.
Cuerpo de la solicitud
Texto que se debe sintetizar como voz. El límite de longitud es inferior a 10000 caracteres; si la longitud del texto supera los 3000 caracteres, se recomienda usar salida en streaming. Admite cambios de párrafo (saltos de línea), control de pausas (marca
<#x#>) y etiquetas de muletillas o sonidos vocales (como (laughs), (coughs), etc.; solo compatibles con speech-2.8-hd/turbo)Controla si se usa salida en streaming. El valor predeterminado es false, es decir, no se habilita el streaming
Ocultar propiedades
Ocultar propiedades
Ajuste de tono (grave/brillante), rango [-100, 100]. Cuanto más se acerque el valor a -100, más grave será la voz; cuanto más se acerque a 100, más brillante seráRango de valores: [-100, 100]
Ajuste de timbre (magnético/nítido), rango [-100, 100]. Cuanto más se acerque el valor a -100, más profunda será la voz; cuanto más se acerque a 100, más nítida seráRango de valores: [-100, 100]
Ajuste de intensidad (sensación de fuerza/suavidad), rango [-100, 100]. Cuanto más se acerque el valor a -100, más enérgica será la voz; cuanto más se acerque a 100, más suave seráRango de valores: [-100, 100]
Configuración de efectos de sonido. Solo se puede seleccionar uno por vez. Valores disponibles: spacious_echo (eco en espacio abierto), auditorium_echo (difusión de auditorio), lofi_telephone (distorsión telefónica), robotic (sonido electrónico)Valores disponibles:
spacious_echo, auditorium_echo, lofi_telephone, roboticOcultar propiedades
Ocultar propiedades
Formato del audio generado. wav solo es compatible con salida sin streamingValores disponibles:
mp3, pcm, flac, wavTasa de bits del audio generado. Rango disponible [32000, 64000, 128000, 256000], valor predeterminado 128000. Este parámetro solo tiene efecto para audio en formato mp3Valores disponibles:
32000, 64000, 128000, 256000Número de canales del audio generado. Rango disponible: [1, 2], donde 1 es mono y 2 es estéreo. El valor predeterminado es 1Valores disponibles:
1, 2Control de tasa de bits constante (cbr) para audio; valores disponibles: false, true. Cuando este parámetro se establece en true, el audio se codifica con tasa de bits constante. Nota: este parámetro solo tiene efecto cuando el audio se configura como salida en streaming y el formato de audio es mp3
Frecuencia de muestreo del audio generado. Rango disponible [8000, 16000, 22050, 24000, 32000, 44100], valor predeterminado 32000Valores disponibles:
8000, 16000, 22050, 24000, 32000, 44100Parámetro que controla la forma del resultado de salida. El rango de valores disponible es url, hex, con valor predeterminado hex. Este parámetro solo tiene efecto en escenarios sin streaming; en escenarios con streaming solo se admite devolver el formato hex. La url devuelta tiene una validez de 24 horasValores disponibles:
url, hexOcultar propiedades
Ocultar propiedades
Volumen del audio sintetizado; cuanto mayor sea el valor, mayor será el volumen. Rango de valores (0, 10], valor predeterminado 1.0Rango de valores: [0, 10]
Entonación del audio sintetizado. Rango de valores [-12, 12], valor predeterminado 0, donde 0 corresponde a la salida con la voz originalRango de valores: [-12, 12]
Velocidad del audio sintetizado; cuanto mayor sea el valor, más rápida será la velocidad. Rango de valores [0.5, 2], valor predeterminado 1.0Rango de valores: [0.5, 2]
Controla la emoción de la voz sintetizada. El rango del parámetro corresponde a 8 emociones: alegría (happy), tristeza (sad), ira (angry), miedo (fearful), asco (disgusted), sorpresa (surprised), neutralidad (calm), vivacidad (fluent), susurro (whisper). El modelo emparejará automáticamente una emoción adecuada según el texto de entrada; por lo general, no es necesario especificarla manualmenteValores disponibles:
happy, sad, angry, fearful, disgusted, surprised, calm, fluent, whisperIdentificador de la voz del audio sintetizado. Si necesitas configurar una mezcla de voces, establece el parámetro timber_weights y deja este parámetro como valor vacío. Admite tres tipos: voces del sistema, voces clonadas y voces generadas a partir de texto
Controla si se leen fórmulas latex; el valor predeterminado es false. Solo es compatible con chino. Después de habilitar este parámetro, el parámetro language_boost se establecerá en Chinese
Indica si se habilita la normalización de texto en chino e inglés. Al habilitarla, puede mejorar el rendimiento en escenarios de lectura de números, pero aumentará ligeramente la latencia. El valor predeterminado es false
Controla si se añade una marca de ritmo de audio al final del audio sintetizado; el valor predeterminado es false. Este parámetro solo tiene efecto para síntesis sin streaming
Indica si se mejora la capacidad de reconocimiento para el idioma minoritario o dialecto especificado. El valor predeterminado es null; se puede establecer en auto para que el modelo lo determine de forma autónomaValores disponibles:
Chinese, Chinese,Yue, English, Arabic, Russian, Spanish, French, Portuguese, German, Turkish, Dutch, Ukrainian, Vietnamese, Indonesian, Japanese, Italian, Korean, Thai, Polish, Romanian, Greek, Czech, Finnish, Hindi, Bulgarian, Danish, Hebrew, Malay, Persian, Slovak, Swedish, Croatian, Filipino, Hungarian, Norwegian, Slovenian, Catalan, Nynorsk, Tamil, Afrikaans, autoOcultar propiedades
Ocultar propiedades
Configura si el último chunk contiene los datos de voz hex concatenados. El valor predeterminado es false, es decir, el último chunk contiene los datos hex completos de la voz concatenada
Configuración de mezcla de voces; admite como máximo la mezcla de 4 voces
Ocultar propiedades
Ocultar propiedades
Peso que ocupa cada voz en el audio sintetizado; debe completarse de forma sincronizada con voice_id. El rango de valores disponible es [1, 100]. Admite como máximo la mezcla de 4 voces; cuanto mayor sea la proporción de una sola voz, mayor será la similitud de la voz sintetizada con esa vozRango de valores: [1, 100]
Identificador de la voz del audio sintetizado; debe completarse junto con el parámetro weight. Admite tres tipos: voces del sistema, voces clonadas y voces generadas a partir de texto
Controla si se habilita el servicio de subtítulos; el valor predeterminado es false. Este parámetro solo es válido en escenarios de salida sin streaming y solo es efectivo para los modelos speech-2.6-hd, speech-2.6-turbo, speech-01-turbo, speech-01-hd
Habilita este parámetro para que la conexión entre suboraciones sea más natural. Solo es compatible con los modelos speech-2.8-hd y speech-2.8-turbo
Ocultar propiedades
Ocultar propiedades
Define las reglas de sustitución de pronunciación o lectura correspondientes a textos o símbolos que requieren anotación especial. En texto chino, los tonos se representan con números: el primer tono es 1, el segundo tono es 2, el tercer tono es 3, el cuarto tono es 4 y el tono neutro es 5. Ejemplo: [“燕少飞/(yan4)(shao3)(fei1)”, “omg/oh my god”]
Información de respuesta
Objeto de datos de síntesis devuelto; puede ser null, por lo que se debe comprobar que no sea nulo
id de esta sesión, utilizado para ayudar a localizar problemas durante consultas o comentarios
Código de estado y detalles de esta solicitud
Información adicional del audio
⌘I