GameSentenceMiner 2.9.1__py3-none-any.whl → 2.9.2__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/gametext.py +3 -3
- GameSentenceMiner/vad/silero_trim.py +1 -1
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/METADATA +2 -2
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/RECORD +8 -8
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.9.1.dist-info → gamesentenceminer-2.9.2.dist-info}/top_level.txt +0 -0
GameSentenceMiner/gametext.py
CHANGED
@@ -84,10 +84,10 @@ async def listen_websockets():
|
|
84
84
|
if e.response.status_code == 404:
|
85
85
|
logger.info(f"Texthooker WebSocket: {uri} connection failed. Attempting some fixes...")
|
86
86
|
try_other = True
|
87
|
-
|
87
|
+
elif websocket_connected[uri]:
|
88
88
|
if not (isinstance(e, ConnectionResetError) or isinstance(e, ConnectionError) or isinstance(e, InvalidStatus) or isinstance(e, websockets.ConnectionClosed)):
|
89
|
-
logger.
|
90
|
-
|
89
|
+
logger.debug(f"Unexpected error in Texthooker WebSocket {uri} connection: {e}, Can be ignored")
|
90
|
+
else:
|
91
91
|
logger.warning(f"Texthooker WebSocket {uri} disconnected. Attempting to reconnect...")
|
92
92
|
websocket_connected[uri] = False
|
93
93
|
await asyncio.sleep(1)
|
@@ -36,7 +36,7 @@ def process_audio_with_silero(input_audio, output_audio, game_line):
|
|
36
36
|
|
37
37
|
# Trim based on the first and last speech detected
|
38
38
|
start_time = voice_activity[0]['start'] if voice_activity else 0
|
39
|
-
if game_line and game_line.next and len(voice_activity) > 1 and 0 >
|
39
|
+
if game_line and game_line.next and len(voice_activity) > 1 and 0 > audio_length - voice_activity[-1]['start'] + get_config().audio.beginning_offset:
|
40
40
|
# and (voice_activity[-1]['start'] - voice_activity[-2]['end']) > 3.0):
|
41
41
|
end_time = voice_activity[-2]['end']
|
42
42
|
logger.info("Using the second last timestamp for trimming")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: GameSentenceMiner
|
3
|
-
Version: 2.9.
|
4
|
-
Summary: A tool for mining sentences from games.
|
3
|
+
Version: 2.9.2
|
4
|
+
Summary: A tool for mining sentences from games.
|
5
5
|
Author-email: Beangate <bpwhelan95@gmail.com>
|
6
6
|
License: MIT License
|
7
7
|
Project-URL: Homepage, https://github.com/bpwhelan/GameSentenceMiner
|
@@ -4,7 +4,7 @@ GameSentenceMiner/config_gui.py,sha256=h4zz85gfhxSphaJ-IZSu9D4jR70mDlKecZ9JRCO5N
|
|
4
4
|
GameSentenceMiner/configuration.py,sha256=8CfdTJ0ROJrxyzNg3NaElAVS1bwchg1ih6XfhfDZy1g,25492
|
5
5
|
GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
|
6
6
|
GameSentenceMiner/ffmpeg.py,sha256=zVmLJOsXpy71zKb0cLBPrXJ6YpjPVRJmH0uRfd5O30k,18299
|
7
|
-
GameSentenceMiner/gametext.py,sha256=
|
7
|
+
GameSentenceMiner/gametext.py,sha256=sll-6Pficd4ZXYy8yL8hBrEOSpfa53TOye7vtHHKFN4,6218
|
8
8
|
GameSentenceMiner/gsm.py,sha256=_Mp_gZFomeFz9FTZqYEXIgqxbICYcAB06KUlFkClX5Q,29831
|
9
9
|
GameSentenceMiner/model.py,sha256=1lRyJFf_LND_4O16h8CWVqDfosLgr0ZS6ufBZ3qJHpY,5699
|
10
10
|
GameSentenceMiner/notification.py,sha256=pXKoLfmRQLH55IQ5G6uxdMuczqX7D6l3ubVEY1e6hXg,2859
|
@@ -38,7 +38,7 @@ GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSd
|
|
38
38
|
GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
39
|
GameSentenceMiner/vad/groq_trim.py,sha256=MDYiApduwF7oDx3r0TXL3xQrTkbUC1RinMwNKSbF5gw,3764
|
40
40
|
GameSentenceMiner/vad/result.py,sha256=aFlr2px90fn3qXj49dwF9BDXA5m4yXD_HYH01CVvP1U,799
|
41
|
-
GameSentenceMiner/vad/silero_trim.py,sha256=
|
41
|
+
GameSentenceMiner/vad/silero_trim.py,sha256=u4BC93LieJW0CZ7HToz51FneojqW_SNjSKmJmHMKwUA,2240
|
42
42
|
GameSentenceMiner/vad/vad_utils.py,sha256=_YC6rW2eXSBeLnYbVl_F3na1KCRL90VrnOzKYJ9RhUE,391
|
43
43
|
GameSentenceMiner/vad/vosk_helper.py,sha256=h7yNHrzrzT-J74UniA0T2ZX8cHqhflCzwyDjoIdKLO4,6479
|
44
44
|
GameSentenceMiner/vad/whisper_helper.py,sha256=B64-Eq_ZMCIyQX_A8uvYz-c48hSXJAyz6tSXNRaLjtA,4020
|
@@ -57,9 +57,9 @@ GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
57
57
|
GameSentenceMiner/web/templates/index.html,sha256=HZKiIjiGJV8PGQ9T2aLDUNSfJn71qOwbYCjbRuSIjpY,213583
|
58
58
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
59
59
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
60
|
-
gamesentenceminer-2.9.
|
61
|
-
gamesentenceminer-2.9.
|
62
|
-
gamesentenceminer-2.9.
|
63
|
-
gamesentenceminer-2.9.
|
64
|
-
gamesentenceminer-2.9.
|
65
|
-
gamesentenceminer-2.9.
|
60
|
+
gamesentenceminer-2.9.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
61
|
+
gamesentenceminer-2.9.2.dist-info/METADATA,sha256=XVxZdTUhTDvmNprnr75Eqs1Cd-6QjFDQOjjn-CeLI0Y,7280
|
62
|
+
gamesentenceminer-2.9.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
63
|
+
gamesentenceminer-2.9.2.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
64
|
+
gamesentenceminer-2.9.2.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
65
|
+
gamesentenceminer-2.9.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|