react-native-sherpa-onnx-offline-tts

0.1.5 • 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

2

Version

0.1.5

License

MIT

Unpacked Size

144 MB

Total Files

388

Last publish

Collaborators

  • kislay99