0

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?

Rahul Desai
  • 15,242
  • 19
  • 83
  • 138

1 Answers1

1

It is a known issue with safari And HTML5 Audio. install quick time and follow this link:

http://infobrink.com/safari-not-liking-the-html5-audio/

griffon vulture
  • 6,594
  • 6
  • 36
  • 57