Skip to content

Commit 63561db

Browse files
authored
removing second, partial example from stt example file
Fixes watson-developer-cloud#450
1 parent 5a076b5 commit 63561db

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

examples/speech_to_text.v1.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,3 @@ recognizeStream.setEncoding('utf8'); // to get strings instead of Buffers from `
3030
recognizeStream.on(eventName, console.log.bind(console, eventName + ' event: '));
3131
});
3232

33-
// Change the following parameters appropriately
34-
// Note that 'interval' and 'times' are OPTIONAL. You can choose to get rid of these fields.
35-
// By default, 'interval' is set to 5000 milliseconds and 'times' is set to 30.
36-
const corporaParams = {
37-
customization_id: 'd83aa3c0-bd6f-11e6-acaa-019f979b8xyz',
38-
interval: 1000,
39-
times: 20
40-
};
41-
42-
// wait until corpus has been analyzed
43-
// Using the above parameters, whenCorporaAnalyzed checks for the corpora status at most 20 "times" until the corpus has been analyzed.
44-
// It waits for an "interval" of 1000 milliseconds after every status check.
45-
// If the corpus has not been analyzed after 20 times, then it throws an error.
46-
speech_to_text.whenCorporaAnalyzed(corporaParams, function(err, res) {
47-
if (err) {
48-
console.error(JSON.stringify(err, null, 2));
49-
} else {
50-
console.log(JSON.stringify(res, null, 2));
51-
console.log('Corpus analysis done!');
52-
}
53-
});

0 commit comments

Comments
 (0)