@hivegpt/hiveai-angular 0.0.592 → 0.0.593
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/bundles/hivegpt-hiveai-angular.umd.js +9 -4
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/voice-agent/services/voice-agent.service.js +10 -5
- package/fesm2015/hivegpt-hiveai-angular.js +9 -4
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/voice-agent/services/voice-agent.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1576,12 +1576,16 @@
|
|
|
1576
1576
|
});
|
|
1577
1577
|
};
|
|
1578
1578
|
VoiceAgentService.prototype.onPipecatConnected = function () {
|
|
1579
|
+
var _a;
|
|
1579
1580
|
// Start the duration timer from the moment the session is live.
|
|
1580
1581
|
this.callStartTime = Date.now();
|
|
1581
1582
|
this.startDurationTimer();
|
|
1582
1583
|
this.callStateSubject.next('connected');
|
|
1583
1584
|
this.statusTextSubject.next('Connected');
|
|
1584
|
-
|
|
1585
|
+
// Preserve any mute action the user made during "connecting".
|
|
1586
|
+
var shouldBeMuted = this.isMicMutedSubject.value;
|
|
1587
|
+
(_a = this.pcClient) === null || _a === void 0 ? void 0 : _a.enableMic(!shouldBeMuted);
|
|
1588
|
+
this.isMicMutedSubject.next(shouldBeMuted);
|
|
1585
1589
|
this.startLocalMicAnalyzer();
|
|
1586
1590
|
};
|
|
1587
1591
|
VoiceAgentService.prototype.onPipecatDisconnected = function () {
|
|
@@ -1696,11 +1700,12 @@
|
|
|
1696
1700
|
});
|
|
1697
1701
|
};
|
|
1698
1702
|
VoiceAgentService.prototype.toggleMic = function () {
|
|
1699
|
-
if (!this.pcClient)
|
|
1700
|
-
return;
|
|
1701
1703
|
var nextMuted = !this.isMicMutedSubject.value;
|
|
1702
|
-
|
|
1704
|
+
// Reflect the user's intent immediately, even if connect is still in progress.
|
|
1703
1705
|
this.isMicMutedSubject.next(nextMuted);
|
|
1706
|
+
if (this.pcClient) {
|
|
1707
|
+
this.pcClient.enableMic(!nextMuted);
|
|
1708
|
+
}
|
|
1704
1709
|
if (nextMuted)
|
|
1705
1710
|
this.isUserSpeakingSubject.next(false);
|
|
1706
1711
|
};
|