omnius 1.0.440 → 1.0.442
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 +18 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -608562,6 +608562,14 @@ var init_live_sensors = __esm({
|
|
|
608562
608562
|
});
|
|
608563
608563
|
this.cleanupLiveResources();
|
|
608564
608564
|
}
|
|
608565
|
+
/**
|
|
608566
|
+
* True when a live run is active (any capture loop is scheduled). Used to
|
|
608567
|
+
* decide whether opening the live view should auto-start the full pipeline
|
|
608568
|
+
* or leave an already-running session untouched.
|
|
608569
|
+
*/
|
|
608570
|
+
isRunning() {
|
|
608571
|
+
return Boolean(this.videoTimer || this.audioTimer || this.audioActivityTimer);
|
|
608572
|
+
}
|
|
608565
608573
|
cleanupLiveResources() {
|
|
608566
608574
|
this.clearLoopTimers();
|
|
608567
608575
|
this.videoGeneration++;
|
|
@@ -660854,6 +660862,7 @@ async function handleLiveCommand(ctx3, arg) {
|
|
|
660854
660862
|
if (sub2 === "sample" || sub2 === "hear") {
|
|
660855
660863
|
await ensureLiveInventory(manager);
|
|
660856
660864
|
manager.configure({ audioEnabled: true, asrEnabled: true, audioAnalysisEnabled: true });
|
|
660865
|
+
await ensureLiveStreamingAsr(ctx3, manager, true);
|
|
660857
660866
|
renderInfo("Sampling live audio...");
|
|
660858
660867
|
renderInfo(await manager.sampleAudioNow());
|
|
660859
660868
|
return;
|
|
@@ -661087,6 +661096,11 @@ async function handleCameraCommand(ctx3, arg) {
|
|
|
661087
661096
|
}
|
|
661088
661097
|
async function showLiveMenu(ctx3, manager) {
|
|
661089
661098
|
await ensureLiveInventory(manager);
|
|
661099
|
+
if (!manager.isRunning()) {
|
|
661100
|
+
attachLiveSinks(ctx3, manager, false);
|
|
661101
|
+
await ensureLiveStreamingAsr(ctx3, manager, true);
|
|
661102
|
+
renderInfo(manager.startRunMode({ agent: false, lowLatency: true, speech: false }));
|
|
661103
|
+
}
|
|
661090
661104
|
while (true) {
|
|
661091
661105
|
await refreshLiveResourceModelSnapshot().catch(() => void 0);
|
|
661092
661106
|
const snapshot = manager.getSnapshot();
|
|
@@ -661324,6 +661338,7 @@ Previewing microphone activity...`);
|
|
|
661324
661338
|
continue;
|
|
661325
661339
|
case "sample-audio":
|
|
661326
661340
|
manager.configure({ audioEnabled: true, asrEnabled: true, audioAnalysisEnabled: true });
|
|
661341
|
+
await ensureLiveStreamingAsr(ctx3, manager, true);
|
|
661327
661342
|
renderInfo("Sampling live audio...");
|
|
661328
661343
|
renderInfo(await manager.sampleAudioNow());
|
|
661329
661344
|
continue;
|
|
@@ -700357,7 +700372,9 @@ Rules:
|
|
|
700357
700372
|
};
|
|
700358
700373
|
this._onError = (err) => {
|
|
700359
700374
|
const msg = err instanceof Error ? err.message : String(err);
|
|
700360
|
-
this.
|
|
700375
|
+
if (this.verbose) {
|
|
700376
|
+
this.onStatus(`ASR error (voicechat continues without mic): ${msg.slice(0, 80)}`);
|
|
700377
|
+
}
|
|
700361
700378
|
if (this.active && !this._retryMicTimer) {
|
|
700362
700379
|
this._retryMicTimer = setTimeout(async () => {
|
|
700363
700380
|
this._retryMicTimer = null;
|
|
@@ -739976,11 +739993,6 @@ Respond concisely and safely. Remember: you are talking to the general public.`;
|
|
|
739976
739993
|
listenEng.on("level", (evt) => {
|
|
739977
739994
|
statusBar.setMicActivity(evt.speechActive, evt.levelDb);
|
|
739978
739995
|
});
|
|
739979
|
-
listenEng.on("info", (msg) => {
|
|
739980
|
-
if (/consensus rejected|loading whisper|whisper model loaded/i.test(msg)) {
|
|
739981
|
-
writeContent(() => renderInfo(`[voicechat/asr] ${msg}`));
|
|
739982
|
-
}
|
|
739983
|
-
});
|
|
739984
739996
|
}
|
|
739985
739997
|
const summaryRunner = {
|
|
739986
739998
|
injectUserMessage(content) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.442",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.442",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED