Ejemplo n.º 1
0
 /// <summary>
 /// Returns an audio source that speaks a specified phrase.
 /// </summary>
 /// <param name="phrase">The phrase to be spoken.</param>
 /// <returns>The audio source reference.</returns>
 public static AudioSource Speech(Phrase phrase)
 {
     return(new AudioSource(string.Format("say:{0}", phrase.Encode()))
     {
         GeneratesSpeech = true
     });
 }