@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
41 lines (40 loc) • 1.27 kB
TypeScript
/**
* Deepgram Speech-to-Text Handler
*
* Implementation of STT using Deepgram's Speech Recognition API.
*
* @module voice/providers/DeepgramSTT
*/
import type { TTSAudioFormat, STTHandler, STTLanguage, STTOptions, STTResult, TranscriptionSegment } from "../../types/index.js";
/**
* Deepgram Speech-to-Text Handler
*
* Supports real-time streaming, speaker diarization, and smart formatting.
*
* @see https://developers.deepgram.com/docs
*/
export declare class DeepgramSTT implements STTHandler {
private readonly apiKey;
private readonly baseUrl;
/**
* Maximum audio duration in seconds (2 hours)
*/
readonly maxAudioDuration = 7200;
/**
* Deepgram supports streaming
*/
readonly supportsStreaming = true;
constructor(apiKey?: string);
isConfigured(): boolean;
getSupportedFormats(): TTSAudioFormat[];
getSupportedLanguages(): Promise<STTLanguage[]>;
transcribe(audio: Buffer | ArrayBuffer, options?: STTOptions): Promise<STTResult>;
/**
* Streaming transcription using WebSocket
*/
transcribeStream(audioStream: AsyncIterable<Buffer>, options: STTOptions): AsyncIterable<TranscriptionSegment>;
/**
* Get MIME type for audio format
*/
private getMimeType;
}