Back to Blog
Ibm watson speech to text javascript7/26/2023 Double-click it and have it output msg.transcription. Double-click it and select US English.Ĭlick and drag a Debug node to your flow. Node-RED allows you to drag and drop Nodes from the left palette onto your flow canvas and wire them together to create programs.Ĭlick and drag a microphone node to your flow.Ĭlick and drag a Speech to Text node to your flow. Step 6 – Build the flows for the universal translator Search for play-audio, find the node-red-contrib-play-audio node, and click the Install button.Select the Install tab, and search for browser-utils and Install the node-red-contrib-browser-utils node. We can add nodes to the Node-RED palette that add these capabilities, such a great thing!Ĭlick the Node-RED Menu, and select Manage palette The universal translator that we are building needs a microphone to record your message and the ability to play the audio of the translation. Step 5 – Let's install Additional Node-RED Nodes The Node-RED Visual Programming Editor has a left side with a palette of nodes that you can drag onto the flow and wire nodes together to create a program. Click the Finish button to proceed:Ĭlick the Go to your Node-RED flow editor button to launch the Node-RED flow editor:Ĭlick the Person icon in the upper right corner, and Sign in with your new username and password credentials and you will get a screen like this: Use the setup wizard to secure your editor with a user name and password and to browse and add more nodes. Once the Green Running icon appears, click the View App URL link, a new browser tab opens to the Node-RED start page:Ī new browser tab opens to the Node-RED start page. The first time you start the Node-RED app, it will help you configure the visual programming editor. Node-RED is an open-source Node.js application that provides a visual programming editor that makes it easy to wire together flows. Step 4 – Launch your Node-RED app and open the Node-RED visual programming editor Once it's connected you will have those Services ( Speech to Text, Text to Speech, and Language Translator ) connected like this: The Applications Details opens, search for the Watson services that you created in the previous step and press the Connect button. In IBM Cloud Dashboard navigate to the Apps section and select Node-RED universal-translator (your apps unique name):.Step 3 – Let's connect the Watson AI Services to the Node-RED Starter Application In IBM Cloud Catalog, search for a translator, navigate to the AI category, select Language Translator, and click the Create button, I already had the one: Return to the AI category in the IBM Cloud Catalog, and select Text to Speech, and click the Create button: Select Speech to Text, and click the Create button. In IBM Cloud Catalog search for speech and navigate to the AI category: There are three Watson AI services, all available in the IBM Cloud Lite tier, needed to build a universal translator: We will create and bind these microservices to your Cloud Foundry application. You can add Watson AI microservices to your application as APIs, through instances that you can manage through credentials. Step 2 – Let's create the Watson AI service instances This process is called staging an application. The Node-RED Starter application will be provisioned in the IBM Cloud region that was specified. In the Selected Plan section, choose Lite. I have a Lite account and I just accepted the defaults. The Region, Organization, and Space fields will be pre-populated with valid options for your IBM Cloud account. Select the Starter Kits category, then select Node-RED Starter.Įnter a unique name for your application, it will be part of the application URL : Step 1 – Let's create a Node-RED Starter Appįollow these steps to create a Node-RED Starter application in IBM Cloud. This app can be completed using an IBM Cloud Lite account. Install additional Node-RED nodes and create flows that use the Watson services to create the spoken universal translator. Launch and configure the Node-RED visual programming editor. Create instances of the Watson services: Speech to Text, Text to Speech, and Language Translator and how to connect those services to your Node-Red app. The Node-RED Starter application includes a Node-RED Node.js web server and a Cloudant database to store the Node-RED flows.Ĭreate a Node-RED starter app running in IBM Cloud. We will build a universal translator by using a Node-RED Starter application to connect with those Watson AI services: Let's build a spoken universal translator using Node-RED and Watson AI services Top 5 reasons to use Node-RED can be found here. It's a programming tool for wiring together hardware devices, APIs, and online services in new and interesting ways.Īt the core of Node-RED is Node.js a JavaScript runtime environment built on Chrome's V8 JavaScript engine. Node-RED is a low-code programming environment for event-driven applications.
0 Comments
Read More
Leave a Reply. |