File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113
114114< script type ="text/javascript ">
115115var first_launch = true ;
116- var logon = false ;
117116var models ;
118117var domain_type ;
119118var languages ;
340339 $ . getJSON ( 'watson-translate/vcap/' )
341340 . done ( function ( sids ) {
342341 $ ( '.credentials' ) . toggle ( ! sids ) ;
343- if ( ( first_launch || ! models ) && logon ) {
342+ if ( first_launch || ! models ) {
344343 $ ( '#credentials-not-found' ) . hide ( ) ;
345344 getModels ( ) ;
346345 first_launch = false ;
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ module.exports = function (RED) {
110110
111111 var params = { } ;
112112
113- if ( config . continuous === 'true' )
113+ /* if(config.continuous === 'true')
114114 {
115115 params = {
116116 audio: audio,
@@ -127,7 +127,15 @@ module.exports = function (RED) {
127127 continuous: false
128128 };
129129
130- }
130+ }*/
131+
132+ params = {
133+ audio : audio ,
134+ content_type : 'audio/' + format ,
135+ model : model ,
136+ continuous : true ,
137+ keywords : [ 'arlemi' , 'developerWorks' ]
138+ } ;
131139
132140
133141 node . status ( { fill :'blue' , shape :'dot' , text :'requesting' } ) ;
You can’t perform that action at this time.
0 commit comments