You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An `engine` is either a [Web Workers](<(https://developer.mozilla.org/en-US/docs/Web/API/Worker)>) or an object
108
+
An `engine` is either a [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Worker) or an object
108
109
implementing the following interface within their `onmessage` method:
109
110
110
111
```javascript
@@ -119,7 +120,7 @@ onmessage = function (e) {
119
120
120
121
where `e.data.inputFrame` is an `Int16Array` of `frameLength` audio samples.
121
122
122
-
For examples of using engines, look at [src/engines](/package/src/engines).
123
+
For examples of using engines, look at [src/engines](src/engines).
123
124
124
125
This is async due to its [Web Audio API microphone request](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia). The promise will be rejected if the user refuses permission, no suitable devices are found, etc. Your calling code should anticipate the possibility of rejection. When the promise resolves, the WebVoiceProcessor is running.
0 commit comments