UNPKG

alfi-assistant

Version:

AI-powered voice assistant for web navigation

17 lines (16 loc) 532 B
import { Page } from 'playwright'; export declare class VoiceService { private page; private openai; private isSpeaking; private currentAudio; private audioContext; constructor(page: Page); startRecording(): Promise<Buffer>; stopRecording(): Promise<void>; speak(text: string): Promise<void>; private fallbackSpeak; stopSpeaking(): Promise<void>; getAvailableVoices(): Promise<string[]>; setVoice(voice: "alloy" | "echo" | "fable" | "nova" | "onyx" | "shimmer"): Promise<void>; }