GameSentenceMiner 2.12.12.post1__py3-none-any.whl → 2.13.1__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.
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: GameSentenceMiner
3
+ Version: 2.13.1
4
+ Summary: A tool for mining sentences from games. Update: Overlay?
5
+ Author-email: Beangate <bpwhelan95@gmail.com>
6
+ License: MIT License
7
+ Project-URL: Homepage, https://github.com/bpwhelan/GameSentenceMiner
8
+ Project-URL: Repository, https://github.com/bpwhelan/GameSentenceMiner
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: requests~=2.32.3
16
+ Requires-Dist: watchdog~=5.0.2
17
+ Requires-Dist: DateTime~=5.5
18
+ Requires-Dist: pyperclip~=1.9.0
19
+ Requires-Dist: soundfile~=0.12.1
20
+ Requires-Dist: toml~=0.10.2
21
+ Requires-Dist: psutil~=6.0.0
22
+ Requires-Dist: rapidfuzz~=3.9.7
23
+ Requires-Dist: plyer~=2.1.0
24
+ Requires-Dist: keyboard~=0.13.5
25
+ Requires-Dist: websockets~=15.0.1
26
+ Requires-Dist: openai-whisper
27
+ Requires-Dist: stable-ts-whisperless
28
+ Requires-Dist: silero-vad~=5.1.2
29
+ Requires-Dist: ttkbootstrap~=1.10.1
30
+ Requires-Dist: dataclasses_json~=0.6.7
31
+ Requires-Dist: win10toast; sys_platform == "win32"
32
+ Requires-Dist: numpy==2.2.6
33
+ Requires-Dist: pystray
34
+ Requires-Dist: pywin32; sys_platform == "win32"
35
+ Requires-Dist: pygetwindow; sys_platform == "win32"
36
+ Requires-Dist: flask
37
+ Requires-Dist: groq
38
+ Requires-Dist: obsws-python~=1.7.2
39
+ Requires-Dist: matplotlib
40
+ Requires-Dist: sounddevice
41
+ Requires-Dist: google-genai
42
+ Dynamic: license-file
@@ -1,7 +1,7 @@
1
1
  GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  GameSentenceMiner/anki.py,sha256=FUwcWO0-arzfQjejQmDKP7pNNakhboo8InQ4s_jv6AY,19099
3
- GameSentenceMiner/config_gui.py,sha256=UCipZVAVupJeA8Kaa1tqTBsZpErNIIePJabqKh4SI7s,105693
4
- GameSentenceMiner/gametext.py,sha256=TYlkgM5-J2o8-WCKypSUitmKq_UcjOGpsZBINiR-mWk,10875
3
+ GameSentenceMiner/config_gui.py,sha256=x8H3HXoRlnfgiFczAoCe1wiCoQDP8MWV0v7am36q3Co,126479
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=hpFa33TSQnbOpzfucgnxp6vKqQ9AaQyLWQsdbuNYy1M,18741
7
7
  GameSentenceMiner/vad.py,sha256=-Q1KtDJnT8zRFeEc4LLyAECf07YOUM15UDRrnWkuDgo,18817
@@ -15,6 +15,9 @@ GameSentenceMiner/assets/icon32.png,sha256=Kww0hU_qke9_22wBuO_Nq0Dv2SfnOLwMhCyGg
15
15
  GameSentenceMiner/assets/icon512.png,sha256=HxUj2GHjyQsk8NV433256UxU9phPhtjCY-YB_7W4sqs,192487
16
16
  GameSentenceMiner/assets/icon64.png,sha256=N8xgdZXvhqVQP9QUK3wX5iqxX9LxHljD7c-Bmgim6tM,9301
17
17
  GameSentenceMiner/assets/pickaxe.png,sha256=VfIGyXyIZdzEnVcc4PmG3wszPMO1W4KCT7Q_nFK6eSE,1403829
18
+ GameSentenceMiner/locales/en_us.json,sha256=zv7qfr23G-os29yXfIE61_tYsTOwUjxF8ADH2YyJ0NA,24881
19
+ GameSentenceMiner/locales/ja_jp.json,sha256=PgAkkN7qmbtuRj5a3jHd9R9FNztamhmhRZysY6TwETU,26283
20
+ GameSentenceMiner/locales/zh_cn.json,sha256=h-YRSz2XN_TkymjkAH1MQ9KqGLE9_7Ru-N4yTqpm8_8,23615
18
21
  GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
22
  GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=Ezj-0k6Wo-una91FvYhMp6KGkRhWYihXzLAoh_Wu2xY,5329
20
23
  GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
@@ -30,7 +33,7 @@ GameSentenceMiner/owocr/owocr/run.py,sha256=Qm4srtzqj6tZhgicMME4SyjP6NP_2IQRN-AO
30
33
  GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
31
34
  GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
35
  GameSentenceMiner/util/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
33
- GameSentenceMiner/util/configuration.py,sha256=M9pMUykKhwlp5sEfIip9Ikakdl_im6ArItBWeCUcgaY,36199
36
+ GameSentenceMiner/util/configuration.py,sha256=hHGNGu0ybULyLwiBnIoTq4Fy1dC2ZxpnMFN5dfscwsc,37331
34
37
  GameSentenceMiner/util/electron_config.py,sha256=8LZwl-T_uF5z_ig-IZcm9QI-VKaD7zaHX9u6MaLYuo4,8648
35
38
  GameSentenceMiner/util/ffmpeg.py,sha256=t0tflxq170n8PZKkdw8fTZIUQfXD0p_qARa9JTdhBTc,21530
36
39
  GameSentenceMiner/util/gsm_utils.py,sha256=iRyLVcodMptRhkCzLf3hyqc6_RCktXnwApi6mLju6oQ,11565
@@ -63,10 +66,10 @@ GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
63
66
  GameSentenceMiner/web/templates/index.html,sha256=Gv3CJvNnhAzIVV_QxhNq4OD-pXDt1vKCu9k6WdHSXuA,215343
64
67
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
65
68
  GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
66
- GameSentenceMiner/wip/get_overlay_coords.py,sha256=_re9zfyuFryZAUKbMQ1LAfQBDIRUmq_1kniisN7J7xE,19793
67
- gamesentenceminer-2.12.12.post1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
68
- gamesentenceminer-2.12.12.post1.dist-info/METADATA,sha256=l2y5zcBUlGvyxYtdZ33p_o_zBn8M6JuVc1s0LHvRsEI,7075
69
- gamesentenceminer-2.12.12.post1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
- gamesentenceminer-2.12.12.post1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
71
- gamesentenceminer-2.12.12.post1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
72
- gamesentenceminer-2.12.12.post1.dist-info/RECORD,,
69
+ GameSentenceMiner/wip/get_overlay_coords.py,sha256=pxTuOicSsMMmOLRQH0-3FPoQqsolbncvIMgX2q8ArHc,19787
70
+ gamesentenceminer-2.13.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
71
+ gamesentenceminer-2.13.1.dist-info/METADATA,sha256=plYR4MOiOcRPSsEHvWAJ6HNOWz6tFxHyfBdrqxUHCnQ,1463
72
+ gamesentenceminer-2.13.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
73
+ gamesentenceminer-2.13.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
74
+ gamesentenceminer-2.13.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
75
+ gamesentenceminer-2.13.1.dist-info/RECORD,,
@@ -1,157 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: GameSentenceMiner
3
- Version: 2.12.12.post1
4
- Summary: A tool for mining sentences from games. Update: Overlay?
5
- Author-email: Beangate <bpwhelan95@gmail.com>
6
- License: MIT License
7
- Project-URL: Homepage, https://github.com/bpwhelan/GameSentenceMiner
8
- Project-URL: Repository, https://github.com/bpwhelan/GameSentenceMiner
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: requests~=2.32.3
16
- Requires-Dist: watchdog~=5.0.2
17
- Requires-Dist: DateTime~=5.5
18
- Requires-Dist: pyperclip~=1.9.0
19
- Requires-Dist: soundfile~=0.12.1
20
- Requires-Dist: toml~=0.10.2
21
- Requires-Dist: psutil~=6.0.0
22
- Requires-Dist: rapidfuzz~=3.9.7
23
- Requires-Dist: plyer~=2.1.0
24
- Requires-Dist: keyboard~=0.13.5
25
- Requires-Dist: websockets~=15.0.1
26
- Requires-Dist: openai-whisper
27
- Requires-Dist: stable-ts-whisperless
28
- Requires-Dist: silero-vad~=5.1.2
29
- Requires-Dist: ttkbootstrap~=1.10.1
30
- Requires-Dist: dataclasses_json~=0.6.7
31
- Requires-Dist: win10toast; sys_platform == "win32"
32
- Requires-Dist: numpy==2.2.6
33
- Requires-Dist: pystray
34
- Requires-Dist: pywin32; sys_platform == "win32"
35
- Requires-Dist: pygetwindow; sys_platform == "win32"
36
- Requires-Dist: flask
37
- Requires-Dist: groq
38
- Requires-Dist: obsws-python~=1.7.2
39
- Requires-Dist: matplotlib
40
- Requires-Dist: sounddevice
41
- Requires-Dist: google-genai
42
- Dynamic: license-file
43
-
44
- # GameSentenceMiner (GSM)
45
-
46
- An application designed to assist with language learning through games. Aiming to be the "[asbplayer](https://github.com/killergerbah/asbplayer)" for games.
47
-
48
- Short Demo (Watch this first): https://www.youtube.com/watch?v=FeFBL7py6HY
49
-
50
- Installation: https://youtu.be/h5ksXallc-o
51
-
52
- Discord: https://discord.gg/yP8Qse6bb8
53
-
54
- ## Features
55
-
56
- ### Anki Card Enhancement
57
-
58
- GSM significantly enhances your Anki cards with rich contextual information:
59
-
60
- * **Automated Audio Capture**: Automatically records the voice line associated with the text.
61
-
62
- * **Automatic Trim**: Some simple math around the time that the text event came in, in combination with a "Voice Activation Detection" (VAD) library gives us neatly cut audio.
63
- * **Manual Trim**: If Automatic voiceline trim is not perfect, it's possible to [open the audio in an external program](https://youtu.be/LKFQFy2Qm64) for trimming.
64
-
65
- * **Screenshot**: Captures a screenshot of the game at the moment the voice line is spoken.
66
-
67
- * **Multi-Line**: It's possible to capture multiple lines at once with sentence audio with GSM's very own Texthooker.
68
-
69
- * **AI Translation**: Integrates AI to provide quick translations of the captured sentence. Custom Prompts also supported. (Optional, Bring your own Key)
70
-
71
-
72
- #### Game Example (Has Audio)
73
-
74
- https://github.com/user-attachments/assets/df6bc38e-d74d-423e-b270-8a82eec2394c
75
-
76
- ---
77
-
78
- #### VN Example (Has Audio)
79
-
80
- https://github.com/user-attachments/assets/ee670fda-1a8b-4dec-b9e6-072264155c6e
81
-
82
- ### OCR
83
-
84
- GSM runs a fork of [OwOCR](https://github.com/AuroraWright/owocr/) to provide accurate text capture from games that do not have a hook. Here are some improvements GSM makes on stock OwOCR:
85
-
86
- * **Easier Setup**: With GSM's managed Python install, setup is only a matter of clicking a few buttons.
87
-
88
- * **Exclusion Zones**: Instead of choosing an area to OCR, you can choose an area to exclude from OCR. Useful if you have a static interface in your game and text appears randomly throughout.
89
-
90
- * **Two-Pass OCR**: To cut down on API calls and keep output clean, GSM features a "Two-Pass" OCR System. A Local OCR will be constantly running, and when the text on screen stabilizes, it will run a second, more accurate scan that gets sent to clipboard/WebSocket.
91
-
92
- * **Consistent Audio Timing**: With the two-pass system, we can still get accurate audio recorded and into Anki without the use of crazy offsets or hacks.
93
-
94
- * **More Language Support**: Stock OwOCR is hard-coded to Japanese, while in GSM you can use a variety of languages.
95
-
96
-
97
- https://github.com/user-attachments/assets/07240472-831a-40e6-be22-c64b880b0d66
98
-
99
-
100
-
101
- ### Game Launcher Capabilities (WIP)
102
-
103
- This is probably the feature I care least about, but if you are lazy like me, you may find this helpful.
104
-
105
- * **Launch**: GSM can launch your games directly, simplifying the setup process.
106
-
107
- * **Hook**: Streamlines the process of hooking your games (Agent).
108
-
109
- This feature simplifies the process of launching games and (potentially) hooking them, making the entire workflow more efficient.
110
-
111
- <img width="2560" height="1392" alt="GameSentenceMiner_1zuov0R9xK" src="https://github.com/user-attachments/assets/205769bb-3dd2-493b-9383-2d6e2ca05c2d" />
112
-
113
- ## Basic Requirements
114
-
115
- * **Anki card creation tool**: [Yomitan](https://github.com/yomidevs/yomitan), [JL](https://github.com/rampaa/JL), etc.
116
-
117
- * **A method of getting text from the game**: [Agent](https://github.com/0xDC00/agent), [Textractor](https://github.com/Artikash/Textractor), [LunaTranslator](https://github.com/HIllya51/LunaTranslator), GSM's OCR, etc.
118
-
119
- * **A game :)**
120
-
121
- ## Documentation
122
-
123
- For help with installation, setup, and other information, please visit the project's [Wiki](https://github.com/bpwhelan/GameSentenceMiner/wiki).
124
-
125
- ## FAQ
126
-
127
- ### How Does It Work?
128
-
129
- This is a common question, and understanding this process will help clarify any issues you might encounter while using GSM.
130
-
131
- 1. The beginning of the voice line is marked by a text event. This usually comes from Textractor, Agent, or another texthooker. GSM can listen for a clipboard copy and/or a WebSocket server (configurable in GSM).
132
-
133
- 2. The end of the voice line is detected using a Voice Activity Detection (VAD) library running locally. ([Example](https://github.com/snakers4/silero-vad))
134
-
135
- In essence, GSM relies on accurately timed text events to capture the corresponding audio.
136
-
137
- GSM provides settings to accommodate less-than-ideal hooks. However, if you experience significant audio inconsistencies, they likely stem from a poorly timed hook, loud background music, or other external factors, rather than GSM itself. The core audio trimming logic has been stable and effective for many users across various games.
138
-
139
- ## Contact
140
-
141
- If you encounter issues, please ask for help in my [Discord](https://discord.gg/yP8Qse6bb8) or create an issue here.
142
-
143
- ## Acknowledgements
144
-
145
- * [OwOCR](https://github.com/AuroraWright/owocr) for their outstanding OCR implementation, which I've integrated into GSM.
146
-
147
- * [chaiNNer](https://github.com/chaiNNer-org/chaiNNer) for the idea of installing Python within an Electron app.
148
-
149
- * [OBS](https://obsproject.com/) and [FFMPEG](https://ffmpeg.org/), without which GSM would not be possible.
150
-
151
- * [Renji's Texthooker](https://github.com/Renji-XD/texthooker-ui)
152
-
153
- * https://github.com/Saplling/transparent-texthooker-overlay
154
-
155
- ## Donations
156
-
157
- If you've found this or any of my other projects helpful, please consider supporting my work through [GitHub Sponsors](https://github.com/sponsors/bpwhelan), [Ko-fi](https://ko-fi.com/beangate), or [Patreon](https://www.patreon.com/GameSentenceMiner).