added voice samples and an index.html page to view

test
Michael Nguyen 2018-09-14 16:51:10 -05:00
parent c6aabb0f96
commit 06572efd9e
5 changed files with 65 additions and 0 deletions

BIN
samples/1.wav Normal file

Binary file not shown.

BIN
samples/2.wav Normal file

Binary file not shown.

BIN
samples/3.wav Normal file

Binary file not shown.

BIN
samples/4.wav Normal file

Binary file not shown.

65
samples/index.html Normal file
View File

@ -0,0 +1,65 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>audio test</title>
</head>
<body>
<!-- <audio controls="controls" autoplay>
Your browser does not support the <code>audio</code> element.
<source src="smb_gameover.wav" type="audio/wav">
</audio>
-->
<p>This voice was generated using 16 hours of data recorded from our colleague <a href="https://www.linkedin.com/in/kusalwin/">Kusal</a></p>
<div>
<h4>"There a way to measure the acute emotional intelligence that has never gone out of style." <button class="playWAV1">PLAY</button>
</h4>
</div>
<div>
<h4>"It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent." <button class="playWAV2">PLAY</button>
</h4>
</div>
<div>
<h4>"The human voice is the most perfect instrument of all." <button class="playWAV3">PLAY</button>
</h4>
</div>
<div>
<h4>"I'm sorry Dave, I'm afraid I can't do that." <button class="playWAV4">PLAY</button>
</h4>
</div>
<div>Voice generated from the Mycroft AI team</div>
<script>
/**********************
******** AUDIO ********
**********************/
// load and play a sound.
function playSound(path) {
// audio supported?
if (typeof window.Audio === 'function') {
var audioElem = new Audio();
audioElem.src = path;
audioElem.play();
}
}
// event listeners
document.querySelector('.playWAV1').addEventListener('click', function () {
playSound('1.wav');
});
document.querySelector('.playWAV2').addEventListener('click', function () {
playSound('2.wav');
});
document.querySelector('.playWAV3').addEventListener('click', function () {
playSound('3.wav');
});
document.querySelector('.playWAV4').addEventListener('click', function () {
playSound('4.wav');
});
</script>
</body>
</html>