Skip to content

stevengregory/angular-watson-voice

Repository files navigation

Angular Watson Voice

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.

Angular Watson Voice

Requirements

  1. Get IBM Watson service credentials

  2. Install the Angular CLI

    npm install -g @angular/cli

Getting Started

  1. Clone this repository

    git clone https://github.com/stevengregory/angular-watson-voice.git
    cd angular-watson-voice
  2. Install the npm packages

    npm install
  3. 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

Running the app locally

  1. 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