GameSentenceMiner 2.8.53__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/vad/vosk_helper.py +7 -7
- GameSentenceMiner/vad/whisper_helper.py +7 -7
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/RECORD +8 -8
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.53.dist-info → gamesentenceminer-2.8.54.dist-info}/top_level.txt +0 -0
@@ -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}")
|
@@ -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
|