UNPKG

echogarden

Version:

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

6 lines (5 loc) 231 B
import { AlignmentPath } from './SpeechAlignment.js'; export declare function alignLevenshtein<T, U>(sequence1: T[], sequence2: U[], getSubstitutionCost: (a: T, b: U) => number): { path: AlignmentPath; pathCost: number; };