我想在我的网页上的Flash播放器中播放Google文字转语音网址.
我使用http://www.alsacreations.fr/dewplayer.html但它不起作用:
<object type="application/x-shockwave-flash" data="dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer"> <param name="wmode" value="transparent" /> <param name="movie" value="dewplayer.swf" /> <param name="flashvars" value="mp3=http://translate.google.com/translate_tts?q=hello-word&tl=en" /> </object>
解决方法
您MP3文件的URL必须是URL编码的(http://www.w3schools.com/tags/ref_urlencode.asp)
<object type="application/x-shockwave-flash" data="dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer"> <param name="wmode" value="transparent" /> <param name="movie" value="dewplayer.swf" /> <param name="flashvars" value="mp3=http%3A%2F%2Ftranslate.google.com%2Ftranslate_tts%3Fq%3Dhello-world%26tl%3Den" /> </object>