Commit Graph

345 Commits

Author SHA1 Message Date
misyaguziya
396d5d7d88 メッセージのトランスリテレーション処理を改善し、日本語の条件を簡素化 2025-09-17 17:52:12 +09:00
misyaguziya
c9dd352565 メッセージの変換処理を改善し、日本語のトランスリテレーションの条件を整理 2025-09-17 17:05:59 +09:00
misyaguziya
5ed0d555b9 Transliteration変数の名称を変更し、メッセージ処理の一貫性を向上 2025-09-17 15:28:45 +09:00
misyaguziya
4617954928 [Add] Implement Transliterator class and katakana to Hepburn conversion function 2025-09-17 14:09:36 +09:00
misyaguziya
3d34b50793 ConfigクラスにSELECTED_TAB_TARGET_LANGUAGES_NO_LISTプロパティを追加し、メッセージの変換処理を改善 2025-09-17 12:35:14 +09:00
misyaguziya
fad01f6f90 [Change] ファイル名を変更 2025-09-17 11:26:44 +09:00
misyaguziya
d3c206fb26 [Add] Implement Transliterator class for kanji and okurigana analysis; update requirements and spec files 2025-09-15 05:33:30 +09:00
misyaguziya
0d121ecaad [Update] Enhance kanji and okurigana processing in Transliterator class 2025-09-15 05:22:57 +09:00
misyaguziya
2efedfb572 [Add] Implement transliterator and katakana to Hepburn conversion functions 2025-09-15 05:00:24 +09:00
misyaguziya
5a9a13146c [Update] Refactor transliteration function to accept parameters for hiragana and romaji conversion 2025-09-12 16:06:12 +09:00
Sakamoto Shiina
684d9c3283 [Update] Version 3.2.1 -> 3.2.2 2025-09-11 17:00:15 +09:00
Sakamoto Shiina
e6bd0e32ed [bugfix] controller.py: Fix the bug, type error. that was unable to store the data correctly. 2025-08-26 17:20:29 +09:00
misyaguziya
b1fabc37a4 [Update] Add comments to clarify property access levels in Config class 2025-08-06 21:36:51 +09:00
misyaguziya
d12c157b66 [Update] Refactor message formatting and add validation for message structure 2025-08-06 20:33:36 +09:00
misyaguziya
c2f40d2f5d [Update] version 3.2.0 -> 3.2.1 2025-06-24 21:23:18 +09:00
google-labs-jules[bot]
172617a523 Fix: Enhance logging for OSError and prevent AttributeError
This commit addresses two potential issues related to issue #50:

1.  Enhanced `OSError` Logging in `utils.py`:
    The `printResponse` function in `src-python/utils.py` has been modified
    to include more robust error handling around the `json.dumps()` call.
    If an `OSError` (such as `[Errno 22] Invalid argument`) occurs during
    JSON serialization, the function will now:
    - Log the full traceback of the OSError.
    - Log the specific problematic response dictionary that caused the error.
    - Print a fallback JSON error message to stdout.
    This change aims to help diagnose the root cause of the `OSError`
    reported by you by capturing the exact data that triggers it.

2.  Prevent `AttributeError` for `.close()` calls:
    Added checks in `src-python/models/osc/osc.py` and
    `src-python/models/websocket/websocket_server.py` to ensure that
    objects are not `None` before their `.close()` or `.cancel()` methods
    are called. This specifically addresses:
    - `self.browser.zc.close()` and `self.browser.browser.cancel()` in `osc.py`.
    - `self._loop.close()` in `websocket_server.py`.
    These changes prevent potential `AttributeError: 'NoneType' object
    has no attribute 'close'` errors if these objects are not fully
    initialized before cleanup.
2025-06-18 14:47:17 +00:00
misyaguziya
5813ede67b [Refactor] Simplify conditional checks for transcript retrieval in Model class 2025-06-17 15:06:30 +09:00
misyaguziya
c1157d30cf [Refactor] Move WebSocket message sending and logging to the correct position in the flow 2025-06-17 15:05:24 +09:00
misyaguziya
a3384ff235 Merge branch 'bugfix_overlay' into develop 2025-06-16 18:59:49 +09:00
misyaguziya
c12f51f802 [bugfix] remove print root path 2025-06-16 18:59:37 +09:00
misyaguziya
f86f3fb4f0 Merge branch 'bugfix_overlay' into develop 2025-06-16 11:50:33 +09:00
misyaguziya
e25cd62891 [Refactor] Improve overlay image creation logic for small logs and translations 2025-06-16 11:29:54 +09:00
misyaguziya
ab5c6b7bb5 [Refactor] Improve overlay image creation logic for large logs and translations 2025-06-16 06:45:13 +09:00
Sakamoto Shiina
cbfce55c16 [Refactor] Move the code that is related with Send Message Button Type. (It was remained at Others section but it should've move to Appearance section so.) 2025-06-15 18:11:07 +09:00
Sakamoto Shiina
d96c9a5151 [Chore] Fix typo in test code. '/set/data/mic_word_filter' 2025-06-15 17:53:41 +09:00
Sakamoto Shiina
3f38bfbba8 [Update] Resend Message Button: To be store-able the status.
Move to Appearance settings.
2025-06-15 17:49:42 +09:00
misyaguziya
acae7644eb [bugfix] ttfファイルのバスを修正 2025-06-15 15:54:41 +09:00
Sakamoto Shiina
66e9fc9126 Merge branch 'gpu_error' into develop 2025-06-10 17:49:30 +09:00
misyaguziya
f6216dbdbe [Update] Enhance OSC Query handling by adding mute sync info flag and modifying disableOscQuery method 2025-06-09 17:15:42 +09:00
Sakamoto Shiina
fed5a08e3d Merge branch 'develop' into gpu_error 2025-06-06 15:59:06 +09:00
misyaguziya
2118ec9d01 [Update] Version 3.1.2 -> 3.2.0 2025-06-03 11:08:31 +09:00
misyaguziya
dfc90508d1 [Fix] Controller: Handle VRAM overflow errors during translation and transcription processes. 2025-06-02 15:07:33 +09:00
misyaguziya
32e4ec0682 [Bugfix] Controller: Fixed degradation that occurred with commit hash: d940097. 2025-05-31 04:09:28 +09:00
Sakamoto Shiina
88cb4f72b5 [Update/bugfix] UI: Add disable/enable UI function when osc query is disabled.
Fix the error that the mic mute sync couldn't enable/disable.
2025-05-30 15:32:03 +09:00
misyaguziya
ae38ed165d [Update] controller.py: Refactor OSC IP address handling and improve VRC mic mute sync logic 2025-05-30 11:31:09 +09:00
misyaguziya
b1c68679cd Merge branch 'osc' into develop 2025-05-29 09:16:53 +09:00
misyaguziya
29ef8f401d Merge branch 'websocket' into develop 2025-05-29 09:16:39 +09:00
misyaguziya
67d06ab1e1 [Update] Enhance build scripts and requirements for Hugging Face integration; improve logging and error handling 2025-05-29 08:04:06 +09:00
misyaguziya
238bd41109 [Update] Refactor Hugging Face dependencies in requirements files and enhance cache directory handling in mainloop.py 2025-05-28 11:14:39 +09:00
misyaguziya
8dac3da933 [Update] Add hf_xet and huggingface-hub to requirements; enhance mainloop.py for Hugging Face caching 2025-05-27 14:12:20 +09:00
misyaguziya
88c27a9c70 [Update] WebSocket: Implement availability check for WebSocket server and refactor related logic 2025-05-26 16:15:04 +09:00
misyaguziya
bdaccdf421 [Update] OSC: Improve error handling and refactor OSC server initialization 2025-05-25 22:15:53 +09:00
misyaguziya
23fc46bd0f [Update] OSC: Refactor OSC query handling and add enable/disable methods 2025-05-25 15:42:33 +09:00
misyaguziya
279fc1f66d [Update] OSCHandler: Enhance OSC query handling and refactor mute status management 2025-05-24 21:51:11 +09:00
misyaguziya
de4f22f704 [Update] Controller: Update WebSocket error messages to clarify host and port availability 2025-05-20 14:28:55 +09:00
misyaguziya
f310e6d6d5 [Update] WebSocket: Refactor server availability checks and improve error handling 2025-05-20 13:12:31 +09:00
misyaguziya
cfc26c4767 [Update] Model: Modify error logging to remove exception details on address in use 2025-05-20 11:33:40 +09:00
misyaguziya
60fb58f6d5 [Update] WebSocket: Disable server by default and add port availability check 2025-05-20 11:08:11 +09:00
misyaguziya
eb0ab29b37 Merge branch 'websocket' into develop 2025-05-18 16:24:33 +09:00
misyaguziya
989abbe2c2 [Update] check用のメッセージをコメントアウト 2025-05-18 16:24:20 +09:00