forked from Picovoice/rhino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (99 loc) · 19.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<script src="node_modules/@picovoice/rhino-web-en-worker/dist/iife/index.js"></script>
<script src="node_modules/@picovoice/web-voice-processor/dist/iife/index.js"></script>
<script type="application/javascript">
const CLOCK_CONTEXT_64 =
"cmhpbm8xLjYuMNEaAAAJAAAAcGljb3ZvaWNl//////////+UMAAAAGNvbnRleHQ6CiAgZXhwcmVzc2lvbnM6CiAgICB0aW1lcjoKICAgICAgLSAkdGltZXJBY3Rpb246YWN0aW9uIHRpbWVyCiAgICBzdG9wd2F0Y2g6CiAgICAgIC0gJHN0b3B3YXRjaEFjdGlvbjphY3Rpb24gc3RvcHdhdGNoCiAgICBjbG9jazoKICAgICAgLSAkY2xvY2tBY3Rpb246YWN0aW9uIChtZSkgKHRoZSkgY2xvY2sKICAgICAgLSAkY2xvY2tBY3Rpb246YWN0aW9uIChtZSkgKHRoZSkgdGltZQogICAgc2V0VGltZXI6CiAgICAgIC0gc2V0IChhKSB0aW1lciBmb3IgJHB2LlR3b0RpZ2l0SW50ZWdlcjpob3VycyBbaG91ciwgaG91cnNdCiAgICAgIC0gc2V0IChhKSB0aW1lciBmb3IgJHB2LlR3b0RpZ2l0SW50ZWdlcjptaW51dGVzIFttaW51dGUsIG1pbnV0ZXNdCiAgICAgIC0gc2V0IChhKSB0aW1lciBmb3IgJHB2LlR3b0RpZ2l0SW50ZWdlcjpzZWNvbmRzIFtzZWNvbmQsIHNlY29uZHNdC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QAAANQBAADAAQAACwAAAAQAAAADAAAA8AEAALQCAAA8AwAA1AEAABEAAAD/////AgAAAAgCAACQAgAA8AEAAAcAAAD/////AQAAABwCAAAIAgAADAAAAAQAAAACAAAANAIAAGwCAAAcAgAAEQAAAP////8BAAAASAIAADQCAAAIAAAA/////wEAAABcAgAASAIAAA0AAAAEAAAAAAAAABwCAAAIAAAA/////wEAAACAAgAAbAIAAA0AAAAEAAAAAAAAAPABAAAIAAAA/////wEAAACkAgAAkAIAAA0AAAAEAAAAAAAAANQBAAAHAAAA/////wEAAADIAgAAtAIAAAwAAAAEAAAAAgAAAOACAAAYAwAAyAIAABEAAAD/////AQAAAPQCAADgAgAACAAAAP////8BAAAACAMAAPQCAAANAAAABAAAAAAAAADIAgAACAAAAP////8BAAAALAMAABgDAAANAAAABAAAAAAAAADUAQAACAAAAP////8BAAAAUAMAADwDAAANAAAABAAAAAAAAACkAQAABwAAAP////8BAAAAdAMAAGADAAAMAAAABAAAAAIAAACMAwAAxAMAAHQDAAARAAAA/////wEAAACgAwAAjAMAAAgAAAD/////AQAAALQDAACgAwAADQAAAAQAAAAAAAAAdAMAAAgAAAD/////AQAAANgDAADEAwAADQAAAAQAAAAAAAAApAEAAAgAAAD/////AQAAAPwDAADoAwAADQAAAAQAAAAAAAAAXAEAAB4AAAD/////AQAAACAEAAAMBAAAFQAAAP////8DAAAAPAQAANwFAABkBgAAIAQAAAUAAAD/////AQAAAFAEAAA8BAAACwAAAAQAAAADAAAAbAQAADAFAAC4BQAAUAQAABEAAAD/////AgAAAIQEAAAMBQAAbAQAAAcAAAD/////AQAAAJgEAACEBAAADAAAAAQAAAACAAAAsAQAAOgEAACYBAAAEQAAAP////8BAAAAxAQAALAEAAAIAAAA/////wEAAADYBAAAxAQAAA0AAAAEAAAAAAAAAJgEAAAIAAAA/////wEAAAD8BAAA6AQAAA0AAAAEAAAAAAAAAGwEAAAIAAAA/////wEAAAAgBQAADAUAAA0AAAAEAAAAAAAAAFAEAAAHAAAA/////wEAAABEBQAAMAUAAAwAAAAEAAAAAgAAAFwFAACUBQAARAUAABEAAAD/////AQAAAHAFAABcBQAACAAAAP////8BAAAAhAUAAHAFAAANAAAABAAAAAAAAABEBQAACAAAAP////8BAAAAqAUAAJQFAAANAAAABAAAAAAAAABQBAAACAAAAP////8BAAAAzAUAALgFAAANAAAABAAAAAAAAAAgBAAABwAAAP////8BAAAA8AUAANwFAAAMAAAABAAAAAIAAAAIBgAAQAYAAPAFAAARAAAA/////wEAAAAcBgAACAYAAAgAAAD/////AQAAADAGAAAcBgAADQAAAAQAAAAAAAAA8AUAAAgAAAD/////AQAAAFQGAABABgAADQAAAAQAAAAAAAAAIAQAAAgAAAD/////AQAAAHgGAABkBgAADQAAAAQAAAAAAAAAXAEAABAAAAD/////AQAAAJwGAACIBgAADwAAAP////8BAAAAsAYAAJwGAAAVAAAA/////wIAAADIBgAAjAcAALAGAAAEAAAA/////wIAAADgBgAAQAcAAMgGAAAGAAAA/////wEAAAD0BgAA4AYAAAEAAAADAAAAAgAAAAwHAAAwBwAA9AYAABgAAAD/////AQAAACAHAAAMBwAAAwAAAAMAAAAAAAAA9AYAAAMAAAADAAAAAAAAAMgGAAABAAAAAwAAAAIAAABYBwAAfAcAAEAHAAAYAAAA/////wEAAABsBwAAWAcAAAMAAAADAAAAAAAAAEAHAAADAAAAAwAAAAAAAACwBgAAAwAAAP////8CAAAApAcAAAQIAACMBwAAEgAAAP////8BAAAAuAcAAKQHAAAEAAAA/////wIAAADQBwAA9AcAALgHAAAGAAAA/////wEAAADkBwAA0AcAAAEAAAADAAAAAAAAALgHAAABAAAAAwAAAAAAAACMBwAABAAAAP////8CAAAAHAgAAEAIAAAECAAABgAAAP////8BAAAAMAgAABwIAAABAAAAAwAAAAAAAAAECAAAAQAAAAMAAAAAAAAAXAEAAA8AAAD/////AQAAAGQIAABQCAAAFQAAAP////8CAAAAfAgAAEAJAABkCAAABAAAAP////8CAAAAlAgAAPQIAAB8CAAABgAAAP////8BAAAAqAgAAJQIAAABAAAAAwAAAAIAAADACAAA5AgAAKgIAAAYAAAA/////wEAAADUCAAAwAgAAAMAAAADAAAAAAAAAKgIAAADAAAAAwAAAAAAAAB8CAAAAQAAAAMAAAACAAAADAkAADAJAAD0CAAAGAAAAP////8BAAAAIAkAAAwJAAADAAAAAwAAAAAAAAD0CAAAAwAAAAMAAAAAAAAAZAgAAAMAAAD/////AgAAAFgJAAC4CQAAQAkAABIAAAD/////AQAAAGwJAABYCQAABAAAAP////8CAAAAhAkAAKgJAABsCQAABgAAAP////8BAAAAmAkAAIQJAAABAAAAAwAAAAAAAABsCQAAAQAAAAMAAAAAAAAAQAkAAAQAAAD/////AgAAANAJAAD0CQAAuAkAAAYAAAD/////AQAAAOQJAADQCQAAAQAAAAMAAAAAAAAAuAkAAAEAAAADAAAAAAAAAAAAAAAAAAAA/////wEAAAAYCgAABAoAAA8AAAAAAAAAAAAAAAAAAAAfAAAA/////wEAAAA8CgAAKAoAABMAAAD/////AQAAAFAKAAA8CgAAFgAAAP////8BAAAAZAoAAFAKAAAZAAAAAQAAAAAAAAA=";
function writeMessage(message) {
console.log(message);
let p = document.createElement("p");
let text = document.createTextNode(message);
p.appendChild(text);
document.getElementById("messages").appendChild(p);
}
async function startRhino() {
writeMessage("Rhino is loading. Please wait...");
window.rhinoClockWorker = await RhinoWebEnWorker.RhinoWorkerFactory.create(
{
context: {
base64: CLOCK_CONTEXT_64,
sensitivity: 0.5,
},
start: false,
}
);
writeMessage("Rhino worker ready!");
rhinoClockWorker.postMessage({ command: "info" });
window.rhinoClockWorker.onmessage = (msg) => {
if (msg.data.command === "rhn-inference") {
writeMessage(
"Inference detected: " + JSON.stringify(msg.data.inference)
);
window.rhinoClockWorker.postMessage({ command: "pause" });
document.getElementById("push-to-talk").disabled = false;
writeMessage(
"Rhino is paused. Press the 'Push to Talk' button to speak again."
);
} else if (msg.data.command === "rhn-info") {
writeMessage("Context info YAML received.")
document.getElementById("rhn-context-yaml").innerText =
msg.data.info;
}
};
writeMessage(
"WebVoiceProcessor initializing. Microphone permissions requested ..."
);
try {
let webVp = await WebVoiceProcessor.WebVoiceProcessor.init({
engines: [window.rhinoClockWorker],
});
writeMessage(
"WebVoiceProcessor ready! Press the 'Push to Talk' button to talk. Then say e.g. 'Set a timer for one minute'"
);
} catch (e) {
writeMessage("WebVoiceProcessor failed to initialize: " + e);
}
}
document.addEventListener("DOMContentLoaded", function () {
startRhino();
document.getElementById("push-to-talk").onclick = function (event) {
writeMessage("Rhino is listening for your commands ...");
this.disabled = true;
window.rhinoClockWorker.postMessage({ command: "resume" });
};
});
</script>
</head>
<body>
<h1>Rhino Web Demo</h1>
<p>This demo uses Rhino for Web and the WebVoiceProcessor to:</p>
<ol>
<li>
Create an English instance of Rhino that understands commands in the
"Pico Clock" context;
</li>
<li>
Acquire microphone (& ask permission) data stream and convert to voice
processing format (16kHz 16-bit linear PCM). The downsampled audio is
forwarded to the Porcupine engines. The audio <i>does not</i> leave the
browser: all processing is occurring via the Rhino WebAssembly code.
</li>
<li>
Await inference events from the Rhino engine and output them to the
page. When the inference is concluded, the push-to-talk button is
enabled again.
</li>
</ol>
<hr />
<button id="push-to-talk">Push to Talk</button>
<div id="messages"></div>
<br />
<br />
<br />
<hr />
<h2>Context info:</h2>
<pre id="rhn-context-yaml"></pre>
</body>
</html>