mirror of https://github.com/MycroftAI/mimic2.git
added voice samples and an index.html page to view
parent
c6aabb0f96
commit
06572efd9e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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>
|
Loading…
Reference in New Issue