예제 #1
0
        private async Task StartRouteSpeech(RouteResponse routeResponse)
        {
            await textToSpeechService.SpeakAsync("We're ready, let's go!");

            await Task.Delay(2000);

            string description = ExtractFullDescriptionFromRoute(routeResponse);

            if (!string.IsNullOrEmpty(description))
            {
                textToSpeechService.Speak(description);
            }
        }
 async void ExecuteShownToSpeech(string text)
 {
     await _textToSpeech.SpeakAsync(text);
 }