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
6 changes: 3 additions & 3 deletions webapp/live.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>PocketSphinx.js live demo</h2>
<select id="grammars"></select>
<button id="startBtn">Start</button>
<button id="stopBtn">Stop</button>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red;"></span>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red; color: red;"></span>
<h2>Recognition Output</h2>
<div id="output" style="height:150px;overflow:auto;" >
</div>
Expand Down Expand Up @@ -61,9 +61,9 @@ <h2>Status</h2>
document.getElementById('current-status').innerHTML += "<br/>" + newStatus;
};

// A not-so-great recording indicator
// A great recording indicator
function displayRecording(display) {
if (display) document.getElementById('recording-indicator').innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
if (display) document.getElementById('recording-indicator').innerHTML = "00";
else document.getElementById('recording-indicator').innerHTML = "";
};

Expand Down
6 changes: 3 additions & 3 deletions webapp/live_kws.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>PocketSphinx.js live demo for keyword spotting</h2>
<select id="keyword"></select>
<button id="startBtn">Start</button>
<button id="stopBtn">Stop</button>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red;"></span>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red; color: red;"></span>
<h2>Number of spotted keywords</h2>
<div id="output" style="height:150px;overflow:auto;" >
</div>
Expand Down Expand Up @@ -61,9 +61,9 @@ <h2>Status</h2>
document.getElementById('current-status').innerHTML += "<br/>" + newStatus;
};

// A not-so-great recording indicator
// A great recording indicator
function displayRecording(display) {
if (display) document.getElementById('recording-indicator').innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
if (display) document.getElementById('recording-indicator').innerHTML = "00";
else document.getElementById('recording-indicator').innerHTML = "";
};

Expand Down
6 changes: 3 additions & 3 deletions webapp/live_zh.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>PocketSphinx.js live demo for Chinese language</h2>
<select id="grammars"></select>
<button id="startBtn">Start</button>
<button id="stopBtn">Stop</button>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red;"></span>
<span id="recording-indicator" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; width: 20px; height: 20px; background: red; color: red;"></span>
<h2>Recognition Output</h2>
<div id="output" style="height:150px;overflow:auto;" >
</div>
Expand Down Expand Up @@ -63,9 +63,9 @@ <h2>Status</h2>
document.getElementById('current-status').innerHTML += "<br/>" + newStatus;
};

// A not-so-great recording indicator
// A great recording indicator
function displayRecording(display) {
if (display) document.getElementById('recording-indicator').innerHTML = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
if (display) document.getElementById('recording-indicator').innerHTML = "00";
else document.getElementById('recording-indicator').innerHTML = "";
};

Expand Down