Skip to content
Open
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
7 changes: 5 additions & 2 deletions webapp/live.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ <h2>Status</h2>

// 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
Expand Down