@absolutejs/meeting 0.0.1-beta.3 → 0.0.1-beta.4
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.js +3 -0
- package/dist/meeting.d.ts +3 -0
- package/dist/source.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,6 +70,9 @@ var createMeeting = async (options) => {
|
|
|
70
70
|
}
|
|
71
71
|
await options.source.speak(audio);
|
|
72
72
|
},
|
|
73
|
+
stopSpeaking: async () => {
|
|
74
|
+
await options.source.stopSpeaking?.();
|
|
75
|
+
},
|
|
73
76
|
start: () => options.source.start(),
|
|
74
77
|
stop: async (reason) => {
|
|
75
78
|
await options.source.stop(reason);
|
package/dist/meeting.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export type MeetingSession = {
|
|
|
31
31
|
* the formats each adapter accepts (Recall: mp3; Discord: pcm).
|
|
32
32
|
*/
|
|
33
33
|
speak: (audio: SpeakAudio) => Promise<void>;
|
|
34
|
+
/** Cut the bot's in-progress speech (barge-in). No-op when the source can't
|
|
35
|
+
* inject/stop audio or nothing is playing. */
|
|
36
|
+
stopSpeaking: () => Promise<void>;
|
|
34
37
|
getTranscript: () => MeetingTurn[];
|
|
35
38
|
getParticipants: () => MeetingParticipant[];
|
|
36
39
|
};
|
package/dist/source.d.ts
CHANGED
|
@@ -62,4 +62,10 @@ export type MeetingSource = {
|
|
|
62
62
|
* the platform has accepted it, for fire-and-forget transports).
|
|
63
63
|
*/
|
|
64
64
|
speak?: (audio: SpeakAudio) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Stop any in-progress `speak()` output immediately (barge-in / ducking).
|
|
67
|
+
* Optional — sources that can't inject audio (or can't stop it) omit it;
|
|
68
|
+
* `meeting.stopSpeaking()` then no-ops.
|
|
69
|
+
*/
|
|
70
|
+
stopSpeaking?: () => Promise<void>;
|
|
65
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/meeting",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.4",
|
|
4
4
|
"description": "Meeting-bot core for AbsoluteJS — join a call (via a source adapter), transcribe it live with the voice scribe, and surface diarized turns + participants for analysis",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|