react-native-davoice-tts
Version:
tts library for React Native
17 lines (16 loc) • 573 B
TypeScript
export class DaVoiceTTSInstance {
constructor(instanceId?: string);
instanceId: string;
_emitter: NativeEventEmitter | null;
_subs: any[];
initTTS(modelOrConfig: any): Promise<any>;
speak(text: any, speakerId?: number): Promise<any>;
stopSpeaking(): Promise<any>;
destroy(): Promise<any>;
/**
* Subscribe to “finished speaking the last WAV of the latest synthesize_top call”.
* Returns an unsubscribe function.
*/
onFinishedSpeaking(callback: any): () => void;
}
import { NativeEventEmitter } from 'react-native';