Skip to content

Commit 80542c5

Browse files
committed
indicating that resultsBySpeaker does not work for recognizeMicrophone due to broadband/narrowband mismatch
[ci skip]
1 parent e6adcc5 commit 80542c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech-to-text/recognize-microphone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var bitBucket = new Writable({
4949
* @param {Boolean} [options.keepMicrophone=false] - keeps an internal reference to the microphone stream to reuse in subsequent calls (prevents multiple permissions dialogs in firefox)
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 ResultExtractor stream to simplify the objects. (Default behavior before v0.22) Requires objectMode.
52-
* @param {Boolean} [options.resultsBySpeaker=false] pipe results through a SpeakerStream. Causes each data event to include multiple results, each with a speaker field. Automatically enables objectMode and speaker_labels. Adds some delay to processing.
52+
* @param {Boolean} [options.resultsBySpeaker=false] Not currently functional because microphone input provides broadband audio, but during the current beta release, speaker recognition only works on narrowband models.
5353
*
5454
* @returns {RecognizeStream|SpeakerStream|FormatStream|ResultStream}
5555
*/

0 commit comments

Comments
 (0)