问题描述
我们正在SSML中使用Google Action SDK来以自定义语音响应用户。但是Google一直在自定义语音和Google默认语音之间切换。
解决方法
The switching between custom voice and google voice happens randomly. You are not able to consistently reproduce it. Below is an example of the response. The audio source url is the file location stored in Azure storage and it expires in a few mins after generated.
{
"expectUserResponse": true,"expectedInputs": [
{
"possibleIntents": [
{
"intent": "actions.intent.TEXT"
}
],"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Hi! I can help you with so many things! Like getting you an auto quote or answering general insurance questions. So what can I do you for?","ssml": "<speak>\r\n <audio src=\"https://qa01storgapp01dcq.blob.core.windows.net/google-assistant-audio-permanent/LUISIntentsandGetQuoteEntities-9.mp3?sv=2019-07-07&spr=https&se=2020-08-18T19%3A30%3A28Z&sr=b&sp=r&sig=eszRZWEw6sc58xRyz1Y7PrnpP4gyxfDUm%2FGQn9QxElM%3D\">Hi! I can help you with so many things! Like getting you an auto quote or answering general insurance questions. So what can I do you for?</audio>\r\n</speak>","displayText": "Hi! I can help you with so many things! Like getting you an auto quote or answering general insurance questions. So what can I do you for?"
}
}
],"suggestions": [
{
"title": "Get Quote"
},{
"title": "Ask a Question"
}
]
}
}
}
],"isInSandbox": false
}