SSML标记语言介绍

CLORE中文网

栏目分类
CLORE中文网
WLD 官网
你的位置:CLORE中文网 > WLD 官网 > SSML标记语言介绍
SSML标记语言介绍
发布日期:2025-01-04 11:00    点击次数:111
使用方式将带标签的文本作为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****" } }

Powered by CLORE中文网 @2013-2022 RSS地图 HTML地图

Copyright Powered by365站群 © 2013-2024