MP3

29 views
Skip to first unread message

Cyrille Piatecki

unread,
Jul 13, 2022, 1:37:24 PM7/13/22
to JSXGraph
I have seen that it is possible to read a video inside a board but what of a mp3 or better a text to speach mecanism

Murray

unread,
Jul 15, 2022, 5:48:58 AM7/15/22
to JSXGraph
Here's an example of an MP3 embedded in a JSXGraph board, followed by a text to speech facility:


Hope it helps
Regards
Murray

Cyrille Piatecki

unread,
Jul 15, 2022, 10:07:30 AM7/15/22
to JSXGraph
This is very nice Murray, and exactly what i am searching for to two limits :
1) my native language is french and when I past french in the windows the result is not fine. So can we change the language
2) can I mask the text ?

Murray

unread,
Jul 15, 2022, 9:41:49 PM7/15/22
to JSXGraph
(1) Regarding language, you can change it as long as they are available in the operating system. I found this example by MDN allowed me to choose quite a range of languages: https://github.com/mdn/dom-examples/tree/master/web-speech-api/speak-easy-synthesis You could make use of that in your project to get what you want.

You need to be aware that speech synthesis doesn't work on quite a lot of browsers. See the note I added below the example on my page.

(2) I revised my example such that the text is no longer in an input box, but is now defined as a variable.

You may need to refresh the browser to see the latest version: https://bourne2learn.com/math/jsxgraph/mp3-in-jsxgraph.php

Cyrille Piatecki

unread,
Jul 27, 2022, 11:26:43 AM7/27/22
to JSXGraph

Hello Murray, all works fine but only for a small number of short paragraph. What can we do ?

Murray

unread,
Jul 29, 2022, 3:59:47 PM7/29/22
to JSXGraph
I remember I read somewhere that some browsers limit the amount of text more than others.


Your issues with this project now appear no longer to be JSXGraph related. It would be best to pursue this now on Stackexchange or similar. Good luck with it.

Reply all
Reply to author
Forward
0 new messages