internetExplorer11だけmp3ファイルが読み込まれません。
原因がわかる方がいましたら教えていただきたいです。
よろしくお願いします。
HTML
1<!DOCTYPE html> 2<html lang="ja"> 3 4<head> 5 <meta charset="utf-8"> 6 <script type="text/javascript"> 7 function do_speech() { 8 var ssu = new SpeechSynthesisUtterance(); 9 ssu.text = document.getElementById("word").value; 10 ssu.lang = 'ja-JP'; 11 speechSynthesis.speak(ssu); 12 } 13 </script> 14</head> 15<body> 16 <p>テスト</p> 17 <button onclick="do_speech();">test!</button> 18 <input type="text" value="test" id="word" style="width:50%;" /> 19 <br/><br/><br/> 20 <p>音声ファイル版<br/>※音量</p> 21 <audio src="media/sample.mp3" controls></audio> 22</body> 23</html>
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/16 04:38
2019/01/16 07:10
2019/01/16 10:25