Commit Graph

117 Commits

Author SHA1 Message Date
misyaguziya
7d24b3839c 型注釈を追加し、関数の戻り値を明示化。コードの可読性と型安全性を向上。 2025-10-09 17:07:21 +09:00
misyaguziya
7255722b67 ウォッチドッグのドキュメントを更新し、使用例を追加。型注釈とエラーハンドリングの改善を反映。 2025-10-09 17:01:31 +09:00
misyaguziya
569d8e3f76 [ref] overlayのリファクタリングとテストを追加 2025-10-09 16:43:41 +09:00
misyaguziya
c1cf78cda4 [改善] 型注釈の追加とドキュメントの更新
- config.py, controller.py, model.py, mainloop.py, utils.py での型注釈の追加
- CODING_RULES.md と api.md のドキュメントを更新
- 不要なコードの削除とリファクタリング
2025-10-09 13:34:05 +09:00
misyaguziya
78a580f521 OSCQueryの名前解決のためservice名をユニークに変更
service_nameを "VRCT" -> f"VRCT:{UTC}"
2025-10-08 13:01:16 +09:00
misyaguziya
6c655b6043 [Update] OverlayImage: Improve font loading logic with error handling for font file paths 2025-10-07 19:01:55 +09:00
misyaguziya
a167e57ff0 [Update] Test: Add translation tests for all language pairs and log results
[Update] remove unsupported langs
2025-10-07 13:33:04 +09:00
misyaguziya
4572aee2b7 [Update] Controller and Model: Refactor translation device management and add parameter change tracking 2025-10-06 16:40:05 +09:00
misyaguziya
ca07aef201 [Update] Translator: Add check to return original message if source and target languages are the same 2025-10-05 17:15:25 +09:00
misyaguziya
3ee7246224 [Feature] Transliterator: Implement contextual transliteration rules and integrate with analysis method 2025-10-05 16:18:58 +09:00
misyaguziya
7b1e9136ee [Update] Transliterator: Enhance transliteration control and improve tokenizer initialization 2025-10-04 22:25:55 +09:00
misyaguziya
fe3fea34ff [Cleanup] Transliterator: Remove debug print statement from analyze method 2025-10-02 22:58:13 +09:00
misyaguziya
e32e5c1b5f [Update] Transliterator: Change tokenizer mode to SplitMode.C and enhance analyze method for better reading assignment 2025-09-29 10:15:03 +09:00
Sakamoto Shiina
e7cd872fcc Merge branch 'bugfix_compute_type' into develop 2025-09-28 02:10:23 +09:00
misyaguziya
46584a0e3e Merge branch 'bugfix_overlay' into develop 2025-09-19 22:50:10 +09:00
misyaguziya
c171588ba9 [bugfix] Chat機能より改行を含む文章を送信した場合に、マルチラインのoverlayの表示に失敗する問題を修正 2025-09-19 22:49:48 +09:00
misyaguziya
4617954928 [Add] Implement Transliterator class and katakana to Hepburn conversion function 2025-09-17 14:09:36 +09:00
misyaguziya
fad01f6f90 [Change] ファイル名を変更 2025-09-17 11:26:44 +09:00
misyaguziya
245855d0ca [Update] Add compute type management for CTranslate2 and Whisper models 2025-09-17 10:35:34 +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
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
c12f51f802 [bugfix] remove print root path 2025-06-16 18:59:37 +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
misyaguziya
acae7644eb [bugfix] ttfファイルのバスを修正 2025-06-15 15:54:41 +09:00
misyaguziya
dfc90508d1 [Fix] Controller: Handle VRAM overflow errors during translation and transcription processes. 2025-06-02 15:07:33 +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
f0f0dd5ea5 Merge branch 'websocket' into develop 2025-05-18 15:24:35 +09:00
misyaguziya
e7304247c7 [Update] WebSocket configuration: Change host to 127.0.0.1 and port to 2231; refactor WebSocket server initialization and message handling 2025-05-18 15:20:27 +09:00
misyaguziya
ed5ebcee90 [Update] WebSocket server: Refactor threading and message handling 2025-05-18 13:16:52 +09:00
misyaguziya
d940097e44 👍️[Update] Model : WebSocket module 2025-05-17 09:30:17 +09:00
misyaguziya
a619cd6114 [update] Upgrade deepl package version to 1.22.0 and refactor translation code to use DeepLClient 2025-05-15 12:38:54 +09:00
misyaguziya
fac33e06ba [Add] websocket server 2025-05-15 11:46:13 +09:00
misyaguziya
2e424fcc2a [Update] Optimize OSCQueryBrowser usage and reduce CPU load in OSC server 2025-05-05 17:06:23 +09:00
misyaguziya
4da99ab4d4 [Update] transcription_whisper.py: Add new Whisper model entries for large-v3-turbo and large-v3-turbo-int8. 2025-03-21 09:06:01 +09:00
misyaguziya
6fe403315a 🐛[bugfix] model : overlay 200回表示後のリセット処理でエラーが発生した場合のみエラーログを保存するように修正 2025-02-18 15:33:45 +09:00
misyaguziya
1ca14ca33e 🐛[bugfix] model : overlay動作時にoverlay表示デバイスが存在しない場合にエラーが発生する問題を修正
デバイスの存在チェックを追加
2025-02-18 15:30:48 +09:00
misyaguziya
bdf67ab7c8 🐛[bugfix] offline時の処理を修正 2025-02-12 13:48:16 +09:00
Sakamoto Shiina
945b2a83a8 Merge branch 'bugfix_translate' into develop 2025-02-10 03:11:25 +09:00
Sakamoto Shiina
3228f0bb50 [bugfix] Overlay: Fix the error 'TypeError:’float’ object cannot be interpreted as an integer'
改行が必要なくらいの長さのテキストを表示しようとするときに出るエラー。計算時、int型に強制変換して修正。
2025-02-10 03:06:14 +09:00
misyaguziya
78d79f4a54 🐛[bugfix] controller: offline時の処理を追加 2025-02-06 18:29:07 +09:00
misyaguziya
567907fc4d 🐛[bugfix] Model : Added the ability to automatically select calculation types from GPU devices 2025-01-02 08:32:35 +09:00
misyaguziya
b545abce44 🐛[bugfix] Model : resultを取得する際にエラーが出る問題を修正 2024-12-21 17:34:10 +09:00
misyaguziya
309869c494 🐛[bugfix] Model : 非対応言語の場合に文字起こし失敗の例外処理をパスするように修正 2024-12-19 15:19:38 +09:00
misyaguziya
4d2fd379a8 👍️[Update] Model : 複数言語選択時に複数の音声に対して文字起こしを行う機能を追加 2024-12-19 13:44:52 +09:00
misyaguziya
a1b9aed8a9 🐛[bugfix] Model : overlayのリスタート処理を修正 2024-12-17 23:44:44 +09:00