Skip to content

英語TTS乗換案内の改善とTTSボイス名変更 - #5610

Merged
TinyKitten merged 1 commit into
devfrom
feature/improve-english-tts-announcements
Mar 16, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/improve-english-tts-announcements

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Mar 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • 英語TTS乗換案内で路線名の間に<break time="200ms"/>を追加し、自然な間を確保
  • 山手線使用時のTOKYO_METROテーマ英語テンプレで「Yamanote Line Service on the Yamanote Line」の路線名重複を解消(Yamanote Line train bound for...に修正)
  • TTS音声をNeural2からStandardに変更(functions/src/funcs/tts.ts、src/constants/tts.ts)
  • テストのexpected値を<break>タグ追加に合わせて更新

Test plan

  • npm test -- --testPathPattern=useTTSText 28テスト全パス確認済み
  • 山手線固有パス(やまのて線内回り/外回り、英語Yamanote Line重複解消)のテスト追加(後続対応)

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • 改善
    • テキスト読み上げの既定音声を変更し、より自然な発音を提供します
    • 英語のアナウンスに適切な間隔を追加し、リスニング体験を向上させます
    • 列車タイプと転乗案内の表現を改善し、より明確な案内を実現します

@coderabbitai

coderabbitai Bot commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 41e796db-e473-47bc-892b-0d8221cdf0f3

📥 Commits

Reviewing files that changed from the base of the PR and between a77499a and fa04dc9.

📒 Files selected for processing (4)
  • functions/src/funcs/tts.ts
  • src/constants/tts.ts
  • src/hooks/useTTSText.test.tsx
  • src/hooks/useTTSText.ts

📝 Walkthrough

ウォークスルー

TTS音声のデフォルト設定をNeural2からStandardに変更し、SSML出力に200msの休止タグを挿入してTTS音声の間隔を改善しました。また、列車タイプ表現の条件付きロジックを更新し、関連するテストを同期させました。

変更内容

コホート / ファイル 概要
TTS音声定数の変更
src/constants/tts.ts, functions/src/funcs/tts.ts
デフォルトTTS音声をNeural2系(ja-JP-Neural2-B、en-US-Neural2-F)からStandard系(ja-JP-Standard-B、en-US-Standard-F)に変更し、コード整形を調整
TTSテンプレート出力の改善
src/hooks/useTTSText.ts
複数の乗換路線や駅リストのジョイナーに200msの休止タグ(<break time="200ms"/>)を挿入し、列車タイプ表現を条件付きで「Yamanote Line train」などに更新
テストケースの同期
src/hooks/useTTSText.test.tsx
英語版SSMLテスト文字列を更新し、ジョイナー後に休止タグを挿入して新しい出力形式に対応

推定コードレビュー工数

🎯 2 (Simple) | ⏱️ ~12 分

関連する可能性のあるPR

提案されるラベル

react, functions

ポエム

🐰 Neural2からStandardへ、声は優しく変わり
休止タグ挿入で、テンポよく流れ
列車の案内も、より自然に響く
TTSの改善で、乗客の耳も満足!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR タイトルは「英語TTS乗換案内の改善とTTSボイス名変更」で、変更内容の主要な3点(英語TTS改善、乗換案内の改善、TTSボイス変更)を簡潔に表現しており、PR全体のスコープを的確に要約しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/improve-english-tts-announcements
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can generate a title for your PR based on the changes.

Add @coderabbitai placeholder anywhere in the title of your PR and CodeRabbit will replace it with a title based on the changes in the PR. You can change the placeholder by changing the reviews.auto_title_placeholder setting.

@TinyKitten TinyKitten self-assigned this Mar 16, 2026
@TinyKitten
TinyKitten merged commit 239fc66 into dev Mar 16, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the feature/improve-english-tts-announcements branch March 16, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant