@lokutor/sdk 1.1.10 → 1.1.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/index.d.mts CHANGED
@@ -119,12 +119,19 @@ declare class VoiceAgentClient {
119
119
  private messages;
120
120
  private visemeListeners;
121
121
  private wantVisemes;
122
+ private audioManager;
123
+ private enableAudio;
124
+ private isUserDisconnect;
125
+ private reconnecting;
126
+ private reconnectAttempts;
127
+ private maxReconnectAttempts;
122
128
  constructor(config: LokutorConfig & {
123
129
  prompt: string;
124
130
  voice?: VoiceStyle;
125
131
  language?: Language;
126
132
  visemes?: boolean;
127
133
  onVisemes?: (visemes: Viseme[]) => void;
134
+ enableAudio?: boolean;
128
135
  });
129
136
  /**
130
137
  * Connect to the Lokutor Voice Agent server
@@ -155,6 +162,15 @@ declare class VoiceAgentClient {
155
162
  * Disconnect from the server
156
163
  */
157
164
  disconnect(): void;
165
+ /**
166
+ * Toggles the microphone mute state (if managed by client)
167
+ * returns the new mute state
168
+ */
169
+ toggleMute(): boolean;
170
+ /**
171
+ * Gets the microphone volume amplitude 0-1 (if managed by client)
172
+ */
173
+ getAmplitude(): number;
158
174
  /**
159
175
  * Update the system prompt mid-conversation
160
176
  */
@@ -324,6 +340,7 @@ declare class BrowserAudioManager {
324
340
  private scriptProcessor;
325
341
  private analyserNode;
326
342
  private mediaStream;
343
+ private resampler;
327
344
  private nextPlaybackTime;
328
345
  private activeSources;
329
346
  private playbackQueue;
package/dist/index.d.ts CHANGED
@@ -119,12 +119,19 @@ declare class VoiceAgentClient {
119
119
  private messages;
120
120
  private visemeListeners;
121
121
  private wantVisemes;
122
+ private audioManager;
123
+ private enableAudio;
124
+ private isUserDisconnect;
125
+ private reconnecting;
126
+ private reconnectAttempts;
127
+ private maxReconnectAttempts;
122
128
  constructor(config: LokutorConfig & {
123
129
  prompt: string;
124
130
  voice?: VoiceStyle;
125
131
  language?: Language;
126
132
  visemes?: boolean;
127
133
  onVisemes?: (visemes: Viseme[]) => void;
134
+ enableAudio?: boolean;
128
135
  });
129
136
  /**
130
137
  * Connect to the Lokutor Voice Agent server
@@ -155,6 +162,15 @@ declare class VoiceAgentClient {
155
162
  * Disconnect from the server
156
163
  */
157
164
  disconnect(): void;
165
+ /**
166
+ * Toggles the microphone mute state (if managed by client)
167
+ * returns the new mute state
168
+ */
169
+ toggleMute(): boolean;
170
+ /**
171
+ * Gets the microphone volume amplitude 0-1 (if managed by client)
172
+ */
173
+ getAmplitude(): number;
158
174
  /**
159
175
  * Update the system prompt mid-conversation
160
176
  */
@@ -324,6 +340,7 @@ declare class BrowserAudioManager {
324
340
  private scriptProcessor;
325
341
  private analyserNode;
326
342
  private mediaStream;
343
+ private resampler;
327
344
  private nextPlaybackTime;
328
345
  private activeSources;
329
346
  private playbackQueue;