예제 #1
0
 private void PlayAnnouncement(Milestone milestone)
 {
     if (milestone is VoiceInstructionMilestone)
     {
         SpeechAnnouncement announcement = SpeechAnnouncement.InvokeBuilder()
                                           .VoiceInstructionMilestone((VoiceInstructionMilestone)milestone)
                                           .Build();
         speechPlayer.Play(announcement);
     }
 }
예제 #2
0
 public SpeechAnnouncement WillVoice(SpeechAnnouncement p0)
 {
     return(SpeechAnnouncement.InvokeBuilder().Announcement("All announcements will be the same.").Build());
 }