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