Skip to content

Commit 99b4b05

Browse files
committed
v0.31 docs
1 parent 3ffc2f7 commit 99b4b05

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
### v0.30.2
4-
* Fixed error message when source ends before websocket connection is opened.
3+
### v0.31.0
4+
* Added support for a mediaStream argument to recognizeMicrophone() for advanced usages
5+
* Fixed error message when source ends before WebSocket connection is opened.
56

67
### v0.30.1
78
* added recognizeMicrophone.isSupported flag (checks for getUserMedia, assumes other features will be there if that one is)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The core of the library is the [RecognizeStream] that performs the actual transc
7474

7575
Options:
7676
* `keepMic`: if true, preserves the MicrophoneStream for subsequent calls, preventing additional permissions requests in Firefox
77+
* `mediaStream`: Optionally pass in an existing media stream rather than prompting the user for microphone access.
7778
* Other options passed to [RecognizeStream]
7879
* Other options passed to [SpeakerStream] if `options.resultsbySpeaker` is set to true
7980
* Other options passed to [FormatStream] if `options.format` is not set to false

speech-to-text/recognize-microphone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var bitBucket = new Writable({
5050
* @param {String|DOMElement} [options.outputElement] pipe the text to a [WriteableElementStream](WritableElementStream.html) targeting the specified element. Also defaults objectMode to true to enable interim results.
5151
* @param {Boolean} [options.extractResults=false] pipe results through a ResultStream stream to simplify the objects. (Default behavior before v0.22) Requires objectMode.
5252
* @param {Boolean} [options.resultsBySpeaker=false] Pipe results through a SpeakerStream. Forces speaker_labels and objectMode to be true.
53+
* @param {MediaStream} [options.mediaStream] Optionally pass in an existing MediaStream
5354
*
5455
* @returns {RecognizeStream|SpeakerStream|FormatStream|ResultStream}
5556
*/

0 commit comments

Comments
 (0)