Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ITextToSpeech DependencyService Completion

$
0
0

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.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>