5

I've a formula, eg:

enter image description here

where the latex's code is:

\int_{a}^{b} \frac{1}{\sqrt{\rho}} d\rho

The output should be somthing like this: "The integral from a to b of one over the square root of ro in de ro."

I'm aware of this question, but I'm interested in a tool/library/service used by a un*x program "headless" and more the answer is ten years old, I hope something new is available.

  • 2
    currently mathjax speech rules are probably the most advanced thing here, you could access them via a headless browser but see https://docs.mathjax.org/en/latest/basic/a11y-extensions.html#a11y-extensions – David Carlisle Oct 25 '21 at 20:30
  • 2
    or more directly to the underlying speech rule engine https://speechruleengine.org/ – David Carlisle Oct 25 '21 at 20:34
  • @DavidCarlisle if you answer I can give you the "correct" :) – Ivan Buttinoni Oct 26 '21 at 06:31
  • See: https://tex.stackexchange.com/questions/454944/is-there-screen-reader-software-or-a-built-in-method-that-supports-latex-equat Also this: https://tex.stackexchange.com/questions/352649/can-we-get-maths-in-pdfs-that-can-be-copy-pasted-and-screen-read – Steven B. Segletes Dec 10 '23 at 18:45

3 Answers3

4

Currently mathjax speech rules are probably the most advanced thing here, you could access them via a headless browser but see

https://docs.mathjax.org/en/latest/basic/a11y-extensions.html

Or more directly to the underlying speech rule engine

https://speechruleengine.org

David Carlisle
  • 757,742
2

Take a look at MathCAT, a Rust library for converting MathML to speech strings.

Demo: https://nsoiffer.github.io/MathCATDemo/

1

For completeness of the solution list, following the David Carlisle suggestion, I've develop a MathJax wrapper:

latex-to-speak-http-gateway