react-native-sherpa-onnx-offline-tts

0.2.1 • Public • Published

react-native-sherpa-onnx-offline-tts

This module is wrapper over sherpa onnx for tts

Installation

npm install react-native-sherpa-onnx-offline-tts

Usage

import TTSManager from 'react-native-sherpa-onnx-offline-tts';

// ...

// Initialize with a male voice model
TTSManager.initialize('male');

// Or initialize with a female voice model
TTSManager.initialize('female');

const text = "Hello, this is a test message.";
const speakerId = 0;
const speed = 1.0;

await TTSManager.generateAndPlay(text, speakerId, speed);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-sherpa-onnx-offline-tts

Weekly Downloads

272

Version

0.2.1

License

MIT

Unpacked Size

29.4 MB

Total Files

31

Last publish

Collaborators

  • kislay99