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

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

Create and return a RecognizeStream from a File or Blob (e.g. from a file , a dtagdrop targe, or an ajax request)

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

data Blob | File

the raw audio data as a Blob or File instance

play Boolean <optional>
false

If a file is set, play it locally as it's being uploaded

format Boolena <optional>
true

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

realtime Boolena <optional>
options.play

pipe the text through a {TimingStream} which slows the output down to real-time to match the audio playback.

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