Repository navigation
TTS IPA追加 - #4436
TTS IPA追加#4436
Conversation
Walkthrough朕が命ずる、新たなる英語SSML正規化規則が「tts」関数に加わったぞ。英語の駅名「Fukiage」から「Tsurumi」まで計13駅名が日本語音素マークアップへと置換されるようになった。他の論理や制御の変更は一切なきこと、ここに示す。 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant tts関数
User->>tts関数: テキスト送信
tts関数->>tts関数: SSML正規化チェーン適用
tts関数->>tts関数: 複数駅名をphonemeマークアップへ置換
tts関数-->>User: 正規化済みSSML返却
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
functions/src/index.ts (1)
92-94: 任意提案: 「き」の口蓋化で自然さを一段高めよ。発音の厳密さを求むなら、/ki/ を軽く口蓋化して kʲi と記す手もある。現状でも差し支えはないが、聴感での向上を狙うなら次の修正を検討せよ。
- '<phoneme alphabet="ipa" ph="ɸɯkiaɡe">ふきあげ</phoneme>' + '<phoneme alphabet="ipa" ph="ɸɯkʲiaɡe">ふきあげ</phoneme>'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
functions/src/index.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: TinyKitten
PR: TrainLCD/MobileApp#4249
File: __tests__/hooks/useTelemetrySender.enabled.test.tsx:54-68
Timestamp: 2025-05-07T23:04:31.413Z
Learning: TinyKitten is working on implementing a queue for movement logs in the TrainLCD mobile app, but realized the implementation differed from their original intention.
📚 Learning: 2025-07-18T11:04:45.459Z
Learnt from: TinyKitten
PR: TrainLCD/MobileApp#4396
File: src/components/TrainTypeBoxJRKyushu.tsx:176-183
Timestamp: 2025-07-18T11:04:45.459Z
Learning: TrainTypeBoxJRKyushuコンポーネントでは、trainTypeNameとprevTrainTypeNameは常に文字列となるため、.split()メソッドを使用する際のnull安全性チェックは不要である。これらの変数はuseMemoとuseLazyPreviousを通じて管理され、translate()関数からのフォールバック値により常に文字列が保証される。
Applied to files:
functions/src/index.ts
🔇 Additional comments (1)
functions/src/index.ts (1)
90-94: Fukiage の IPA 置換、よくやった。順序も妥当である。朕は是を良しとする。特例を Toride の直後かつ「jo」一般置換の前に据えた判断、見事である。タグ構造・属性も既存規則に合致し、英語 SSML において吹上の読みに乱れなし。
Summary by CodeRabbit