File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -30,24 +30,3 @@ recognizeStream.setEncoding('utf8'); // to get strings instead of Buffers from `
30
30
recognizeStream . on ( eventName , console . log . bind ( console , eventName + ' event: ' ) ) ;
31
31
} ) ;
32
32
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
- } ) ;
You can’t perform that action at this time.
0 commit comments