UNPKG

@picovoice/cheetah-react-native

Version:

Picovoice Cheetah React Native binding

15 lines (14 loc) 661 B
export type CheetahTranscript = { /** Any newly-transcribed speech. If none is available then an empty string is returned. */ transcript: string; /** Flag indicating if an endpoint has been detected. */ isEndpoint?: boolean; }; export type CheetahOptions = { /** Duration of endpoint in seconds. A speech endpoint is detected when there is a segment * of audio (with a duration specified herein) after an utterance without any speech in it. Set to `0` to disable * endpoint detection.*/ endpointDuration?: number; /** Set to `true` to enable automatic punctuation insertion. */ enableAutomaticPunctuation?: boolean; };