@adea-ai/voice 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -2
- package/dist/cli/helpers-cli.d.ts +2 -0
- package/dist/cli/helpers-cli.js +102 -0
- package/dist/contract/contract.d.ts +138 -0
- package/dist/contract/errors.d.ts +26 -0
- package/dist/contract/index.d.ts +9 -0
- package/dist/contract/index.js +54 -0
- package/dist/contract/session.d.ts +58 -0
- package/dist/contract/wire.d.ts +188 -0
- package/dist/desktop/desktop-voice.d.ts +152 -0
- package/dist/desktop/helper-lock.d.ts +83 -0
- package/dist/desktop/helper-process.d.ts +92 -0
- package/dist/desktop/index.d.ts +7 -0
- package/dist/desktop/index.js +1042 -0
- package/dist/index-9kerqn9r.js +150 -0
- package/dist/index-acm1yvvv.js +290 -0
- package/dist/index-r4hz8gk0.js +10 -0
- package/dist/index-rehs788p.js +42 -0
- package/dist/index-s270cw30.js +295 -0
- package/dist/index-tvz9s9nz.js +77 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +86 -0
- package/dist/settings/index.d.ts +5 -0
- package/dist/settings/index.js +34 -0
- package/dist/settings/settings.d.ts +163 -0
- package/dist/web/index.d.ts +15 -0
- package/dist/web/index.js +1287 -0
- package/dist/web/stt/speech-recognition.d.ts +105 -0
- package/dist/web/tts/phonon.d.ts +139 -0
- package/dist/web/tts/player.d.ts +115 -0
- package/dist/web/tts/system-voices.d.ts +122 -0
- package/dist/web/turns.d.ts +101 -0
- package/package.json +68 -4
- package/src/cli/helpers-cli.ts +119 -0
- package/src/contract/contract.ts +365 -0
- package/src/contract/errors.ts +98 -0
- package/src/contract/index.ts +9 -0
- package/src/contract/session.ts +65 -0
- package/src/contract/wire.ts +263 -0
- package/src/desktop/desktop-voice.ts +933 -0
- package/src/desktop/helper-lock.ts +375 -0
- package/src/desktop/helper-process.ts +401 -0
- package/src/desktop/index.ts +16 -0
- package/src/index.ts +7 -0
- package/src/settings/index.ts +5 -0
- package/src/settings/settings.ts +478 -0
- package/src/web/index.ts +15 -0
- package/src/web/stt/speech-recognition.ts +583 -0
- package/src/web/tts/phonon.ts +386 -0
- package/src/web/tts/player.ts +271 -0
- package/src/web/tts/system-voices.ts +401 -0
- package/src/web/turns.ts +224 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@adea-ai/voice/desktop`: the one desktop speech client every Adea app uses.
|
|
3
|
+
*
|
|
4
|
+
* It runs the pinned helpers the app bundles — `adea-voice-helper` (Apple speech on macOS),
|
|
5
|
+
* `adea-transcribe-helper` (transcribe.cpp) and `adea-tts-helper` (audio.cpp) — and exposes them
|
|
6
|
+
* as providers of the shared contract. Routing, availability reasons, error codes, cancellation and
|
|
7
|
+
* the privacy rules live here and in the helpers; an app only renders what this returns.
|
|
8
|
+
*
|
|
9
|
+
* Rules it keeps for every host:
|
|
10
|
+
* - a helper that is missing from the build is an explicit `providerNotRegistered`, never a
|
|
11
|
+
* silent substitute; a helper on another wire/contract major is refused;
|
|
12
|
+
* - one dictation at a time; a second is `busy`;
|
|
13
|
+
* - every dictation ends in exactly one terminal event (`final`, `failed` or `cancelled`), even if
|
|
14
|
+
* the helper crashes or stops answering (the process is then killed and restarted on demand);
|
|
15
|
+
* - no network: every desktop provider runs on the device, and model installs happen only through
|
|
16
|
+
* `installAssets`, which a person starts.
|
|
17
|
+
*/
|
|
18
|
+
import { type VoiceProviderAvailability, type VoiceProviderDescriptor, type VoiceProviderKind, type VoiceRoutingDecision, type VoiceRoutingPolicy } from "../contract/contract";
|
|
19
|
+
import type { PartialTranscript, TranscriptionSession } from "../contract/session";
|
|
20
|
+
import type { CombinedPermission, LocaleEvent, PermissionPart, TranscribeStatusEvent, VoiceEvent } from "../contract/wire";
|
|
21
|
+
import { type VoiceSettings } from "../settings/settings";
|
|
22
|
+
import { type HelperSpawner } from "./helper-process";
|
|
23
|
+
export declare const APPLE_ANALYZER_ID = "apple.analyzer";
|
|
24
|
+
export declare const APPLE_LEGACY_ID = "apple.legacy";
|
|
25
|
+
export declare const APPLE_VOICES_ID = "apple.system-voices";
|
|
26
|
+
export declare const TRANSCRIBE_CPP_ID = "transcribe.cpp";
|
|
27
|
+
export declare const AUDIO_CPP_ID = "audio.cpp";
|
|
28
|
+
export type DesktopOS = "darwin" | "win32" | "linux";
|
|
29
|
+
/**
|
|
30
|
+
* The SDK-wide desktop table (docs/provider-contract.md, "Default matrix"). transcribe.cpp is the
|
|
31
|
+
* one optional desktop STT engine on macOS: a person selects it, it is never a silent fallback.
|
|
32
|
+
*/
|
|
33
|
+
export declare function desktopRoutingPolicy(os: DesktopOS): VoiceRoutingPolicy;
|
|
34
|
+
export declare const DESKTOP_DESCRIPTORS: Readonly<Record<string, VoiceProviderDescriptor>>;
|
|
35
|
+
export interface DesktopHelperPaths {
|
|
36
|
+
/** `adea-voice-helper` (macOS). `null`/absent: not in this build. */
|
|
37
|
+
readonly voice?: string | null;
|
|
38
|
+
/** `adea-transcribe-helper`. */
|
|
39
|
+
readonly transcribe?: string | null;
|
|
40
|
+
/** `adea-tts-helper`. */
|
|
41
|
+
readonly tts?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export interface DesktopVoiceOptions {
|
|
44
|
+
readonly helpers: DesktopHelperPaths;
|
|
45
|
+
readonly os?: DesktopOS;
|
|
46
|
+
readonly spawn?: HelperSpawner;
|
|
47
|
+
/** Extra environment for the helpers (never secrets: the helpers need none). */
|
|
48
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
49
|
+
readonly log?: (message: string) => void;
|
|
50
|
+
/** A dictation never runs longer than this. Default 75 s (the helper's own cap is 60 s). */
|
|
51
|
+
readonly maxListenMs?: number;
|
|
52
|
+
/** After `end`/`cancel`, how long the helper gets to send the terminal event. Default 5 s. */
|
|
53
|
+
readonly terminalGraceMs?: number;
|
|
54
|
+
}
|
|
55
|
+
export type PermissionState = CombinedPermission;
|
|
56
|
+
export interface PermissionReport {
|
|
57
|
+
/** The combined answer for dictation. */
|
|
58
|
+
readonly state: PermissionState;
|
|
59
|
+
readonly microphone: PermissionPart | "unknown";
|
|
60
|
+
readonly speech: PermissionPart | "unknown";
|
|
61
|
+
}
|
|
62
|
+
export interface ProviderStatus {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly displayName: string;
|
|
65
|
+
readonly kind: VoiceProviderKind;
|
|
66
|
+
/** Whether this build bundles the provider's helper. */
|
|
67
|
+
readonly bundled: boolean;
|
|
68
|
+
readonly availability: VoiceProviderAvailability;
|
|
69
|
+
}
|
|
70
|
+
export interface VoiceCapabilities {
|
|
71
|
+
readonly os: DesktopOS;
|
|
72
|
+
readonly speechToText: VoiceRoutingDecision;
|
|
73
|
+
readonly textToSpeech: VoiceRoutingDecision;
|
|
74
|
+
readonly providers: readonly ProviderStatus[];
|
|
75
|
+
readonly permission: PermissionReport;
|
|
76
|
+
/** Local models transcribe.cpp can see (BYOM folders included). */
|
|
77
|
+
readonly localModels: TranscribeStatusEvent["models"];
|
|
78
|
+
}
|
|
79
|
+
export interface DictationRequest {
|
|
80
|
+
readonly settings: VoiceSettings;
|
|
81
|
+
/** BCP-47; defaults to the settings' locale, then the system language. */
|
|
82
|
+
readonly locale?: string;
|
|
83
|
+
readonly onPartial?: (partial: PartialTranscript & {
|
|
84
|
+
readonly text: string;
|
|
85
|
+
}) => void;
|
|
86
|
+
readonly signal?: AbortSignal;
|
|
87
|
+
}
|
|
88
|
+
/** A running dictation: the shared session contract plus the resolved route. */
|
|
89
|
+
export interface DesktopDictation extends TranscriptionSession {
|
|
90
|
+
readonly provider: string;
|
|
91
|
+
readonly locale: string;
|
|
92
|
+
/** Resolves with the final text; rejects with `VoiceError` (`cancelled`, `no_speech`, …). */
|
|
93
|
+
readonly result: Promise<string>;
|
|
94
|
+
}
|
|
95
|
+
export interface SpeakRequest {
|
|
96
|
+
readonly settings: VoiceSettings;
|
|
97
|
+
readonly text: string;
|
|
98
|
+
readonly locale?: string;
|
|
99
|
+
readonly voice?: string;
|
|
100
|
+
readonly rate?: number;
|
|
101
|
+
/** `replace` (default) stops what is playing; `after-current` queues. */
|
|
102
|
+
readonly queue?: "replace" | "after-current";
|
|
103
|
+
}
|
|
104
|
+
export type SpeechOutcome = "finished" | "cancelled";
|
|
105
|
+
export interface DesktopSpeech {
|
|
106
|
+
readonly id: string;
|
|
107
|
+
readonly provider: string;
|
|
108
|
+
/** Resolves when playback ends or is cancelled; rejects with `VoiceError` on failure. */
|
|
109
|
+
readonly done: Promise<SpeechOutcome>;
|
|
110
|
+
cancel(): Promise<void>;
|
|
111
|
+
}
|
|
112
|
+
export interface DesktopVoiceInfo {
|
|
113
|
+
readonly id: string;
|
|
114
|
+
readonly name: string;
|
|
115
|
+
readonly locale: string;
|
|
116
|
+
readonly quality: VoiceEvent["quality"];
|
|
117
|
+
readonly provider: string;
|
|
118
|
+
}
|
|
119
|
+
export interface LocaleAsset {
|
|
120
|
+
readonly locale: string;
|
|
121
|
+
readonly status: LocaleEvent["status"];
|
|
122
|
+
readonly canInstall: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface InstallRequest {
|
|
125
|
+
readonly locale: string;
|
|
126
|
+
readonly onProgress?: (fraction: number | null) => void;
|
|
127
|
+
readonly signal?: AbortSignal;
|
|
128
|
+
}
|
|
129
|
+
export interface DesktopVoice {
|
|
130
|
+
/** Which helpers this build bundles (synchronous, no process started). */
|
|
131
|
+
bundled(): Readonly<Record<"voice" | "transcribe" | "tts", boolean>>;
|
|
132
|
+
capabilities(settings: VoiceSettings, locale?: string): Promise<VoiceCapabilities>;
|
|
133
|
+
permission(options?: {
|
|
134
|
+
readonly request?: boolean;
|
|
135
|
+
}): Promise<PermissionReport>;
|
|
136
|
+
listen(request: DictationRequest): Promise<DesktopDictation>;
|
|
137
|
+
speak(request: SpeakRequest): Promise<DesktopSpeech>;
|
|
138
|
+
stopSpeaking(): Promise<void>;
|
|
139
|
+
voices(settings: VoiceSettings, locale?: string): Promise<readonly DesktopVoiceInfo[]>;
|
|
140
|
+
locales(): Promise<readonly LocaleAsset[]>;
|
|
141
|
+
installAssets(request: InstallRequest): Promise<void>;
|
|
142
|
+
/** Stops every helper. The instance can be used again; helpers restart on demand. */
|
|
143
|
+
dispose(): Promise<void>;
|
|
144
|
+
}
|
|
145
|
+
export declare function createDesktopVoice(options: DesktopVoiceOptions): DesktopVoice;
|
|
146
|
+
/**
|
|
147
|
+
* Apple's engine variant (`stt.model` `analyzer`/`legacy`) is a provider choice: with no explicit
|
|
148
|
+
* provider it pins that engine, so "Modern" or "Compatibility" in settings is what dictation runs.
|
|
149
|
+
*/
|
|
150
|
+
export declare function withModelChoice(settings: VoiceSettings): VoiceSettings;
|
|
151
|
+
/** Finalized + volatile text, with exactly one space between them where needed. */
|
|
152
|
+
export declare function joinTranscript(finalizedText: string, volatileText: string): string;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const HELPER_LOCK_SCHEMA = 1;
|
|
2
|
+
export declare const HELPER_NAMES: readonly ["adea-voice-helper", "adea-transcribe-helper", "adea-tts-helper"];
|
|
3
|
+
export type HelperName = (typeof HELPER_NAMES)[number];
|
|
4
|
+
export declare const HELPER_TARGETS: readonly ["macos-arm64", "macos-x64", "linux-x64", "linux-arm64", "windows-x64"];
|
|
5
|
+
export type HelperTarget = (typeof HELPER_TARGETS)[number];
|
|
6
|
+
/** A pinned artifact can never be larger than this; a bigger body is refused while streaming. */
|
|
7
|
+
export declare const MAX_HELPER_ARCHIVE_BYTES: number;
|
|
8
|
+
export interface HelperArtifactPin {
|
|
9
|
+
readonly file: string;
|
|
10
|
+
readonly sha256: string;
|
|
11
|
+
readonly executableSha256: string;
|
|
12
|
+
readonly bytes?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface HelperLock {
|
|
15
|
+
readonly schema: 1;
|
|
16
|
+
readonly version: string;
|
|
17
|
+
readonly base: string;
|
|
18
|
+
readonly helpers: Readonly<Partial<Record<HelperName, Readonly<Partial<Record<HelperTarget, HelperArtifactPin>>>>>>;
|
|
19
|
+
}
|
|
20
|
+
/** What a staged directory records about itself, written next to the helpers. */
|
|
21
|
+
export interface StagedHelperRecord {
|
|
22
|
+
readonly schema: 1;
|
|
23
|
+
readonly version: string;
|
|
24
|
+
readonly target: HelperTarget;
|
|
25
|
+
readonly helpers: Readonly<Partial<Record<HelperName, {
|
|
26
|
+
readonly sha256: string;
|
|
27
|
+
readonly executableSha256: string;
|
|
28
|
+
}>>>;
|
|
29
|
+
}
|
|
30
|
+
export declare const STAGED_RECORD_FILE = "voice-helpers.json";
|
|
31
|
+
export declare class HelperLockError extends Error {
|
|
32
|
+
constructor(message: string);
|
|
33
|
+
}
|
|
34
|
+
/** Validates a parsed lock. Every problem is a `HelperLockError`: a build must stop on it. */
|
|
35
|
+
export declare function validateHelperLock(value: unknown): HelperLock;
|
|
36
|
+
export declare function readHelperLock(path: string): HelperLock;
|
|
37
|
+
export declare function helperPin(lock: HelperLock, helper: HelperName, target: HelperTarget): HelperArtifactPin | undefined;
|
|
38
|
+
export declare function helperArtifactUrl(lock: HelperLock, helper: HelperName, target: HelperTarget): string;
|
|
39
|
+
/** The lock target for this machine (or `undefined` where no helper is published). */
|
|
40
|
+
export declare function currentHelperTarget(platform?: string, arch?: string): HelperTarget | undefined;
|
|
41
|
+
export declare function sha256File(path: string): string;
|
|
42
|
+
export interface StageHelpersOptions {
|
|
43
|
+
readonly lock: HelperLock;
|
|
44
|
+
readonly target: HelperTarget;
|
|
45
|
+
/** The directory the app bundles (each helper lands at `<outDir>/<helper>`). */
|
|
46
|
+
readonly outDir: string;
|
|
47
|
+
/** Which helpers must be staged; a pin missing for one is an error. */
|
|
48
|
+
readonly helpers: readonly HelperName[];
|
|
49
|
+
/** A cache of verified archives, keyed by sha256 (default: none). */
|
|
50
|
+
readonly cacheDir?: string;
|
|
51
|
+
/**
|
|
52
|
+
* A directory holding locally built helpers (`scripts/package-helper.sh` output) to use instead
|
|
53
|
+
* of downloading, for developing the helper itself. Its binaries are still checked for a
|
|
54
|
+
* compatible handshake, and the staged record says `local` so a release check refuses it.
|
|
55
|
+
*/
|
|
56
|
+
readonly localDir?: string;
|
|
57
|
+
readonly fetch?: typeof fetch;
|
|
58
|
+
/** Run `--version` on the staged executable (default: when the target matches this machine). */
|
|
59
|
+
readonly handshake?: boolean;
|
|
60
|
+
readonly log?: (message: string) => void;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Downloads, verifies and unpacks the pinned helpers into `outDir`, then records what was staged.
|
|
64
|
+
* Reuses an already staged helper whose digests match. Throws `HelperLockError` on any mismatch;
|
|
65
|
+
* a partially staged directory is removed so a build never packages it.
|
|
66
|
+
*/
|
|
67
|
+
export declare function stageVoiceHelpers(options: StageHelpersOptions): Promise<StagedHelperRecord>;
|
|
68
|
+
export interface VerifyStagedOptions {
|
|
69
|
+
readonly lock: HelperLock;
|
|
70
|
+
readonly target: HelperTarget;
|
|
71
|
+
readonly dir: string;
|
|
72
|
+
readonly helpers: readonly HelperName[];
|
|
73
|
+
/** Run `--version` (only possible on a matching machine). */
|
|
74
|
+
readonly handshake?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The release gate: the packaged directory holds exactly the pinned helpers. Throws
|
|
78
|
+
* `HelperLockError` naming the first difference; a local (unpinned) staging is refused.
|
|
79
|
+
*/
|
|
80
|
+
export declare function verifyStagedVoiceHelpers(options: VerifyStagedOptions): void;
|
|
81
|
+
export declare function readStagedRecord(dir: string): StagedHelperRecord | undefined;
|
|
82
|
+
/** Runs `<helper> --version` and refuses an incompatible or silent helper. */
|
|
83
|
+
export declare function assertHandshake(executable: string): void;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { VoiceError } from "../contract/errors";
|
|
2
|
+
import { type VersionEvent, type WireCommand, type WireEvent } from "../contract/wire";
|
|
3
|
+
/** The few process operations the connection needs; injectable for tests. */
|
|
4
|
+
export interface HelperChild {
|
|
5
|
+
/** Writes one line (the connection adds the newline). Throws once input is closed. */
|
|
6
|
+
write(data: string): void;
|
|
7
|
+
closeInput(): void;
|
|
8
|
+
onStdout(listener: (chunk: string) => void): void;
|
|
9
|
+
onStderr?(listener: (chunk: string) => void): void;
|
|
10
|
+
onExit(listener: (code: number | null, signal: string | null) => void): void;
|
|
11
|
+
kill(signal?: "SIGTERM" | "SIGKILL"): void;
|
|
12
|
+
}
|
|
13
|
+
export interface HelperSpawnOptions {
|
|
14
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
15
|
+
}
|
|
16
|
+
export type HelperSpawner = (path: string, args: readonly string[], options: HelperSpawnOptions) => HelperChild;
|
|
17
|
+
export interface HelperConnectionOptions {
|
|
18
|
+
readonly path: string;
|
|
19
|
+
readonly spawn: HelperSpawner;
|
|
20
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
21
|
+
/** How long `--version` may take. Default 5 s. */
|
|
22
|
+
readonly handshakeTimeoutMs?: number;
|
|
23
|
+
/** How long a plain request (status, voices) may take. Default 15 s. */
|
|
24
|
+
readonly requestTimeoutMs?: number;
|
|
25
|
+
/** After `quit`/stdin close, how long the process gets to exit before SIGKILL. Default 2 s. */
|
|
26
|
+
readonly exitGraceMs?: number;
|
|
27
|
+
/** Crashes tolerated inside `crashWindowMs` before the helper is reported unavailable. */
|
|
28
|
+
readonly maxCrashes?: number;
|
|
29
|
+
readonly crashWindowMs?: number;
|
|
30
|
+
readonly log?: (message: string) => void;
|
|
31
|
+
readonly now?: () => number;
|
|
32
|
+
}
|
|
33
|
+
type Listener = (event: WireEvent) => void;
|
|
34
|
+
/** A helper on another wire or contract major: refused for the life of the connection. */
|
|
35
|
+
export declare class IncompatibleHelperError extends VoiceError {
|
|
36
|
+
constructor(message: string);
|
|
37
|
+
}
|
|
38
|
+
/** Splits a stream of text chunks into lines with a hard bound per line. */
|
|
39
|
+
export declare class LineSplitter {
|
|
40
|
+
private readonly limit;
|
|
41
|
+
private buffer;
|
|
42
|
+
private discarding;
|
|
43
|
+
constructor(limit?: number);
|
|
44
|
+
push(chunk: string): string[];
|
|
45
|
+
}
|
|
46
|
+
/** A process-unique request id. */
|
|
47
|
+
export declare function nextRequestId(prefix?: string): string;
|
|
48
|
+
export declare class HelperConnection {
|
|
49
|
+
private readonly options;
|
|
50
|
+
private child;
|
|
51
|
+
private starting;
|
|
52
|
+
private handshake;
|
|
53
|
+
private readonly pending;
|
|
54
|
+
private readonly broadcast;
|
|
55
|
+
private crashes;
|
|
56
|
+
private disposed;
|
|
57
|
+
private incompatible;
|
|
58
|
+
constructor(options: HelperConnectionOptions);
|
|
59
|
+
/** The handshake the running helper answered, once it has started. */
|
|
60
|
+
get version(): VersionEvent | undefined;
|
|
61
|
+
/** Receives every event, correlated or not (speech-state, route changes). */
|
|
62
|
+
onEvent(listener: Listener): () => void;
|
|
63
|
+
/**
|
|
64
|
+
* Sends a command and resolves with the first event `isDone` accepts (also delivering every
|
|
65
|
+
* correlated event to `onEvent`). Rejects with a typed `VoiceError` on a helper `error` event
|
|
66
|
+
* (unless `isDone` accepts it), a crash, the timeout, or `signal`.
|
|
67
|
+
*/
|
|
68
|
+
request<T extends WireEvent>(command: WireCommand, isDone: (event: WireEvent) => event is T, options?: {
|
|
69
|
+
readonly timeoutMs?: number | null;
|
|
70
|
+
readonly onEvent?: Listener;
|
|
71
|
+
readonly signal?: AbortSignal;
|
|
72
|
+
}): Promise<T>;
|
|
73
|
+
/** Sends a command that has no correlated answer (speech-stop). */
|
|
74
|
+
send(command: WireCommand): Promise<void>;
|
|
75
|
+
/** Whether a process is running now. */
|
|
76
|
+
get running(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Stops the helper: `quit`, close stdin, then SIGTERM/SIGKILL after the grace period. Requests
|
|
79
|
+
* still waiting on this process are failed (`cancelled`): its exit is not reported as a crash,
|
|
80
|
+
* so nothing else would ever settle them.
|
|
81
|
+
*/
|
|
82
|
+
stop(): Promise<void>;
|
|
83
|
+
dispose(): Promise<void>;
|
|
84
|
+
private ensureStarted;
|
|
85
|
+
private start;
|
|
86
|
+
private versionHandshake;
|
|
87
|
+
private dispatch;
|
|
88
|
+
private failAll;
|
|
89
|
+
}
|
|
90
|
+
/** The default spawner: `node:child_process`, which Bun implements. */
|
|
91
|
+
export declare const nodeSpawner: HelperSpawner;
|
|
92
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@adea-ai/voice/desktop`: the Bun/Node client for the pinned desktop speech helpers. Import it
|
|
3
|
+
* from a desktop shell process only (it spawns processes); a renderer talks to the shell.
|
|
4
|
+
*/
|
|
5
|
+
export * from "./desktop-voice";
|
|
6
|
+
export { HelperConnection, IncompatibleHelperError, LineSplitter, nodeSpawner, type HelperChild, type HelperConnectionOptions, type HelperSpawnOptions, type HelperSpawner, } from "./helper-process";
|
|
7
|
+
export * from "./helper-lock";
|