예제 #1
0
파일: Motu.cs 프로젝트: JuanSMartinez/Taps
 //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();
     }
 }
예제 #2
0
파일: Motu.cs 프로젝트: JuanSMartinez/Taps
 public PhonemeSequencePlayer()
 {
     ICI                       = 150;
     PhonemeSequence           = null;
     syncCallbackInstance      = new FinishedPlayingPhonemeCallback(CallbackHandler);
     Index                     = 0;
     phonemesPlayed            = 0;
     StartFlag                 = false;
     OptionalStartFlagCallback = null;
     previousCallback          = Instance.internalPhonemePlaybackCallback;
 }
예제 #3
0
파일: Motu.cs 프로젝트: JuanSMartinez/Taps
 //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();
     }
 }