name_ipaの語末撥音ɴをAzureが読まない不具合を修正#1538
Merged
Merged
Conversation
Azure ja-JP の <phoneme alphabet="ipa"> が口蓋垂鼻音 ɴ を音節化せず、 「〜線」(…seɴ) 末尾の「ん」が脱落していた。語末・母音前の ɴ を n に統一する。 子音前の m / ŋ / n 同化とアクセント核付与は不変。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
Changes撥音IPA統一と音節境界処理
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
西武新宿線の「新」(ɲ) や新幹線系の「新」(ŋ) も非ASCII鼻音で Azureが脱落させるため、両唇音前のm以外はすべてnに統一。 母音・半母音(ヤ行j/ワ行w)が続く撥音は音節境界.を挿入し、 新江古田(しん.えごた)・新横浜(しん.よこはま)が「な行」に 融合しないようにする。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
name_ipa/ ja-JPname_tts_segmentsの撥音「ん」を表す非ASCIIの IPA 鼻音(口蓋垂ɴ/ 口蓋ɲ/ 軟口蓋ŋ)を ASCII のnに統一し、Azure ja-JP の<phoneme alphabet="ipa">で「ん」が脱落する不具合を修正します。変更の種類
変更内容
Azure AI Speech の
<phoneme alphabet="ipa">は非ASCIIの鼻音ɴ/ɲ/ŋを音節化せず、「ん」が脱落していた(語末「〜線」…seɴ等)。両唇音前のm(ASCII)以外の撥音同化先をすべてnに統一する。stationapi/src/domain/ipa.rsnasal_for_followingを簡素化: 両唇音前のみm、それ以外(口蓋ɲ・軟口蓋ŋ・歯茎・語末・母音前)はすべてnj/ ワ行w)が続く撥音には音節境界.を挿入し、nがコーダのまま残るようにする(例: 新江古田ɕin.egota、新横浜ɕin.jokohama)。これがないと Azure がn+母音を「な行」に融合させる(しねごた)kutchan(倶知安)ɴ→n、shim(新)ɴ→nname_ipaとカタカナ由来 ja-JPname_tts_segments[].pronunciationのみ。en-US セグメント・アクセント核ˈの付与ロジックは不変ニ/ニャ等の onset 子音ɲは撥音ではないため変更なしɴ/ɲ/ŋ期待値(ipa.rs/line.rs/station.rs)を更新し、西武新宿線・新江古田・新横浜のテストを追加主な読み上げの変化(IPA)
…seɴ(ん脱落)…sen…ɕiɲdʑɯkɯseɴ…ɕindʑɯkɯsen…ɕiŋˈkanseɴ…ɕinˈkansen…iɴegota(ん脱落)…in.egota…iɲjokohama…in.jokohamaテスト
cargo fmt --all -- --checkが通ることcargo clippy -- -D warningsが通ることcargo test(SQLX_OFFLINE=true)が通ること関連Issue
Closes #1536
スクリーンショット(任意)
Summary by CodeRabbit
リリースノート