I would like to have the Dependency Service Text to Speech functionality behave in a synchronous manner, i.e. complete speaking before the calling code continues. Currently, it not consistent in starting or completely speaking the provided text. Is that possible?
I have tried new Task(() => { DependencyService.Get<ITextToSpeech>().Speak(narrative); }).Wait();
but it never returns. Other forms of Task.Run
are not compatible typically causing cross-thread errors.