diff --git a/webapp/live.html b/webapp/live.html
index c7b5bc2..87da6d0 100644
--- a/webapp/live.html
+++ b/webapp/live.html
@@ -86,8 +86,11 @@
Status
// This starts recording. We first need to get the id of the grammar to use
var startRecording = function() {
- var id = document.getElementById('grammars').value;
- if (recorder && recorder.start(id)) displayRecording(true);
+ // Resume audio context. Chrome can prevent it from starting without a click.
+ audioContext.resume().then(() => {
+ var id = document.getElementById('grammars').value;
+ if (recorder && recorder.start(id)) displayRecording(true);
+ });
};
// Stops recording