This module is wrapper over sherpa onnx for tts
npm install react-native-sherpa-onnx-offline-tts
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);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library