Var speechToText = watson.speech_to_text(STT_CREDENTIALS) Var question_and_answer_healthcare = watson.question_and_answer(QA_CREDENTIALS) Var watson = require(‘watson-developer-cloud’) Using the Watson Node.js Wrapper, you can now easily instantiate Watson services in a single line of code. I updated the code from my previous example in 2 ways: 1) take advantage of the Watson Node.js Wrapper that makes interacting with Watson a lot easier and 2) to take advantage of these new services services. Once you’ve added them to your application, you can consume them easily within any of your applications. These services are available via a REST API. I simply added the Text To Speech and Speech To Text services to my existing Healthcare QA application that runs on Bluemix: IBM Bluemix Dashboard Just like the QA service, the new Text To Speech and Speech To Text services are now available in IBM Bluemix, so you can create a new application that leverages any of these services, or you can add them to any existing application. Warning: This is targeting desktop browsers – HTML5 Audio is a mess on mobile devices due to limited codec support and immature APIs. You can check where these features are supported with these links: getUserMedia If your browser doesn’t support the getUserMedia API or HTML5, then your mileage may vary. You can check out a video of it in action below: (Full source code available at the bottom of this post) So here it is: !īy leveraging the Watson services it can now run in any browser that supports getUserMedia (for speech recognition) and HTML5 (for speech playback). What’s a better way to show them off than by updating my existing app to leverage the new speech services? These two services enable you to quickly add Text-To-Speech or Speech-To-Text capability to any application. Last month the IBM Watson team released 5 new services, and guess what… Speech Recognition and Speech Synthesis are included! It’s a nice demo, but it always drove me nuts that it only worked in Chrome. It may work on previous versions but this is not officially supported.Back in November I released a demo application here on my blog showing the IBM Watson QA Service for cognitive/natural language computing connected to the Web Speech API in Google Chrome to have real conversational interaction with a web application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |