Skip to content

Commit e417fd6

Browse files
committed
params STT
1 parent f5a0351 commit e417fd6

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

services/language_translation/v2.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113

114114
<script type="text/javascript">
115115
var first_launch = true;
116-
var logon = false;
117116
var models;
118117
var domain_type;
119118
var languages;
@@ -340,7 +339,7 @@
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;

services/speech_to_text/v1.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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'});

0 commit comments

Comments
 (0)