init
Browse files- .gitattributes +1 -1
- .gitignore +1 -0
- 60s.wav +3 -0
- README.md +4 -0
- SODAModels/SODA_punctuation_config.pb +3 -0
- SODAModels/SODA_punctuation_model.tflite +3 -0
- SODAModels/acousticmodel/SODA_DICTATION_EP.endpointer_portable_lstm_mean_stddev +3 -0
- SODAModels/acousticmodel/SODA_DICTATION_EP.endpointer_portable_lstm_model +3 -0
- SODAModels/acousticmodel/SODA_VOICE_ACTIONS_EP_MEDIUM_SHORT.endpointer_portable_lstm_mean_stddev +3 -0
- SODAModels/acousticmodel/SODA_VOICE_ACTIONS_EP_MEDIUM_SHORT.endpointer_portable_lstm_model +3 -0
- SODAModels/configs/ONDEVICE_MEDIUM_CONTINUOUS.config +3 -0
- SODAModels/configs/ONDEVICE_MEDIUM_SHORT.config +3 -0
- SODAModels/denorm/lm.pruned.sorted.fst +3 -0
- SODAModels/denorm/lm.pruned.sorted.syms +3 -0
- SODAModels/denorm/porn_normalizer_ondevice.mfar +3 -0
- SODAModels/denorm/remove_decorators_ondevice.mfar +3 -0
- SODAModels/denorm/rule_based_denormalizer_e2e.mfar +3 -0
- SODAModels/denorm/transducer.pruned.fst +3 -0
- SODAModels/endtoendmodel/ONDEVICE_RNNT_WPM_EMBR_SPARSE_CAPTION.mean_stddev +3 -0
- SODAModels/endtoendmodel/ONDEVICE_RNNT_WPM_EMBR_SPARSE_VOICE_SEARCH.mean_stddev +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-encoder.part_0.tflite +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-encoder.part_1.tflite +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-rnnt.decoder.tflite +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-rnnt.joint.tflite +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params.syms.compact +3 -0
- SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params.wpm.portable +3 -0
- SODAModels/hotword.data +3 -0
- SODAModels/metadata +3 -0
- gasr.py +64 -0
- libsoda.so +3 -0
- soda_api_pb2.py +865 -0
.gitattributes
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
SODAModels
|
2 |
*.so filter=lfs diff=lfs merge=lfs -text
|
3 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
4 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
SODAModels/**/* filter=lfs diff=lfs merge=lfs -text
|
2 |
*.so filter=lfs diff=lfs merge=lfs -text
|
3 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
4 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
__pycache__/
|
60s.wav
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:165da17bb51bd9f5624a8f351bf2d9043cf40f7c47c260eb4c8b97d0c772fbad
|
3 |
+
size 1920078
|
README.md
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
see https://github.com/buptsb/gasr-jp
|
2 |
+
|
3 |
+
pip install protobuf==3.20.0
|
4 |
+
python3 gasr.py
|
SODAModels/SODA_punctuation_config.pb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9ee54f5e21a30dce487cf8fde4c6b420737feb8220a10bcf30c8d4df744eba6
|
3 |
+
size 46
|
SODAModels/SODA_punctuation_model.tflite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85d6b68a09a28aa98d6d0c72b3ffed5730e6d9ee0256d423642e25b7e2265c25
|
3 |
+
size 2322544
|
SODAModels/acousticmodel/SODA_DICTATION_EP.endpointer_portable_lstm_mean_stddev
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89732317b5090c125990a2b796f6c7e0109a8ffb9176bd81b8cd6b5ce17523a1
|
3 |
+
size 326
|
SODAModels/acousticmodel/SODA_DICTATION_EP.endpointer_portable_lstm_model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:651b9c66c0302d8964172b0082377c8d2b956d3504d34dacdadacfe38c73c9f3
|
3 |
+
size 125088
|
SODAModels/acousticmodel/SODA_VOICE_ACTIONS_EP_MEDIUM_SHORT.endpointer_portable_lstm_mean_stddev
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89732317b5090c125990a2b796f6c7e0109a8ffb9176bd81b8cd6b5ce17523a1
|
3 |
+
size 326
|
SODAModels/acousticmodel/SODA_VOICE_ACTIONS_EP_MEDIUM_SHORT.endpointer_portable_lstm_model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:651b9c66c0302d8964172b0082377c8d2b956d3504d34dacdadacfe38c73c9f3
|
3 |
+
size 125088
|
SODAModels/configs/ONDEVICE_MEDIUM_CONTINUOUS.config
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbc94a53b755f9a1cf8356ffec9b40f4cae2ac9bbaa8f935faa41c59491590c2
|
3 |
+
size 6807
|
SODAModels/configs/ONDEVICE_MEDIUM_SHORT.config
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ea12e1aa2ae13576ce7b553797bb1d21efd2cb0869691e309bf2cbe84850707
|
3 |
+
size 7300
|
SODAModels/denorm/lm.pruned.sorted.fst
ADDED
Git LFS Details
|
SODAModels/denorm/lm.pruned.sorted.syms
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2fece546973bc5393351c33e0b30e5c916ff7a6fd131b8f40df2e572e5421e4b
|
3 |
+
size 1465626
|
SODAModels/denorm/porn_normalizer_ondevice.mfar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0485742692014522008b61d09165c456f6917376cda6b0e08f10aaf5454926eb
|
3 |
+
size 629952
|
SODAModels/denorm/remove_decorators_ondevice.mfar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3a42646e458a1f935b77fd9acde32c9a3e17aed86e5bfbb5f3e516d81d3b8f47
|
3 |
+
size 336112
|
SODAModels/denorm/rule_based_denormalizer_e2e.mfar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea38004efb2aebf1fcc608bb24d4cceaec00f37fc23ea6ff53c82247bd27ca37
|
3 |
+
size 15760
|
SODAModels/denorm/transducer.pruned.fst
ADDED
Git LFS Details
|
SODAModels/endtoendmodel/ONDEVICE_RNNT_WPM_EMBR_SPARSE_CAPTION.mean_stddev
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea36930b5daa8792068c2ed3f5f694cb08e22be97f3ca185733713cfc18d0a58
|
3 |
+
size 2054
|
SODAModels/endtoendmodel/ONDEVICE_RNNT_WPM_EMBR_SPARSE_VOICE_SEARCH.mean_stddev
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea36930b5daa8792068c2ed3f5f694cb08e22be97f3ca185733713cfc18d0a58
|
3 |
+
size 2054
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-encoder.part_0.tflite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2da945a4a378bfb4f41b808b443f0df60006cb95bd41d09b428005c1304652cf
|
3 |
+
size 10649616
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-encoder.part_1.tflite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b13733ed1c9be05c24d34a0912e7d122abc4e971e6700d6cedc52ef229a1a5f
|
3 |
+
size 39379664
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-rnnt.decoder.tflite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d2ad16262aa41545415e946f1eef72b3551d80300d729a594999f1c1c67791f
|
3 |
+
size 11380496
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params-rnnt.joint.tflite
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c2d98dae8ff4c5c3a2fc7e57d9aa1a7e89e7f33191717bae544cbcf4a807f02
|
3 |
+
size 4122432
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params.syms.compact
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19d73b1a2e6bb8c3847f720f0b8a0f8025e5b36809e5b4e0fdc68c1b62a2d903
|
3 |
+
size 28976
|
SODAModels/endtoendmodel/ondevice_rnnt_wpm_embr_tf_model_params.wpm.portable
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fff9722900c85a391dc345bc9779e430a5262c6cbbe35cb7889c0879057f70f2
|
3 |
+
size 147627
|
SODAModels/hotword.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ebefb387f206daad36e7c6e9e8b537340bfea53e3e020167d741bb7c1bf9180
|
3 |
+
size 2634999
|
SODAModels/metadata
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:697449377938371bfbbf0371311857a4aa220aa08b7bb2e2c92222fdce9abd22
|
3 |
+
size 1903
|
gasr.py
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
import sys, time
|
3 |
+
import ctypes
|
4 |
+
from soda_api_pb2 import ExtendedSodaConfigMsg, SodaResponse, SodaRecognitionResult
|
5 |
+
|
6 |
+
CHANNEL_COUNT = 1
|
7 |
+
SAMPLE_RATE = 16000
|
8 |
+
CHUNK_SIZE = 2048 # 2 chunks per frame, a frame is a single s16
|
9 |
+
|
10 |
+
CALLBACK = ctypes.CFUNCTYPE(None, ctypes.POINTER(ctypes.c_byte), ctypes.c_int, ctypes.c_void_p)
|
11 |
+
class SodaConfig(ctypes.Structure):
|
12 |
+
_fields_ = [('soda_config', ctypes.c_char_p),
|
13 |
+
('soda_config_size', ctypes.c_int),
|
14 |
+
('callback', CALLBACK),
|
15 |
+
('callback_handle', ctypes.c_void_p)]
|
16 |
+
|
17 |
+
|
18 |
+
class SodaClient():
|
19 |
+
def __init__(self, callback=None):
|
20 |
+
self.sodalib = ctypes.CDLL('./libsoda.so')
|
21 |
+
if callback == None:
|
22 |
+
callback = CALLBACK(self.resultHandler)
|
23 |
+
else:
|
24 |
+
callback = CALLBACK(callback)
|
25 |
+
cfg_proto = ExtendedSodaConfigMsg()
|
26 |
+
cfg_proto.channel_count = CHANNEL_COUNT
|
27 |
+
cfg_proto.sample_rate = SAMPLE_RATE
|
28 |
+
cfg_proto.api_key = 'ce04d119-129f-404e-b4fe-6b913fffb6cb' # "ce04d119-129f-404e-b4fe-6b913fffb6cb"
|
29 |
+
cfg_proto.language_pack_directory = './SODAModels/'
|
30 |
+
cfg_serialized = cfg_proto.SerializeToString()
|
31 |
+
self.config = SodaConfig(cfg_serialized, len(cfg_serialized), callback, None)
|
32 |
+
self.sodalib.CreateExtendedSodaAsync.restype = ctypes.c_void_p
|
33 |
+
|
34 |
+
def start(self):
|
35 |
+
self.handle = ctypes.c_void_p(self.sodalib.CreateExtendedSodaAsync(self.config))
|
36 |
+
self.sodalib.ExtendedSodaStart(self.handle)
|
37 |
+
with open('60s.wav', "rb") as f: # sys.argv[1] file name from parameter
|
38 |
+
chunk = f.read(CHUNK_SIZE)
|
39 |
+
while chunk:
|
40 |
+
self.sodalib.ExtendedAddAudio(self.handle, chunk, len(chunk))
|
41 |
+
time.sleep(0.15) # emulate stream-delay, adjust to fit your need
|
42 |
+
chunk= f.read(CHUNK_SIZE)
|
43 |
+
print("\n\n")
|
44 |
+
|
45 |
+
|
46 |
+
def delete(self):
|
47 |
+
self.sodalib.DeleteExtendedSodaAsync(self.handle)
|
48 |
+
|
49 |
+
def resultHandler(self, response, rlen, instance):
|
50 |
+
res = SodaResponse()
|
51 |
+
res.ParseFromString(ctypes.string_at(response, rlen))
|
52 |
+
if res.soda_type == SodaResponse.SodaMessageType.RECOGNITION:
|
53 |
+
if res.recognition_result.result_type == SodaRecognitionResult.ResultType.FINAL:
|
54 |
+
print(f'* {res.recognition_result.hypothesis[0]}')
|
55 |
+
elif res.recognition_result.result_type == SodaRecognitionResult.ResultType.PARTIAL:
|
56 |
+
print(f'* {res.recognition_result.hypothesis[0]}', end='\r')
|
57 |
+
|
58 |
+
|
59 |
+
if __name__ == '__main__':
|
60 |
+
client = SodaClient()
|
61 |
+
try:
|
62 |
+
client.start()
|
63 |
+
except KeyboardInterrupt:
|
64 |
+
client.delete()
|
libsoda.so
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:213dacfca55da3fec85e10aad442c158db334153e5a9d44cab691de054f341aa
|
3 |
+
size 153001984
|
soda_api_pb2.py
ADDED
@@ -0,0 +1,865 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2 |
+
# source: soda_api.proto
|
3 |
+
|
4 |
+
import sys
|
5 |
+
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
6 |
+
from google.protobuf import descriptor as _descriptor
|
7 |
+
from google.protobuf import message as _message
|
8 |
+
from google.protobuf import reflection as _reflection
|
9 |
+
from google.protobuf import symbol_database as _symbol_database
|
10 |
+
from google.protobuf import descriptor_pb2
|
11 |
+
# @@protoc_insertion_point(imports)
|
12 |
+
|
13 |
+
_sym_db = _symbol_database.Default()
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
DESCRIPTOR = _descriptor.FileDescriptor(
|
19 |
+
name='soda_api.proto',
|
20 |
+
package='speech.soda.chrome',
|
21 |
+
syntax='proto2',
|
22 |
+
serialized_pb=_b('\n\x0esoda_api.proto\x12\x12speech.soda.chrome\"\x8d\x05\n\x15\x45xtendedSodaConfigMsg\x12\x15\n\rchannel_count\x18\x01 \x01(\x05\x12\x13\n\x0bsample_rate\x18\x02 \x01(\x05\x12\x1b\n\x10max_buffer_bytes\x18\x04 \x01(\x05:\x01\x30\x12)\n\x1asimulate_realtime_testonly\x18\x05 \x01(\x08:\x05\x66\x61lse\x12 \n\x14\x63onfig_file_location\x18\x03 \x01(\tB\x02\x18\x01\x12\x0f\n\x07\x61pi_key\x18\x06 \x01(\t\x12\x1f\n\x17language_pack_directory\x18\x07 \x01(\t\x12X\n\x10recognition_mode\x18\x08 \x01(\x0e\x32\x39.speech.soda.chrome.ExtendedSodaConfigMsg.RecognitionMode:\x03IME\x12\'\n\x15reset_on_final_result\x18\t \x01(\x08:\x04trueB\x02\x18\x01\x12$\n\x16include_timing_metrics\x18\n \x01(\x08:\x04true\x12\x1d\n\x0e\x65nable_lang_id\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\x1f\n\x11\x65nable_formatting\x18\x0c \x01(\x08:\x04true\x12.\n\x1f\x65nable_speaker_change_detection\x18\r \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x0finclude_logging\x18\x0e \x01(\x08:\x05\x66\x61lse\x12=\n\x10multilang_config\x18\x0f \x01(\x0b\x32#.speech.soda.chrome.MultilangConfig\"4\n\x0fRecognitionMode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03IME\x10\x01\x12\x0b\n\x07\x43\x41PTION\x10\x02\"\xf4\x01\n\x0fMultilangConfig\x12r\n!multilang_language_pack_directory\x18\x01 \x03(\x0b\x32G.speech.soda.chrome.MultilangConfig.MultilangLanguagePackDirectoryEntry\x12&\n\x1erewind_when_switching_language\x18\x02 \x01(\x08\x1a\x45\n#MultilangLanguagePackDirectoryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8b\x01\n\rTimingMetrics\x12\x1e\n\x16\x61udio_start_epoch_usec\x18\x01 \x01(\x03\x12\x1d\n\x15\x61udio_start_time_usec\x18\x02 \x01(\x03\x12\x1e\n\x16\x65lapsed_wall_time_usec\x18\x03 \x01(\x03\x12\x1b\n\x13\x65vent_end_time_usec\x18\x04 \x01(\x03\"4\n\x0eHypothesisPart\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x14\n\x0c\x61lignment_ms\x18\x02 \x01(\x03\"\xf3\x04\n\x15SodaRecognitionResult\x12\x12\n\nhypothesis\x18\x01 \x03(\t\x12I\n\x0bresult_type\x18\x02 \x01(\x0e\x32\x34.speech.soda.chrome.SodaRecognitionResult.ResultType\x12\\\n\x0f\x65ndpoint_reason\x18\x03 \x01(\x0e\x32\x43.speech.soda.chrome.SodaRecognitionResult.FinalResultEndpointReason\x12\x39\n\x0etiming_metrics\x18\x04 \x01(\x0b\x32!.speech.soda.chrome.TimingMetrics\x12;\n\x0fhypothesis_part\x18\x05 \x03(\x0b\x32\".speech.soda.chrome.HypothesisPart\"?\n\nResultType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07PARTIAL\x10\x01\x12\t\n\x05\x46INAL\x10\x02\x12\x0c\n\x08PREFETCH\x10\x03\"\xe3\x01\n\x19\x46inalResultEndpointReason\x12\x14\n\x10\x45NDPOINT_UNKNOWN\x10\x00\x12\x1a\n\x16\x45NDPOINT_END_OF_SPEECH\x10\x01\x12\x1d\n\x19\x45NDPOINT_END_OF_UTTERANCE\x10\x02\x12\x19\n\x15\x45NDPOINT_END_OF_AUDIO\x10\x03\x12!\n\x1d\x45NDPOINT_ASR_RESET_BY_HOTWORD\x10\x04\x12\x1f\n\x1b\x45NDPOINT_ASR_RESET_EXTERNAL\x10\x05\x12\x16\n\x12\x45NDPOINT_ASR_ERROR\x10\x06\"\x8f\x02\n\x11SodaEndpointEvent\x12R\n\rendpoint_type\x18\x01 \x01(\x0e\x32\x32.speech.soda.chrome.SodaEndpointEvent.EndpointType:\x07UNKNOWN\x12\x39\n\x0etiming_metrics\x18\x02 \x01(\x0b\x32!.speech.soda.chrome.TimingMetrics\"k\n\x0c\x45ndpointType\x12\x13\n\x0fSTART_OF_SPEECH\x10\x00\x12\x11\n\rEND_OF_SPEECH\x10\x01\x12\x10\n\x0c\x45ND_OF_AUDIO\x10\x02\x12\x14\n\x10\x45ND_OF_UTTERANCE\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"O\n\x12SodaAudioLevelInfo\x12\x0b\n\x03rms\x18\x01 \x01(\x02\x12\x13\n\x0b\x61udio_level\x18\x02 \x01(\x02\x12\x17\n\x0f\x61udio_time_usec\x18\x03 \x01(\x03\"=\n\x0fSodaLangIdEvent\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x18\n\x10\x63onfidence_level\x18\x02 \x01(\x05\"\x94\x04\n\x0cSodaResponse\x12L\n\tsoda_type\x18\x01 \x01(\x0e\x32\x30.speech.soda.chrome.SodaResponse.SodaMessageType:\x07UNKNOWN\x12\x45\n\x12recognition_result\x18\x02 \x01(\x0b\x32).speech.soda.chrome.SodaRecognitionResult\x12=\n\x0e\x65ndpoint_event\x18\x03 \x01(\x0b\x32%.speech.soda.chrome.SodaEndpointEvent\x12@\n\x10\x61udio_level_info\x18\x04 \x01(\x0b\x32&.speech.soda.chrome.SodaAudioLevelInfo\x12\x39\n\x0clangid_event\x18\x05 \x01(\x0b\x32#.speech.soda.chrome.SodaLangIdEvent\x12\x11\n\tlog_lines\x18\x06 \x03(\t\"\x9f\x01\n\x0fSodaMessageType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0f\n\x0bRECOGNITION\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x0c\n\x08SHUTDOWN\x10\x03\x12\t\n\x05START\x10\x04\x12\x0c\n\x08\x45NDPOINT\x10\x05\x12\x0f\n\x0b\x41UDIO_LEVEL\x10\x06\x12\n\n\x06LANGID\x10\x07\x12 \n\x1cLOGS_ONLY_ARTIFICIAL_MESSAGE\x10\x08\x42\x04H\x03P\x01')
|
23 |
+
)
|
24 |
+
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
_EXTENDEDSODACONFIGMSG_RECOGNITIONMODE = _descriptor.EnumDescriptor(
|
29 |
+
name='RecognitionMode',
|
30 |
+
full_name='speech.soda.chrome.ExtendedSodaConfigMsg.RecognitionMode',
|
31 |
+
filename=None,
|
32 |
+
file=DESCRIPTOR,
|
33 |
+
values=[
|
34 |
+
_descriptor.EnumValueDescriptor(
|
35 |
+
name='UNKNOWN', index=0, number=0,
|
36 |
+
options=None,
|
37 |
+
type=None),
|
38 |
+
_descriptor.EnumValueDescriptor(
|
39 |
+
name='IME', index=1, number=1,
|
40 |
+
options=None,
|
41 |
+
type=None),
|
42 |
+
_descriptor.EnumValueDescriptor(
|
43 |
+
name='CAPTION', index=2, number=2,
|
44 |
+
options=None,
|
45 |
+
type=None),
|
46 |
+
],
|
47 |
+
containing_type=None,
|
48 |
+
options=None,
|
49 |
+
serialized_start=640,
|
50 |
+
serialized_end=692,
|
51 |
+
)
|
52 |
+
_sym_db.RegisterEnumDescriptor(_EXTENDEDSODACONFIGMSG_RECOGNITIONMODE)
|
53 |
+
|
54 |
+
_SODARECOGNITIONRESULT_RESULTTYPE = _descriptor.EnumDescriptor(
|
55 |
+
name='ResultType',
|
56 |
+
full_name='speech.soda.chrome.SodaRecognitionResult.ResultType',
|
57 |
+
filename=None,
|
58 |
+
file=DESCRIPTOR,
|
59 |
+
values=[
|
60 |
+
_descriptor.EnumValueDescriptor(
|
61 |
+
name='UNKNOWN', index=0, number=0,
|
62 |
+
options=None,
|
63 |
+
type=None),
|
64 |
+
_descriptor.EnumValueDescriptor(
|
65 |
+
name='PARTIAL', index=1, number=1,
|
66 |
+
options=None,
|
67 |
+
type=None),
|
68 |
+
_descriptor.EnumValueDescriptor(
|
69 |
+
name='FINAL', index=2, number=2,
|
70 |
+
options=None,
|
71 |
+
type=None),
|
72 |
+
_descriptor.EnumValueDescriptor(
|
73 |
+
name='PREFETCH', index=3, number=3,
|
74 |
+
options=None,
|
75 |
+
type=None),
|
76 |
+
],
|
77 |
+
containing_type=None,
|
78 |
+
options=None,
|
79 |
+
serialized_start=1472,
|
80 |
+
serialized_end=1535,
|
81 |
+
)
|
82 |
+
_sym_db.RegisterEnumDescriptor(_SODARECOGNITIONRESULT_RESULTTYPE)
|
83 |
+
|
84 |
+
_SODARECOGNITIONRESULT_FINALRESULTENDPOINTREASON = _descriptor.EnumDescriptor(
|
85 |
+
name='FinalResultEndpointReason',
|
86 |
+
full_name='speech.soda.chrome.SodaRecognitionResult.FinalResultEndpointReason',
|
87 |
+
filename=None,
|
88 |
+
file=DESCRIPTOR,
|
89 |
+
values=[
|
90 |
+
_descriptor.EnumValueDescriptor(
|
91 |
+
name='ENDPOINT_UNKNOWN', index=0, number=0,
|
92 |
+
options=None,
|
93 |
+
type=None),
|
94 |
+
_descriptor.EnumValueDescriptor(
|
95 |
+
name='ENDPOINT_END_OF_SPEECH', index=1, number=1,
|
96 |
+
options=None,
|
97 |
+
type=None),
|
98 |
+
_descriptor.EnumValueDescriptor(
|
99 |
+
name='ENDPOINT_END_OF_UTTERANCE', index=2, number=2,
|
100 |
+
options=None,
|
101 |
+
type=None),
|
102 |
+
_descriptor.EnumValueDescriptor(
|
103 |
+
name='ENDPOINT_END_OF_AUDIO', index=3, number=3,
|
104 |
+
options=None,
|
105 |
+
type=None),
|
106 |
+
_descriptor.EnumValueDescriptor(
|
107 |
+
name='ENDPOINT_ASR_RESET_BY_HOTWORD', index=4, number=4,
|
108 |
+
options=None,
|
109 |
+
type=None),
|
110 |
+
_descriptor.EnumValueDescriptor(
|
111 |
+
name='ENDPOINT_ASR_RESET_EXTERNAL', index=5, number=5,
|
112 |
+
options=None,
|
113 |
+
type=None),
|
114 |
+
_descriptor.EnumValueDescriptor(
|
115 |
+
name='ENDPOINT_ASR_ERROR', index=6, number=6,
|
116 |
+
options=None,
|
117 |
+
type=None),
|
118 |
+
],
|
119 |
+
containing_type=None,
|
120 |
+
options=None,
|
121 |
+
serialized_start=1538,
|
122 |
+
serialized_end=1765,
|
123 |
+
)
|
124 |
+
_sym_db.RegisterEnumDescriptor(_SODARECOGNITIONRESULT_FINALRESULTENDPOINTREASON)
|
125 |
+
|
126 |
+
_SODAENDPOINTEVENT_ENDPOINTTYPE = _descriptor.EnumDescriptor(
|
127 |
+
name='EndpointType',
|
128 |
+
full_name='speech.soda.chrome.SodaEndpointEvent.EndpointType',
|
129 |
+
filename=None,
|
130 |
+
file=DESCRIPTOR,
|
131 |
+
values=[
|
132 |
+
_descriptor.EnumValueDescriptor(
|
133 |
+
name='START_OF_SPEECH', index=0, number=0,
|
134 |
+
options=None,
|
135 |
+
type=None),
|
136 |
+
_descriptor.EnumValueDescriptor(
|
137 |
+
name='END_OF_SPEECH', index=1, number=1,
|
138 |
+
options=None,
|
139 |
+
type=None),
|
140 |
+
_descriptor.EnumValueDescriptor(
|
141 |
+
name='END_OF_AUDIO', index=2, number=2,
|
142 |
+
options=None,
|
143 |
+
type=None),
|
144 |
+
_descriptor.EnumValueDescriptor(
|
145 |
+
name='END_OF_UTTERANCE', index=3, number=3,
|
146 |
+
options=None,
|
147 |
+
type=None),
|
148 |
+
_descriptor.EnumValueDescriptor(
|
149 |
+
name='UNKNOWN', index=4, number=4,
|
150 |
+
options=None,
|
151 |
+
type=None),
|
152 |
+
],
|
153 |
+
containing_type=None,
|
154 |
+
options=None,
|
155 |
+
serialized_start=1932,
|
156 |
+
serialized_end=2039,
|
157 |
+
)
|
158 |
+
_sym_db.RegisterEnumDescriptor(_SODAENDPOINTEVENT_ENDPOINTTYPE)
|
159 |
+
|
160 |
+
_SODARESPONSE_SODAMESSAGETYPE = _descriptor.EnumDescriptor(
|
161 |
+
name='SodaMessageType',
|
162 |
+
full_name='speech.soda.chrome.SodaResponse.SodaMessageType',
|
163 |
+
filename=None,
|
164 |
+
file=DESCRIPTOR,
|
165 |
+
values=[
|
166 |
+
_descriptor.EnumValueDescriptor(
|
167 |
+
name='UNKNOWN', index=0, number=0,
|
168 |
+
options=None,
|
169 |
+
type=None),
|
170 |
+
_descriptor.EnumValueDescriptor(
|
171 |
+
name='RECOGNITION', index=1, number=1,
|
172 |
+
options=None,
|
173 |
+
type=None),
|
174 |
+
_descriptor.EnumValueDescriptor(
|
175 |
+
name='STOP', index=2, number=2,
|
176 |
+
options=None,
|
177 |
+
type=None),
|
178 |
+
_descriptor.EnumValueDescriptor(
|
179 |
+
name='SHUTDOWN', index=3, number=3,
|
180 |
+
options=None,
|
181 |
+
type=None),
|
182 |
+
_descriptor.EnumValueDescriptor(
|
183 |
+
name='START', index=4, number=4,
|
184 |
+
options=None,
|
185 |
+
type=None),
|
186 |
+
_descriptor.EnumValueDescriptor(
|
187 |
+
name='ENDPOINT', index=5, number=5,
|
188 |
+
options=None,
|
189 |
+
type=None),
|
190 |
+
_descriptor.EnumValueDescriptor(
|
191 |
+
name='AUDIO_LEVEL', index=6, number=6,
|
192 |
+
options=None,
|
193 |
+
type=None),
|
194 |
+
_descriptor.EnumValueDescriptor(
|
195 |
+
name='LANGID', index=7, number=7,
|
196 |
+
options=None,
|
197 |
+
type=None),
|
198 |
+
_descriptor.EnumValueDescriptor(
|
199 |
+
name='LOGS_ONLY_ARTIFICIAL_MESSAGE', index=8, number=8,
|
200 |
+
options=None,
|
201 |
+
type=None),
|
202 |
+
],
|
203 |
+
containing_type=None,
|
204 |
+
options=None,
|
205 |
+
serialized_start=2559,
|
206 |
+
serialized_end=2718,
|
207 |
+
)
|
208 |
+
_sym_db.RegisterEnumDescriptor(_SODARESPONSE_SODAMESSAGETYPE)
|
209 |
+
|
210 |
+
|
211 |
+
_EXTENDEDSODACONFIGMSG = _descriptor.Descriptor(
|
212 |
+
name='ExtendedSodaConfigMsg',
|
213 |
+
full_name='speech.soda.chrome.ExtendedSodaConfigMsg',
|
214 |
+
filename=None,
|
215 |
+
file=DESCRIPTOR,
|
216 |
+
containing_type=None,
|
217 |
+
fields=[
|
218 |
+
_descriptor.FieldDescriptor(
|
219 |
+
name='channel_count', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.channel_count', index=0,
|
220 |
+
number=1, type=5, cpp_type=1, label=1,
|
221 |
+
has_default_value=False, default_value=0,
|
222 |
+
message_type=None, enum_type=None, containing_type=None,
|
223 |
+
is_extension=False, extension_scope=None,
|
224 |
+
options=None),
|
225 |
+
_descriptor.FieldDescriptor(
|
226 |
+
name='sample_rate', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.sample_rate', index=1,
|
227 |
+
number=2, type=5, cpp_type=1, label=1,
|
228 |
+
has_default_value=False, default_value=0,
|
229 |
+
message_type=None, enum_type=None, containing_type=None,
|
230 |
+
is_extension=False, extension_scope=None,
|
231 |
+
options=None),
|
232 |
+
_descriptor.FieldDescriptor(
|
233 |
+
name='max_buffer_bytes', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.max_buffer_bytes', index=2,
|
234 |
+
number=4, type=5, cpp_type=1, label=1,
|
235 |
+
has_default_value=True, default_value=0,
|
236 |
+
message_type=None, enum_type=None, containing_type=None,
|
237 |
+
is_extension=False, extension_scope=None,
|
238 |
+
options=None),
|
239 |
+
_descriptor.FieldDescriptor(
|
240 |
+
name='simulate_realtime_testonly', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.simulate_realtime_testonly', index=3,
|
241 |
+
number=5, type=8, cpp_type=7, label=1,
|
242 |
+
has_default_value=True, default_value=False,
|
243 |
+
message_type=None, enum_type=None, containing_type=None,
|
244 |
+
is_extension=False, extension_scope=None,
|
245 |
+
options=None),
|
246 |
+
_descriptor.FieldDescriptor(
|
247 |
+
name='config_file_location', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.config_file_location', index=4,
|
248 |
+
number=3, type=9, cpp_type=9, label=1,
|
249 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
250 |
+
message_type=None, enum_type=None, containing_type=None,
|
251 |
+
is_extension=False, extension_scope=None,
|
252 |
+
options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
|
253 |
+
_descriptor.FieldDescriptor(
|
254 |
+
name='api_key', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.api_key', index=5,
|
255 |
+
number=6, type=9, cpp_type=9, label=1,
|
256 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
257 |
+
message_type=None, enum_type=None, containing_type=None,
|
258 |
+
is_extension=False, extension_scope=None,
|
259 |
+
options=None),
|
260 |
+
_descriptor.FieldDescriptor(
|
261 |
+
name='language_pack_directory', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.language_pack_directory', index=6,
|
262 |
+
number=7, type=9, cpp_type=9, label=1,
|
263 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
264 |
+
message_type=None, enum_type=None, containing_type=None,
|
265 |
+
is_extension=False, extension_scope=None,
|
266 |
+
options=None),
|
267 |
+
_descriptor.FieldDescriptor(
|
268 |
+
name='recognition_mode', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.recognition_mode', index=7,
|
269 |
+
number=8, type=14, cpp_type=8, label=1,
|
270 |
+
has_default_value=True, default_value=1,
|
271 |
+
message_type=None, enum_type=None, containing_type=None,
|
272 |
+
is_extension=False, extension_scope=None,
|
273 |
+
options=None),
|
274 |
+
_descriptor.FieldDescriptor(
|
275 |
+
name='reset_on_final_result', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.reset_on_final_result', index=8,
|
276 |
+
number=9, type=8, cpp_type=7, label=1,
|
277 |
+
has_default_value=True, default_value=True,
|
278 |
+
message_type=None, enum_type=None, containing_type=None,
|
279 |
+
is_extension=False, extension_scope=None,
|
280 |
+
options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))),
|
281 |
+
_descriptor.FieldDescriptor(
|
282 |
+
name='include_timing_metrics', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.include_timing_metrics', index=9,
|
283 |
+
number=10, type=8, cpp_type=7, label=1,
|
284 |
+
has_default_value=True, default_value=True,
|
285 |
+
message_type=None, enum_type=None, containing_type=None,
|
286 |
+
is_extension=False, extension_scope=None,
|
287 |
+
options=None),
|
288 |
+
_descriptor.FieldDescriptor(
|
289 |
+
name='enable_lang_id', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.enable_lang_id', index=10,
|
290 |
+
number=11, type=8, cpp_type=7, label=1,
|
291 |
+
has_default_value=True, default_value=False,
|
292 |
+
message_type=None, enum_type=None, containing_type=None,
|
293 |
+
is_extension=False, extension_scope=None,
|
294 |
+
options=None),
|
295 |
+
_descriptor.FieldDescriptor(
|
296 |
+
name='enable_formatting', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.enable_formatting', index=11,
|
297 |
+
number=12, type=8, cpp_type=7, label=1,
|
298 |
+
has_default_value=True, default_value=True,
|
299 |
+
message_type=None, enum_type=None, containing_type=None,
|
300 |
+
is_extension=False, extension_scope=None,
|
301 |
+
options=None),
|
302 |
+
_descriptor.FieldDescriptor(
|
303 |
+
name='enable_speaker_change_detection', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.enable_speaker_change_detection', index=12,
|
304 |
+
number=13, type=8, cpp_type=7, label=1,
|
305 |
+
has_default_value=True, default_value=False,
|
306 |
+
message_type=None, enum_type=None, containing_type=None,
|
307 |
+
is_extension=False, extension_scope=None,
|
308 |
+
options=None),
|
309 |
+
_descriptor.FieldDescriptor(
|
310 |
+
name='include_logging', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.include_logging', index=13,
|
311 |
+
number=14, type=8, cpp_type=7, label=1,
|
312 |
+
has_default_value=True, default_value=False,
|
313 |
+
message_type=None, enum_type=None, containing_type=None,
|
314 |
+
is_extension=False, extension_scope=None,
|
315 |
+
options=None),
|
316 |
+
_descriptor.FieldDescriptor(
|
317 |
+
name='multilang_config', full_name='speech.soda.chrome.ExtendedSodaConfigMsg.multilang_config', index=14,
|
318 |
+
number=15, type=11, cpp_type=10, label=1,
|
319 |
+
has_default_value=False, default_value=None,
|
320 |
+
message_type=None, enum_type=None, containing_type=None,
|
321 |
+
is_extension=False, extension_scope=None,
|
322 |
+
options=None),
|
323 |
+
],
|
324 |
+
extensions=[
|
325 |
+
],
|
326 |
+
nested_types=[],
|
327 |
+
enum_types=[
|
328 |
+
_EXTENDEDSODACONFIGMSG_RECOGNITIONMODE,
|
329 |
+
],
|
330 |
+
options=None,
|
331 |
+
is_extendable=False,
|
332 |
+
syntax='proto2',
|
333 |
+
extension_ranges=[],
|
334 |
+
oneofs=[
|
335 |
+
],
|
336 |
+
serialized_start=39,
|
337 |
+
serialized_end=692,
|
338 |
+
)
|
339 |
+
|
340 |
+
|
341 |
+
_MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY = _descriptor.Descriptor(
|
342 |
+
name='MultilangLanguagePackDirectoryEntry',
|
343 |
+
full_name='speech.soda.chrome.MultilangConfig.MultilangLanguagePackDirectoryEntry',
|
344 |
+
filename=None,
|
345 |
+
file=DESCRIPTOR,
|
346 |
+
containing_type=None,
|
347 |
+
fields=[
|
348 |
+
_descriptor.FieldDescriptor(
|
349 |
+
name='key', full_name='speech.soda.chrome.MultilangConfig.MultilangLanguagePackDirectoryEntry.key', index=0,
|
350 |
+
number=1, type=9, cpp_type=9, label=1,
|
351 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
352 |
+
message_type=None, enum_type=None, containing_type=None,
|
353 |
+
is_extension=False, extension_scope=None,
|
354 |
+
options=None),
|
355 |
+
_descriptor.FieldDescriptor(
|
356 |
+
name='value', full_name='speech.soda.chrome.MultilangConfig.MultilangLanguagePackDirectoryEntry.value', index=1,
|
357 |
+
number=2, type=9, cpp_type=9, label=1,
|
358 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
359 |
+
message_type=None, enum_type=None, containing_type=None,
|
360 |
+
is_extension=False, extension_scope=None,
|
361 |
+
options=None),
|
362 |
+
],
|
363 |
+
extensions=[
|
364 |
+
],
|
365 |
+
nested_types=[],
|
366 |
+
enum_types=[
|
367 |
+
],
|
368 |
+
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
|
369 |
+
is_extendable=False,
|
370 |
+
syntax='proto2',
|
371 |
+
extension_ranges=[],
|
372 |
+
oneofs=[
|
373 |
+
],
|
374 |
+
serialized_start=870,
|
375 |
+
serialized_end=939,
|
376 |
+
)
|
377 |
+
|
378 |
+
_MULTILANGCONFIG = _descriptor.Descriptor(
|
379 |
+
name='MultilangConfig',
|
380 |
+
full_name='speech.soda.chrome.MultilangConfig',
|
381 |
+
filename=None,
|
382 |
+
file=DESCRIPTOR,
|
383 |
+
containing_type=None,
|
384 |
+
fields=[
|
385 |
+
_descriptor.FieldDescriptor(
|
386 |
+
name='multilang_language_pack_directory', full_name='speech.soda.chrome.MultilangConfig.multilang_language_pack_directory', index=0,
|
387 |
+
number=1, type=11, cpp_type=10, label=3,
|
388 |
+
has_default_value=False, default_value=[],
|
389 |
+
message_type=None, enum_type=None, containing_type=None,
|
390 |
+
is_extension=False, extension_scope=None,
|
391 |
+
options=None),
|
392 |
+
_descriptor.FieldDescriptor(
|
393 |
+
name='rewind_when_switching_language', full_name='speech.soda.chrome.MultilangConfig.rewind_when_switching_language', index=1,
|
394 |
+
number=2, type=8, cpp_type=7, label=1,
|
395 |
+
has_default_value=False, default_value=False,
|
396 |
+
message_type=None, enum_type=None, containing_type=None,
|
397 |
+
is_extension=False, extension_scope=None,
|
398 |
+
options=None),
|
399 |
+
],
|
400 |
+
extensions=[
|
401 |
+
],
|
402 |
+
nested_types=[_MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY, ],
|
403 |
+
enum_types=[
|
404 |
+
],
|
405 |
+
options=None,
|
406 |
+
is_extendable=False,
|
407 |
+
syntax='proto2',
|
408 |
+
extension_ranges=[],
|
409 |
+
oneofs=[
|
410 |
+
],
|
411 |
+
serialized_start=695,
|
412 |
+
serialized_end=939,
|
413 |
+
)
|
414 |
+
|
415 |
+
|
416 |
+
_TIMINGMETRICS = _descriptor.Descriptor(
|
417 |
+
name='TimingMetrics',
|
418 |
+
full_name='speech.soda.chrome.TimingMetrics',
|
419 |
+
filename=None,
|
420 |
+
file=DESCRIPTOR,
|
421 |
+
containing_type=None,
|
422 |
+
fields=[
|
423 |
+
_descriptor.FieldDescriptor(
|
424 |
+
name='audio_start_epoch_usec', full_name='speech.soda.chrome.TimingMetrics.audio_start_epoch_usec', index=0,
|
425 |
+
number=1, type=3, cpp_type=2, label=1,
|
426 |
+
has_default_value=False, default_value=0,
|
427 |
+
message_type=None, enum_type=None, containing_type=None,
|
428 |
+
is_extension=False, extension_scope=None,
|
429 |
+
options=None),
|
430 |
+
_descriptor.FieldDescriptor(
|
431 |
+
name='audio_start_time_usec', full_name='speech.soda.chrome.TimingMetrics.audio_start_time_usec', index=1,
|
432 |
+
number=2, type=3, cpp_type=2, label=1,
|
433 |
+
has_default_value=False, default_value=0,
|
434 |
+
message_type=None, enum_type=None, containing_type=None,
|
435 |
+
is_extension=False, extension_scope=None,
|
436 |
+
options=None),
|
437 |
+
_descriptor.FieldDescriptor(
|
438 |
+
name='elapsed_wall_time_usec', full_name='speech.soda.chrome.TimingMetrics.elapsed_wall_time_usec', index=2,
|
439 |
+
number=3, type=3, cpp_type=2, label=1,
|
440 |
+
has_default_value=False, default_value=0,
|
441 |
+
message_type=None, enum_type=None, containing_type=None,
|
442 |
+
is_extension=False, extension_scope=None,
|
443 |
+
options=None),
|
444 |
+
_descriptor.FieldDescriptor(
|
445 |
+
name='event_end_time_usec', full_name='speech.soda.chrome.TimingMetrics.event_end_time_usec', index=3,
|
446 |
+
number=4, type=3, cpp_type=2, label=1,
|
447 |
+
has_default_value=False, default_value=0,
|
448 |
+
message_type=None, enum_type=None, containing_type=None,
|
449 |
+
is_extension=False, extension_scope=None,
|
450 |
+
options=None),
|
451 |
+
],
|
452 |
+
extensions=[
|
453 |
+
],
|
454 |
+
nested_types=[],
|
455 |
+
enum_types=[
|
456 |
+
],
|
457 |
+
options=None,
|
458 |
+
is_extendable=False,
|
459 |
+
syntax='proto2',
|
460 |
+
extension_ranges=[],
|
461 |
+
oneofs=[
|
462 |
+
],
|
463 |
+
serialized_start=942,
|
464 |
+
serialized_end=1081,
|
465 |
+
)
|
466 |
+
|
467 |
+
|
468 |
+
_HYPOTHESISPART = _descriptor.Descriptor(
|
469 |
+
name='HypothesisPart',
|
470 |
+
full_name='speech.soda.chrome.HypothesisPart',
|
471 |
+
filename=None,
|
472 |
+
file=DESCRIPTOR,
|
473 |
+
containing_type=None,
|
474 |
+
fields=[
|
475 |
+
_descriptor.FieldDescriptor(
|
476 |
+
name='text', full_name='speech.soda.chrome.HypothesisPart.text', index=0,
|
477 |
+
number=1, type=9, cpp_type=9, label=3,
|
478 |
+
has_default_value=False, default_value=[],
|
479 |
+
message_type=None, enum_type=None, containing_type=None,
|
480 |
+
is_extension=False, extension_scope=None,
|
481 |
+
options=None),
|
482 |
+
_descriptor.FieldDescriptor(
|
483 |
+
name='alignment_ms', full_name='speech.soda.chrome.HypothesisPart.alignment_ms', index=1,
|
484 |
+
number=2, type=3, cpp_type=2, label=1,
|
485 |
+
has_default_value=False, default_value=0,
|
486 |
+
message_type=None, enum_type=None, containing_type=None,
|
487 |
+
is_extension=False, extension_scope=None,
|
488 |
+
options=None),
|
489 |
+
],
|
490 |
+
extensions=[
|
491 |
+
],
|
492 |
+
nested_types=[],
|
493 |
+
enum_types=[
|
494 |
+
],
|
495 |
+
options=None,
|
496 |
+
is_extendable=False,
|
497 |
+
syntax='proto2',
|
498 |
+
extension_ranges=[],
|
499 |
+
oneofs=[
|
500 |
+
],
|
501 |
+
serialized_start=1083,
|
502 |
+
serialized_end=1135,
|
503 |
+
)
|
504 |
+
|
505 |
+
|
506 |
+
_SODARECOGNITIONRESULT = _descriptor.Descriptor(
|
507 |
+
name='SodaRecognitionResult',
|
508 |
+
full_name='speech.soda.chrome.SodaRecognitionResult',
|
509 |
+
filename=None,
|
510 |
+
file=DESCRIPTOR,
|
511 |
+
containing_type=None,
|
512 |
+
fields=[
|
513 |
+
_descriptor.FieldDescriptor(
|
514 |
+
name='hypothesis', full_name='speech.soda.chrome.SodaRecognitionResult.hypothesis', index=0,
|
515 |
+
number=1, type=9, cpp_type=9, label=3,
|
516 |
+
has_default_value=False, default_value=[],
|
517 |
+
message_type=None, enum_type=None, containing_type=None,
|
518 |
+
is_extension=False, extension_scope=None,
|
519 |
+
options=None),
|
520 |
+
_descriptor.FieldDescriptor(
|
521 |
+
name='result_type', full_name='speech.soda.chrome.SodaRecognitionResult.result_type', index=1,
|
522 |
+
number=2, type=14, cpp_type=8, label=1,
|
523 |
+
has_default_value=False, default_value=0,
|
524 |
+
message_type=None, enum_type=None, containing_type=None,
|
525 |
+
is_extension=False, extension_scope=None,
|
526 |
+
options=None),
|
527 |
+
_descriptor.FieldDescriptor(
|
528 |
+
name='endpoint_reason', full_name='speech.soda.chrome.SodaRecognitionResult.endpoint_reason', index=2,
|
529 |
+
number=3, type=14, cpp_type=8, label=1,
|
530 |
+
has_default_value=False, default_value=0,
|
531 |
+
message_type=None, enum_type=None, containing_type=None,
|
532 |
+
is_extension=False, extension_scope=None,
|
533 |
+
options=None),
|
534 |
+
_descriptor.FieldDescriptor(
|
535 |
+
name='timing_metrics', full_name='speech.soda.chrome.SodaRecognitionResult.timing_metrics', index=3,
|
536 |
+
number=4, type=11, cpp_type=10, label=1,
|
537 |
+
has_default_value=False, default_value=None,
|
538 |
+
message_type=None, enum_type=None, containing_type=None,
|
539 |
+
is_extension=False, extension_scope=None,
|
540 |
+
options=None),
|
541 |
+
_descriptor.FieldDescriptor(
|
542 |
+
name='hypothesis_part', full_name='speech.soda.chrome.SodaRecognitionResult.hypothesis_part', index=4,
|
543 |
+
number=5, type=11, cpp_type=10, label=3,
|
544 |
+
has_default_value=False, default_value=[],
|
545 |
+
message_type=None, enum_type=None, containing_type=None,
|
546 |
+
is_extension=False, extension_scope=None,
|
547 |
+
options=None),
|
548 |
+
],
|
549 |
+
extensions=[
|
550 |
+
],
|
551 |
+
nested_types=[],
|
552 |
+
enum_types=[
|
553 |
+
_SODARECOGNITIONRESULT_RESULTTYPE,
|
554 |
+
_SODARECOGNITIONRESULT_FINALRESULTENDPOINTREASON,
|
555 |
+
],
|
556 |
+
options=None,
|
557 |
+
is_extendable=False,
|
558 |
+
syntax='proto2',
|
559 |
+
extension_ranges=[],
|
560 |
+
oneofs=[
|
561 |
+
],
|
562 |
+
serialized_start=1138,
|
563 |
+
serialized_end=1765,
|
564 |
+
)
|
565 |
+
|
566 |
+
|
567 |
+
_SODAENDPOINTEVENT = _descriptor.Descriptor(
|
568 |
+
name='SodaEndpointEvent',
|
569 |
+
full_name='speech.soda.chrome.SodaEndpointEvent',
|
570 |
+
filename=None,
|
571 |
+
file=DESCRIPTOR,
|
572 |
+
containing_type=None,
|
573 |
+
fields=[
|
574 |
+
_descriptor.FieldDescriptor(
|
575 |
+
name='endpoint_type', full_name='speech.soda.chrome.SodaEndpointEvent.endpoint_type', index=0,
|
576 |
+
number=1, type=14, cpp_type=8, label=1,
|
577 |
+
has_default_value=True, default_value=4,
|
578 |
+
message_type=None, enum_type=None, containing_type=None,
|
579 |
+
is_extension=False, extension_scope=None,
|
580 |
+
options=None),
|
581 |
+
_descriptor.FieldDescriptor(
|
582 |
+
name='timing_metrics', full_name='speech.soda.chrome.SodaEndpointEvent.timing_metrics', index=1,
|
583 |
+
number=2, type=11, cpp_type=10, label=1,
|
584 |
+
has_default_value=False, default_value=None,
|
585 |
+
message_type=None, enum_type=None, containing_type=None,
|
586 |
+
is_extension=False, extension_scope=None,
|
587 |
+
options=None),
|
588 |
+
],
|
589 |
+
extensions=[
|
590 |
+
],
|
591 |
+
nested_types=[],
|
592 |
+
enum_types=[
|
593 |
+
_SODAENDPOINTEVENT_ENDPOINTTYPE,
|
594 |
+
],
|
595 |
+
options=None,
|
596 |
+
is_extendable=False,
|
597 |
+
syntax='proto2',
|
598 |
+
extension_ranges=[],
|
599 |
+
oneofs=[
|
600 |
+
],
|
601 |
+
serialized_start=1768,
|
602 |
+
serialized_end=2039,
|
603 |
+
)
|
604 |
+
|
605 |
+
|
606 |
+
_SODAAUDIOLEVELINFO = _descriptor.Descriptor(
|
607 |
+
name='SodaAudioLevelInfo',
|
608 |
+
full_name='speech.soda.chrome.SodaAudioLevelInfo',
|
609 |
+
filename=None,
|
610 |
+
file=DESCRIPTOR,
|
611 |
+
containing_type=None,
|
612 |
+
fields=[
|
613 |
+
_descriptor.FieldDescriptor(
|
614 |
+
name='rms', full_name='speech.soda.chrome.SodaAudioLevelInfo.rms', index=0,
|
615 |
+
number=1, type=2, cpp_type=6, label=1,
|
616 |
+
has_default_value=False, default_value=float(0),
|
617 |
+
message_type=None, enum_type=None, containing_type=None,
|
618 |
+
is_extension=False, extension_scope=None,
|
619 |
+
options=None),
|
620 |
+
_descriptor.FieldDescriptor(
|
621 |
+
name='audio_level', full_name='speech.soda.chrome.SodaAudioLevelInfo.audio_level', index=1,
|
622 |
+
number=2, type=2, cpp_type=6, label=1,
|
623 |
+
has_default_value=False, default_value=float(0),
|
624 |
+
message_type=None, enum_type=None, containing_type=None,
|
625 |
+
is_extension=False, extension_scope=None,
|
626 |
+
options=None),
|
627 |
+
_descriptor.FieldDescriptor(
|
628 |
+
name='audio_time_usec', full_name='speech.soda.chrome.SodaAudioLevelInfo.audio_time_usec', index=2,
|
629 |
+
number=3, type=3, cpp_type=2, label=1,
|
630 |
+
has_default_value=False, default_value=0,
|
631 |
+
message_type=None, enum_type=None, containing_type=None,
|
632 |
+
is_extension=False, extension_scope=None,
|
633 |
+
options=None),
|
634 |
+
],
|
635 |
+
extensions=[
|
636 |
+
],
|
637 |
+
nested_types=[],
|
638 |
+
enum_types=[
|
639 |
+
],
|
640 |
+
options=None,
|
641 |
+
is_extendable=False,
|
642 |
+
syntax='proto2',
|
643 |
+
extension_ranges=[],
|
644 |
+
oneofs=[
|
645 |
+
],
|
646 |
+
serialized_start=2041,
|
647 |
+
serialized_end=2120,
|
648 |
+
)
|
649 |
+
|
650 |
+
|
651 |
+
_SODALANGIDEVENT = _descriptor.Descriptor(
|
652 |
+
name='SodaLangIdEvent',
|
653 |
+
full_name='speech.soda.chrome.SodaLangIdEvent',
|
654 |
+
filename=None,
|
655 |
+
file=DESCRIPTOR,
|
656 |
+
containing_type=None,
|
657 |
+
fields=[
|
658 |
+
_descriptor.FieldDescriptor(
|
659 |
+
name='language', full_name='speech.soda.chrome.SodaLangIdEvent.language', index=0,
|
660 |
+
number=1, type=9, cpp_type=9, label=1,
|
661 |
+
has_default_value=False, default_value=_b("").decode('utf-8'),
|
662 |
+
message_type=None, enum_type=None, containing_type=None,
|
663 |
+
is_extension=False, extension_scope=None,
|
664 |
+
options=None),
|
665 |
+
_descriptor.FieldDescriptor(
|
666 |
+
name='confidence_level', full_name='speech.soda.chrome.SodaLangIdEvent.confidence_level', index=1,
|
667 |
+
number=2, type=5, cpp_type=1, label=1,
|
668 |
+
has_default_value=False, default_value=0,
|
669 |
+
message_type=None, enum_type=None, containing_type=None,
|
670 |
+
is_extension=False, extension_scope=None,
|
671 |
+
options=None),
|
672 |
+
],
|
673 |
+
extensions=[
|
674 |
+
],
|
675 |
+
nested_types=[],
|
676 |
+
enum_types=[
|
677 |
+
],
|
678 |
+
options=None,
|
679 |
+
is_extendable=False,
|
680 |
+
syntax='proto2',
|
681 |
+
extension_ranges=[],
|
682 |
+
oneofs=[
|
683 |
+
],
|
684 |
+
serialized_start=2122,
|
685 |
+
serialized_end=2183,
|
686 |
+
)
|
687 |
+
|
688 |
+
|
689 |
+
_SODARESPONSE = _descriptor.Descriptor(
|
690 |
+
name='SodaResponse',
|
691 |
+
full_name='speech.soda.chrome.SodaResponse',
|
692 |
+
filename=None,
|
693 |
+
file=DESCRIPTOR,
|
694 |
+
containing_type=None,
|
695 |
+
fields=[
|
696 |
+
_descriptor.FieldDescriptor(
|
697 |
+
name='soda_type', full_name='speech.soda.chrome.SodaResponse.soda_type', index=0,
|
698 |
+
number=1, type=14, cpp_type=8, label=1,
|
699 |
+
has_default_value=True, default_value=0,
|
700 |
+
message_type=None, enum_type=None, containing_type=None,
|
701 |
+
is_extension=False, extension_scope=None,
|
702 |
+
options=None),
|
703 |
+
_descriptor.FieldDescriptor(
|
704 |
+
name='recognition_result', full_name='speech.soda.chrome.SodaResponse.recognition_result', index=1,
|
705 |
+
number=2, type=11, cpp_type=10, label=1,
|
706 |
+
has_default_value=False, default_value=None,
|
707 |
+
message_type=None, enum_type=None, containing_type=None,
|
708 |
+
is_extension=False, extension_scope=None,
|
709 |
+
options=None),
|
710 |
+
_descriptor.FieldDescriptor(
|
711 |
+
name='endpoint_event', full_name='speech.soda.chrome.SodaResponse.endpoint_event', index=2,
|
712 |
+
number=3, type=11, cpp_type=10, label=1,
|
713 |
+
has_default_value=False, default_value=None,
|
714 |
+
message_type=None, enum_type=None, containing_type=None,
|
715 |
+
is_extension=False, extension_scope=None,
|
716 |
+
options=None),
|
717 |
+
_descriptor.FieldDescriptor(
|
718 |
+
name='audio_level_info', full_name='speech.soda.chrome.SodaResponse.audio_level_info', index=3,
|
719 |
+
number=4, type=11, cpp_type=10, label=1,
|
720 |
+
has_default_value=False, default_value=None,
|
721 |
+
message_type=None, enum_type=None, containing_type=None,
|
722 |
+
is_extension=False, extension_scope=None,
|
723 |
+
options=None),
|
724 |
+
_descriptor.FieldDescriptor(
|
725 |
+
name='langid_event', full_name='speech.soda.chrome.SodaResponse.langid_event', index=4,
|
726 |
+
number=5, type=11, cpp_type=10, label=1,
|
727 |
+
has_default_value=False, default_value=None,
|
728 |
+
message_type=None, enum_type=None, containing_type=None,
|
729 |
+
is_extension=False, extension_scope=None,
|
730 |
+
options=None),
|
731 |
+
_descriptor.FieldDescriptor(
|
732 |
+
name='log_lines', full_name='speech.soda.chrome.SodaResponse.log_lines', index=5,
|
733 |
+
number=6, type=9, cpp_type=9, label=3,
|
734 |
+
has_default_value=False, default_value=[],
|
735 |
+
message_type=None, enum_type=None, containing_type=None,
|
736 |
+
is_extension=False, extension_scope=None,
|
737 |
+
options=None),
|
738 |
+
],
|
739 |
+
extensions=[
|
740 |
+
],
|
741 |
+
nested_types=[],
|
742 |
+
enum_types=[
|
743 |
+
_SODARESPONSE_SODAMESSAGETYPE,
|
744 |
+
],
|
745 |
+
options=None,
|
746 |
+
is_extendable=False,
|
747 |
+
syntax='proto2',
|
748 |
+
extension_ranges=[],
|
749 |
+
oneofs=[
|
750 |
+
],
|
751 |
+
serialized_start=2186,
|
752 |
+
serialized_end=2718,
|
753 |
+
)
|
754 |
+
|
755 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['recognition_mode'].enum_type = _EXTENDEDSODACONFIGMSG_RECOGNITIONMODE
|
756 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['multilang_config'].message_type = _MULTILANGCONFIG
|
757 |
+
_EXTENDEDSODACONFIGMSG_RECOGNITIONMODE.containing_type = _EXTENDEDSODACONFIGMSG
|
758 |
+
_MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY.containing_type = _MULTILANGCONFIG
|
759 |
+
_MULTILANGCONFIG.fields_by_name['multilang_language_pack_directory'].message_type = _MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY
|
760 |
+
_SODARECOGNITIONRESULT.fields_by_name['result_type'].enum_type = _SODARECOGNITIONRESULT_RESULTTYPE
|
761 |
+
_SODARECOGNITIONRESULT.fields_by_name['endpoint_reason'].enum_type = _SODARECOGNITIONRESULT_FINALRESULTENDPOINTREASON
|
762 |
+
_SODARECOGNITIONRESULT.fields_by_name['timing_metrics'].message_type = _TIMINGMETRICS
|
763 |
+
_SODARECOGNITIONRESULT.fields_by_name['hypothesis_part'].message_type = _HYPOTHESISPART
|
764 |
+
_SODARECOGNITIONRESULT_RESULTTYPE.containing_type = _SODARECOGNITIONRESULT
|
765 |
+
_SODARECOGNITIONRESULT_FINALRESULTENDPOINTREASON.containing_type = _SODARECOGNITIONRESULT
|
766 |
+
_SODAENDPOINTEVENT.fields_by_name['endpoint_type'].enum_type = _SODAENDPOINTEVENT_ENDPOINTTYPE
|
767 |
+
_SODAENDPOINTEVENT.fields_by_name['timing_metrics'].message_type = _TIMINGMETRICS
|
768 |
+
_SODAENDPOINTEVENT_ENDPOINTTYPE.containing_type = _SODAENDPOINTEVENT
|
769 |
+
_SODARESPONSE.fields_by_name['soda_type'].enum_type = _SODARESPONSE_SODAMESSAGETYPE
|
770 |
+
_SODARESPONSE.fields_by_name['recognition_result'].message_type = _SODARECOGNITIONRESULT
|
771 |
+
_SODARESPONSE.fields_by_name['endpoint_event'].message_type = _SODAENDPOINTEVENT
|
772 |
+
_SODARESPONSE.fields_by_name['audio_level_info'].message_type = _SODAAUDIOLEVELINFO
|
773 |
+
_SODARESPONSE.fields_by_name['langid_event'].message_type = _SODALANGIDEVENT
|
774 |
+
_SODARESPONSE_SODAMESSAGETYPE.containing_type = _SODARESPONSE
|
775 |
+
DESCRIPTOR.message_types_by_name['ExtendedSodaConfigMsg'] = _EXTENDEDSODACONFIGMSG
|
776 |
+
DESCRIPTOR.message_types_by_name['MultilangConfig'] = _MULTILANGCONFIG
|
777 |
+
DESCRIPTOR.message_types_by_name['TimingMetrics'] = _TIMINGMETRICS
|
778 |
+
DESCRIPTOR.message_types_by_name['HypothesisPart'] = _HYPOTHESISPART
|
779 |
+
DESCRIPTOR.message_types_by_name['SodaRecognitionResult'] = _SODARECOGNITIONRESULT
|
780 |
+
DESCRIPTOR.message_types_by_name['SodaEndpointEvent'] = _SODAENDPOINTEVENT
|
781 |
+
DESCRIPTOR.message_types_by_name['SodaAudioLevelInfo'] = _SODAAUDIOLEVELINFO
|
782 |
+
DESCRIPTOR.message_types_by_name['SodaLangIdEvent'] = _SODALANGIDEVENT
|
783 |
+
DESCRIPTOR.message_types_by_name['SodaResponse'] = _SODARESPONSE
|
784 |
+
|
785 |
+
ExtendedSodaConfigMsg = _reflection.GeneratedProtocolMessageType('ExtendedSodaConfigMsg', (_message.Message,), dict(
|
786 |
+
DESCRIPTOR = _EXTENDEDSODACONFIGMSG,
|
787 |
+
__module__ = 'soda_api_pb2'
|
788 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.ExtendedSodaConfigMsg)
|
789 |
+
))
|
790 |
+
_sym_db.RegisterMessage(ExtendedSodaConfigMsg)
|
791 |
+
|
792 |
+
MultilangConfig = _reflection.GeneratedProtocolMessageType('MultilangConfig', (_message.Message,), dict(
|
793 |
+
|
794 |
+
MultilangLanguagePackDirectoryEntry = _reflection.GeneratedProtocolMessageType('MultilangLanguagePackDirectoryEntry', (_message.Message,), dict(
|
795 |
+
DESCRIPTOR = _MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY,
|
796 |
+
__module__ = 'soda_api_pb2'
|
797 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.MultilangConfig.MultilangLanguagePackDirectoryEntry)
|
798 |
+
))
|
799 |
+
,
|
800 |
+
DESCRIPTOR = _MULTILANGCONFIG,
|
801 |
+
__module__ = 'soda_api_pb2'
|
802 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.MultilangConfig)
|
803 |
+
))
|
804 |
+
_sym_db.RegisterMessage(MultilangConfig)
|
805 |
+
_sym_db.RegisterMessage(MultilangConfig.MultilangLanguagePackDirectoryEntry)
|
806 |
+
|
807 |
+
TimingMetrics = _reflection.GeneratedProtocolMessageType('TimingMetrics', (_message.Message,), dict(
|
808 |
+
DESCRIPTOR = _TIMINGMETRICS,
|
809 |
+
__module__ = 'soda_api_pb2'
|
810 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.TimingMetrics)
|
811 |
+
))
|
812 |
+
_sym_db.RegisterMessage(TimingMetrics)
|
813 |
+
|
814 |
+
HypothesisPart = _reflection.GeneratedProtocolMessageType('HypothesisPart', (_message.Message,), dict(
|
815 |
+
DESCRIPTOR = _HYPOTHESISPART,
|
816 |
+
__module__ = 'soda_api_pb2'
|
817 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.HypothesisPart)
|
818 |
+
))
|
819 |
+
_sym_db.RegisterMessage(HypothesisPart)
|
820 |
+
|
821 |
+
SodaRecognitionResult = _reflection.GeneratedProtocolMessageType('SodaRecognitionResult', (_message.Message,), dict(
|
822 |
+
DESCRIPTOR = _SODARECOGNITIONRESULT,
|
823 |
+
__module__ = 'soda_api_pb2'
|
824 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.SodaRecognitionResult)
|
825 |
+
))
|
826 |
+
_sym_db.RegisterMessage(SodaRecognitionResult)
|
827 |
+
|
828 |
+
SodaEndpointEvent = _reflection.GeneratedProtocolMessageType('SodaEndpointEvent', (_message.Message,), dict(
|
829 |
+
DESCRIPTOR = _SODAENDPOINTEVENT,
|
830 |
+
__module__ = 'soda_api_pb2'
|
831 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.SodaEndpointEvent)
|
832 |
+
))
|
833 |
+
_sym_db.RegisterMessage(SodaEndpointEvent)
|
834 |
+
|
835 |
+
SodaAudioLevelInfo = _reflection.GeneratedProtocolMessageType('SodaAudioLevelInfo', (_message.Message,), dict(
|
836 |
+
DESCRIPTOR = _SODAAUDIOLEVELINFO,
|
837 |
+
__module__ = 'soda_api_pb2'
|
838 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.SodaAudioLevelInfo)
|
839 |
+
))
|
840 |
+
_sym_db.RegisterMessage(SodaAudioLevelInfo)
|
841 |
+
|
842 |
+
SodaLangIdEvent = _reflection.GeneratedProtocolMessageType('SodaLangIdEvent', (_message.Message,), dict(
|
843 |
+
DESCRIPTOR = _SODALANGIDEVENT,
|
844 |
+
__module__ = 'soda_api_pb2'
|
845 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.SodaLangIdEvent)
|
846 |
+
))
|
847 |
+
_sym_db.RegisterMessage(SodaLangIdEvent)
|
848 |
+
|
849 |
+
SodaResponse = _reflection.GeneratedProtocolMessageType('SodaResponse', (_message.Message,), dict(
|
850 |
+
DESCRIPTOR = _SODARESPONSE,
|
851 |
+
__module__ = 'soda_api_pb2'
|
852 |
+
# @@protoc_insertion_point(class_scope:speech.soda.chrome.SodaResponse)
|
853 |
+
))
|
854 |
+
_sym_db.RegisterMessage(SodaResponse)
|
855 |
+
|
856 |
+
|
857 |
+
DESCRIPTOR.has_options = True
|
858 |
+
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('H\003P\001'))
|
859 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['config_file_location'].has_options = True
|
860 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['config_file_location']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
|
861 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['reset_on_final_result'].has_options = True
|
862 |
+
_EXTENDEDSODACONFIGMSG.fields_by_name['reset_on_final_result']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001'))
|
863 |
+
_MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY.has_options = True
|
864 |
+
_MULTILANGCONFIG_MULTILANGLANGUAGEPACKDIRECTORYENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
|
865 |
+
# @@protoc_insertion_point(module_scope)
|