ITextToSpeech DependencyService Completion

alaskanroguealaskanrogue USMember ✭✭✭

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.

Best Answer

Answers

  • alaskanroguealaskanrogue USMember ✭✭✭

    Interesting possible approach to create an event scenario. One might check before initiating your speech to lower the possibility of competition being active when the call is made.

Sign In or Register to comment.