TTS播报指令
// TTS 播报来自文本
{
"commandDomain": "AliGenie.Speaker",
"commandName": "Speak",
"payload": {
"expectSpeech": true, // 如果需要开麦,这里需要设置为 true
"wakeupType": "continuity", // 如果需要开麦,这里需要设置为 continuity
"type": "text", // 如果播报内容来自文本,type 需要设置为 text
"text": "这是您要播报的内容!", // TTS 播报内容
}
}
MP3播放指令
// TTS 播报来自音频
{
"commandDomain": "AliGenie.Speaker",
"commandName": "Speak",
"payload": {
"expectSpeech": true, // 如果需要开麦,这里需要设置为 true
"wakeupType": "continuity", // 如果需要开麦,这里需要设置为 continuity
"type": "url", // 如果需要播报指定 mp3,type 需要设置为 url
"url": "" // 指定 mp3 文件的 url
}
}