コード例 #1
0
 public void sayMistyTTS()
 {
     if (speechSynthesis.text != null && speechSynthesis.text.Length > 0)
     {
         misty.SayTTS(getSpeechSynthesis(), getSpeechRate(), getSpeechPitch(), true);
     }
 }
コード例 #2
0
 public void sayMistyTTS(string speech)
 {
     if (speech != null && speech.Length > 0)
     {
         if (useMistyTTS)
         {
             misty.sendAudioOnGenerationComplete = false;
             misty.SpeakTTS(speech, editorUI.rateSlider.value, editorUI.pitchSlider.value, editorUI.volumeSlider.value);
         }
         else
         {
             misty.sendAudioOnGenerationComplete = true;
             misty.SayTTS(speech, editorUI.rateSlider.value, editorUI.pitchSlider.value, true);
         }
     }
 }