With this project, you can quickly build a Node-RED Starter app and use the Watson cognitive services for audio conversations. You’ll use the Watson Assistant service and its Car Dashboard Conversation workspace as a starting point to building your conversation app. You can create or import your own conversation workspace, but using this provided one will get you started quickly.
This app records your speech, sends it to the Watson services to process the request. It can handle requests for the weather, or you can send commands and receive responses through a conversation to turn on the lights or play music. The possibilities are endless. Show us what you'll build.
- Create an IBM Cloud account if you don't have an existing one: Sign up.
- Note: All services used in this repo are Lite plans. Don't forget to star this repo if you like it.
- Use Firefox or Chrome for better performance
To create your AI powered application, you must first deploy a Node-RED-starter application. Then you need to add different Watson AI services (Speech to text, Tone Analyzer, Assistant and Text to Speech) to this Node-RED application. Then you will deploy and connect these services. The last step before testing is adding the flow. Step 1 to 6 is done in IBM Cloud, Step 7-8 is done in Node-RED.
Here a short presentation of the components which you will make use of.
- Step 1 - Create an IBM Cloud app using the Node-RED Starter application.
- Step 2 - Deploy Speech-To-Text service from IBM Cloud Catalog.
- Step 3 - Deploy Tone Analyzer service from IBM Cloud Catalog.
- Step 4 - Deploy Assistant service from IBM Cloud Catalog.
- Step 5 - Deploy Text-To-Speech service from IBM Cloud Catalog.
- Step 6 - Connect all the deployed services to the node-red starter application, which is created in step 1.
- Step 7 - Back to Node-RED Starter application (as in Step 1) and install extra microphone and audio nodes.
- Step 8 - Import the flow and do some configuration.
- Step 9 - Done!! Now time to play with the flow
Make sure to have your device's microphone and speaker active for this project
- IBM Cloud
- IBM Cloud Documentation
- IBM Cloud Developers Community
- IBM Watson Internet of Things
- IBM Watson IoT Platform Developers Community
- IBM Watson Tone Analyzer
This code pattern is licensed under the Apache Software License, Version 2. Separate third party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 (DCO) and the Apache Software License, Version 2.