两性-两性故事 SSML鲜艳说念话先容
你的位置:两性 > 麻豆 苏畅 > 两性故事 SSML鲜艳说念话先容
两性故事 SSML鲜艳说念话先容
发布日期:2024-10-05 14:13    点击次数:86

两性故事 SSML鲜艳说念话先容

使用款式

将带标签的文本行动text参数值,上传至语音合成事业两性故事,以Java SDK为例:

SpeechSynthesizer synthesizer = new SpeechSynthesizer(client, getSynthesizerListener());
String text = "<speak>请闭上眼睛休息一下<break time=\"500ms\"/>好了,请睁开眼睛。</speak>";
synthesizer.setText(text);

发送给语音合成事业的央求骨子如下:

范冰冰 女同
{
    "payload": {
        "volume": 50,
        "sample_rate": 16000,
        "format": "wav",
        "text": "<speak>请闭上眼睛休息一下<break time=\"500ms\"/>好了,请睁开眼睛。</speak>"
    },
    "context": {
        "sdk": {
            "name": "nls-sdk-java",
            "version": "2.0.4"
        }
    },
    "header": {
        "namespace": "SpeechSynthesizer",
        "name": "StartSynthesis",
        "message_id": "5fdf78c0dd574b6897f3cb204dd0****",
        "appkey": "fd4er4aa****",
        "task_id": "6e1be78ef5804c50a2c5a8b92de1****"
    }
}