GameSentenceMiner 2.8.52__py3-none-any.whl → 2.8.54__py3-none-any.whl
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.
- GameSentenceMiner/ocr/owocr_helper.py +7 -5
- GameSentenceMiner/vad/vosk_helper.py +7 -7
- GameSentenceMiner/vad/whisper_helper.py +7 -7
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.52.dist-info → gamesentenceminer-2.8.54.dist-info}/top_level.txt +0 -0
@@ -320,12 +320,14 @@ def run_oneocr(ocr_config: OCRConfig, area=False):
|
|
320
320
|
screen_areas = []
|
321
321
|
if not ssonly:
|
322
322
|
for rect_config in ocr_config.rectangles:
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
323
|
+
if not rect_config.is_excluded:
|
324
|
+
coords = rect_config.coordinates
|
325
|
+
monitor_config = rect_config.monitor
|
326
|
+
screen_area = ",".join(str(c) for c in coords) if area else None
|
327
|
+
if screen_area:
|
328
|
+
screen_areas.append(screen_area)
|
328
329
|
exclusions = list(rect.coordinates for rect in list(filter(lambda x: x.is_excluded, ocr_config.rectangles)))
|
330
|
+
|
329
331
|
run.init_config(False)
|
330
332
|
run.run(read_from="screencapture" if not ssonly else "clipboard",
|
331
333
|
read_from_secondary="clipboard" if not ssonly else None,
|
@@ -132,13 +132,13 @@ def process_audio_with_vosk(input_audio, output_audio, game_line):
|
|
132
132
|
|
133
133
|
# Trim based on the first and last speech detected
|
134
134
|
start_time = voice_activity[0]['start'] if voice_activity else 0
|
135
|
-
if (game_line.next and len(voice_activity) > 1
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
else:
|
141
|
-
|
135
|
+
# if (game_line.next and len(voice_activity) > 1
|
136
|
+
# and voice_activity[-1]['start'] - get_config().audio.beginning_offset > len(input_audio) / 16000
|
137
|
+
# and (voice_activity[-1]['start'] - voice_activity[-2]['end']) > 5.0):
|
138
|
+
# end_time = voice_activity[-2]['end']
|
139
|
+
# logger.info("Using the second last timestamp for trimming")
|
140
|
+
# else:
|
141
|
+
end_time = voice_activity[-1]['end'] if voice_activity else 0
|
142
142
|
|
143
143
|
if get_config().vad.trim_beginning:
|
144
144
|
logger.info(f"VAD Trimmed Beginning of Audio to {start_time}")
|
@@ -79,13 +79,13 @@ def process_audio_with_whisper(input_audio, output_audio, game_line):
|
|
79
79
|
|
80
80
|
# Trim based on the first and last speech detected
|
81
81
|
start_time = voice_activity[0]['start'] if voice_activity else 0
|
82
|
-
if (game_line.next and len(voice_activity) > 1
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
else:
|
88
|
-
|
82
|
+
# if (game_line.next and len(voice_activity) > 1
|
83
|
+
# and voice_activity[-1]['start'] - get_config().audio.beginning_offset > len(input_audio) / 16000
|
84
|
+
# and (voice_activity[-1]['start'] - voice_activity[-2]['end']) > 5.0):
|
85
|
+
# end_time = voice_activity[-2]['end']
|
86
|
+
# logger.info("Using the second last timestamp for trimming")
|
87
|
+
# else:
|
88
|
+
end_time = voice_activity[-1]['end'] if voice_activity else 0
|
89
89
|
|
90
90
|
if get_config().vad.trim_beginning:
|
91
91
|
logger.info(f"VAD Trimmed Beginning of Audio to {start_time}")
|
@@ -27,7 +27,7 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
27
27
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=fEQ2o2NXksGRHpueO8c4TfAp75GEdAtAr1ngTFOsdpg,2257
|
28
28
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
29
29
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=Q8ETMHL7BKMA1mbtjrntDLyqCQB0lZ5T4RCZsodjH7Y,47186
|
30
|
-
GameSentenceMiner/ocr/owocr_helper.py,sha256=
|
30
|
+
GameSentenceMiner/ocr/owocr_helper.py,sha256=EMdq8jga3kKx8u19LSgqwnZIhR8_YDMqydACVzojUDo,17726
|
31
31
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
|
32
32
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
|
33
33
|
GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
|
@@ -38,8 +38,8 @@ GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSd
|
|
38
38
|
GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
GameSentenceMiner/vad/result.py,sha256=C08HsYH4qVjTRh_dvrWrskmXHJ950w0GWxPjGx_BfGY,275
|
40
40
|
GameSentenceMiner/vad/silero_trim.py,sha256=InYsCy29WjK5EIB4e-KYb91rdHLCc5ZGbKtn9W5WmZI,2021
|
41
|
-
GameSentenceMiner/vad/vosk_helper.py,sha256=
|
42
|
-
GameSentenceMiner/vad/whisper_helper.py,sha256=
|
41
|
+
GameSentenceMiner/vad/vosk_helper.py,sha256=3ea8P6SoXG2wOkqesFWPOsHfJNmyYTaQWsr_QLU-jZo,6467
|
42
|
+
GameSentenceMiner/vad/whisper_helper.py,sha256=H4bmEMgUXYl_CxpYUcDa2hWGUy4vOVXZBoWhh5fwvaY,4015
|
43
43
|
GameSentenceMiner/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
GameSentenceMiner/web/texthooking_page.py,sha256=t58PCfqwnJ197CtIUbGbE_cOyNkR81e4oi84VayTj5g,13497
|
45
45
|
GameSentenceMiner/web/static/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -54,9 +54,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
|
|
54
54
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
56
56
|
GameSentenceMiner/web/templates/utility.html,sha256=1vN3nK3IT-iNhMEj-k6JRz9uc6D87UUL9k7Bp2Espiw,16946
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
59
|
-
gamesentenceminer-2.8.
|
60
|
-
gamesentenceminer-2.8.
|
61
|
-
gamesentenceminer-2.8.
|
62
|
-
gamesentenceminer-2.8.
|
57
|
+
gamesentenceminer-2.8.54.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
58
|
+
gamesentenceminer-2.8.54.dist-info/METADATA,sha256=X0Z7tHSkYajYiuz7HggBwRxQz93YJAiLFVjlHl_bhsQ,7218
|
59
|
+
gamesentenceminer-2.8.54.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
60
|
+
gamesentenceminer-2.8.54.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
61
|
+
gamesentenceminer-2.8.54.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
62
|
+
gamesentenceminer-2.8.54.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|