GameSentenceMiner 2.13.4.post1__py3-none-any.whl → 2.13.5__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_area_selector.py +2 -2
- GameSentenceMiner/owocr/owocr/run.py +2 -1
- GameSentenceMiner/vad.py +11 -3
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/top_level.txt +0 -0
@@ -105,7 +105,7 @@ class ScreenSelector:
|
|
105
105
|
|
106
106
|
def scale_down_width_height(self, width, height):
|
107
107
|
if width == 0 or height == 0:
|
108
|
-
return
|
108
|
+
return width, height
|
109
109
|
aspect_ratio = width / height
|
110
110
|
if aspect_ratio > 2.66:
|
111
111
|
# Ultra-wide (32:9) - use 1920x540
|
@@ -131,7 +131,7 @@ class ScreenSelector:
|
|
131
131
|
else:
|
132
132
|
# Default/fallback - use original resolution
|
133
133
|
print(f"Unrecognized aspect ratio {aspect_ratio}. Using original resolution.")
|
134
|
-
return
|
134
|
+
return width, height
|
135
135
|
|
136
136
|
def _find_target_window(self):
|
137
137
|
try:
|
@@ -878,7 +878,7 @@ class OBSScreenshotThread(threading.Thread):
|
|
878
878
|
else:
|
879
879
|
# Default fallback - use original resolution
|
880
880
|
logger.info("Using default aspect ratio scaling (original resolution).")
|
881
|
-
return
|
881
|
+
return width, height
|
882
882
|
|
883
883
|
def run(self):
|
884
884
|
global last_image
|
@@ -888,6 +888,7 @@ class OBSScreenshotThread(threading.Thread):
|
|
888
888
|
def init_config(source=None, scene=None):
|
889
889
|
obs.update_current_game()
|
890
890
|
self.current_source = source if source else obs.get_active_source()
|
891
|
+
logger.info(f"Current OBS source: {self.current_source}")
|
891
892
|
self.source_width = self.current_source.get("sceneItemTransform").get("sourceWidth") or self.width
|
892
893
|
self.source_height = self.current_source.get("sceneItemTransform").get("sourceHeight") or self.height
|
893
894
|
if self.source_width and self.source_height:
|
GameSentenceMiner/vad.py
CHANGED
@@ -376,8 +376,8 @@ vad_processor = VADSystem()
|
|
376
376
|
# Test cases for all VADProcessors
|
377
377
|
def test_vad_processors():
|
378
378
|
logger.setLevel(logging.DEBUG)
|
379
|
-
test_audio = r"C:\Users\Beangate\GSM\
|
380
|
-
output_dir = r"C:\Users\Beangate\GSM\
|
379
|
+
test_audio = r"C:\Users\Beangate\GSM\GameSentenceMiner\GameSentenceMiner\test\tmpso7v0265.opus"
|
380
|
+
output_dir = r"C:\Users\Beangate\GSM\GameSentenceMiner\GameSentenceMiner\test\output"
|
381
381
|
os.makedirs(output_dir, exist_ok=True)
|
382
382
|
processors = [
|
383
383
|
(WhisperVADProcessor(), "after_splice_whisper.opus"),
|
@@ -396,12 +396,20 @@ def test_vad_processors():
|
|
396
396
|
|
397
397
|
get_config().vad.cut_and_splice_segments = False
|
398
398
|
get_config().vad.trim_beginning = True
|
399
|
+
get_config().vad.add_audio_on_no_results = True
|
399
400
|
for processor, out_name in processors:
|
400
401
|
logger.info("Testing Trim Audio with " + processor.vad_system_name)
|
401
402
|
out_path = os.path.join(output_dir, out_name.replace("after_splice_", "after_trim_"))
|
402
403
|
if os.path.exists(out_path):
|
403
404
|
os.remove(out_path)
|
404
|
-
processor.process_audio(test_audio, out_path, None)
|
405
|
+
result = processor.process_audio(test_audio, out_path, None)
|
406
|
+
print(result)
|
407
|
+
|
408
|
+
vad_system = VADSystem()
|
409
|
+
vad_system.init()
|
410
|
+
|
411
|
+
result = vad_system.trim_audio_with_vad(test_audio, os.path.join(output_dir, "after_vad.opus"), None)
|
412
|
+
print(result)
|
405
413
|
|
406
414
|
|
407
415
|
if __name__ == "__main__":
|
@@ -4,7 +4,7 @@ GameSentenceMiner/config_gui.py,sha256=x8H3HXoRlnfgiFczAoCe1wiCoQDP8MWV0v7am36q3
|
|
4
4
|
GameSentenceMiner/gametext.py,sha256=qR32LhXAo1_a4r01zd7Pm2Yj4ByYCw58u78JdFkSxh4,10939
|
5
5
|
GameSentenceMiner/gsm.py,sha256=fG_3z-l6ADtx8Au2b6u514_kCWPdwYE03_U7IVLiE3Y,26649
|
6
6
|
GameSentenceMiner/obs.py,sha256=alh8G-0vEWxV46WqgVsgNU5_PC5JNzyXJdmVetjiGRo,18819
|
7
|
-
GameSentenceMiner/vad.py,sha256
|
7
|
+
GameSentenceMiner/vad.py,sha256=zFReBMvNEEaQ_YEozCTCaMdV-o40FwtlxYRb17cYZio,19125
|
8
8
|
GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
GameSentenceMiner/ai/ai_prompting.py,sha256=iHkEx2pQJ-tEyejOgYy4G0DcZc8qvBugVL6-CQpPSME,26089
|
10
10
|
GameSentenceMiner/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -21,7 +21,7 @@ GameSentenceMiner/locales/zh_cn.json,sha256=h-YRSz2XN_TkymjkAH1MQ9KqGLE9_7Ru-N4y
|
|
21
21
|
GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=Ezj-0k6Wo-una91FvYhMp6KGkRhWYihXzLAoh_Wu2xY,5329
|
23
23
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
24
|
-
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=
|
24
|
+
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=tlzQp0uVT-OdM99IqycA58hBbVb4c8LdTAope2hUXWg,27319
|
25
25
|
GameSentenceMiner/ocr/owocr_helper.py,sha256=EDKDhmZ0kF1xNmw2obZwAdXj-L-zDK09JGZPTJBja-c,26523
|
26
26
|
GameSentenceMiner/ocr/ss_picker.py,sha256=0IhxUdaKruFpZyBL-8SpxWg7bPrlGpy3lhTcMMZ5rwo,5224
|
27
27
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
|
@@ -29,7 +29,7 @@ GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvB
|
|
29
29
|
GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
|
30
30
|
GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
|
31
31
|
GameSentenceMiner/owocr/owocr/ocr.py,sha256=NHo-sjE_ZGUjPzzJqMDmFs29xbIvvQQyCBRQ61PTyfo,62221
|
32
|
-
GameSentenceMiner/owocr/owocr/run.py,sha256=
|
32
|
+
GameSentenceMiner/owocr/owocr/run.py,sha256=ex0TZp3WTN2qTjrZ5D3Q-Gma4iZ0NPXGaHddTPIqRYs,68229
|
33
33
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
|
34
34
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
GameSentenceMiner/util/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
|
@@ -67,9 +67,9 @@ GameSentenceMiner/web/templates/index.html,sha256=Gv3CJvNnhAzIVV_QxhNq4OD-pXDt1v
|
|
67
67
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
68
68
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
69
69
|
GameSentenceMiner/wip/get_overlay_coords.py,sha256=nJRytHJwUBToXeAIkf45HP7Yv42YO-ILbP5h8GVeE2Q,19791
|
70
|
-
gamesentenceminer-2.13.
|
71
|
-
gamesentenceminer-2.13.
|
72
|
-
gamesentenceminer-2.13.
|
73
|
-
gamesentenceminer-2.13.
|
74
|
-
gamesentenceminer-2.13.
|
75
|
-
gamesentenceminer-2.13.
|
70
|
+
gamesentenceminer-2.13.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
71
|
+
gamesentenceminer-2.13.5.dist-info/METADATA,sha256=RHvswnzR9CzZXs1sBjfBUXuXWqSHR-jP_c-AvH5OcY8,1463
|
72
|
+
gamesentenceminer-2.13.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
73
|
+
gamesentenceminer-2.13.5.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
74
|
+
gamesentenceminer-2.13.5.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
75
|
+
gamesentenceminer-2.13.5.dist-info/RECORD,,
|
File without changes
|
{gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/entry_points.txt
RENAMED
File without changes
|
{gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{gamesentenceminer-2.13.4.post1.dist-info → gamesentenceminer-2.13.5.dist-info}/top_level.txt
RENAMED
File without changes
|