1.2.2 • Published 5 years ago

aiava-speech-to-text v1.2.2

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

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.

1.2.2

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago