我已经设法让它与以下脚本一起工作:
-- to run, '/usr/bin/osascript genPhonemes'
-- https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/SpeechSynthesisProgrammingGuide/Phonemes/Phonemes.html
-- http://stackoverflow.com/questions/23742648/synthesize-phoneme-pairs-on-osx
-- http://applescript.wikia.com/wiki/Say
set Vowels to { "AA", "AY", "EH", "EY", "IY", "AO", "OY", "UW", "UWIY", "AX", "AXIY", "IH"}
set Consonants to { "d", "b", "r", "N", "m", "v", "S", "z", "h", "l", "k", "t" }
set NoteOffsets to { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -3, -2, -1 }
set NoteNumbers to { "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11" }
set targetFolder to "OUT" -- ((choose folder) as text)
repeat with i from 1 to 12
set C to (item i of Consonants)
set midinote to 60 - 12 + (item i of NoteOffsets)
repeat with j from 1 to 12
set V to (item j of Vowels)
set filename to targetFolder & C & "_" & (item j of NoteNumbers) & ".aif"
set utterance to "[[inpt PHON]]" & C & V
say utterance using "Pipe Organ" speaking rate 120 pitch midinote modulation 0 saving to filename
end repeat
end repeat
由于某种原因,元音对出现错误。第二个元音的音调越来越高。使用管风琴,最后一个元音是完美的第四高。
所以例如 dUWIY,听起来像“doo-ee”,最后的 ee 是完美的第四高。
唯一合适的声音是大提琴,它也会破坏它,虽然间隔更小,可能是半音。
有没有什么办法解决这一问题?