1.1.4 • Published 3 years ago

offline-tts v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

offline-tts

Installation

$ npm i offline-tts

Usage

speak(text, voice, speed, volume, pitch);

Defaults

  • voice = 0
  • speed = 1
  • volume = 1
  • pitch = 1

Example

import speak from "offline-tts";

// The text will be said with voice[2], a speed of 1.5, a volume of 0.8 and a pitch of 0.6
speak("Hello world, this is offline text to speech!", 2, 1.5, 0.8, 0.6);

React Example

import speak from "offline-tts";

function App() {
  return (
    <div className="App">
      <button
        onClick={() => {
          speak(
            // text
            "Hello world, this is offline text to speech!",
            // voice
            2,
            // speed
            1.5,
            // volume
            0.8,
            // pitch
            0.6
          );
        }}
      >
        speak
      </button>
    </div>
  );
}

Developed by Virej Dasani

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago