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

16 lines (15 loc) • 733 B
/** * Shared utility: infer a `TTSAudioFormat` from a file path. * * Used by the CLI generate/stream handlers (m2) to set `stt.format` so * `STTProcessor.transcribe()` can fail fast on incompatible provider/format * combinations (e.g. MP3 to azure-stt). Pulled into a single helper to * avoid duplicating the 11-element format list across two CLI handlers. */ import type { TTSAudioFormat } from "../types/index.js"; /** * Returns the `TTSAudioFormat` that matches the file extension of `path`, * or `undefined` when the path is missing or its extension isn't a known * audio format. The check is case-insensitive. */ export declare function inferAudioFormatFromPath(path: string | undefined): TTSAudioFormat | undefined;