tts library for React Native
npm install react-native-davoice-ttsNew tts package
example usage:
import { DaVoiceTTSInstance } from 'react-native-davoice-tts';
const tts = new DaVoiceTTSInstance();
await tts.initTTS({
model: '/path/to/model.onnx',
tokens: '/path/to/tokens.json',
espeak: '/path/to/phonemes',
voice: 'en_US',
});
await tts.speak('Hello world!', 0);