An open API service indexing awesome lists of open source software.

https://github.com/needle-engine/kokoro-tts

Experimental kokoro-tts worker package
https://github.com/needle-engine/kokoro-tts

Last synced: about 2 months ago
JSON representation

Experimental kokoro-tts worker package

Awesome Lists containing this project

README

          

# Kokoro TTS & Needle Engine

This package contains a kokoro TTS worker and a small typed API for local text to speech.

[Live Example](https://needle-engine.github.io/kokoro-tts/)

### Usage

```ts
import { Voice } from "@needle-tools/kokoro-tts"

const myVoice = new Voice({
context: new AudioContext(),
voice: "af_jessica",
});
myVoice.say("Hello World");
```

To test it locally go to the [./examples](/examples/) directory and run `npm i && npm dev`, then open the local URL in your browser.