ttspeech
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

ttspeech

A Promise tts api, it depend on browser api window.speechSynthesis;

Install

you can install package in your dependencies

yarn add ttspeech
# or
pnpm add ttspeech

Usage

1. Simple usage

import { speck } from "ttspeech";

speck("hello world!");

// you can hear "hello world!"

2. Promise usage

import { speck } from "ttspeech";

(async () => {
  await speck("hello world!");
  window.alert("speech end~");
})();

Demo

git clone https://github.com/AFine970/ttspeech.git

pnpm install

cd /packages/example && pnpm dev

image.png

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.1
    1
  • 1.3.0
    0
  • 1.2.0
    0
  • 1.1.0
    0

Package Sidebar

Install

npm i ttspeech

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

4.69 kB

Total Files

5

Last publish

Collaborators

  • afine970