-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read aloud stops at certain html content #483
Comments
I guess the bug occurs in the Azure Immersive Reader itself, not this Immersive Reader SDK. |
Hi @cadi3s , I tried to repro this issue but was not possible, can you please provide repro steps more in detail? I tried both text/plain and text/html, and also starting in the phrase you mentioned, and everything is read out loud. |
Hi @cristobal-buenrostro my code is pretty standard, I think. The weird behavior seems in this particular content (although there is nothing out of the ordinary in the content as well that I can see) or maybe simply the length of the content. I include immersive-reader-sdk.1.3.0.js The data contains a title (just a string) and two chunks: The string in the first chunk is rather long, html and contains a couple of paragraphs:
The reader launches fine, and starts to read aloud. The first few paragraphs are read aloud ok. When it hangs, there is no script error. I can still select words in the paragraphs above and including that phrase "over the course of the play." |
can you please try disabling all your browser extensions? what's your current browser? |
I saw it in Chrome, Edge and Firefox. I will try to set up a simple test page that is publicly accessible. |
@cadi3s please let us know if you could publish a test page to repro the issue |
@cristobal-buenrostro I created a test page at https://demo.cumlaudelearning.com/test-ir.html When I do that, reading stops on its own after ".. over the course of the play". Please let me know if you can or cannot reproduce the issue. At some point I will have to remove that test page. |
@cadi3s I tried in chrome, edge and firefox and all the context was read correctly. |
@cristobal-buenrostro did you let it run to the indicated line? I can consistently reproduce the bug if I let Immersive Reader read the text, uninterrupted. Also, do not resize the window or click anywhere, just press Play and wait. It usually takes around 1:30 minutes to get to ".. over the course of the play". |
I'm seeing this same issue. I'm sending quite a lot of text (HTML content) to the IR service, but in the docs it says the max size is 50MB, so I'm definitely fine on that front. It will read until a certain line, then start throwing that |
in.mov |
Seems to be a problem with the React virtualized renderer lib the IR is using. Screen.Recording.2024-11-19.at.11.34.24.movResizing the viewport 1px fixes the issue. |
@austingayler indeed my link above still has the same issue and script error, but only for some viewport sizes. @cristobal-buenrostro maybe you want to have another go at this, see if you can reproduce it with my link or Austins info? |
@cadi3s this works:
This is luckily randomly exposed in this: Hacky but it works. |
@austingayler thanks I will try that out. If it works, it work :-) |
thanks for all the feedback, I was finally able to repro the issue. Added to our internal backlog. |
Hi, reading aloud text works great, for both plain text and html chunks, except in one case.
When I launch with a chunk with mimeType: 'text/html' and contents a shown below:
Removing the
<p>
tags from the content avoids the problem, but I would rather not do that.Can anyone confirm that this is a bug in the SDK ?
Sample html chunk
Script error
Tested with https://ircdname.azureedge.net/immersivereadersdk/immersive-reader-sdk.1.3.0.js
The text was updated successfully, but these errors were encountered: