UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

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;