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
Copy file name to clipboardExpand all lines: README.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ A javascript library to encode the output of Web Audio API nodes in Ogg Opus or
5
5
6
6
#### Libraries Used
7
7
8
-
- Libopus: v1.2.1 compiled with emscripten 1.38.1
9
-
- speexDSP: 1.2RC3 compiled with emscripten 1.38.1
8
+
- Libopus: v1.2.1 compiled with emscripten 1.38.11
9
+
- speexDSP: 1.2RC3 compiled with emscripten 1.38.11
10
10
11
11
#### Required Files
12
12
@@ -35,7 +35,6 @@ Creates a recorder instance.
35
35
36
36
-**bufferLength** - (*optional*) The length of the buffer that the internal JavaScriptNode uses to capture the audio. Can be tweaked if experiencing performance issues. Defaults to `4096`.
37
37
-**encoderPath** - (*optional*) Path to `encoderWorker.min.js` or `waveWorker.min.js` worker script. Defaults to `encoderWorker.min.js`
38
-
-**leaveStreamOpen** - (*optional*) Keep the stream and context around when trying to `stop` recording, so you can re-`start` without re-initializing the stream and context. Defaults to `false`.
39
38
-**mediaTrackConstraints** - (*optional*) Object to specify [media track constraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints). Defaults to `true`.
40
39
-**monitorGain** - (*optional*) Sets the gain of the monitoring output. Gain is an a-weighted value between `0` and `1`. Defaults to `0`
41
40
-**numberOfChannels** - (*optional*) The number of channels to record. `1` = mono, `2` = stereo. Defaults to `1`. Maximum `2` channels are supported.
@@ -63,11 +62,6 @@ Creates a recorder instance.
63
62
---------
64
63
#### Instance Methods
65
64
66
-
```js
67
-
rec.clearStream()
68
-
```
69
-
70
-
**clearStream** will stop and delete the stream as well as close the audio context. You will only ever call this manually if you have `config.leaveStreamOpen` set to `true`.
71
65
72
66
```js
73
67
rec.pause()
@@ -97,7 +91,7 @@ rec.setMonitorGain( gain )
97
91
rec.start( [sourceNode] )
98
92
```
99
93
100
-
**start** Initalizes the worker, audio context, and an audio stream and begin capturing audio. Returns a promise which resolves when recording is started. Will callback `onstart` when started. Optionally accepts a source node which can be used in place of initializing the microphone stream. For iOS support, `start` needs to be initiated from a user action.
94
+
**start** Initalizes the worker, audio context, and an audio stream and begin capturing audio. Returns a promise which resolves when recording is started. Will callback `onstart` when started. Optionally accepts a source node which can be used in place of initializing the microphone stream. For iOS support, `start` needs to be initiated from a user action. If a sourceNode is provided, then the stream and audioContext will need to be managed by the implementation.
0 commit comments