UNPKG

echogarden

Version:

An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.

30 lines (29 loc) 1.53 kB
export declare function includesAnyOf(str: string, substrings: string[]): boolean; export declare function indexOfAnyOf(str: string, substrings: string[]): number; export declare function startsWithAnyOf(str: string, prefixes: string[]): boolean; export declare function formatHMS(timeHMS: { hours: number; minutes: number; seconds: number; milliseconds: number; }, decimalSeparator?: string): string; export declare function formatMS(timeMS: { minutes: number; seconds: number; milliseconds: number; }, decimalSeparator?: string): string; export declare function formatIntegerWithLeadingZeros(num: number, minDigitCount: number): string; export declare function formatListWithQuotedElements(strings: string[], quoteSymbol?: string): string; export declare function getUTF32Chars(str: string): { utf32chars: string[]; utf16To32Mapping: number[]; }; export declare function containsInvalidCodepoint(str: string): boolean; export declare function splitAndPreserveSeparators(text: string, separatorRegex: RegExp): string[]; export declare function getTokenRepetitionScore(tokens: string[] | number[]): { longestMatchLength: number; longestCycleRepetitionCount: number; }; export declare function convertHtmlToText(html: string): Promise<any>; export declare function substituteCharactersUsingLookup(text: string, substitutionLookup: Record<string, string>): string; export declare function substituteStringUsingLookup(text: string, substitutionLookup: Record<string, string>): string;