GameSentenceMiner 2.13.4.post2__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/vad.py +11 -3
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/top_level.txt +0 -0
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
|
@@ -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.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/entry_points.txt
RENAMED
File without changes
|
{gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{gamesentenceminer-2.13.4.post2.dist-info → gamesentenceminer-2.13.5.dist-info}/top_level.txt
RENAMED
File without changes
|