omnius 1.0.428 → 1.0.430
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 +703 -552
- package/dist/scripts/live-whisper.py +7 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -443,13 +443,18 @@ def main():
|
|
|
443
443
|
result = run_transcribe(model, amplify(samples))
|
|
444
444
|
text = _segment_filtered_text(result)
|
|
445
445
|
if text:
|
|
446
|
-
emit_transcript(
|
|
446
|
+
emit_transcript(
|
|
447
|
+
text,
|
|
448
|
+
is_final=False,
|
|
449
|
+
consensus=False if consensus_model is not None else None,
|
|
450
|
+
)
|
|
447
451
|
except Exception as e:
|
|
448
452
|
emit_error(f"Transcription error: {e}")
|
|
449
453
|
|
|
450
454
|
def transcribe_final(samples):
|
|
451
455
|
nonlocal last_final_text
|
|
452
456
|
if len(samples) < int(0.4 * SAMPLE_RATE):
|
|
457
|
+
emit_status("Whisper ignored very short utterance.")
|
|
453
458
|
return
|
|
454
459
|
samples = amplify(samples)
|
|
455
460
|
try:
|
|
@@ -466,6 +471,7 @@ def main():
|
|
|
466
471
|
|
|
467
472
|
text = _segment_filtered_text(result)
|
|
468
473
|
if not text:
|
|
474
|
+
emit_status("Whisper final produced no accepted speech text.")
|
|
469
475
|
return
|
|
470
476
|
if secondary is not None:
|
|
471
477
|
secondary_text = _segment_filtered_text(secondary)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.430",
|
|
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.430",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED