react-native-sherpa-onnx-offline-tts
v0.2.1
Published
This module is wrapper over sherpa onnx for tts
Downloads
285
Readme
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