eyecontrol-text-to-speech

1.0.10 • Public • Published

eyecontrol-text-to-speech

A text to speech service for node.js / lambdas / nestjs

Motivation

Eyecontrol-text-to-speech is designed to be simple and universal text to speech service that uses microsoft azure.

Quick installation

    npm i eyecontrol-text-to-speech

Usage

Instantiante the logger

In order to use the web-logger, you need to instantiate it with different parameters:

import { getTtsService } from 'eyecontrol-text-to-speech';

let azureApiKey = this.configService.get<string>('AZURE_API_KEY');
this.ttsService = getTtsService({azureApiKey}); 

Usage

After you instantianted the eyecontrol-text-to-speech, you can call its function "synthesize". You need to call this function with 2 parameters: text and voice.

    let audio = await this.ttsService.synthesize(text, voice); 

Installation

Installing npm (node package manager)

  curl https://npmjs.org/install.sh | sh

Installing eyecontrol-web-logger

  [sudo] npm install eyecontrol-text-to-speech

Author: Eyecontrol

Contributors: [Ohad]

Readme

Keywords

none

Package Sidebar

Install

npm i eyecontrol-text-to-speech

Weekly Downloads

42

Version

1.0.10

License

ISC

Unpacked Size

4.01 kB

Total Files

3

Last publish

Collaborators

  • ohadtzuberi