voiceAPIConfig
Defined in: AACVoiceAPI.ts:39
AACVoiceAPI is a facade class that provides a simplified interface to multiple underlying classes and modules related to voice processing.
This class wraps functionalities such as audio input handling, speech-to-text conversion, and command history management, exposing them through a single, easy-to-use API.
Examples
// Offline
const api = new AACVoiceAPI();
await api.initiate({
mode: 'offline',
modelUrl: 'models/whisper-tiny.bin',
language: 'en'
});
*
// Online
const api = new AACVoiceAPI();
await api.initiate({
mode: 'online',
backendUrl: 'http://localhost:8000'
});
@class
Properties
confidenceThreshold?
optional confidenceThreshold: number;
Defined in: AACVoiceAPI.ts:44
language?
optional language: string;
Defined in: AACVoiceAPI.ts:42
logConfidenceScores?
optional logConfidenceScores: boolean;
Defined in: AACVoiceAPI.ts:46
mode
mode: "offline" | "online";
Defined in: AACVoiceAPI.ts:40
modelUrl
modelUrl: string;
Defined in: AACVoiceAPI.ts:41
usePhoneticMatching?
optional usePhoneticMatching: boolean;
Defined in: AACVoiceAPI.ts:45
useSpeakerSeparation?
optional useSpeakerSeparation: boolean;
Defined in: AACVoiceAPI.ts:43