Skip to content

Commit 8189ebf

Browse files
committed
removing a couple of references to recognizeElement
1 parent 2c5c1de commit 8189ebf

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

examples/static/file-ajax.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
<section>
1010
<h1>Transcribe File via AJAX</h1>
1111
<button id="button">Load and Transcribe</button>
12-
<p>Note: This method is sometimes preferable to embedding an <code>&lt;audio&gt;</code> element because it avoids two
13-
lossy conversions (source to web audio, and then web audio to wav) and guarantees that the transcription will work
14-
even if the browser cannot play the audio file's format.
15-
16-
The downside is that it (currently) requires the entire audio file be downloaded before playback or processing can begin, making it impractical for large files.</p>
12+
<p>Note: this method requires the entire audio file be downloaded before playback or processing can begin, making it impractical for large files.</p>
1713

1814
<h2>Output:</h2>
1915
<div id="output">--</div>

speech-to-text/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
*
66
* The primary methods for interacting with the Speech to Text JS SDK are:
77
* * `recognizeMicrophone()` for live microphone input
8-
* * `recognizeElement()` for transcribing `<audio>` and `<video>` elements
9-
* * `recognizeFile()` for file `<input>`'s and other data sources
8+
* * `recognizeFile()` for file `<input>`'s and other data sources (e.g. a Blob loaded via AJAX)
109
*
11-
* However, the underlying streams and utils that they use are also provided for advanced usage.
10+
* However, the underlying streams and utils that they use are also exposed for advanced usage.
1211
*
1312
* @module watson-speech/speech-to-text
1413
*/

0 commit comments

Comments
 (0)