GameSentenceMiner 2.8.51__py3-none-any.whl → 2.8.53__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/config_gui.py +4 -3
- GameSentenceMiner/configuration.py +1 -1
- GameSentenceMiner/ocr/owocr_helper.py +7 -5
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.51.dist-info → gamesentenceminer-2.8.53.dist-info}/top_level.txt +0 -0
GameSentenceMiner/config_gui.py
CHANGED
@@ -865,9 +865,10 @@ class ConfigApp:
|
|
865
865
|
# Define display names and their corresponding values
|
866
866
|
self.ffmpeg_audio_preset_options_map = {
|
867
867
|
"No Re-encode" : "",
|
868
|
-
"Simple
|
869
|
-
"
|
870
|
-
"Downmix to mono
|
868
|
+
"Simple Fade-in, Avoids Audio Clipping (Default)": "-c:a libopus -f opus -af \"afade=t=in:d=0.10\"",
|
869
|
+
"Simple loudness normalization (Simplest, Start Here)": "-c:a libopus -f opus -af \"loudnorm=I=-23:TP=-2,afade=t=in:d=0.10\"",
|
870
|
+
"Downmix to mono with normalization (Recommended(?))": "-c:a libopus -ac 1 -f opus -af \"loudnorm=I=-23:TP=-2:dual_mono=true,afade=t=in:d=0.10\"",
|
871
|
+
"Downmix to mono, 30kbps, normalized (Optimal(?))": "-c:a libopus -b:a 30k -ac 1 -f opus -af \"loudnorm=I=-23:TP=-2:dual_mono=true,afade=t=in:d=0.10\"",
|
871
872
|
"Custom": get_config().audio.custom_encode_settings,
|
872
873
|
}
|
873
874
|
|
@@ -133,7 +133,7 @@ class Audio:
|
|
133
133
|
extension: str = 'opus'
|
134
134
|
beginning_offset: float = 0.0
|
135
135
|
end_offset: float = 0.5
|
136
|
-
ffmpeg_reencode_options: str = ''
|
136
|
+
ffmpeg_reencode_options: str = '-c:a libopus -f opus -af \"afade=t=in:d=0.10\"'
|
137
137
|
external_tool: str = ""
|
138
138
|
anki_media_collection: str = ""
|
139
139
|
external_tool_enabled: bool = True
|
@@ -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,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
GameSentenceMiner/anki.py,sha256=bChJ1YU80muhvR8fjY9KAJEs0M0bpe-X_uMhjJBUC4k,14530
|
3
|
-
GameSentenceMiner/config_gui.py,sha256=
|
4
|
-
GameSentenceMiner/configuration.py,sha256=
|
3
|
+
GameSentenceMiner/config_gui.py,sha256=vwW569M-ZQPZEkprluDuKlPRoYTm2UMs2nPMDZtlorE,77472
|
4
|
+
GameSentenceMiner/configuration.py,sha256=EMqtnK9jHFmCht2vi3dsDRekidr3pIfdyZ-ycmH6aOg,22539
|
5
5
|
GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
|
6
6
|
GameSentenceMiner/ffmpeg.py,sha256=DX-2J1KZBKOPC8syR73YhDHwKIR4oNPrGuPl4l8is-4,18255
|
7
7
|
GameSentenceMiner/gametext.py,sha256=hcyZQ69B7xB5ZG85wLzM5au7ZPKxmeUXsmUD26oyk_0,5660
|
@@ -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
|
@@ -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.53.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
58
|
+
gamesentenceminer-2.8.53.dist-info/METADATA,sha256=7DmDJ5NwFHQE84gOI19yGtm6lpNuRVbXpNHjHRNjUF4,7218
|
59
|
+
gamesentenceminer-2.8.53.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
60
|
+
gamesentenceminer-2.8.53.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
61
|
+
gamesentenceminer-2.8.53.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
62
|
+
gamesentenceminer-2.8.53.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|