Open xujialiu opened 4 months ago
当网络响应超时, 抛出的异常提示是: Speech synthesis canceled. Did you set the speech resource key and region values?
这个提示有点误导性, 而且我发现, 不管任何原因导致的语音转换失败都会抛出这个异常, 如果是网络连接的问题, 最好还是抛出网络连接异常相关的提示.
不过这个优化方案的优先级较低, 且不影响插件使用体验, 可以等晚一些再考虑优化这个提示, 谢谢.
这个是官方的SDK抛出的错误,我是原样抛出的。回头我研究下有没有对应的错误码啥的。
当网络响应超时, 抛出的异常提示是: Speech synthesis canceled. Did you set the speech resource key and region values?
这个提示有点误导性, 而且我发现, 不管任何原因导致的语音转换失败都会抛出这个异常, 如果是网络连接的问题, 最好还是抛出网络连接异常相关的提示.
不过这个优化方案的优先级较低, 且不影响插件使用体验, 可以等晚一些再考虑优化这个提示, 谢谢.