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

15 lines (14 loc) • 703 B
/** * Speech level for the engines: a quiet utterance (a far-field speaker, a * low-gain microphone) is raised to a normal speech level before an engine * hears it. Recognisers are trained on speech near -20 dBFS and lose words, * and language-ID confidence, well below it. * * Gain only ever goes up, is capped, and is limited by the peak so nothing * clips; digital silence stays silence (zero times any gain is zero), so the * silence pad an engine relies on is untouched. * * @module voice/audioLevel */ /** `pcm` with its speech raised to the target level, or `pcm` itself when it is loud enough already. */ export declare function normalizeSpeechLevel(pcm: Float32Array): Float32Array;