1.0.4 • Published 6 years ago
the-speech v1.0.4
the-speech
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.