Code Monkey home page Code Monkey logo

nexmo-asr-deno-demo's Introduction

Speech Translation Voice App with Vonage Automatic Speech Recognition

Contributor Covenant MIT licensed

This is a voice application written in TypeScript and running on Deno that uses Vonage Automatic Speech Recognition (ASR) to convert the caller's spoken words into text. The text is then sent to Microsoft Azure Spech Translation service to translate into a randomly chosen second language. The original English text and the newly translated text along with identifying its language name is spoken back to the caller.

Prerequisites

Installation

To install this application:

  • Clone this repository locally
  • Change into the directory of the app on your machine

Usage

Running Locally

To use this application:

  • Set up a Nexmo account
  • Purchase a Nexmo phone number
  • Start your ngrok server from the command line
  • Update your number's webhook address in the Nexmo Dashboard to your ngrok URL
    • i.e. https://my-ngrok-url.ngrok.io/webhooks/event
  • Copy the .env.sample file to .env and fill in the values for the variables
    • AZURE_SUBSCRIPTION_KEY is your API key for the Microsoft Azure Speech Translation service
    • AZURE_ENDPOINT is your regionally specific endpoint to generate a Microsoft Azure JSON web token for authentication
    • VONAGE_ASR_WEBHOOK is your externally accessible webhook URL to receive the text back from the Vonage ASR service
  • Run the Deno server by executing the following command from inside the project folder: deno run --allow-read --allow-env --allow-net server.ts
  • Call your Nexmo provisioned phone number and follow the instructions on the call

License

This project is under the MIT License

nexmo-asr-deno-demo's People

Contributors

alexlakatos avatar hummusonrails avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.