Skip to content

This example connects directly from your browser to the IBM Watson Cloud Speech to Text service and shows its output with Scarlett's WebGL Framework (MSDF) BMFont Text Rendering

License

Notifications You must be signed in to change notification settings

Apidcloud/scarlett-watson

Repository files navigation

Scarlett Watson

with-coffee with-water with-love

Live Demo:

Should work even in smartphones. Tested with Firefox and Google Chrome. Safari doesn't seem to handle the microphone permissions very well though.

This example connects directly from your browser to the IBM Watson Cloud Speech to Text service and shows its output with Scarlett's WebGL Framework (MSDF) BMFont Text Rendering.

Basic Setup (without Speech to Text)

  1. Install NodeJS (10.x or higher)
  2. Fork and clone the repo
  3. Install Yarn globally with $ npm i -g yarn or download it at their website
  4. $ yarn in the repo directory to install dependencies
  5. $ yarn build to bundle code
  6. $ yarn start to run express server
  7. Open localhost:5000 in the browser

IBM Watson Cloud Speech to Text

If you want to test IBM Watson's Speech to Text service, you'll need some additional steps:

  1. Create an account over https://www.ibm.com/watson/developer/ and generate credentials to Speech to Text service

  2. Create a .env file within the project folder and add the credentials through SPEECH_TO_TEXT_API_KEY and SPEECH_TO_TEXT_URL variables.

    Alternatively, you can go to server.js lines 25 and 45 and replace the values accordingly.

  3. $ yarn start to run express server

  4. Open localhost:5000 in the browser

  5. Clicking Activate button (when enabled) should now ask for your permission to use the microphone and render the output accordingly

Credits

  • The animation effect is based on this repo by Mattdesl.

About

This example connects directly from your browser to the IBM Watson Cloud Speech to Text service and shows its output with Scarlett's WebGL Framework (MSDF) BMFont Text Rendering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published