Skip to content

Commit 1bdec93

Browse files
authored
Merge pull request #49 from mreinstein/master
removed continuous parameter from all remaining speech-to-text code/examples
2 parents 9809061 + c0de467 commit 1bdec93

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

examples/static/browserify-app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ document.querySelector('#button').onclick = function() {
1616
.then(function(token) {
1717
var stream = recognizeMicrophone({
1818
token: token,
19-
continuous: false, // false = automatically stop transcription the first time a pause is detected
2019
outputElement: '#output' // CSS selector or DOM Element
2120
});
2221

examples/static/microphone-streaming-auto-stop.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ <h2>Code for this demo:</h2>
3434

3535
var stream = WatsonSpeech.SpeechToText.recognizeMicrophone({
3636
token: token,
37-
// continuous: false, // no longer supported
3837
outputElement: '#output' // CSS selector or DOM Element
3938
});
4039

examples/static/webpack-app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ document.querySelector('#button').onclick = function() {
1616
.then(function(token) {
1717
var stream = recognizeMicrophone({
1818
token: token,
19-
continuous: false, // false = automatically stop transcription the first time a pause is detected
2019
outputElement: '#output' // CSS selector or DOM Element
2120
});
2221

speech-to-text/recognize-file.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ module.exports = function recognizeFile(options) {
9191

9292
var rsOpts = assign(
9393
{
94-
continuous: true,
9594
interim_results: true
9695
},
9796
options

speech-to-text/recognize-microphone.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ module.exports = function recognizeMicrophone(options) {
8282

8383
var rsOpts = assign(
8484
{
85-
continuous: true,
8685
'content-type': 'audio/l16;rate=16000',
8786
interim_results: true
8887
},
@@ -166,7 +165,7 @@ module.exports = function recognizeMicrophone(options) {
166165
l16Stream.end();
167166
}
168167
// trigger on both stop and end events:
169-
// stop will not fire when a stream ends due to a timeout or having continuous: false
168+
// stop will not fire when a stream ends due to a timeout
170169
// but when stop does fire, we want to honor it immediately
171170
// end will always fire, but it may take a few moments after stop
172171
if (keepMic) {

0 commit comments

Comments
 (0)