G
Guest
I am writing a tiny bookmarklet to read the text on webpages using MS Speech
SDK 5.1. It works fine on local pages on my computer, but it seems that the
"new ActiveXObject" line won't execute on webpages on the net and thus render
my bookmarklet useless. What can I do to get around that?
javascriptfunction(){var VoiceObj=new ActiveXObject("Sapi.SpVoice");var
VoicesToken=VoiceObj.GetVoices();var
AudioOutputsToken=VoiceObj.GetAudioOutputs();VoiceObj.Voice=VoiceObj.GetVoices().Item(1);VoiceObj.AudioOutput=VoiceObj.GetAudioOutputs().Item(0);VoiceObjRate=3;VoiceObj.Volume=100;inputText=document.selection.createRange().text;try{VoiceObj.Speak(inputText,1)}catch(exception){alert("Speech
output error")}delete VoiceObj;})()
SDK 5.1. It works fine on local pages on my computer, but it seems that the
"new ActiveXObject" line won't execute on webpages on the net and thus render
my bookmarklet useless. What can I do to get around that?
javascriptfunction(){var VoiceObj=new ActiveXObject("Sapi.SpVoice");var
VoicesToken=VoiceObj.GetVoices();var
AudioOutputsToken=VoiceObj.GetAudioOutputs();VoiceObj.Voice=VoiceObj.GetVoices().Item(1);VoiceObj.AudioOutput=VoiceObj.GetAudioOutputs().Item(0);VoiceObjRate=3;VoiceObj.Volume=100;inputText=document.selection.createRange().text;try{VoiceObj.Speak(inputText,1)}catch(exception){alert("Speech
output error")}delete VoiceObj;})()