Tag: 文本转语音

watson使用套接字的文本到语音

如何在使用nodejs在本地主机上运行chatbot时将watson文本转换为语音? 我的chatbot已经运行在本地主机上了。我想将watson文本embedded到语音服务中。 我已经读过,它可以通过websocket接口完成。 我对此没有任何想法

OpenWhisk从动作调用watson文本到语音动作

我正尝试从OpenWhisk操作中调用包含在Watson系统包(文本到语音)中的操作。 我已经绑定了服务,并设置了凭据,所以从CLI中我可以看到 wsk list entities in namespace: xxxxxx packages /xxxxxx/myWatson private binding 这是我的OpenWhisk操作: function main(param) { //code here for my action. At the end, I invoke the text to speech if (…) { textToSpeech(param.text); } else { return whisk.error(error); } return whisk.async(); } function textToSpeech(text){ whisk.invoke({ name:'myWatson/textToSpeech', parameters:{ payload: text, voice: 'en-US_MichaelVoice', accept: 'audio/wav', encoding: […]