Commit Graph

79 Commits

Author SHA1 Message Date
misyaguziya
526fd4d5aa 翻訳バックエンドを拡張・リファクタリング:OpenAI/Plamo/Gemini クライアントを追加・改修し、プロンプトを YAML から読み込むように変更。各クライアントでモデル一覧取得・認証・クライアント更新機能を実装し、Translator/Model 層の対応メソッドを追加。Controller と mainloop にプラモ・ジェミニ・OpenAI の認証/モデル操作エンドポイントを追加・整備。config のモデル/API設定をプロパティ化して既定値を None に変更し、選択肢リストを初期化。translation_languages に OpenAI 用マッピングを追加。requirements ファイルの依存記述を調整。 2025-10-16 18:09:08 +09:00
misyaguziya
f8466bd6e4 翻訳APIの認証ロジックを改善し、YAMLファイルからプロンプト設定を読み込む機能を追加。新しいフォントファイルを追加し、データパスを更新。 2025-10-15 18:50:26 +09:00
misyaguziya
6fc89fbb3e Merge branch 'develop' into translate_api
# Conflicts:
#	requirements.txt
#	requirements_cuda.txt
#	src-python/config.py
#	src-python/mainloop.py
#	src-python/model.py
#	src-python/models/osc/osc.py
#	src-python/models/translation/translation_languages.py
#	src-python/models/translation/translation_translator.py
#	src-python/models/translation/translation_utils.py
2025-10-14 12:47:47 +09:00
misyaguziya
d4f89a734d デバイスマネージャーの監視機能を追加し、マイクおよびスピーカーの自動選択機能の有効/無効に応じて監視を開始・停止するロジックを実装。 2025-10-13 16:41:34 +09:00
misyaguziya
6f33f8afbd Controllerの初期化時にmodel.init()を呼び出す互換レイヤを追加し、オーバーレイの存在チェックを安全に行うためのヘルパメソッドを導入。未使用のimportを削除し、ドキュメントを新規作成して変更点と注意事項を明示化。 2025-10-09 22:38:50 +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
6c655b6043 [Update] OverlayImage: Improve font loading logic with error handling for font file paths 2025-10-07 19:01:55 +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
c7bae73363 Merge branch 'bugfix_auto_device_select' into develop 2025-10-05 21:16:18 +09:00
misyaguziya
4b0c7e9775 [Update] Controller and DeviceManager: Refactor device management methods for mic and speaker separation 2025-10-05 21:15:44 +09:00
misyaguziya
eb08ed6ff6 Merge branch 'transliteration' into develop 2025-10-05 17:15:47 +09:00
misyaguziya
7b1e9136ee [Update] Transliterator: Enhance transliteration control and improve tokenizer initialization 2025-10-04 22:25:55 +09:00
misyaguziya
4b55a9bca2 [Fix] Controller: Remove redundant assignments in auto mic/speaker select methods 2025-10-02 23:05:06 +09:00
Sakamoto Shiina
e7cd872fcc Merge branch 'bugfix_compute_type' into develop 2025-09-28 02:10:23 +09:00
misyaguziya
6effedcce2 [Update] Refactor compute type management: rename properties to 'SELECTED_TRANSLATION_COMPUTE_TYPE' and 'SELECTED_TRANSCRIPTION_COMPUTE_TYPE' 2025-09-27 07:07:54 +09:00
misyaguziya
5366622fca [Update] Refactor compute device management: change methods to instance methods and set compute types to "auto" 2025-09-26 23:30:39 +09:00
misyaguziya
92f9d645f8 [Update] Refactor compute type management: rename CTranslate2 and Whisper compute types to Translation and Transcription 2025-09-25 22:56:16 +09:00
misyaguziya
9e2c91905c SHOW_RESEND_BUTTONの条件を修正し、main_instanceの起動処理を簡素化 2025-09-25 17:27:08 +09:00
misyaguziya
a4656a5081 Controllerクラスの設定メソッドを修正し、重複した設定を防止する条件を追加。テストケースを更新し、ON/OFF状態のランダムアクセスと連続テストを強化。 2025-09-23 16:56:11 +09:00
misyaguziya
1689a45e3e Refactor test_endpoints.py: Enhance endpoint testing with structured tests for ON/OFF states, random access, and continuous testing. Introduce Color class for colored output and streamline endpoint handling logic. 2025-09-23 14:45:08 +09:00
misyaguziya
9d94fd6a5e [Update] Refactor compute type management: unify device list retrieval and remove deprecated methods 2025-09-19 18:09:39 +09:00
misyaguziya
7274c514a7 [Update] トランスリテレーション処理を有効化する条件を追加 2025-09-17 21:40:28 +09:00
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
3d34b50793 ConfigクラスにSELECTED_TAB_TARGET_LANGUAGES_NO_LISTプロパティを追加し、メッセージの変換処理を改善 2025-09-17 12:35:14 +09:00
misyaguziya
5f0f918642 [Update] Rename and add methods for CTranslate2 compute type management in Controller 2025-09-17 10:52:56 +09:00
misyaguziya
245855d0ca [Update] Add compute type management for CTranslate2 and Whisper models 2025-09-17 10:35:34 +09:00
misyaguziya
224eaf3cef [Add] translation_gemini: Integrate Gemini translation model and authentication; [Update] controller: Implement methods for managing Gemini models and auth keys; [Update] mainloop: Add routes for Gemini model and auth key management; [Update] translation: Enhance Translator class for Gemini API support; [Update] translation_languages: Add Gemini language mappings 2025-09-15 17:42:09 +09:00
misyaguziya
5a9a13146c [Update] Refactor transliteration function to accept parameters for hiragana and romaji conversion 2025-09-12 16:06:12 +09:00
misyaguziya
7bed19c81f [Update] controller: Change Plamo model list to selectable models 2025-09-11 18:02:12 +09:00
misyaguziya
bc269bc1fb [Update] translation: Integrate Plamo API support with model selection and authentication features 2025-09-11 14:15:26 +09:00
misyaguziya
f5ebcd7bd8 [Update] translation: Add Plamo API support with authentication and translation functionality 2025-09-10 17:52:42 +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
d12c157b66 [Update] Refactor message formatting and add validation for message structure 2025-08-06 20:33:36 +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
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
3f38bfbba8 [Update] Resend Message Button: To be store-able the status.
Move to Appearance settings.
2025-06-15 17:49:42 +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
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