omnius 1.0.441 → 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 +15 -0
- 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;
|
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