microsoft / immersive-reader-sdk

SDK for using the Immersive Reader through Cognitive Services
MIT License
96 stars 52 forks source link

readaloudoptions not working #391

Closed graham83 closed 1 year ago

graham83 commented 1 year ago

Configuring readAloudOptions on launch does not have any effect.

Have tried variations of this (e.g. autoplay -> autoPlay, male -> Male without success. The reader opens and requires manual starting and configuration.

Browsers tested Chrome, Edge.

This is the JS configuration:

const options = {
        "readAloudOptions": {
            "autoplay": true,
            "voice": 'male'
        },
        "onExit": exitCallback,
        "uiZIndex": 1000000
    };
rwallerms commented 1 year ago

Hello graham83,

Unfortunately, we are not able to reproduce this issue on our end. We have confirmed that using your options code above works in our Sample app here. Have you tried using our sample to reproduce this?

What is the language of the text are you using? Wondering if it could be related to your language or content somehow, perhaps a language that is not supported for Playback...

Can you share your sample text? Or even perhaps a small project that reproduces the issue, if that is convenient?

Thanks!

graham83 commented 1 year ago

Thank you for your response. I spun up the example and see it is working. I added option lang: "en-US" to my code and then the autoplay worked. However removing this option it continues to work so not a definite bug.. perhaps something cached. I will close this issue thank you.

On Thu, 27 Oct 2022 at 10:39, rwallerms @.***> wrote:

Hello graham83,

Unfortunately, we are not able to reproduce this issue on our end. We have confirmed that using your options code above works in our Sample app here https://github.com/microsoft/immersive-reader-sdk/blob/471c242f1c08c38892197b8e7b3ad1328736c3be/js/samples/quickstart-csharp/Views/Home/Index.cshtml#L106. Have you tried using our sample to reproduce this?

What is the language of the text are you using? Wondering if it could be related to your language or content somehow, perhaps a language that is not supported for Playback...

Can you share your sample text? Or even perhaps a small project that reproduces the issue, if that is convenient?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/microsoft/immersive-reader-sdk/issues/391#issuecomment-1292778263, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMNDXVATS2LWSWDFL4O32LWFG6M3ANCNFSM6AAAAAARLW3LIY . You are receiving this because you authored the thread.Message ID: @.***>

rwallerms commented 1 year ago

Thank you for confirming! I will close this issue now. Please reach out with any further questions!