UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

13 lines (12 loc) • 650 B
/** * Word timings for corrected text. The engine timed the words it wrote; a * rewrite changes them (spelling, script, punctuation), so the timings are * carried over: one for one when the word count is unchanged, else spread * over the same span in proportion to each word's length. Speaker labels are * kept only where every source word agrees. * * @module voice/correction/align */ import type { WordTiming } from "../../types/index.js"; /** `words` re-timed onto the words of `text`; empty when there is nothing to align. */ export declare function alignWordsToText(words: readonly WordTiming[] | undefined, text: string): WordTiming[];