@speechos/core 0.2.10 → 0.2.11
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/dist/backend.d.cts +1 -16
- package/dist/backend.d.ts +1 -16
- package/dist/index.cjs +236 -853
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +234 -831
- package/dist/index.js.map +1 -1
- package/dist/speechos.d.cts +10 -39
- package/dist/speechos.d.ts +10 -39
- package/dist/state.d.cts +11 -1
- package/dist/state.d.ts +11 -1
- package/dist/tts.d.cts +74 -0
- package/dist/tts.d.ts +74 -0
- package/dist/types.d.cts +42 -22
- package/dist/types.d.ts +42 -22
- package/dist/websocket.d.cts +5 -4
- package/dist/websocket.d.ts +5 -4
- package/package.json +2 -5
- package/dist/livekit.d.cts +0 -199
- package/dist/livekit.d.ts +0 -199
package/dist/backend.d.cts
CHANGED
|
@@ -12,30 +12,15 @@ export interface VoiceBackend {
|
|
|
12
12
|
startVoiceSession(options?: VoiceSessionOptions): Promise<void>;
|
|
13
13
|
stopVoiceSession(): Promise<string>;
|
|
14
14
|
requestEditText(originalText: string): Promise<string>;
|
|
15
|
-
requestCommand(commands: CommandDefinition[]): Promise<CommandResult
|
|
15
|
+
requestCommand(commands: CommandDefinition[]): Promise<CommandResult[]>;
|
|
16
16
|
disconnect(): Promise<void>;
|
|
17
17
|
isConnected(): boolean;
|
|
18
18
|
/** Get the last input text (transcript) from a command result */
|
|
19
19
|
getLastInputText?(): string | undefined;
|
|
20
|
-
prefetchToken?(): Promise<unknown>;
|
|
21
|
-
startAutoRefresh?(): void;
|
|
22
|
-
stopAutoRefresh?(): void;
|
|
23
|
-
invalidateTokenCache?(): void;
|
|
24
20
|
}
|
|
25
21
|
/**
|
|
26
22
|
* Get the active voice backend.
|
|
27
|
-
* Always returns WebSocket backend (LiveKit is legacy).
|
|
28
23
|
*
|
|
29
24
|
* @returns The websocket backend
|
|
30
25
|
*/
|
|
31
26
|
export declare function getBackend(): VoiceBackend;
|
|
32
|
-
/**
|
|
33
|
-
* Check if the current backend is LiveKit.
|
|
34
|
-
* @deprecated Always returns false - LiveKit is legacy
|
|
35
|
-
*/
|
|
36
|
-
export declare function isLiveKitBackend(): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Check if the current backend is WebSocket.
|
|
39
|
-
* @deprecated Always returns true - WebSocket is the only backend
|
|
40
|
-
*/
|
|
41
|
-
export declare function isWebSocketBackend(): boolean;
|
package/dist/backend.d.ts
CHANGED
|
@@ -12,30 +12,15 @@ export interface VoiceBackend {
|
|
|
12
12
|
startVoiceSession(options?: VoiceSessionOptions): Promise<void>;
|
|
13
13
|
stopVoiceSession(): Promise<string>;
|
|
14
14
|
requestEditText(originalText: string): Promise<string>;
|
|
15
|
-
requestCommand(commands: CommandDefinition[]): Promise<CommandResult
|
|
15
|
+
requestCommand(commands: CommandDefinition[]): Promise<CommandResult[]>;
|
|
16
16
|
disconnect(): Promise<void>;
|
|
17
17
|
isConnected(): boolean;
|
|
18
18
|
/** Get the last input text (transcript) from a command result */
|
|
19
19
|
getLastInputText?(): string | undefined;
|
|
20
|
-
prefetchToken?(): Promise<unknown>;
|
|
21
|
-
startAutoRefresh?(): void;
|
|
22
|
-
stopAutoRefresh?(): void;
|
|
23
|
-
invalidateTokenCache?(): void;
|
|
24
20
|
}
|
|
25
21
|
/**
|
|
26
22
|
* Get the active voice backend.
|
|
27
|
-
* Always returns WebSocket backend (LiveKit is legacy).
|
|
28
23
|
*
|
|
29
24
|
* @returns The websocket backend
|
|
30
25
|
*/
|
|
31
26
|
export declare function getBackend(): VoiceBackend;
|
|
32
|
-
/**
|
|
33
|
-
* Check if the current backend is LiveKit.
|
|
34
|
-
* @deprecated Always returns false - LiveKit is legacy
|
|
35
|
-
*/
|
|
36
|
-
export declare function isLiveKitBackend(): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Check if the current backend is WebSocket.
|
|
39
|
-
* @deprecated Always returns true - WebSocket is the only backend
|
|
40
|
-
*/
|
|
41
|
-
export declare function isWebSocketBackend(): boolean;
|