I was checking this Javascript Text-to-Speech conversion API - http://responsivevoice.org/, for one of my projects.
I have created a snippet out of the fiddle to demonstrate the problem:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://responsivevoice.org/responsivevoice/responsivevoice.js"></script>
<textarea id="text" cols="45" rows="3">Hello, world!</textarea>
<input
onclick="responsiveVoice.speak($('#text').val(),'US English Female');"
type="button"
value="Play"
/>
In Safari 5.1.7 on Windows 8.1, I am getting the following error in the console:
TypeError: 'undefined' is not a constructor (evaluating 'new Audio(url)')
pointing to the responsivevoice
library.
It works fine on Chrome and Firefox. How do I get this working in Safari?