2014-09-23 51 views
1

我正在使用moodle開發網站。我需要使用Text to Speech,所以我使用Google TTS,SimpleSpeak也不適用於moodle 2.7。Google Text to Speech總是顯示404(Not Found)

所以在我的網頁我有這樣的事情:

<audio id="live" src="http://translate.google.com/translate_tts?tl=en&amp;q=live"  
rel="noreferrer」> 
</audio> 
<div> 
<button onclick="document.getElementById('live').play()" &gt;play=""> 
live 
</button> 
</div> 

但每次我點擊它不工作的按鈕,當我檢查的代碼,它給 無法加載資源:服務器迴應了404(未找到)的狀態

我已經添加rel =「noreferrer」。

任何人都可以幫助我解決這個問題。先謝謝了。

回答

0

我剛剛注意到你的錯誤。在你的代碼有:

rel="noreferrer」 

,而不是

rel="noreferrer" 

您不小心輸錯引號。

」 =/= "