@ondewo/s2t-client-typescript 5.2.0 → 5.3.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.
@@ -102,11 +102,20 @@ export class TranscriptionReturnOptions extends jspb.Message {
102
102
  getReturnAudio(): boolean;
103
103
  setReturnAudio(value: boolean): TranscriptionReturnOptions;
104
104
 
105
+ getReturnConfidenceScore(): boolean;
106
+ setReturnConfidenceScore(value: boolean): TranscriptionReturnOptions;
107
+
105
108
  getReturnAlternativeTranscriptions(): boolean;
106
109
  setReturnAlternativeTranscriptions(value: boolean): TranscriptionReturnOptions;
107
110
 
108
- getReturnConfidenceScore(): boolean;
109
- setReturnConfidenceScore(value: boolean): TranscriptionReturnOptions;
111
+ getReturnAlternativeTranscriptionsNr(): number;
112
+ setReturnAlternativeTranscriptionsNr(value: number): TranscriptionReturnOptions;
113
+
114
+ getReturnAlternativeWords(): boolean;
115
+ setReturnAlternativeWords(value: boolean): TranscriptionReturnOptions;
116
+
117
+ getReturnAlternativeWordsNr(): number;
118
+ setReturnAlternativeWordsNr(value: number): TranscriptionReturnOptions;
110
119
 
111
120
  getReturnWordTiming(): boolean;
112
121
  setReturnWordTiming(value: boolean): TranscriptionReturnOptions;
@@ -123,8 +132,11 @@ export namespace TranscriptionReturnOptions {
123
132
  export type AsObject = {
124
133
  returnStartOfSpeech: boolean,
125
134
  returnAudio: boolean,
126
- returnAlternativeTranscriptions: boolean,
127
135
  returnConfidenceScore: boolean,
136
+ returnAlternativeTranscriptions: boolean,
137
+ returnAlternativeTranscriptionsNr: number,
138
+ returnAlternativeWords: boolean,
139
+ returnAlternativeWordsNr: number,
128
140
  returnWordTiming: boolean,
129
141
  }
130
142
  }
@@ -678,6 +690,9 @@ export class S2TInference extends jspb.Message {
678
690
  hasLanguageModels(): boolean;
679
691
  clearLanguageModels(): S2TInference;
680
692
 
693
+ getInferenceBackend(): InferenceBackend;
694
+ setInferenceBackend(value: InferenceBackend): S2TInference;
695
+
681
696
  serializeBinary(): Uint8Array;
682
697
  toObject(includeInstance?: boolean): S2TInference.AsObject;
683
698
  static toObject(includeInstance: boolean, msg: S2TInference): S2TInference.AsObject;
@@ -690,6 +705,7 @@ export namespace S2TInference {
690
705
  export type AsObject = {
691
706
  acousticModels?: AcousticModels.AsObject,
692
707
  languageModels?: LanguageModels.AsObject,
708
+ inferenceBackend: InferenceBackend,
693
709
  }
694
710
  }
695
711
 
@@ -1440,6 +1456,11 @@ export namespace TrainUserLanguageModelRequest {
1440
1456
  }
1441
1457
  }
1442
1458
 
1459
+ export enum InferenceBackend {
1460
+ INFERENCE_BACKEND_UNKNOWN = 0,
1461
+ INFERENCE_BACKEND_PYTORCH = 1,
1462
+ INFERENCE_BACKEND_FLAX = 2,
1463
+ }
1443
1464
  export enum Decoding {
1444
1465
  DEFAULT = 0,
1445
1466
  GREEDY = 1,
@@ -23,6 +23,7 @@ goog.exportSymbol('proto.ondewo.s2t.CkptFile', null, global);
23
23
  goog.exportSymbol('proto.ondewo.s2t.CreateUserLanguageModelRequest', null, global);
24
24
  goog.exportSymbol('proto.ondewo.s2t.Decoding', null, global);
25
25
  goog.exportSymbol('proto.ondewo.s2t.DeleteUserLanguageModelRequest', null, global);
26
+ goog.exportSymbol('proto.ondewo.s2t.InferenceBackend', null, global);
26
27
  goog.exportSymbol('proto.ondewo.s2t.LanguageModelPipelineId', null, global);
27
28
  goog.exportSymbol('proto.ondewo.s2t.LanguageModels', null, global);
28
29
  goog.exportSymbol('proto.ondewo.s2t.ListS2tDomainsRequest', null, global);
@@ -1665,8 +1666,11 @@ proto.ondewo.s2t.TranscriptionReturnOptions.toObject = function(includeInstance,
1665
1666
  var f, obj = {
1666
1667
  returnStartOfSpeech: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
1667
1668
  returnAudio: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1668
- returnAlternativeTranscriptions: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1669
- returnConfidenceScore: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1669
+ returnConfidenceScore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1670
+ returnAlternativeTranscriptions: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1671
+ returnAlternativeTranscriptionsNr: jspb.Message.getFieldWithDefault(msg, 5, 0),
1672
+ returnAlternativeWords: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
1673
+ returnAlternativeWordsNr: jspb.Message.getFieldWithDefault(msg, 7, 0),
1670
1674
  returnWordTiming: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
1671
1675
  };
1672
1676
 
@@ -1714,11 +1718,23 @@ proto.ondewo.s2t.TranscriptionReturnOptions.deserializeBinaryFromReader = functi
1714
1718
  break;
1715
1719
  case 3:
1716
1720
  var value = /** @type {boolean} */ (reader.readBool());
1717
- msg.setReturnAlternativeTranscriptions(value);
1721
+ msg.setReturnConfidenceScore(value);
1718
1722
  break;
1719
1723
  case 4:
1720
1724
  var value = /** @type {boolean} */ (reader.readBool());
1721
- msg.setReturnConfidenceScore(value);
1725
+ msg.setReturnAlternativeTranscriptions(value);
1726
+ break;
1727
+ case 5:
1728
+ var value = /** @type {number} */ (reader.readInt32());
1729
+ msg.setReturnAlternativeTranscriptionsNr(value);
1730
+ break;
1731
+ case 6:
1732
+ var value = /** @type {boolean} */ (reader.readBool());
1733
+ msg.setReturnAlternativeWords(value);
1734
+ break;
1735
+ case 7:
1736
+ var value = /** @type {number} */ (reader.readInt32());
1737
+ msg.setReturnAlternativeWordsNr(value);
1722
1738
  break;
1723
1739
  case 8:
1724
1740
  var value = /** @type {boolean} */ (reader.readBool());
@@ -1767,20 +1783,41 @@ proto.ondewo.s2t.TranscriptionReturnOptions.serializeBinaryToWriter = function(m
1767
1783
  f
1768
1784
  );
1769
1785
  }
1770
- f = message.getReturnAlternativeTranscriptions();
1786
+ f = message.getReturnConfidenceScore();
1771
1787
  if (f) {
1772
1788
  writer.writeBool(
1773
1789
  3,
1774
1790
  f
1775
1791
  );
1776
1792
  }
1777
- f = message.getReturnConfidenceScore();
1793
+ f = message.getReturnAlternativeTranscriptions();
1778
1794
  if (f) {
1779
1795
  writer.writeBool(
1780
1796
  4,
1781
1797
  f
1782
1798
  );
1783
1799
  }
1800
+ f = message.getReturnAlternativeTranscriptionsNr();
1801
+ if (f !== 0) {
1802
+ writer.writeInt32(
1803
+ 5,
1804
+ f
1805
+ );
1806
+ }
1807
+ f = message.getReturnAlternativeWords();
1808
+ if (f) {
1809
+ writer.writeBool(
1810
+ 6,
1811
+ f
1812
+ );
1813
+ }
1814
+ f = message.getReturnAlternativeWordsNr();
1815
+ if (f !== 0) {
1816
+ writer.writeInt32(
1817
+ 7,
1818
+ f
1819
+ );
1820
+ }
1784
1821
  f = message.getReturnWordTiming();
1785
1822
  if (f) {
1786
1823
  writer.writeBool(
@@ -1828,10 +1865,10 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAudio = function(
1828
1865
 
1829
1866
 
1830
1867
  /**
1831
- * optional bool return_alternative_transcriptions = 3;
1868
+ * optional bool return_confidence_score = 3;
1832
1869
  * @return {boolean}
1833
1870
  */
1834
- proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptions = function() {
1871
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore = function() {
1835
1872
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1836
1873
  };
1837
1874
 
@@ -1840,16 +1877,16 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTransc
1840
1877
  * @param {boolean} value
1841
1878
  * @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
1842
1879
  */
1843
- proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptions = function(value) {
1880
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnConfidenceScore = function(value) {
1844
1881
  return jspb.Message.setProto3BooleanField(this, 3, value);
1845
1882
  };
1846
1883
 
1847
1884
 
1848
1885
  /**
1849
- * optional bool return_confidence_score = 4;
1886
+ * optional bool return_alternative_transcriptions = 4;
1850
1887
  * @return {boolean}
1851
1888
  */
1852
- proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore = function() {
1889
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptions = function() {
1853
1890
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1854
1891
  };
1855
1892
 
@@ -1858,11 +1895,65 @@ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnConfidenceScore =
1858
1895
  * @param {boolean} value
1859
1896
  * @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
1860
1897
  */
1861
- proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnConfidenceScore = function(value) {
1898
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptions = function(value) {
1862
1899
  return jspb.Message.setProto3BooleanField(this, 4, value);
1863
1900
  };
1864
1901
 
1865
1902
 
1903
+ /**
1904
+ * optional int32 return_alternative_transcriptions_nr = 5;
1905
+ * @return {number}
1906
+ */
1907
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeTranscriptionsNr = function() {
1908
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1909
+ };
1910
+
1911
+
1912
+ /**
1913
+ * @param {number} value
1914
+ * @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
1915
+ */
1916
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeTranscriptionsNr = function(value) {
1917
+ return jspb.Message.setProto3IntField(this, 5, value);
1918
+ };
1919
+
1920
+
1921
+ /**
1922
+ * optional bool return_alternative_words = 6;
1923
+ * @return {boolean}
1924
+ */
1925
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWords = function() {
1926
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1927
+ };
1928
+
1929
+
1930
+ /**
1931
+ * @param {boolean} value
1932
+ * @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
1933
+ */
1934
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWords = function(value) {
1935
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * optional int32 return_alternative_words_nr = 7;
1941
+ * @return {number}
1942
+ */
1943
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.getReturnAlternativeWordsNr = function() {
1944
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1945
+ };
1946
+
1947
+
1948
+ /**
1949
+ * @param {number} value
1950
+ * @return {!proto.ondewo.s2t.TranscriptionReturnOptions} returns this
1951
+ */
1952
+ proto.ondewo.s2t.TranscriptionReturnOptions.prototype.setReturnAlternativeWordsNr = function(value) {
1953
+ return jspb.Message.setProto3IntField(this, 7, value);
1954
+ };
1955
+
1956
+
1866
1957
  /**
1867
1958
  * optional bool return_word_timing = 8;
1868
1959
  * @return {boolean}
@@ -6033,7 +6124,8 @@ proto.ondewo.s2t.S2TInference.prototype.toObject = function(opt_includeInstance)
6033
6124
  proto.ondewo.s2t.S2TInference.toObject = function(includeInstance, msg) {
6034
6125
  var f, obj = {
6035
6126
  acousticModels: (f = msg.getAcousticModels()) && proto.ondewo.s2t.AcousticModels.toObject(includeInstance, f),
6036
- languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f)
6127
+ languageModels: (f = msg.getLanguageModels()) && proto.ondewo.s2t.LanguageModels.toObject(includeInstance, f),
6128
+ inferenceBackend: jspb.Message.getFieldWithDefault(msg, 3, 0)
6037
6129
  };
6038
6130
 
6039
6131
  if (includeInstance) {
@@ -6080,6 +6172,10 @@ proto.ondewo.s2t.S2TInference.deserializeBinaryFromReader = function(msg, reader
6080
6172
  reader.readMessage(value,proto.ondewo.s2t.LanguageModels.deserializeBinaryFromReader);
6081
6173
  msg.setLanguageModels(value);
6082
6174
  break;
6175
+ case 3:
6176
+ var value = /** @type {!proto.ondewo.s2t.InferenceBackend} */ (reader.readEnum());
6177
+ msg.setInferenceBackend(value);
6178
+ break;
6083
6179
  default:
6084
6180
  reader.skipField();
6085
6181
  break;
@@ -6125,6 +6221,13 @@ proto.ondewo.s2t.S2TInference.serializeBinaryToWriter = function(message, writer
6125
6221
  proto.ondewo.s2t.LanguageModels.serializeBinaryToWriter
6126
6222
  );
6127
6223
  }
6224
+ f = message.getInferenceBackend();
6225
+ if (f !== 0.0) {
6226
+ writer.writeEnum(
6227
+ 3,
6228
+ f
6229
+ );
6230
+ }
6128
6231
  };
6129
6232
 
6130
6233
 
@@ -6202,6 +6305,24 @@ proto.ondewo.s2t.S2TInference.prototype.hasLanguageModels = function() {
6202
6305
  };
6203
6306
 
6204
6307
 
6308
+ /**
6309
+ * optional InferenceBackend inference_backend = 3;
6310
+ * @return {!proto.ondewo.s2t.InferenceBackend}
6311
+ */
6312
+ proto.ondewo.s2t.S2TInference.prototype.getInferenceBackend = function() {
6313
+ return /** @type {!proto.ondewo.s2t.InferenceBackend} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6314
+ };
6315
+
6316
+
6317
+ /**
6318
+ * @param {!proto.ondewo.s2t.InferenceBackend} value
6319
+ * @return {!proto.ondewo.s2t.S2TInference} returns this
6320
+ */
6321
+ proto.ondewo.s2t.S2TInference.prototype.setInferenceBackend = function(value) {
6322
+ return jspb.Message.setProto3EnumField(this, 3, value);
6323
+ };
6324
+
6325
+
6205
6326
 
6206
6327
 
6207
6328
 
@@ -11801,6 +11922,15 @@ proto.ondewo.s2t.TrainUserLanguageModelRequest.prototype.setOrder = function(val
11801
11922
  };
11802
11923
 
11803
11924
 
11925
+ /**
11926
+ * @enum {number}
11927
+ */
11928
+ proto.ondewo.s2t.InferenceBackend = {
11929
+ INFERENCE_BACKEND_UNKNOWN: 0,
11930
+ INFERENCE_BACKEND_PYTORCH: 1,
11931
+ INFERENCE_BACKEND_FLAX: 2
11932
+ };
11933
+
11804
11934
  /**
11805
11935
  * @enum {number}
11806
11936
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondewo/s2t-client-typescript",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Ondewo Speech to Text (S2T) Client library for typescript as a commonjs module",
5
5
  "main": "public-api.js",
6
6
  "typings": "public-api.d.ts",