/** * @class Finnish lip-sync processor * @author Mika Suominen */ declare class LipsyncFi { private visemes; private visemeDurations; private specialDurations; private numbers; private symbols; private symbolsReg; /** * @constructor */ constructor(); /** * Convert the number string into Finnish words. * @param {string} x Number string * @return {string} The number in words in Finnish */ numberToFinnishWords(x: string): string; /** * Preprocess text: * - convert symbols to words * - convert numbers to words * - filter out characters that should be left unspoken * @param {string} s Text * @return {string} Pre-processsed text. */ preProcessText(s: { replace: (arg0: RegExp, arg1: string) => { (): any; new (): any; replace: { (arg0: RegExp, arg1: (symbol: any) => string): { (): any; new (): any; replace: { (arg0: RegExp, arg1: string): { (): any; new (): any; replace: { (arg0: RegExp, arg1: (x: any) => any): { (): any; new (): any; replaceAll: { (arg0: string, arg1: string): string; new (): any; }; }; new (): any; }; }; new (): any; }; }; new (): any; }; }; }): string; /** * Convert words to Oculus LipSync Visemes and durations * @param {string} w Words * @return {Object} Oculus LipSync Visemes and durations. */ wordsToVisemes(w: any): { words: any; visemes: any[]; times: any[]; durations: any[]; }; } export { LipsyncFi };