@hivegpt/hiveai-angular 0.0.458 → 0.0.460
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 +74 -11
- 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/daily-voice-client.service.js +74 -12
- package/fesm2015/hivegpt-hiveai-angular.js +73 -11
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.metadata.json +1 -1
- package/lib/components/voice-agent/services/daily-voice-client.service.d.ts +11 -5
- package/lib/components/voice-agent/services/daily-voice-client.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,13 +6,10 @@ import { Observable } from 'rxjs';
|
|
|
6
6
|
* - Create and manage Daily CallObject
|
|
7
7
|
* - Join Daily room using room_url
|
|
8
8
|
* - Handle mic capture + speaker playback
|
|
9
|
-
* -
|
|
10
|
-
*
|
|
9
|
+
* - Bot speaking detection via AnalyserNode on remote track (instant)
|
|
10
|
+
* - User speaking detection via active-speaker-change
|
|
11
11
|
* - Expose speaking$ (bot speaking), userSpeaking$ (user speaking), micMuted$
|
|
12
12
|
* - Expose localStream$ for waveform visualization (AudioAnalyzerService)
|
|
13
|
-
*
|
|
14
|
-
* Speaking state flips immediately when agent audio starts playing.
|
|
15
|
-
* If user speaks while bot is talking, state switches to listening.
|
|
16
13
|
*/
|
|
17
14
|
export declare class DailyVoiceClientService {
|
|
18
15
|
private ngZone;
|
|
@@ -21,6 +18,9 @@ export declare class DailyVoiceClientService {
|
|
|
21
18
|
private localSessionId;
|
|
22
19
|
/** Explicit playback of remote (bot) audio; required in some browsers. */
|
|
23
20
|
private remoteAudioElement;
|
|
21
|
+
/** AnalyserNode-based remote audio monitor for instant bot speaking detection. */
|
|
22
|
+
private remoteAudioContext;
|
|
23
|
+
private remoteSpeakingRAF;
|
|
24
24
|
private speakingSubject;
|
|
25
25
|
private userSpeakingSubject;
|
|
26
26
|
private micMutedSubject;
|
|
@@ -46,6 +46,12 @@ export declare class DailyVoiceClientService {
|
|
|
46
46
|
* Required in many browsers where Daily's internal playback does not output to speakers.
|
|
47
47
|
*/
|
|
48
48
|
private playRemoteTrack;
|
|
49
|
+
/**
|
|
50
|
+
* Monitor remote audio track energy via AnalyserNode.
|
|
51
|
+
* Polls at ~60fps and flips speakingSubject based on actual audio energy.
|
|
52
|
+
*/
|
|
53
|
+
private monitorRemoteAudio;
|
|
54
|
+
private stopRemoteAudioMonitor;
|
|
49
55
|
private stopRemoteAudio;
|
|
50
56
|
/** Set mic muted state. */
|
|
51
57
|
setMuted(muted: boolean): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daily-voice-client.service.d.ts","sourceRoot":"/Users/rohitthakur/hive-gpt/HiveAI-Packages/Angular/projects/hivegpt/eventsgpt-angular/src/","sources":["lib/components/voice-agent/services/daily-voice-client.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AAInD
|
|
1
|
+
{"version":3,"file":"daily-voice-client.service.d.ts","sourceRoot":"/Users/rohitthakur/hive-gpt/HiveAI-Packages/Angular/projects/hivegpt/eventsgpt-angular/src/","sources":["lib/components/voice-agent/services/daily-voice-client.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAC;AAInD;;;;;;;;;;GAUG;AACH,qBAGa,uBAAuB;IA6BtB,OAAO,CAAC,MAAM;IA5B1B,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,cAAc,CAAuB;I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