GameSentenceMiner 2.16.10__py3-none-any.whl → 2.16.11__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.
Potentially problematic release.
This version of GameSentenceMiner might be problematic. Click here for more details.
- GameSentenceMiner/gsm.py +14 -11
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/top_level.txt +0 -0
GameSentenceMiner/gsm.py
CHANGED
|
@@ -314,17 +314,20 @@ class VideoToAudioHandler(FileSystemEventHandler):
|
|
|
314
314
|
logger.info("No voice activity detected, using full audio.")
|
|
315
315
|
vad_result.output_audio = trimmed_audio
|
|
316
316
|
elif get_config().vad.use_tts_as_fallback:
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
317
|
+
try:
|
|
318
|
+
logger.info(
|
|
319
|
+
"No voice activity detected, using TTS as fallback.")
|
|
320
|
+
text_to_tts = full_text if full_text else game_line.text
|
|
321
|
+
url = get_config().vad.tts_url.replace("$s", text_to_tts)
|
|
322
|
+
tts_resp = requests.get(url)
|
|
323
|
+
if not tts_resp.ok:
|
|
324
|
+
logger.error(
|
|
325
|
+
f"Error fetching TTS audio from {url}. Is it running?: {tts_resp.status_code} {tts_resp.text}")
|
|
326
|
+
with tempfile.NamedTemporaryFile(dir=get_temporary_directory(), delete=False, suffix=".opus") as tmpfile:
|
|
327
|
+
tmpfile.write(tts_resp.content)
|
|
328
|
+
vad_result.output_audio = tmpfile.name
|
|
329
|
+
except Exception as e:
|
|
330
|
+
logger.error(f"Error getting TTS audio: {e}, skipping audio.")
|
|
328
331
|
else:
|
|
329
332
|
logger.info(vad_result.trim_successful_string())
|
|
330
333
|
if vad_result.output_audio:
|
|
@@ -2,7 +2,7 @@ GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
2
2
|
GameSentenceMiner/anki.py,sha256=Qq03nxYCA0bXS8IR1vnEB9cv2vxo6Ruy-UuiojC4ad0,26518
|
|
3
3
|
GameSentenceMiner/config_gui.py,sha256=iOsi3IVati6JHCnoCIzLAxlrbZt4j4pL5KNFzSq4gJo,146121
|
|
4
4
|
GameSentenceMiner/gametext.py,sha256=fgBgLchezpauWELE9Y5G3kVCLfAneD0X4lJFoI3FYbs,10351
|
|
5
|
-
GameSentenceMiner/gsm.py,sha256=
|
|
5
|
+
GameSentenceMiner/gsm.py,sha256=1eq5nkYulfm85749g8g2s_WkqqiQWDopUXyimJLIy6M,33814
|
|
6
6
|
GameSentenceMiner/obs.py,sha256=EyAYhaLvMjoeC-3j7fuvkqZN5logFFanPfb8Wn1C6m0,27296
|
|
7
7
|
GameSentenceMiner/vad.py,sha256=klkxPA1pNbziZWG1MGjWVRRmOIt9UwlcB8ZV-lSnHsQ,19736
|
|
8
8
|
GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -90,9 +90,9 @@ GameSentenceMiner/web/templates/utility.html,sha256=KtqnZUMAYs5XsEdC9Tlsd40NKAVi
|
|
|
90
90
|
GameSentenceMiner/web/templates/components/navigation.html,sha256=6y9PvM3nh8LY6JWrZb6zVOm0vqkBLDc6d3gB9X5lT_w,1055
|
|
91
91
|
GameSentenceMiner/web/templates/components/theme-styles.html,sha256=hiq3zdJljpRjQO1iUA7gfFKwXebltG-IWW-gnKS4GHA,3439
|
|
92
92
|
GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
|
-
gamesentenceminer-2.16.
|
|
94
|
-
gamesentenceminer-2.16.
|
|
95
|
-
gamesentenceminer-2.16.
|
|
96
|
-
gamesentenceminer-2.16.
|
|
97
|
-
gamesentenceminer-2.16.
|
|
98
|
-
gamesentenceminer-2.16.
|
|
93
|
+
gamesentenceminer-2.16.11.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
94
|
+
gamesentenceminer-2.16.11.dist-info/METADATA,sha256=vN1yQWVBqhIYzJ4ygcNNFdok5bC_7_gvtMYn7gKmrwc,7349
|
|
95
|
+
gamesentenceminer-2.16.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
96
|
+
gamesentenceminer-2.16.11.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
|
97
|
+
gamesentenceminer-2.16.11.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
|
98
|
+
gamesentenceminer-2.16.11.dist-info/RECORD,,
|
|
File without changes
|
{gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{gamesentenceminer-2.16.10.dist-info → gamesentenceminer-2.16.11.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|