//Play a sequence of phonemes with a signaling callback for when the first phoneme is played public void PlaySequenceOfPhonemes(string[] sequence, int ici, PlayedStartFlagCallback callback) { if (Initialized) { sequencePlayer.PhonemeSequence = sequence; sequencePlayer.ICI = ici; sequencePlayer.OptionalStartFlagCallback = callback; sequencePlayer.StartFlag = true; sequencePlayer.Start(); } }
public PhonemeSequencePlayer() { ICI = 150; PhonemeSequence = null; syncCallbackInstance = new FinishedPlayingPhonemeCallback(CallbackHandler); Index = 0; phonemesPlayed = 0; StartFlag = false; OptionalStartFlagCallback = null; previousCallback = Instance.internalPhonemePlaybackCallback; }
//Play a sentence with a certain ICI and IWI value and an optional callback to signal that the signal public void PlaySentence(string sentence, int ici, int iwi, PlayedStartFlagCallback callback) { if (Initialized) { sentencePlayer.Sentence = sentence; sentencePlayer.ICI = ici; sentencePlayer.IWI = iwi; sentencePlayer.StartFlag = true; sentencePlayer.OptionalStartFlagCallback = callback; sentencePlayer.Start(); } }