Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

How to know when Text to Speech is finished speaking the text ?

prasadlprasadl
edited February 2017 in Questions And Answers

Hi,
I'm using TextToSpeechManager which comes with HoloToolkit. The problem I'm facing is I want to load a new scene when my specified text in the SpeakText() method is finished speaking. The IsSpeaking() method didn't give any success since it returns false at the very beginning though I have invoked the SpeakText() method. So there's a delay to start speaking, It's not beginning to speak right after I invoke SpeakText().

Can anyone help me? Simply I want to load a new scene after a Text to Speech is finished.

Tagged:

Best Answer

  • prasadlprasadl
    Answer ✓

    I got it solved by using this line of code
    yield return new WaitUntil(() => TextToSpeech.IsSpeaking() == true);
    using this I can hold the execution until speaking begins. Then after I can use the IsSpeaking() method again to check when the speaking ends.

Answers

Sign In or Register to comment.