@floe-ai/sdk 0.1.0-dev.27 → 0.1.0-dev.28

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.
@@ -18048,7 +18048,8 @@ class pc extends dh {
18048
18048
  const n = {
18049
18049
  clientKey: this.config.clientKey,
18050
18050
  origin: window.location.origin,
18051
- userInfo: this.config.userInfo
18051
+ userInfo: this.config.userInfo,
18052
+ textMode: this.textModeEnabled
18052
18053
  };
18053
18054
  this.pendingResumeSessionId && (n.resumeSessionId = this.pendingResumeSessionId, console.log(`[OnboardingSDK] Resuming session: ${this.pendingResumeSessionId}`), this.pendingResumeSessionId = null), (t = this.pipecatClient) == null || t.sendClientMessage("site_init", n);
18054
18055
  }
@@ -19567,7 +19568,9 @@ class pc extends dh {
19567
19568
  */
19568
19569
  toggleTextMode() {
19569
19570
  var t, n;
19570
- this.textModeEnabled = !this.textModeEnabled, this.textModeEnabled ? ((t = this.pipecatClient) == null || t.enableMic(!1), this.micEnabled = !1, console.log("[OnboardingSDK] ⌨️ Text mode enabled — mic muted")) : ((n = this.pipecatClient) == null || n.enableMic(!0), this.micEnabled = !0, console.log("[OnboardingSDK] 🎤 Voice mode enabled — mic unmuted"), this.isConnected && this.setupUserMicAnalysis());
19571
+ this.textModeEnabled = !this.textModeEnabled, this.textModeEnabled ? ((t = this.pipecatClient) == null || t.enableMic(!1), this.micEnabled = !1, console.log("[OnboardingSDK] ⌨️ Text mode enabled — mic muted")) : ((n = this.pipecatClient) == null || n.enableMic(!0), this.micEnabled = !0, console.log("[OnboardingSDK] 🎤 Voice mode enabled — mic unmuted"), this.isConnected && this.setupUserMicAnalysis()), this.pipecatClient && this.isConnected && this.pipecatClient.sendClientMessage("set_text_mode", {
19572
+ enabled: this.textModeEnabled
19573
+ });
19571
19574
  try {
19572
19575
  localStorage.setItem("floe_text_mode", String(this.textModeEnabled));
19573
19576
  } catch {