Пример #1
0
 private void PlayStop()
 {
     if (ttsService.IsPlaying)
     {
         ttsService.StopCurrentSynth();
         return;
     }
     ttsService.SayItAllTestAsync(allText, CurIndex, (curPhrase, index) => {
         // phrase
         if (curPhrase.Lang == outputLang)
         {
             if (!string.IsNullOrEmpty(CurText))
             {
                 PrependToLog(CurText);
             }
             CurText = curPhrase.Text;
         }
         CurIndex = index;
     });
 }
 public void Stop()
 {
     ttsService.StopCurrentSynth();
 }