Windows 11 ワークフロー¶
[AutoHotkey (AHK)] [DictationService.py] [C:\tmp\tts_output.txt] [TypeWatcher.ahk] [Active App]
(Recommended Tool)
| | | | |
1. User presses Hotkey | | | |
|----------------------> | 2. Creates C:\tmp\sl5_record.trigger | |
| | | |
| (watches for trigger file) | |
| | 3. Detects & DELETES trigger file | |
| | | |
| o 4. Records & Processes (Vosk -> LT) | |
| | | |
| | 5. Writes final text ------------------------------> o | |
| | | | |
| | | (watches for output file) |
| | | | |
| | | o <------------------ | 6. Detects & reads file
| | | | |
| | | [DELETES tts_output.txt] |
| | | | |
| | | | 7. Types text ------> o
| | | | |
Windows のトリガー メカニズム
このサービスは単純なファイル トリガーによってアクティブ化されるため、堅牢かつ柔軟になります。
サービスは、特定のファイル
C:\tmp\sl5_record.triggerが作成されるのを待ちます。ホットキーの仕事は、この空のファイルを作成することだけです。
推奨ツール: Windows の場合、理想的なツールは AutoHotkey (AHK) です。これは無料でオープンソースであり、すでにツールチェーンの一部になっています。
AHK ホットキー スクリプトの例:
#Requires AutoHotkey v2.0
; Example: Win + Space hotkey to trigger dictation
#Space::
{
FileAppend("", "C:\tmp\sl5_record.trigger")
}