dsh-ai-subtitle 0.4.1 → 0.4.2
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/package.json +1 -1
- package/python/worker.py +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ai-subtitle",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Japanese video to bilingual JP/zh subtitles inside DeepSeek Harness: a self-installing ffmpeg, Python and Whisper runtime, cue editing and SRT export.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/python/worker.py
CHANGED
|
@@ -80,7 +80,7 @@ def speech_regions(audio, rate=16000, frame_ms=20, min_speech=0.18, min_gap=0.45
|
|
|
80
80
|
return result
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
def split_long(audio, start_s, end_s, rate=16000, limit=
|
|
83
|
+
def split_long(audio, start_s, end_s, rate=16000, limit=12.0):
|
|
84
84
|
"""Split a region longer than the model window at its quietest frame."""
|
|
85
85
|
if end_s - start_s <= limit:
|
|
86
86
|
return [(start_s, end_s)]
|