@floe-ai/sdk 0.1.0-dev.36 → 0.1.0-dev.37
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-sdk/floe-sdk.es.js +902 -835
- package/dist-sdk/floe-sdk.es.js.map +1 -1
- package/dist-sdk/floe-sdk.iife.js +36 -36
- package/dist-sdk/floe-sdk.iife.js.map +1 -1
- package/dist-sdk/floe-sdk.umd.js +36 -36
- package/dist-sdk/floe-sdk.umd.js.map +1 -1
- package/dist-sdk/index.d.ts +23 -0
- package/package.json +1 -1
package/dist-sdk/index.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ declare class OnboardingSDK extends EventEmitter {
|
|
|
140
140
|
private hasSkippedOnboarding;
|
|
141
141
|
private _isMinimized;
|
|
142
142
|
private textModeEnabled;
|
|
143
|
+
private micPermissionDenied;
|
|
143
144
|
private planProgress;
|
|
144
145
|
constructor(config: SDKConfig, logger?: Logger);
|
|
145
146
|
/**
|
|
@@ -175,6 +176,28 @@ declare class OnboardingSDK extends EventEmitter {
|
|
|
175
176
|
* so it works in both voice and text modes.
|
|
176
177
|
*/
|
|
177
178
|
private setupAudioPlayback;
|
|
179
|
+
/**
|
|
180
|
+
* Initialize devices on `client`, retrying with mic disabled if the browser
|
|
181
|
+
* denies the microphone permission. On a mic permission error the method:
|
|
182
|
+
* - sets textModeEnabled/micPermissionDenied/micEnabled
|
|
183
|
+
* - persists the preference to localStorage
|
|
184
|
+
* - rebuilds PipecatClient with enableMic:false and calls initDevices again
|
|
185
|
+
* - returns the new client so the caller can replace this.pipecatClient
|
|
186
|
+
* Any non-permission error is rethrown unchanged.
|
|
187
|
+
*/
|
|
188
|
+
private initDevicesWithMicFallback;
|
|
189
|
+
/**
|
|
190
|
+
* Returns true when the error represents a mic permission denial or cancellation.
|
|
191
|
+
* Covers NotAllowedError (explicit deny), SecurityError (policy block), and
|
|
192
|
+
* AbortError (user dismissed/cancelled the browser prompt).
|
|
193
|
+
*/
|
|
194
|
+
private isMicPermissionError;
|
|
195
|
+
/**
|
|
196
|
+
* Switch to text mode automatically when mic permission is denied or cancelled.
|
|
197
|
+
* Mutes the mic in the Pipecat client (if already connected), persists the
|
|
198
|
+
* preference, and re-renders the UI so the text input is immediately visible.
|
|
199
|
+
*/
|
|
200
|
+
private enableTextModeFallback;
|
|
178
201
|
/**
|
|
179
202
|
* Setup user microphone analysis for waveform visualization
|
|
180
203
|
*/
|