macintalk: stronger sh, ch and stop bursts, reduce unstressed final EH

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRAKCKq1gSHpownvFE
This commit is contained in:
Claude committed 2026-11-11 01:16:16 +00:00
1 parent 9d410c9c6c
commit 2a318c3f12
1 file changed
+16 -9
+16 -9
View File
@@ -91,18 +91,18 @@ static const struct phon ph[] = {
{ "v", FRIC | VOI, 220, 1100, 2080, 0, 0, 0, 60, 90, 120, 65, 48, 38, 6000, 6000 },
{ "T", FRIC, 320, 1290, 2540, 0, 0, 0, 200, 90, 200, 90, 0, 42, 5500, 5000 },
{ "D", FRIC | VOI, 270, 1290, 2540, 0, 0, 0, 60, 80, 170, 50, 50, 36, 5500, 5000 },
{ "s", FRIC, 320, 1390, 2530, 0, 0, 0, 200, 80, 200, 110, 0, 50, 5200, 2000 },
{ "s", FRIC, 320, 1390, 2530, 0, 0, 0, 200, 80, 200, 110, 0, 52, 5200, 2000 },
{ "z", FRIC | VOI, 240, 1390, 2530, 0, 0, 0, 70, 60, 180, 80, 48, 45, 5200, 2000 },
{ "S", FRIC, 300, 1840, 2750, 0, 0, 0, 200, 100, 300, 110, 0, 57, 2900, 1800 },
{ "Z", FRIC | VOI, 280, 1840, 2750, 0, 0, 0, 70, 100, 300, 80, 48, 50, 2900, 1800 },
{ "p", STOP, 400, 1100, 2150, 0, 0, 0, 300, 150, 220, 80, 0, 50, 1200, 2500 },
{ "b", STOP | VOI, 200, 1100, 2150, 0, 0, 0, 60, 110, 130, 65, 0, 45, 1200, 2500 },
{ "S", FRIC, 300, 1840, 2750, 0, 0, 0, 200, 100, 300, 110, 0, 62, 2900, 1800 },
{ "Z", FRIC | VOI, 280, 1840, 2750, 0, 0, 0, 70, 100, 300, 80, 48, 55, 2900, 1800 },
{ "p", STOP, 400, 1100, 2150, 0, 0, 0, 300, 150, 220, 80, 0, 57, 1200, 2500 },
{ "b", STOP | VOI, 200, 1100, 2150, 0, 0, 0, 60, 110, 130, 65, 0, 50, 1200, 2500 },
{ "t", STOP, 400, 1600, 2600, 0, 0, 0, 300, 120, 250, 70, 0, 56, 4200, 3000 },
{ "d", STOP | VOI, 200, 1600, 2600, 0, 0, 0, 60, 100, 170, 60, 0, 50, 4200, 3000 },
{ "k", STOP, 300, 1990, 2850, 0, 0, 0, 250, 160, 330, 80, 0, 54, 2300, 1500 },
{ "g", STOP | VOI, 200, 1990, 2850, 0, 0, 0, 60, 150, 280, 65, 0, 50, 2300, 1500 },
{ "C", AFFR, 350, 1800, 2820, 0, 0, 0, 200, 90, 300, 70, 0, 56, 2900, 1800 },
{ "J", AFFR | VOI, 260, 1800, 2820, 0, 0, 0, 60, 80, 270, 60, 0, 50, 2900, 1800 },
{ "k", STOP, 300, 1990, 2850, 0, 0, 0, 250, 160, 330, 80, 0, 58, 2300, 1500 },
{ "g", STOP | VOI, 200, 1990, 2850, 0, 0, 0, 60, 150, 280, 65, 0, 54, 2300, 1500 },
{ "C", AFFR, 350, 1800, 2820, 0, 0, 0, 200, 90, 300, 70, 0, 61, 2900, 1800 },
{ "J", AFFR | VOI, 260, 1800, 2820, 0, 0, 0, 60, 80, 270, 60, 0, 55, 2900, 1800 },
};
#define NPH ((int)(sizeof(ph) / sizeof(ph[0])))
@@ -437,6 +437,13 @@ static void nrl_word(const char *word, int func)
toks[i].stress = 2;
break;
}
/* an unstressed EH in the last syllable is reduced (chicken, hundred) */
for (i = ntok - 1; i > start; i--)
if (ph[toks[i].ph].flags & V) {
if (!toks[i].stress && !strcmp(ph[toks[i].ph].name, "EH"))
toks[i].ph = ph_find("IX", 2);
break;
}
}
static const char *ones[] = { "zero", "one", "two", "three", "four", "five", "six",