O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
InterConnect
2017
Create Your Own Voice
Assistant Using Watson and
IBM Bluemix
Vidyasagar S Machupalli
Technical Offering ...
“Computing will never rob man of his initiative
or replace the need for creative thinking. By
freeing man from the more me...
Watson Conversation
Create an application that
understands natural-
language input and uses
machine learning to
respond to...
4 3/7/17
• Users interact with your application
through the user interface that you
implement. For example, A simple
chat window or...
You create your free instance of
Watson services through IBM®
Bluemix®, so you need a free
Bluemix account to get started....
The natural-language processing for the
Conversation service happens inside a
workspace, which is a container for all of
t...
A workspace contains the following types
of artifacts:
Intents: An intent represents the purpose
of a user's input, such a...
Other Watson
Services
To enable Voice
9 3/7/17
Watson Text to
Speech Service
Watson Speech to
Text Service
10 3/7/17
Watson TTS and STT
11 3/7/17
A virtual assistant using Watson
Services on Bluemix in Minutes
Using any programming
language. For this demo we will
buil...
Creating Watson
Services on Bluemix &
Cloning the repo
13 3/7/17
• Once you log into Bluemix (https://bluemix.net), click on Catalog (Top Bar) and
click on Watson under Services (Left Pan...
• Open Terminal and run the below command
git clone https://github.com/IBM-Bluemix/chatbot-watson-
android.git
• Android C...
Coding on Android
Studio
16 3/7/17
• Launch Android Studio.
• Click on “Open an existing Android Studio Project” and point to the folder
(Chatbot-Watson-Andr...
• Click on the Conversation service -> Service Credentials (username &
password)
• Click on Launch Tool and import JSON fi...
• Navigate to file app/src/main/res/values/config.xml and provide conversation
service details which you created in the pr...
• Click on the Text to Speech service -> Service Credentials (username &
password)
• Navigate to file app/src/main/res/val...
• All the code required for your android app to talk to Watson services is
under MainActivity.Java
• You can find the Wats...
• You can have a conversation with the Bot. Type “Hi” and Click on the arrow
Icon.
• Tap on the message to listen to the v...
• You can choose to change the voice from available voices at Line 171 in
MainActivity.java
• Train your Chatbot by modify...
Docs,SDKs,Tools…
for app development
24 3/7/17
• Build with Watson -
https://www.ibm.com/watson/de
velopercloud/
• SDKS – Java, Node, Python,
Swift, Android, Unity
https...
26 3/7/17
Notices and disclaimers
Copyright © 2017 by International Business Machines Corporation (IBM).
No part of this d...
27 3/7/17
Notices and disclaimers
continued
Information concerning non-IBM products was obtained from the
suppliers of tho...
InterConnect
2017
28 3/7/17
Próximos SlideShares
Carregando em…5
×

Create Your Own Voice Assistant Using Watson and IBM Bluemix

854 visualizações

Publicada em

WatBot is a Voice-enabled Android Native ChatBot built using Watson Conversation, Speech-to-Text and Text-to-Speech Services on IBM Bluemix (open standards cloud platform for building, running, and managing apps and services).

Publicada em: Software
  • Seja o primeiro a comentar

Create Your Own Voice Assistant Using Watson and IBM Bluemix

  1. 1. InterConnect 2017 Create Your Own Voice Assistant Using Watson and IBM Bluemix Vidyasagar S Machupalli Technical Offering Manager, IBM 1 3/7/17
  2. 2. “Computing will never rob man of his initiative or replace the need for creative thinking. By freeing man from the more menial or repetitive forms of thinking, computers will actually increase the opportunities for the full use of human reason.” — Thomas J. Watson, Jr. 2 3/7/17
  3. 3. Watson Conversation Create an application that understands natural- language input and uses machine learning to respond to customers in a way that simulates a conversation between humans. 3 3/7/17
  4. 4. 4 3/7/17
  5. 5. • Users interact with your application through the user interface that you implement. For example, A simple chat window or a mobile app, or even a robot with a voice interface. • The application sends the user input to the Conversation service. • The application can interact with your back-end systems based on the user's intent and additional information. For example, answer question, open tickets, update account information, or place orders. There is no limit to what you can do. 5 3/7/17 How to use the service?
  6. 6. You create your free instance of Watson services through IBM® Bluemix®, so you need a free Bluemix account to get started. Bluemix is IBM's cloud platform. 6 3/7/17 Getting Started
  7. 7. The natural-language processing for the Conversation service happens inside a workspace, which is a container for all of the artifacts that define the conversation flow for an application. A single Conversation service instance can contain multiple workspaces. 7 3/7/17 Configuring a Conversation workspace
  8. 8. A workspace contains the following types of artifacts: Intents: An intent represents the purpose of a user's input, such as a question about business locations or a bill payment. Entities; An entity represents a term or object that is relevant to your intents and that provides a specific context for an intent. Dialog: A dialog is a branching conversation flow that defines how your application responds when it recognizes the defined intents and entities. 8 3/7/17 Configuring a Conversation workspace
  9. 9. Other Watson Services To enable Voice 9 3/7/17
  10. 10. Watson Text to Speech Service Watson Speech to Text Service 10 3/7/17 Watson TTS and STT
  11. 11. 11 3/7/17
  12. 12. A virtual assistant using Watson Services on Bluemix in Minutes Using any programming language. For this demo we will build for an Android device. 12 3/7/17 What you will create?
  13. 13. Creating Watson Services on Bluemix & Cloning the repo 13 3/7/17
  14. 14. • Once you log into Bluemix (https://bluemix.net), click on Catalog (Top Bar) and click on Watson under Services (Left Pane). • Select Conversation and give an unique service name (if you not sure leave the default name provided) and click on Create. • Repeat the steps and create Text to Speech and Speech to Text Watson Services on Bluemix. 14 3/7/17 Watson Services on Bluemix
  15. 15. • Open Terminal and run the below command git clone https://github.com/IBM-Bluemix/chatbot-watson- android.git • Android Code will be cloned to a local folder(chatbot-watson-android) on your machine. 15 3/7/17 Clone the repo
  16. 16. Coding on Android Studio 16 3/7/17
  17. 17. • Launch Android Studio. • Click on “Open an existing Android Studio Project” and point to the folder (Chatbot-Watson-Android) on your machine. • Let the Gradle do the dependency pulling and building for you. 17 3/7/17 Importing the project
  18. 18. • Click on the Conversation service -> Service Credentials (username & password) • Click on Launch Tool and import JSON file with Everything(intents, entities and Dialog) option from training folder of cloned project. • Click on Workspace three dots -> View Details-> Workspace ID 18 3/7/17 Connect to Watson Services – Watson Conversation
  19. 19. • Navigate to file app/src/main/res/values/config.xml and provide conversation service details which you created in the previous step. <!-- Watson Conversation Service Credentials --> <string name="workspace_id">Value</string> <string name="conversation_username"></string> <string name="conversation_password"></string> 19 3/7/17 Connect to Watson Services – Watson Conversation
  20. 20. • Click on the Text to Speech service -> Service Credentials (username & password) • Navigate to file app/src/main/res/values/config.xml and provide service details. • Repeat the above steps froe Speech to Text. <!--Watson Speech-To-Text Service Credentials--> <string name="STT_username">value</string> <string name="STT_password"></string> <!--Watson Text-To-Speech Service Credentials--> <string name="TTS_username"></string> <string name="TTS_password"></string> 20 3/7/17 Connect to Watson Services – Watson Text to Speech and Speech to Text
  21. 21. • All the code required for your android app to talk to Watson services is under MainActivity.Java • You can find the Watson SDK entries under Build.gradle(Module:app) -> Dependencies Click on “Run App” and select any virtual machine (emulator).If you don’t see any emulator, Create New Virtual Machine (API level 24 or above). 21 3/7/17 Run the app
  22. 22. • You can have a conversation with the Bot. Type “Hi” and Click on the arrow Icon. • Tap on the message to listen to the voice. • Tap on the mic button to record your message. Say “Hi, How are you?” and see the text in the message box. Click on the arrow Icon. 22 3/7/17 Test the app
  23. 23. • You can choose to change the voice from available voices at Line 171 in MainActivity.java • Train your Chatbot by modifying the Workspace’s Intents, Entities and Build the Dialog. 23 3/7/17 Additonally
  24. 24. Docs,SDKs,Tools… for app development 24 3/7/17
  25. 25. • Build with Watson - https://www.ibm.com/watson/de velopercloud/ • SDKS – Java, Node, Python, Swift, Android, Unity https://github.com/watson- developer-cloud 25 3/7/17 Watson Developer Cloud
  26. 26. 26 3/7/17 Notices and disclaimers Copyright © 2017 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM. U.S. Government Users Restricted Rights — use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM. Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. This document is distributed “as is” without any warranty, either express or implied. In no event shall IBM be liable for any damage arising from the use of this information, including but not limited to, loss of data, business interruption, loss of profit or loss of opportunity. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided. IBM products are manufactured from new parts or new and used parts. In some cases, a product may not be new and may have been previously installed. Regardless, our warranty terms apply.” Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice. Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary. References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business. Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation. It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law.
  27. 27. 27 3/7/17 Notices and disclaimers continued Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM expressly disclaims all warranties, expressed or implied, including but not limited to, the implied warranties of merchantability and fitness for a particular, purpose. The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right. IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management System™, FASP®, FileNet®, Global Business Services®, Global Technology Services®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli® Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.
  28. 28. InterConnect 2017 28 3/7/17

×