IBM的表示,下面的节点后端代码使您能够使用Use the API key to have the SDK manage the lifecycle of the token. The SDK requests an access token, ensures that the access token is valid, and refreshes it if necessary.
const SpeechToTextV1 = require('ibm-watson/speech-to-text/v1');
const { IamAuthenticator } = requi
如何将外部npm包添加到phonegap?在我的phonegap应用程序中,我需要添加IBM Watson Speech To Text node.js包,您可以在这里找到它-
我知道我必须通过npm install watson-developer-cloud下载它,但是在那之后,我应该怎么做才能在phonegap中访问它呢?
我正在尝试使用set up a Firebase Cloud Function来访问IBM Watson Text- to -Speech。问题是将返回的音频文件写入我的Firestore数据库。
这个测试返回工作的语音列表,将响应记录到函数日志中:
exports.test = functions.firestore.document('IBM_Watson_Token/Test_Value').onUpdate((change, context) => {
var textToSpeech = new TextToSpeechV1({
username:
我一直在使用expo构建一个react本地应用程序,并希望将IBM Watson chatbot集成到我的平台上。然而,当我导入模块时,我会收到许多作为核心节点模块(如os and fs seem to be missing )的错误消息,但由于某种原因没有在node.js中下载。当我尝试手动添加这些文件时,HTTPS模块丢失了index.js文件。有什么办法让我找到这个文件或者用别的方法解决这个问题吗?
我尝试了IBM Watson助手的API Nodejs v1和v2来创建一个新的转换。但它总是给我相同的错误代码401未经授权:访问被拒绝,因为无效的凭证。我不知道发生了什么,提前感谢你的回答。 { Unauthorized: Access is denied due to invalid credentials.
at RequestWrapper.formatError (E:\Documents\Techniques\Desktop\front_back_end\version-watson\node_modules\ibm-watson\node_modules\ibm-cl
我一直试图在演示PDF中使用IBM文档转换服务,但它并不是将文档转换为小片段。它所做的就是创建一个回答单元,这真的很长:
"text": "Watson is an artificially intelligent computer system capable of answering questions posed in natural language,[2] developed in IBM's DeepQA project by a research team led by principal investigator David Ferrucci.
我正在尝试通过Windows (使用C#)与我的聊天机器人进行通信。我已经将SDK安装到Visual中,但我在使用它时遇到了困难。但是,我已经阅读了所有的文档,包括关于GitHub的文档,因为这是我第一次使用SDK,我对如何让它工作感到非常困惑。此时,我只想发送一条“消息”并读取聊天机器人的响应。我必须包括哪些名称空间(即"using IBM.Watson...")?因为我已经尝试过身份验证,但是我得到了错误:"namespace AssistantService could not be found",根据GitHub指南中的IAM身份验证。另外,什么是
我按照rebook ()中的步骤启动了一个小型java应用程序。我还创建了一个API密钥,就像他们描述的那样。
现在im获得了一个未经授权的:由于无效的凭据消息而拒绝访问。
package vrproject;
//Here you import Watson Java SDK to make it available in your code.
import com.ibm.watson.developer_cloud.visual_recognition.v3.*;
import com.ibm.watson.developer_cloud.visual_recognition.v3.
我在一个Watson Assistant应用程序中与Watson Discovery一起使用Node.JS。我的想法是,我将使用发现号服务来做更多的问答类的事情--我把助手的话传递给发现号,并给发现号一个答复。因此,我已经准备了一个JSON格式的数据结构,它将充当一个Q&A数据库。示例:
{
"elements":[
{
"ProductID":12345,
"Questions":[
"What is included in insurance Type A?",
会话服务的java代码编写为
import com.ibm.watson.developer_cloud.conversation.v1.ConversationService;
import com.ibm.watson.developer_cloud.conversation.v1.model.MessageRequest;
import com.ibm.watson.developer_cloud.conversation.v1.model.MessageResponse;
/*
some code written here
*/
MessageRequest newMessage