I just had a crazy idea. Use a text to speech prog...
# cfml-general
o
I just had a crazy idea. Use a text to speech program to create audio files that are played to assist the user with the given page when a help icon is clicked on. Example: https://murf.ai/shared/share-link/public/W6X9ROGeEFX0pEiJAFApCr5RZgx1/P016597402149779F5/output.wav
j
You could just use the Javascript Web Speech functionality. It’s built-in to most browsers.
o
The api isn't compatible on all browsers yet though.
Also it's no accessible due to relying purely on JavaScript???
Wouldn't ogg/mp3 files be universal though?
Also do you think this is a good idea?
j
Ogg/mp3 files would require storage and transfer for every single audio clip. I suppose they’re as normal as the web gets for audio files.
Speech synthesis requires no storage and no bandwidth.
It could be good, just depends on the use case and application.
o
https://jsfiddle.net/OokmaKyi/8dqb12xw/2/ this seems a bit obsessive as the text to speak is longer then the code... any way to shorten it or make it more portable?
a
If a web page started speaking to me when I "pressed F1" I would throw my computer out the nearest window. I do not want my fucking computer speaking to me when it's trying to be a big help. If however I activated an "audio assistance" feature (which I would never do, but I get that this would help some people), then fair cop. For implementation of an MVP I would probably use inbuilt browser support though I think.
j
@Ookma-Kyi I assumed you would be speaking text already on the page. So, no, it’s basically WYSIWYG.
o
@Adam Cameron It would be in response to clicking a help icon, more so for the visually impaired then anything.
d
@Ookma-Kyi anyone who would need this would use a screen reader already - just build your web pages in an accessible way (and get them tested by a third party that knows about this). This should be standard practice but still seems to be an afterthought on most sites 😞