更新我的 Google 操作中单词的发音
Update pronunciation of words in my Google Action
我打算在 Dialogflow 中完成响应并启用 fulfillment,并且我已经与 Google Assistant 集成。有一个特定的单词 "FICO"(如 FICO 分数)在助手响应时发音错误。有没有办法改变那个特定单词的发音?
您可以使用 SSML <sub>
标签为相关单词提供别名发音,而不是发回将在文本到语音生成中使用的文本。所以你可以试试这样的东西看看它听起来如何
<speak>
Your <sub alias="fyeco">FICO</sub> score is
</speak>
或 fiddle 直到它听起来像你想要的那样。将显示标签内的部分,而将朗读 alias
部分。
此代码可能类似于
const msg = `<speak>Your <sub alias="fyeco">FICO</sub> score is ${score}.</speak>`
conv.add( msg );
我打算在 Dialogflow 中完成响应并启用 fulfillment,并且我已经与 Google Assistant 集成。有一个特定的单词 "FICO"(如 FICO 分数)在助手响应时发音错误。有没有办法改变那个特定单词的发音?
您可以使用 SSML <sub>
标签为相关单词提供别名发音,而不是发回将在文本到语音生成中使用的文本。所以你可以试试这样的东西看看它听起来如何
<speak>
Your <sub alias="fyeco">FICO</sub> score is
</speak>
或 fiddle 直到它听起来像你想要的那样。将显示标签内的部分,而将朗读 alias
部分。
此代码可能类似于
const msg = `<speak>Your <sub alias="fyeco">FICO</sub> score is ${score}.</speak>`
conv.add( msg );