Module: watson-speech/speech-to-text/recognize-microphone

(require("watson-speech/speech-to-text/recognize-microphone"))(options) → {RecognizeStream}

Create and return a RecognizeStream from the user's microphone If the options.file is set, it is used instead of the microphone

Parameters:
Name Type Description
options Object

Also passed to {MediaElementAudioStream} and to {RecognizeStream}

Properties
Name Type Attributes Default Description
token String

Auth Token - see https://github.com/watson-developer-cloud/node-sdk#authorization

format Boolean <optional>
true

pipe the text through a {FormatStream} which performs light formatting

keepMicrophone Boolean <optional>
false

keeps an internal reference to the microphone stream to reuse in subsequent calls (prevents multiple permissions dialogs in firefox)

outputElement String | DOMElement <optional>

pipe the text to a WriteableElementStream targeting the specified element. Also defaults objectMode to true to enable interim results.

Source:
Returns:
Type
RecognizeStream