Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# espeak
A fork of eeejay eSpeak with a working demo for use in the browser, including Safari on iOS9
15 changes: 13 additions & 2 deletions emscripten/espeak.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ <h1>eSpeak.js Demo</h1>
<button type="button" id="preachit" onmousedown="speak(true);">Preach it</button>
<button type="button" onmousedown="stop();">Shut up</button>
</div>
<a id="gh" href="https://github.com/eeejay/espeak/tree/emscripten">GitHub Branch</a>
<a id="gh" href="https://github.com/jip-hop/espeak/tree/emscripten">GitHub Branch</a>
</form>
<script type="text/javascript">
espeak = new Espeak('js/espeak.worker.js', function cb() {
Expand Down Expand Up @@ -215,5 +215,16 @@ <h1>eSpeak.js Demo</h1>
}
xhr.send();
});</script>
<script type="text/javascript">
window.addEventListener("touchend", ios_unlock_sound, false);
function ios_unlock_sound(event) {
var buffer = ctx.createBuffer(1, 1, 22050);
var source = ctx.createBufferSource();
source.buffer = buffer;
source.connect(ctx.destination);
source.noteOn(0);
window.removeEventListener("touchend", ios_unlock_sound, false);
}
</script>
</body>
</html>
</html>
Binary file added emscripten/js/espeak.worker.data
Binary file not shown.
17 changes: 17 additions & 0 deletions emscripten/js/espeak.worker.js

Large diffs are not rendered by default.