ぐりぐり駅放送・発車標コンパニオン
MTR/JCM向けの、ぐりぐりPIDS補助・VOICEVOX駅放送MODです。 A GURIGURI PIDS companion and VOICEVOX station announcement mod for MTR/JCM.
Список изменений
日本語
対応環境: Minecraft 1.20.4 / Fabric / MTR 4.0.5 / JCM 2.2.1
このリリースは GURIGRUI PIDS Companion MODのみ の更新です。ぐりぐりPIDSリソースパックの更新はありません。
主な追加・変更
VOICEVOXエンジンの非表示自動起動
- Windows環境では、Minecraft起動時にインストール済みのVOICEVOX Engineを自動検出・起動できるようになりました。
- VOICEVOXの編集画面、タスクバーアイコン、黒いコンソール画面を表示せず、音声エンジンだけをバックグラウンドで起動します。
- 既に利用可能なVOICEVOX Engineが動作している場合は、そのエンジンを再利用します。
50021~50030から利用可能なポートを自動選択します。%APPDATA%\voicevox\runtime-info.jsonに記録されたポートも検出し、50022などで起動したVOICEVOXにも接続します。- 接続中のエンジンが利用できなくなった場合は、別の検出済みエンドポイントへ安全に切り替えます。
- Minecraft終了時は、MOD自身が起動したエンジンだけを終了します。ユーザーが手動起動したVOICEVOXは終了しません。
- 自動起動は
station_announcer.jsonのvoicevox.engineManagement.autoStartで無効化できます。
VOICEVOX本体・音声モデルはMODへ同梱していません。駅放送を利用するには、別途VOICEVOXのインストールが必要です。
日本語読み上げの改善
- 発車時刻、遅延分数、番線番号、両数をVOICEVOX向けの日本語表記へ変換するようにしました。
21:04、21:00、18:44などを数字の羅列として誤読しにくくなりました。- PIDSに表示する時刻や数字の見た目は変更せず、音声合成へ渡す文章だけを変換します。
方面・種別案内
- 路線名の
||以降を方面として読み上げる既存仕様を維持しました。 - 新しく
|||以降を列車種別として読み上げられるようになりました。 - 例:
ぐりぐり本線||中間|||快速→ 「中間方面 快速」 ||が登録されていない路線では方面を読み上げません。路線名を誤って方面として読むこともありません。
回送列車への対応
- MTRが終点扱いにしている列車を、駅放送では「回送列車」として案内します。
- 回送列車では方面・種別を読み上げません。
- 回送列車の接近案内では、不要な発車時刻と両数案内を省略します。
- 既存のぐりぐりPIDS側でも、対象列車を「回送」または
Not in Serviceとして表示できます。
駅放送パーツの事前準備を安定化
- ワールド参加時に、MTR全体の番線・方面・種別・行先などの静的音声パーツをまとめて確認します。
- MTRデータが安定してから語彙一覧を確定し、複数バッチを1回の準備処理として連続実行します。
- 駅を移動しただけで「不足パーツ」の生成や「準備確認完了」が再表示される旧処理を撤去しました。
- 路線・番線・方面・行先などのMTRデータが実際に変更された場合だけ、追加確認を行います。
- 作成中表示の点アニメーションと進捗数字を固定幅にし、表示全体が左右へ揺れにくくなりました。
- 発車時刻や遅延分数など、列車ごとに変化する短い動的パーツは必要時に生成します。
安定性
- VOICEVOX未起動、別ポート起動、接続失敗からの復旧処理を強化しました。
- 音声生成に失敗した放送予約を正しく解放し、VOICEVOX復旧後に再試行できるようにしました。
- PIDS描画と駅放送処理の分離を維持し、音声準備がPIDS描画を巻き込まないようにしています。
- リアルタイム運行向けの運休表示連携、接近案内、発車案内、遅延案内、奇数・偶数番線の話者切替を維持しています。
- 従来の
station_announcer.jsonはそのまま読み込めます。
対応環境・必須MOD
- Minecraft 1.20.4
- Fabric
- Java 17以降
- Fabric API
- Minecraft Transit Railway 4.0.5
- Joban Client Mod 2.2.1 for Minecraft 1.20.4
- VOICEVOX(駅放送を利用する場合。Minecraft MODではありません)
更新方法
- 旧版の
gurigrui-pids-companion-*.jarをmodsフォルダから取り除きます。 - 今回のJARを
modsフォルダへ入れます。 - 同じMODのJARが複数入っていないことを確認してMinecraftを起動します。
既存の音声キャッシュ、音源フォルダ、station_announcer.jsonは削除する必要がありません。
1.2.49 — Headless VOICEVOX & Station Voice Update
English
Compatibility: Minecraft 1.20.4 / Fabric / MTR 4.0.5 / JCM 2.2.1
This release updates GURIGRUI PIDS Companion only. The GURIGRUI PIDS resource pack has not been updated.
Main changes
Headless VOICEVOX Engine startup
- On Windows, the mod can now detect and start an installed VOICEVOX Engine automatically when Minecraft starts.
- Only the speech engine is started in the background. The VOICEVOX editor window, taskbar icon, and console window are not displayed.
- If a working VOICEVOX Engine is already running, the mod reuses it instead of starting another process.
- The mod automatically selects an available port between
50021and50030. - Endpoints recorded in
%APPDATA%\voicevox\runtime-info.jsonare detected, including VOICEVOX instances running on ports such as50022. - If the active endpoint becomes unavailable, the mod safely attempts another detected endpoint.
- When Minecraft closes, the mod stops only the engine process that it started. A VOICEVOX instance started manually by the user remains running.
- Automatic startup can be disabled with
voicevox.engineManagement.autoStartinstation_announcer.json.
VOICEVOX and its voice models are not bundled with this mod. VOICEVOX must be installed separately to use station announcements.
Improved Japanese pronunciation
- Departure times, delay minutes, platform numbers, and car counts are converted into Japanese text before being sent to VOICEVOX.
- This reduces digit-by-digit mispronunciations of times such as
21:04,21:00, and18:44. - PIDS display text remains unchanged. Only the text used for speech synthesis is converted.
Direction and service-type announcements
- The existing
||route-name marker remains available for direction announcements. - A new
|||marker can be used to specify the train service type. - Example:
GURIGURI Main Line||Nakama|||Rapidannounces the direction followed by the service type. - If no
||marker is present, the mod does not announce a direction or incorrectly use the route name as one.
Out-of-service train handling
- Arrivals marked as terminating by MTR are announced as out-of-service trains.
- Direction and service type are omitted for these trains.
- Unnecessary departure-time and formation information is omitted from their approach announcements.
- The existing GURIGRUI PIDS can display these trains as
回送orNot in Service.
More reliable station voice-part preparation
- Static speech parts for platforms, directions, service types, and destinations are checked globally when entering a world.
- The mod waits for the MTR data snapshot to stabilize, freezes the vocabulary list, and processes all internal batches as one preparation session.
- The legacy station-specific fallback that could generate “missing parts” or show another completion message merely after moving to another station has been removed.
- Additional preparation is triggered only when relevant MTR data such as a platform, direction, service type, or destination actually changes.
- The progress animation and numeric counter now use a fixed width to reduce horizontal movement of the overlay.
- Short dynamic parts, such as departure times and delay minutes, are still generated when required because their values change for each train.
Stability
- Improved recovery when VOICEVOX is not running, starts on a different port, or temporarily becomes unavailable.
- Failed speech preparations now release their announcement reservations correctly so they can be retried after VOICEVOX recovers.
- Station announcement preparation remains separate from PIDS rendering so speech work cannot directly block the PIDS render path.
- Existing realtime cancellation integration, approach announcements, departure announcements, delay announcements, and odd/even platform voice selection remain available.
- Existing
station_announcer.jsonconfigurations remain compatible.
Requirements
- Minecraft 1.20.4
- Fabric
- Java 17 or newer
- Fabric API
- Minecraft Transit Railway 4.0.5
- Joban Client Mod 2.2.1 for Minecraft 1.20.4
- VOICEVOX for station announcements; VOICEVOX is an external application, not a Minecraft mod
Updating
- Remove the previous
gurigrui-pids-companion-*.jarfrom themodsfolder. - Place the new JAR in the
modsfolder. - Make sure only one GURIGRUI PIDS Companion JAR is installed before starting Minecraft.
Existing voice caches, custom sound folders, and station_announcer.json do not need to be deleted.