IBM Watson Text-to-Speech 在自定义单词后发音句子结束点
IBM Watson Text-to-Speech pronounces sentence-ending point after custom word
我正在使用 WDC Text-to-Speech 服务,遇到以下情况:
我正在使用基于 fr-FR_ReneeVoice 的自定义模型来自定义某些单词的发音方式。其中一个词是"ONT",翻译成
<phoneme alphabet="ibm" ph=".o.En.te"></phoneme>
当该词出现在句末时(例如"Trouvez votre ONT."),TTS 服务会明确读出句末点(例如"Trouvez votre ONT point")。如果我去掉这个点,它会打乱下一句的发音,因为没有断句。
应该如何处理?该文档未提及任何限制或处理此问题的方法。
我试过同样的案例,无法复制您看到的问题。你能 运行 这个 curl 命令并报告你看到的单词 ONT 的翻译吗?
curl -k -u username:password -X GET“https://stream.watsonplatform.net/text-to-speech/api/v1/customizations/customID?alphabet=spr”
我得到以下信息:
"words":[{
"translation": "`[.2o.0En.t1e]",
"word": "ONT"
}],
在上面的 curl 命令中,替换为您的用户名、密码和自定义 ID。
谢谢,
托尼
我正在使用 WDC Text-to-Speech 服务,遇到以下情况:
我正在使用基于 fr-FR_ReneeVoice 的自定义模型来自定义某些单词的发音方式。其中一个词是"ONT",翻译成
<phoneme alphabet="ibm" ph=".o.En.te"></phoneme>
当该词出现在句末时(例如"Trouvez votre ONT."),TTS 服务会明确读出句末点(例如"Trouvez votre ONT point")。如果我去掉这个点,它会打乱下一句的发音,因为没有断句。
应该如何处理?该文档未提及任何限制或处理此问题的方法。
我试过同样的案例,无法复制您看到的问题。你能 运行 这个 curl 命令并报告你看到的单词 ONT 的翻译吗?
curl -k -u username:password -X GET“https://stream.watsonplatform.net/text-to-speech/api/v1/customizations/customID?alphabet=spr”
我得到以下信息: "words":[{ "translation": "`[.2o.0En.t1e]", "word": "ONT" }],
在上面的 curl 命令中,替换为您的用户名、密码和自定义 ID。
谢谢, 托尼