我使用这段代码作为我的主要声音:
let SSMLText = `<speak>
<voice gender="male" variant="3">
<prosody rate="105%">Right away,</prosody>
</voice>
</speak>`
问题是当您在上下文中请求许可时,例如:
return conv.ask(new Permission({
context: SSMLText
permissions:
['DEVICE_PRECISE_LOCATION'],
}));
结果就是字面意思:
`<speak> <voice gender="male" variant="3"> <prosody rate="105%">Right away, </prosody> </voice> </speak>, I'll just need to get your current location from Google. Is that ok?`
是否可以将 SSML 与权限库一起使用,以便我可以更改声音?如果我不使用 SSML,听起来就像是其他人在说话,这会破坏体验。