Files
2026-07-13 12:48:55 +08:00

14 lines
312 B
TypeScript

import nlp from 'compromise'
export interface SpeechMethods {
/** estimate spoken phenomes */
syllables(): String[][]
/** estimate pronounciation information */
soundsLike(): String[][]
}
/** extended compromise lib **/
declare const nlpSpeech: nlp.TypedPlugin<SpeechMethods>
export default nlpSpeech