简体   繁体   English

我应该使用ibm watson chatbot在android应用程序的config.xml中写入什么数据?

[英]what is the data I should write in config.xml of an android app using ibm watson chatbot?

I am an android developer. 我是一名Android开发人员。 I am trying to use IBM chatbot in my android app. 我正在尝试在我的Android应用程序中使用IBM chatbot。 I am following this tutorial 我正在关注本教程

https://console.bluemix.net/docs/tutorials/android-watson-chatbot.html#configure_run_android_app https://console.bluemix.net/docs/tutorials/android-watson-chatbot.html#configure_run_android_app

I am beginner at IBM watson I don't unserstand I should write in config.xml . 我是IBM Watson的初学者,我不明白我应该在config.xml中编写。 I am very confused of that and I tried to search a lot for a thing that explains that but I didn't find. 我对此感到非常困惑,因此我尝试搜索很多东西来解释这一点,但没有找到。

this is the config.xml code : 这是config.xml代码:

<resources>
<!-- Watson Conversation Service Credentials -->
<string name="workspace_id">/string>
<string name="conversation_username"></string>
<string name="conversation_password"></string>

<!--Watson Speech-To-Text Service Credentials-->
<string name="STT_username"></string>
<string name="STT_password"></string>

<!--Watson Text-To-Speech Service Credentials-->
<string name="TTS_username"></string>
<string name="TTS_password"></string>

I want to know what is the things that I needs to write and how can I get it from the website. 我想知道我需要写些什么以及如何从网站上获得它。 I can't understand what is the required data well 我不明白需要什么数据

I think that what will be confusing you is that the .xml file has place holders for username and password credentials, and if you have created new instances of the services you will be seeing an IAM Key as credentials in the steps that go 我认为会让您感到困惑的是,.xml文件具有用于用户名和密码凭据的占位符,如果您创建了服务的新实例,那么在接下来的步骤中您将看到IAM密钥作为凭据

Go to the IBM Cloud Catalog and select Watson Assistant service > Lite plan under Watson. 转到IBM Cloud Catalog,然后在Watson下选择Watson Assistant服务> Lite计划。 Click Create. 单击创建。

Click Service credentials on the left pane and click New credential to add a new credential. 单击左窗格上的“服务凭据”,然后单击“新建凭据”以添加新的凭据。

Click View Credentials to see the credentials. 单击查看凭据以查看凭据。 Save the credentials in a text editor for quick reference. 将凭据保存在文本编辑器中以供快速参考。

So the question becomes - Has the sample app that you are using been tested/updated with IAM Keys? 因此,问题就变成了-您使用的示例应用程序是否已通过IAM密钥进行了测试/更新? You should raise a ticket against the GitHub repo that you were asked to clone. 您应该针对要求克隆的GitHub存储库出票。

You have to create three AI services 您必须创建三个AI服务

  • Watson Assistant 沃森助手
  • Speech to Text 语音转文字
  • Text to Speech 文字转语音

Once you create these services (under Dashboard ), click on each service to see Service credentials on the left pane. 一旦创建了这些服务(在Dashboard下),请单击每个服务以在左窗格上查看服务凭据 Click on View Credential or create a new credential. 单击查看凭据或创建新的凭据。

Pass the credentials (username or password) as shown below 如下所示传递凭据(用户名或密码)

 <string name="conversation_username">abcsld-1jdfjdf-jnhjh</string> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM