aiava-speech-to-text
v1.2.2
Published
Turn speech into text.
Downloads
4
Readme
speech-to-text
Turn your voice into strings.
Table of Contents
// Imports
import SpeechToText from "aiava-speech-to-text";
// New input.
const input: SpeechToText = new SpeechToText("en-US");
// Add listener to final event.
input.on("final", event => {
// Get the text.
const data: string = event.results[event.resultIndex][0].transcription;
// Log the text.
console.log(data);
});
// Add listener to end event.
input.on("end", event => input.start());
// Start the input
input.start();
Installation
yarn add aiava-speech-to-text
Or with NPM
npm i -S aiava-speech-to-text
Documentation
All the documentation is located on the Speech To Text documentation site.