π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
import {
VOICE_OFFSCREEN_TARGET,
VoiceMessage,
type VoiceStartRequest,
type VoiceStartResponse,
voiceMessage,
} from '../voice/voice-message';
import { answered } from './answered';
export function startVoiceCapture(deviceId?: string): Promise<VoiceStartResponse> {
return answered<VoiceStartResponse>(
voiceMessage<VoiceStartRequest>({ type: VoiceMessage.VOICE_START, target: VOICE_OFFSCREEN_TARGET, deviceId }),
{ started: false, reason: 'unsupported', error: 'No microphone host is available' },
);
}