GameSentenceMiner 2.14.18__py3-none-any.whl → 2.14.20__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.
@@ -101,7 +101,7 @@ def download_obs_if_needed():
101
101
  "[SimpleOutput]\n"
102
102
  f"FilePath={os.path.expanduser('~')}/Videos/GSM\n"
103
103
  "RecRB=true\n"
104
- "RecRBTime=60\n"
104
+ "RecRBTime=300\n"
105
105
  "RecRBSize=512\n"
106
106
  "RecRBPrefix=GSM\n"
107
107
  "RecAudioEncoder=opus\n"
GameSentenceMiner/vad.py CHANGED
@@ -150,9 +150,9 @@ class SileroVADProcessor(VADProcessor):
150
150
 
151
151
  def _detect_voice_activity(self, input_audio):
152
152
  from silero_vad import read_audio, get_speech_timestamps
153
- # temp_wav = tempfile.NamedTemporaryFile(dir=configuration.get_temporary_directory(), suffix='.wav').name
154
- # ffmpeg.convert_audio_to_wav(input_audio, temp_wav)
155
- wav = read_audio(input_audio)
153
+ temp_wav = tempfile.NamedTemporaryFile(dir=configuration.get_temporary_directory(), suffix='.wav').name
154
+ ffmpeg.convert_audio_to_wav(input_audio, temp_wav)
155
+ wav = read_audio(temp_wav)
156
156
  speech_timestamps = get_speech_timestamps(wav, self.vad_model, return_seconds=True, threshold=0.2)
157
157
  logger.debug(speech_timestamps)
158
158
  return speech_timestamps
@@ -174,14 +174,14 @@ class WhisperVADProcessor(VADProcessor):
174
174
  def _detect_voice_activity(self, input_audio):
175
175
  from stable_whisper import WhisperResult
176
176
  # Convert the audio to 16kHz mono WAV
177
- # temp_wav = tempfile.NamedTemporaryFile(dir=configuration.get_temporary_directory(), suffix='.wav').name
178
- # ffmpeg.convert_audio_to_wav(input_audio, temp_wav)
177
+ temp_wav = tempfile.NamedTemporaryFile(dir=configuration.get_temporary_directory(), suffix='.wav').name
178
+ ffmpeg.convert_audio_to_wav(input_audio, temp_wav)
179
179
 
180
180
  logger.info('transcribing audio...')
181
181
 
182
182
  # Transcribe the audio using Whisper
183
183
  with warnings.catch_warnings():
184
- result: WhisperResult = self.vad_model.transcribe(input_audio, vad=True, language=get_config().vad.language,
184
+ result: WhisperResult = self.vad_model.transcribe(temp_wav, vad=True, language=get_config().vad.language,
185
185
  temperature=0.0)
186
186
  voice_activity = []
187
187
 
@@ -376,7 +376,7 @@ 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\GameSentenceMiner\GameSentenceMiner\test\tmpso7v0265.opus"
379
+ test_audio = r"C:\Users\Beangate\GSM\GameSentenceMiner\GameSentenceMiner\test\NEKOPARAvol.1_2025-08-18-16-42-32-020.opus"
380
380
  output_dir = r"C:\Users\Beangate\GSM\GameSentenceMiner\GameSentenceMiner\test\output"
381
381
  os.makedirs(output_dir, exist_ok=True)
382
382
  processors = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.14.18
3
+ Version: 2.14.20
4
4
  Summary: A tool for mining sentences from games. Update: Overlay?
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ GameSentenceMiner/config_gui.py,sha256=SDZ4TEkdhvXxOM_pEG1LABt12M1QkKjMHcQX7bG0O
4
4
  GameSentenceMiner/gametext.py,sha256=fgBgLchezpauWELE9Y5G3kVCLfAneD0X4lJFoI3FYbs,10351
5
5
  GameSentenceMiner/gsm.py,sha256=0ycEa5PaDo7bU9xsiGt-XyYaERSYiiYJgGpVRLeFZis,31275
6
6
  GameSentenceMiner/obs.py,sha256=7A84DnzO14s98JZ7DIlENuLNGzvf7t7VEKggIrqbeW8,23519
7
- GameSentenceMiner/vad.py,sha256=zFReBMvNEEaQ_YEozCTCaMdV-o40FwtlxYRb17cYZio,19125
7
+ GameSentenceMiner/vad.py,sha256=IV34ZSrhJWdzlyDi1T8U8S-76mzFnwAX77NjRKbBxLA,19137
8
8
  GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  GameSentenceMiner/ai/ai_prompting.py,sha256=41xdBzE88Jlt12A0D-T_cMfLO5j6MSxfniOptpwNZm0,24068
10
10
  GameSentenceMiner/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -50,7 +50,7 @@ GameSentenceMiner/util/communication/send.py,sha256=Wki9qIY2CgYnuHbmnyKVIYkcKAN_
50
50
  GameSentenceMiner/util/communication/websocket.py,sha256=Zpnqsy8RUeYxMFNGVUaPrWrlbAHjuNxCsn908iWL_kU,3344
51
51
  GameSentenceMiner/util/downloader/Untitled_json.py,sha256=RUUl2bbbCpUDUUS0fP0tdvf5FngZ7ILdA_J5TFYAXUQ,15272
52
52
  GameSentenceMiner/util/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
- GameSentenceMiner/util/downloader/download_tools.py,sha256=zR-aEHiFVkyo-9oPoSx6nQ2K-_J8WBHLZyLoOhypsW4,8458
53
+ GameSentenceMiner/util/downloader/download_tools.py,sha256=9SjkTrwRv7le5C2IWUH6-APtnvR2yW2jeGxt2EmHjfw,8459
54
54
  GameSentenceMiner/util/downloader/oneocr_dl.py,sha256=l3s9Z-x1b57GX048o5h-MVv0UTZo4H-Q-zb-JREkMLI,10439
55
55
  GameSentenceMiner/util/win10toast/__init__.py,sha256=6TL2w6rzNmpJEp6_v2cAJP_7ExA3UsKzwdM08pNcVfE,5341
56
56
  GameSentenceMiner/util/win10toast/__main__.py,sha256=5MYnBcFj8y_6Dyc1kiPd0_FsUuh4yl1cv5wsleU6V4w,668
@@ -71,9 +71,9 @@ GameSentenceMiner/web/templates/index.html,sha256=LqXZx7-NE42pXSpHNZ3To680rD-vt9
71
71
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
72
72
  GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
73
73
  GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- gamesentenceminer-2.14.18.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
- gamesentenceminer-2.14.18.dist-info/METADATA,sha256=O46SIBqs6hMZGHMHZU4T-jqvxXG8f9xNnXBRO9rR7rw,7303
76
- gamesentenceminer-2.14.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
- gamesentenceminer-2.14.18.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
- gamesentenceminer-2.14.18.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
- gamesentenceminer-2.14.18.dist-info/RECORD,,
74
+ gamesentenceminer-2.14.20.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
+ gamesentenceminer-2.14.20.dist-info/METADATA,sha256=RbMHKhKfxzfRgnSWWb1HQrocVu45fa2AHXdYXxAwdnk,7303
76
+ gamesentenceminer-2.14.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
+ gamesentenceminer-2.14.20.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
+ gamesentenceminer-2.14.20.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
+ gamesentenceminer-2.14.20.dist-info/RECORD,,