@ondewo/s2t-client-typescript 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -160,12 +160,6 @@ export class UtteranceDetectionOptions extends jspb.Message {
|
|
|
160
160
|
getTranscribeNotFinal(): boolean;
|
|
161
161
|
setTranscribeNotFinal(value: boolean): UtteranceDetectionOptions;
|
|
162
162
|
|
|
163
|
-
getStartOfUtteranceThreshold(): number;
|
|
164
|
-
setStartOfUtteranceThreshold(value: number): UtteranceDetectionOptions;
|
|
165
|
-
|
|
166
|
-
getEndOfUtteranceThreshold(): number;
|
|
167
|
-
setEndOfUtteranceThreshold(value: number): UtteranceDetectionOptions;
|
|
168
|
-
|
|
169
163
|
getNextChunkTimeout(): number;
|
|
170
164
|
setNextChunkTimeout(value: number): UtteranceDetectionOptions;
|
|
171
165
|
|
|
@@ -182,8 +176,6 @@ export class UtteranceDetectionOptions extends jspb.Message {
|
|
|
182
176
|
export namespace UtteranceDetectionOptions {
|
|
183
177
|
export type AsObject = {
|
|
184
178
|
transcribeNotFinal: boolean,
|
|
185
|
-
startOfUtteranceThreshold: number,
|
|
186
|
-
endOfUtteranceThreshold: number,
|
|
187
179
|
nextChunkTimeout: number,
|
|
188
180
|
}
|
|
189
181
|
|
|
@@ -1087,12 +1079,6 @@ export class StreamingSpeechRecognition extends jspb.Message {
|
|
|
1087
1079
|
getMinAudioChunkSize(): number;
|
|
1088
1080
|
setMinAudioChunkSize(value: number): StreamingSpeechRecognition;
|
|
1089
1081
|
|
|
1090
|
-
getStartOfUtteranceThreshold(): number;
|
|
1091
|
-
setStartOfUtteranceThreshold(value: number): StreamingSpeechRecognition;
|
|
1092
|
-
|
|
1093
|
-
getEndOfUtteranceThreshold(): number;
|
|
1094
|
-
setEndOfUtteranceThreshold(value: number): StreamingSpeechRecognition;
|
|
1095
|
-
|
|
1096
1082
|
getNextChunkTimeout(): number;
|
|
1097
1083
|
setNextChunkTimeout(value: number): StreamingSpeechRecognition;
|
|
1098
1084
|
|
|
@@ -1110,8 +1096,6 @@ export namespace StreamingSpeechRecognition {
|
|
|
1110
1096
|
decodingMethod: string,
|
|
1111
1097
|
samplingRate: number,
|
|
1112
1098
|
minAudioChunkSize: number,
|
|
1113
|
-
startOfUtteranceThreshold: number,
|
|
1114
|
-
endOfUtteranceThreshold: number,
|
|
1115
1099
|
nextChunkTimeout: number,
|
|
1116
1100
|
}
|
|
1117
1101
|
}
|
|
@@ -2051,9 +2051,7 @@ proto.ondewo.s2t.UtteranceDetectionOptions.prototype.toObject = function(opt_inc
|
|
|
2051
2051
|
proto.ondewo.s2t.UtteranceDetectionOptions.toObject = function(includeInstance, msg) {
|
|
2052
2052
|
var f, obj = {
|
|
2053
2053
|
transcribeNotFinal: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
2054
|
-
|
|
2055
|
-
endOfUtteranceThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
2056
|
-
nextChunkTimeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
|
|
2054
|
+
nextChunkTimeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
2057
2055
|
};
|
|
2058
2056
|
|
|
2059
2057
|
if (includeInstance) {
|
|
@@ -2095,14 +2093,6 @@ proto.ondewo.s2t.UtteranceDetectionOptions.deserializeBinaryFromReader = functio
|
|
|
2095
2093
|
msg.setTranscribeNotFinal(value);
|
|
2096
2094
|
break;
|
|
2097
2095
|
case 2:
|
|
2098
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
2099
|
-
msg.setStartOfUtteranceThreshold(value);
|
|
2100
|
-
break;
|
|
2101
|
-
case 3:
|
|
2102
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
2103
|
-
msg.setEndOfUtteranceThreshold(value);
|
|
2104
|
-
break;
|
|
2105
|
-
case 4:
|
|
2106
2096
|
var value = /** @type {number} */ (reader.readFloat());
|
|
2107
2097
|
msg.setNextChunkTimeout(value);
|
|
2108
2098
|
break;
|
|
@@ -2142,24 +2132,10 @@ proto.ondewo.s2t.UtteranceDetectionOptions.serializeBinaryToWriter = function(me
|
|
|
2142
2132
|
f
|
|
2143
2133
|
);
|
|
2144
2134
|
}
|
|
2145
|
-
f = message.getStartOfUtteranceThreshold();
|
|
2146
|
-
if (f !== 0.0) {
|
|
2147
|
-
writer.writeFloat(
|
|
2148
|
-
2,
|
|
2149
|
-
f
|
|
2150
|
-
);
|
|
2151
|
-
}
|
|
2152
|
-
f = message.getEndOfUtteranceThreshold();
|
|
2153
|
-
if (f !== 0.0) {
|
|
2154
|
-
writer.writeFloat(
|
|
2155
|
-
3,
|
|
2156
|
-
f
|
|
2157
|
-
);
|
|
2158
|
-
}
|
|
2159
2135
|
f = message.getNextChunkTimeout();
|
|
2160
2136
|
if (f !== 0.0) {
|
|
2161
2137
|
writer.writeFloat(
|
|
2162
|
-
|
|
2138
|
+
2,
|
|
2163
2139
|
f
|
|
2164
2140
|
);
|
|
2165
2141
|
}
|
|
@@ -2203,47 +2179,11 @@ proto.ondewo.s2t.UtteranceDetectionOptions.prototype.hasTranscribeNotFinal = fun
|
|
|
2203
2179
|
|
|
2204
2180
|
|
|
2205
2181
|
/**
|
|
2206
|
-
* optional float
|
|
2207
|
-
* @return {number}
|
|
2208
|
-
*/
|
|
2209
|
-
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.getStartOfUtteranceThreshold = function() {
|
|
2210
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2211
|
-
};
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
/**
|
|
2215
|
-
* @param {number} value
|
|
2216
|
-
* @return {!proto.ondewo.s2t.UtteranceDetectionOptions} returns this
|
|
2217
|
-
*/
|
|
2218
|
-
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.setStartOfUtteranceThreshold = function(value) {
|
|
2219
|
-
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2220
|
-
};
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
/**
|
|
2224
|
-
* optional float end_of_utterance_threshold = 3;
|
|
2225
|
-
* @return {number}
|
|
2226
|
-
*/
|
|
2227
|
-
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.getEndOfUtteranceThreshold = function() {
|
|
2228
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
2229
|
-
};
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
/**
|
|
2233
|
-
* @param {number} value
|
|
2234
|
-
* @return {!proto.ondewo.s2t.UtteranceDetectionOptions} returns this
|
|
2235
|
-
*/
|
|
2236
|
-
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.setEndOfUtteranceThreshold = function(value) {
|
|
2237
|
-
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
2238
|
-
};
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* optional float next_chunk_timeout = 4;
|
|
2182
|
+
* optional float next_chunk_timeout = 2;
|
|
2243
2183
|
* @return {number}
|
|
2244
2184
|
*/
|
|
2245
2185
|
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.getNextChunkTimeout = function() {
|
|
2246
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this,
|
|
2186
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2247
2187
|
};
|
|
2248
2188
|
|
|
2249
2189
|
|
|
@@ -2252,7 +2192,7 @@ proto.ondewo.s2t.UtteranceDetectionOptions.prototype.getNextChunkTimeout = funct
|
|
|
2252
2192
|
* @return {!proto.ondewo.s2t.UtteranceDetectionOptions} returns this
|
|
2253
2193
|
*/
|
|
2254
2194
|
proto.ondewo.s2t.UtteranceDetectionOptions.prototype.setNextChunkTimeout = function(value) {
|
|
2255
|
-
return jspb.Message.setProto3FloatField(this,
|
|
2195
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2256
2196
|
};
|
|
2257
2197
|
|
|
2258
2198
|
|
|
@@ -9025,9 +8965,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.toObject = function(includeInstance,
|
|
|
9025
8965
|
decodingMethod: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
9026
8966
|
samplingRate: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
9027
8967
|
minAudioChunkSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
9028
|
-
|
|
9029
|
-
endOfUtteranceThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
9030
|
-
nextChunkTimeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
8968
|
+
nextChunkTimeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
9031
8969
|
};
|
|
9032
8970
|
|
|
9033
8971
|
if (includeInstance) {
|
|
@@ -9081,14 +9019,6 @@ proto.ondewo.s2t.StreamingSpeechRecognition.deserializeBinaryFromReader = functi
|
|
|
9081
9019
|
msg.setMinAudioChunkSize(value);
|
|
9082
9020
|
break;
|
|
9083
9021
|
case 5:
|
|
9084
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
9085
|
-
msg.setStartOfUtteranceThreshold(value);
|
|
9086
|
-
break;
|
|
9087
|
-
case 6:
|
|
9088
|
-
var value = /** @type {number} */ (reader.readFloat());
|
|
9089
|
-
msg.setEndOfUtteranceThreshold(value);
|
|
9090
|
-
break;
|
|
9091
|
-
case 7:
|
|
9092
9022
|
var value = /** @type {number} */ (reader.readFloat());
|
|
9093
9023
|
msg.setNextChunkTimeout(value);
|
|
9094
9024
|
break;
|
|
@@ -9149,24 +9079,10 @@ proto.ondewo.s2t.StreamingSpeechRecognition.serializeBinaryToWriter = function(m
|
|
|
9149
9079
|
f
|
|
9150
9080
|
);
|
|
9151
9081
|
}
|
|
9152
|
-
f = message.getStartOfUtteranceThreshold();
|
|
9153
|
-
if (f !== 0.0) {
|
|
9154
|
-
writer.writeFloat(
|
|
9155
|
-
5,
|
|
9156
|
-
f
|
|
9157
|
-
);
|
|
9158
|
-
}
|
|
9159
|
-
f = message.getEndOfUtteranceThreshold();
|
|
9160
|
-
if (f !== 0.0) {
|
|
9161
|
-
writer.writeFloat(
|
|
9162
|
-
6,
|
|
9163
|
-
f
|
|
9164
|
-
);
|
|
9165
|
-
}
|
|
9166
9082
|
f = message.getNextChunkTimeout();
|
|
9167
9083
|
if (f !== 0.0) {
|
|
9168
9084
|
writer.writeFloat(
|
|
9169
|
-
|
|
9085
|
+
5,
|
|
9170
9086
|
f
|
|
9171
9087
|
);
|
|
9172
9088
|
}
|
|
@@ -9246,47 +9162,11 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setMinAudioChunkSize = fun
|
|
|
9246
9162
|
|
|
9247
9163
|
|
|
9248
9164
|
/**
|
|
9249
|
-
* optional float
|
|
9250
|
-
* @return {number}
|
|
9251
|
-
*/
|
|
9252
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getStartOfUtteranceThreshold = function() {
|
|
9253
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
9254
|
-
};
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
/**
|
|
9258
|
-
* @param {number} value
|
|
9259
|
-
* @return {!proto.ondewo.s2t.StreamingSpeechRecognition} returns this
|
|
9260
|
-
*/
|
|
9261
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setStartOfUtteranceThreshold = function(value) {
|
|
9262
|
-
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
9263
|
-
};
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
/**
|
|
9267
|
-
* optional float end_of_utterance_threshold = 6;
|
|
9268
|
-
* @return {number}
|
|
9269
|
-
*/
|
|
9270
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getEndOfUtteranceThreshold = function() {
|
|
9271
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
9272
|
-
};
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
/**
|
|
9276
|
-
* @param {number} value
|
|
9277
|
-
* @return {!proto.ondewo.s2t.StreamingSpeechRecognition} returns this
|
|
9278
|
-
*/
|
|
9279
|
-
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setEndOfUtteranceThreshold = function(value) {
|
|
9280
|
-
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
9281
|
-
};
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
/**
|
|
9285
|
-
* optional float next_chunk_timeout = 7;
|
|
9165
|
+
* optional float next_chunk_timeout = 5;
|
|
9286
9166
|
* @return {number}
|
|
9287
9167
|
*/
|
|
9288
9168
|
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getNextChunkTimeout = function() {
|
|
9289
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this,
|
|
9169
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
9290
9170
|
};
|
|
9291
9171
|
|
|
9292
9172
|
|
|
@@ -9295,7 +9175,7 @@ proto.ondewo.s2t.StreamingSpeechRecognition.prototype.getNextChunkTimeout = func
|
|
|
9295
9175
|
* @return {!proto.ondewo.s2t.StreamingSpeechRecognition} returns this
|
|
9296
9176
|
*/
|
|
9297
9177
|
proto.ondewo.s2t.StreamingSpeechRecognition.prototype.setNextChunkTimeout = function(value) {
|
|
9298
|
-
return jspb.Message.setProto3FloatField(this,
|
|
9178
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
9299
9179
|
};
|
|
9300
9180
|
|
|
9301
9181
|
|
package/package.json
CHANGED