An IBM Watson speech to text application in Angular and Node. Uses the speech-javascript-sdk library for speech to text services in web browsers.
-
Get IBM Watson service credentials
-
Sign up for a free IBM Cloud account or log in.
-
Go to the Watson Developer Services page.
-
Select Speech to Text and create a project.
-
Copy the credentials to authenticate to your service instance (will be used later in
.env
config).
-
-
Install the Angular CLI
npm install -g @angular/cli
-
Clone this repository
git clone https://github.com/stevengregory/angular-watson-voice.git cd angular-watson-voice
-
Install the npm packages
npm install
-
Configure environment settings
Create a
.env
file and place it in the root directory of the project. Add the following username & password and replace the values with your IBM Watson service credentials. No worries, the file is in the.gitignore
so it won't get pushed to the GitHub repository.SPEECH_TO_TEXT_USERNAME=your_ibm_project_username SPEECH_TO_TEXT_PASSWORD=your_ibm_project_password
-
Build the Angular app and launch the node server.
Running this command will start both the client app & token server and open the browser to
http://localhost:4200
.npm start