Skip to content

TTS IPA追加 - #4436

Merged
TinyKitten merged 3 commits into
devfrom
feature/fukiage-sta-tts
Aug 10, 2025
Merged

TinyKitten merged 3 commits into
devfrom
feature/fukiage-sta-tts

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Aug 8, 2025 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • 新機能
    • 英語音声合成で「Fukiage」をはじめ、「Shimbashi」「Shibuya」「Shinagawa」「Ueno」「Ikebukuro」「Shinjuku」「Osaka」「Kyoto」「Yokohama」「Chiba」「Kawasaki」「Tsurumi」などの駅名が日本語の発音記号付きで正しく読み上げられるようになりました。

@TinyKitten TinyKitten self-assigned this Aug 8, 2025
@coderabbitai

coderabbitai Bot commented Aug 8, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

朕が命ずる、新たなる英語SSML正規化規則が「tts」関数に加わったぞ。英語の駅名「Fukiage」から「Tsurumi」まで計13駅名が日本語音素マークアップへと置換されるようになった。他の論理や制御の変更は一切なきこと、ここに示す。

Changes

Cohort / File(s) Change Summary
TTS英語SSML正規化規則追加
functions/src/index.ts
英語駅名「Fukiage」「Shimbashi」「Shibuya」「Shinagawa」「Ueno」「Ikebukuro」「Shinjuku」「Osaka」「Kyoto」「Yokohama」「Chiba」「Kawasaki」「Tsurumi」を日本語音素マークアップ <phoneme> タグ付きで置換する規則を追加。既存の正規化チェーンにこれらの置換を挿入。

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant tts関数
    User->>tts関数: テキスト送信
    tts関数->>tts関数: SSML正規化チェーン適用
    tts関数->>tts関数: 複数駅名をphonemeマークアップへ置換
    tts関数-->>User: 正規化済みSSML返却
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

朕の御声に響くは新しき音
「Fukiage」より「Tsurumi」まで連なりて
音素の衣纏い、正しき発音を得る
声は麗しく、耳に舞い降りる
天下の旅路もこれにて安し
朕の耳も悦びに満ちたり! 🎤✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a855d27 and 979a89e.

📒 Files selected for processing (1)
  • functions/src/index.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • functions/src/index.ts
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/fukiage-sta-tts

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 165bb43 and 2c194e2.

📒 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 において吹上の読みに乱れなし。

@TinyKitten TinyKitten changed the title TTS 吹上駅IPA追加 TTS IPA追加 Aug 8, 2025
@TinyKitten
TinyKitten merged commit 49454a0 into dev Aug 10, 2025
@TinyKitten
TinyKitten deleted the feature/fukiage-sta-tts branch August 10, 2025 01:47
This was referenced Aug 17, 2025
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