1.0.4 • Published 6 years ago

the-speech v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

the-speech

Build Status npm Version JS Standard

Speech <-> Text

Installation

$ npm install the-speech --save

Usage

'use strict'

const {TheSpeech} = require('the-speech')

async function tryExample () {
  const speech = new TheSpeech('secrets/google.secrets.json') // Secrets of google cloud api

  // Recognize text from voice audio file
  {
    const results = await speech.recognizeFromFile('var/records/voice01.wav')
    console.log(results)
  }
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links