/** * Leaper Agent – Voice Mode * Audio recording, speech-to-text, and voice conversation mode. */ import type { ToolDefinition } from './registry.js'; export type AudioEnvironment = 'local' | 'ssh' | 'wsl' | 'docker' | 'termux' | 'headless'; export interface AudioEnvironmentInfo { env: AudioEnvironment; has_microphone: boolean; has_speaker: boolean; tts_player?: string; details: string; } export interface RecordingOptions { duration_seconds?: number; sample_rate?: number; channels?: number; output_path?: string; silence_timeout?: number; } export interface RecordingResult { success: boolean; file_path?: string; duration_ms?: number; error?: string; } export interface TranscribeLocalOptions { file_path: string; language?: string; } export interface VoiceModeResult { success: boolean; transcript?: string; error?: string; } export declare function detectAudioEnvironment(): Promise; export declare function checkVoiceRequirements(): Promise<{ ok: boolean; missing: string[]; details: string; }>; export declare function playBeep(frequency?: number, duration_ms?: number): Promise; export declare function playAudioFile(filePath: string): Promise; export declare function recordAudio(opts?: RecordingOptions): Promise; export declare function isHallucination(text: string): boolean; export declare function startVoiceSession(opts?: RecordingOptions): Promise; export declare const voiceModeTool: ToolDefinition; //# sourceMappingURL=voice-mode.d.ts.map