mirror of
https://github.com/D-Modem/speaking-clock.git
synced 2026-11-28 12:38:05 -08:00
mssam: refit Sam with formant contrast in the score
Sam's vowels came out with flatter formants than his (4.3 dB of peak-to-valley contrast between 300 Hz and 4 kHz, against his 5.4), which sounds muddy. The score now compares that contrast too; the refit strengthens the postfilter (0.71/0.87) and reshapes the tone correction, and the contrast now matches (5.30 against 5.39). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRVXG9MBYPxmcs9cFxs
This commit is contained in:
2 files changed
+14
-12
No files matched your search
@@ -50,8 +50,9 @@ the WAV (22050 Hz, or 8000 Hz for the telephone voices, 16-bit mono) goes to sta
|
||||
(tone correction, hiss level and pace, how much the pitch pulses are
|
||||
smoothed and flattened, the formant postfilter, the levelling) were
|
||||
fitted automatically to 30 of his own recordings, scoring each sound's
|
||||
tone, its loudness over time, its length and how steady its pitch
|
||||
pulses are, and checked on 10 more.
|
||||
tone, its loudness over time, its length, how steady its pitch
|
||||
pulses are and how sharply its formants stand out, and checked on 10
|
||||
more.
|
||||
When a phrase pauses, the filter rings out instead of stopping dead.
|
||||
|
||||
docs/mssam-format.md describes the voice data.
|
||||
+11
-10
@@ -1079,7 +1079,7 @@ static void compress(void)
|
||||
* overall brightness, which the fit alone left short. dB at each frequency;
|
||||
* Mike and Mary need none. */
|
||||
static const double eq_hz[] = { 125, 250, 500, 1000, 2000, 2500, 3000, 3500, 4000, 5000, 6000, 7000, 8000, 9500 };
|
||||
static const double eq_sam[] = { 5.55, 10.7, 4.1, 8.0, 6.55, 6.6, 1.6, 5.4, 4.3, 2.2, 1.3, 2.9, -1.1, 1.7 };
|
||||
static const double eq_sam[] = { 0.05, 11.45, 1.1, 7.25, 9.8, 6.85, 2.6, 6.9, 4.3, 3.2, 1.3, 2.9, -3.1, -0.3 };
|
||||
static const double *eq;
|
||||
|
||||
static void equalise(void)
|
||||
@@ -1162,7 +1162,7 @@ static void usage(void)
|
||||
|
||||
/* Sam's pace against his units' own: a little quicker than they were
|
||||
* recorded. Mike and Mary keep theirs. */
|
||||
#define SAM_PACE 0.925
|
||||
#define SAM_PACE 0.9
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
@@ -1205,18 +1205,19 @@ int main(int argc, char **argv)
|
||||
if (!strcmp(voice, "sam")) {
|
||||
/* fitted to 30 of his recordings (and checked on 10 more):
|
||||
* each sound's tone, its loudness over time, its length, and
|
||||
* how steady its pitch pulses are from one to the next */
|
||||
* how steady its pitch pulses are from one to the next, and how
|
||||
* sharply its vowels' formants stand out */
|
||||
eq = eq_sam;
|
||||
PF_NUM = 0.7375;
|
||||
PF_DEN = 0.75;
|
||||
FRIC = 7.3;
|
||||
hiss_rate = 1.3;
|
||||
PF_NUM = 0.7125;
|
||||
PF_DEN = 0.87;
|
||||
FRIC = 5.2;
|
||||
hiss_rate = 1.425;
|
||||
FLAT = 1;
|
||||
SMOOTH = 0.95;
|
||||
SMOOTH_HZ = 4800;
|
||||
SMOOTH_HZ = 4200;
|
||||
LIFTC = 0.375;
|
||||
JOIN = 0.175;
|
||||
COMPRESS = 0.225;
|
||||
JOIN = 0.25;
|
||||
COMPRESS = 0.1375;
|
||||
}
|
||||
snprintf(path, sizeof(path), "%s/%s.inv", dir, voice);
|
||||
load_inventory(path);
|
||||
|
||||
Reference in new issue
Block a user