You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2209 lines
98 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
  3. package speech // import "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/any"
  8. import duration "github.com/golang/protobuf/ptypes/duration"
  9. import _ "github.com/golang/protobuf/ptypes/empty"
  10. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  11. import _ "google.golang.org/genproto/googleapis/api/annotations"
  12. import longrunning "google.golang.org/genproto/googleapis/longrunning"
  13. import status "google.golang.org/genproto/googleapis/rpc/status"
  14. import (
  15. context "golang.org/x/net/context"
  16. grpc "google.golang.org/grpc"
  17. )
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  27. // The encoding of the audio data sent in the request.
  28. //
  29. // All encodings support only 1 channel (mono) audio.
  30. //
  31. // For best results, the audio source should be captured and transmitted using
  32. // a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech
  33. // recognition can be reduced if lossy codecs are used to capture or transmit
  34. // audio, particularly if background noise is present. Lossy codecs include
  35. // `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, and `SPEEX_WITH_HEADER_BYTE`.
  36. //
  37. // The `FLAC` and `WAV` audio file formats include a header that describes the
  38. // included audio content. You can request recognition for `WAV` files that
  39. // contain either `LINEAR16` or `MULAW` encoded audio.
  40. // If you send `FLAC` or `WAV` audio file format in
  41. // your request, you do not need to specify an `AudioEncoding`; the audio
  42. // encoding format is determined from the file header. If you specify
  43. // an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
  44. // encoding configuration must match the encoding described in the audio
  45. // header; otherwise the request returns an
  46. // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
  47. // code.
  48. type RecognitionConfig_AudioEncoding int32
  49. const (
  50. // Not specified.
  51. RecognitionConfig_ENCODING_UNSPECIFIED RecognitionConfig_AudioEncoding = 0
  52. // Uncompressed 16-bit signed little-endian samples (Linear PCM).
  53. RecognitionConfig_LINEAR16 RecognitionConfig_AudioEncoding = 1
  54. // `FLAC` (Free Lossless Audio
  55. // Codec) is the recommended encoding because it is
  56. // lossless--therefore recognition is not compromised--and
  57. // requires only about half the bandwidth of `LINEAR16`. `FLAC` stream
  58. // encoding supports 16-bit and 24-bit samples, however, not all fields in
  59. // `STREAMINFO` are supported.
  60. RecognitionConfig_FLAC RecognitionConfig_AudioEncoding = 2
  61. // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
  62. RecognitionConfig_MULAW RecognitionConfig_AudioEncoding = 3
  63. // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
  64. RecognitionConfig_AMR RecognitionConfig_AudioEncoding = 4
  65. // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
  66. RecognitionConfig_AMR_WB RecognitionConfig_AudioEncoding = 5
  67. // Opus encoded audio frames in Ogg container
  68. // ([OggOpus](https://wiki.xiph.org/OggOpus)).
  69. // `sample_rate_hertz` must be one of 8000, 12000, 16000, 24000, or 48000.
  70. RecognitionConfig_OGG_OPUS RecognitionConfig_AudioEncoding = 6
  71. // Although the use of lossy encodings is not recommended, if a very low
  72. // bitrate encoding is required, `OGG_OPUS` is highly preferred over
  73. // Speex encoding. The [Speex](https://speex.org/) encoding supported by
  74. // Cloud Speech API has a header byte in each block, as in MIME type
  75. // `audio/x-speex-with-header-byte`.
  76. // It is a variant of the RTP Speex encoding defined in
  77. // [RFC 5574](https://tools.ietf.org/html/rfc5574).
  78. // The stream is a sequence of blocks, one block per RTP packet. Each block
  79. // starts with a byte containing the length of the block, in bytes, followed
  80. // by one or more frames of Speex data, padded to an integral number of
  81. // bytes (octets) as specified in RFC 5574. In other words, each RTP header
  82. // is replaced with a single byte containing the block length. Only Speex
  83. // wideband is supported. `sample_rate_hertz` must be 16000.
  84. RecognitionConfig_SPEEX_WITH_HEADER_BYTE RecognitionConfig_AudioEncoding = 7
  85. )
  86. var RecognitionConfig_AudioEncoding_name = map[int32]string{
  87. 0: "ENCODING_UNSPECIFIED",
  88. 1: "LINEAR16",
  89. 2: "FLAC",
  90. 3: "MULAW",
  91. 4: "AMR",
  92. 5: "AMR_WB",
  93. 6: "OGG_OPUS",
  94. 7: "SPEEX_WITH_HEADER_BYTE",
  95. }
  96. var RecognitionConfig_AudioEncoding_value = map[string]int32{
  97. "ENCODING_UNSPECIFIED": 0,
  98. "LINEAR16": 1,
  99. "FLAC": 2,
  100. "MULAW": 3,
  101. "AMR": 4,
  102. "AMR_WB": 5,
  103. "OGG_OPUS": 6,
  104. "SPEEX_WITH_HEADER_BYTE": 7,
  105. }
  106. func (x RecognitionConfig_AudioEncoding) String() string {
  107. return proto.EnumName(RecognitionConfig_AudioEncoding_name, int32(x))
  108. }
  109. func (RecognitionConfig_AudioEncoding) EnumDescriptor() ([]byte, []int) {
  110. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{4, 0}
  111. }
  112. // Use case categories that the audio recognition request can be described
  113. // by.
  114. type RecognitionMetadata_InteractionType int32
  115. const (
  116. // Use case is either unknown or is something other than one of the other
  117. // values below.
  118. RecognitionMetadata_INTERACTION_TYPE_UNSPECIFIED RecognitionMetadata_InteractionType = 0
  119. // Multiple people in a conversation or discussion. For example in a
  120. // meeting with two or more people actively participating. Typically
  121. // all the primary people speaking would be in the same room (if not,
  122. // see PHONE_CALL)
  123. RecognitionMetadata_DISCUSSION RecognitionMetadata_InteractionType = 1
  124. // One or more persons lecturing or presenting to others, mostly
  125. // uninterrupted.
  126. RecognitionMetadata_PRESENTATION RecognitionMetadata_InteractionType = 2
  127. // A phone-call or video-conference in which two or more people, who are
  128. // not in the same room, are actively participating.
  129. RecognitionMetadata_PHONE_CALL RecognitionMetadata_InteractionType = 3
  130. // A recorded message intended for another person to listen to.
  131. RecognitionMetadata_VOICEMAIL RecognitionMetadata_InteractionType = 4
  132. // Professionally produced audio (eg. TV Show, Podcast).
  133. RecognitionMetadata_PROFESSIONALLY_PRODUCED RecognitionMetadata_InteractionType = 5
  134. // Transcribe spoken questions and queries into text.
  135. RecognitionMetadata_VOICE_SEARCH RecognitionMetadata_InteractionType = 6
  136. // Transcribe voice commands, such as for controlling a device.
  137. RecognitionMetadata_VOICE_COMMAND RecognitionMetadata_InteractionType = 7
  138. // Transcribe speech to text to create a written document, such as a
  139. // text-message, email or report.
  140. RecognitionMetadata_DICTATION RecognitionMetadata_InteractionType = 8
  141. )
  142. var RecognitionMetadata_InteractionType_name = map[int32]string{
  143. 0: "INTERACTION_TYPE_UNSPECIFIED",
  144. 1: "DISCUSSION",
  145. 2: "PRESENTATION",
  146. 3: "PHONE_CALL",
  147. 4: "VOICEMAIL",
  148. 5: "PROFESSIONALLY_PRODUCED",
  149. 6: "VOICE_SEARCH",
  150. 7: "VOICE_COMMAND",
  151. 8: "DICTATION",
  152. }
  153. var RecognitionMetadata_InteractionType_value = map[string]int32{
  154. "INTERACTION_TYPE_UNSPECIFIED": 0,
  155. "DISCUSSION": 1,
  156. "PRESENTATION": 2,
  157. "PHONE_CALL": 3,
  158. "VOICEMAIL": 4,
  159. "PROFESSIONALLY_PRODUCED": 5,
  160. "VOICE_SEARCH": 6,
  161. "VOICE_COMMAND": 7,
  162. "DICTATION": 8,
  163. }
  164. func (x RecognitionMetadata_InteractionType) String() string {
  165. return proto.EnumName(RecognitionMetadata_InteractionType_name, int32(x))
  166. }
  167. func (RecognitionMetadata_InteractionType) EnumDescriptor() ([]byte, []int) {
  168. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{5, 0}
  169. }
  170. // Enumerates the types of capture settings describing an audio file.
  171. type RecognitionMetadata_MicrophoneDistance int32
  172. const (
  173. // Audio type is not known.
  174. RecognitionMetadata_MICROPHONE_DISTANCE_UNSPECIFIED RecognitionMetadata_MicrophoneDistance = 0
  175. // The audio was captured from a closely placed microphone. Eg. phone,
  176. // dictaphone, or handheld microphone. Generally if there speaker is within
  177. // 1 meter of the microphone.
  178. RecognitionMetadata_NEARFIELD RecognitionMetadata_MicrophoneDistance = 1
  179. // The speaker if within 3 meters of the microphone.
  180. RecognitionMetadata_MIDFIELD RecognitionMetadata_MicrophoneDistance = 2
  181. // The speaker is more than 3 meters away from the microphone.
  182. RecognitionMetadata_FARFIELD RecognitionMetadata_MicrophoneDistance = 3
  183. )
  184. var RecognitionMetadata_MicrophoneDistance_name = map[int32]string{
  185. 0: "MICROPHONE_DISTANCE_UNSPECIFIED",
  186. 1: "NEARFIELD",
  187. 2: "MIDFIELD",
  188. 3: "FARFIELD",
  189. }
  190. var RecognitionMetadata_MicrophoneDistance_value = map[string]int32{
  191. "MICROPHONE_DISTANCE_UNSPECIFIED": 0,
  192. "NEARFIELD": 1,
  193. "MIDFIELD": 2,
  194. "FARFIELD": 3,
  195. }
  196. func (x RecognitionMetadata_MicrophoneDistance) String() string {
  197. return proto.EnumName(RecognitionMetadata_MicrophoneDistance_name, int32(x))
  198. }
  199. func (RecognitionMetadata_MicrophoneDistance) EnumDescriptor() ([]byte, []int) {
  200. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{5, 1}
  201. }
  202. // The original media the speech was recorded on.
  203. type RecognitionMetadata_OriginalMediaType int32
  204. const (
  205. // Unknown original media type.
  206. RecognitionMetadata_ORIGINAL_MEDIA_TYPE_UNSPECIFIED RecognitionMetadata_OriginalMediaType = 0
  207. // The speech data is an audio recording.
  208. RecognitionMetadata_AUDIO RecognitionMetadata_OriginalMediaType = 1
  209. // The speech data originally recorded on a video.
  210. RecognitionMetadata_VIDEO RecognitionMetadata_OriginalMediaType = 2
  211. )
  212. var RecognitionMetadata_OriginalMediaType_name = map[int32]string{
  213. 0: "ORIGINAL_MEDIA_TYPE_UNSPECIFIED",
  214. 1: "AUDIO",
  215. 2: "VIDEO",
  216. }
  217. var RecognitionMetadata_OriginalMediaType_value = map[string]int32{
  218. "ORIGINAL_MEDIA_TYPE_UNSPECIFIED": 0,
  219. "AUDIO": 1,
  220. "VIDEO": 2,
  221. }
  222. func (x RecognitionMetadata_OriginalMediaType) String() string {
  223. return proto.EnumName(RecognitionMetadata_OriginalMediaType_name, int32(x))
  224. }
  225. func (RecognitionMetadata_OriginalMediaType) EnumDescriptor() ([]byte, []int) {
  226. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{5, 2}
  227. }
  228. // The type of device the speech was recorded with.
  229. type RecognitionMetadata_RecordingDeviceType int32
  230. const (
  231. // The recording device is unknown.
  232. RecognitionMetadata_RECORDING_DEVICE_TYPE_UNSPECIFIED RecognitionMetadata_RecordingDeviceType = 0
  233. // Speech was recorded on a smartphone.
  234. RecognitionMetadata_SMARTPHONE RecognitionMetadata_RecordingDeviceType = 1
  235. // Speech was recorded using a personal computer or tablet.
  236. RecognitionMetadata_PC RecognitionMetadata_RecordingDeviceType = 2
  237. // Speech was recorded over a phone line.
  238. RecognitionMetadata_PHONE_LINE RecognitionMetadata_RecordingDeviceType = 3
  239. // Speech was recorded in a vehicle.
  240. RecognitionMetadata_VEHICLE RecognitionMetadata_RecordingDeviceType = 4
  241. // Speech was recorded outdoors.
  242. RecognitionMetadata_OTHER_OUTDOOR_DEVICE RecognitionMetadata_RecordingDeviceType = 5
  243. // Speech was recorded indoors.
  244. RecognitionMetadata_OTHER_INDOOR_DEVICE RecognitionMetadata_RecordingDeviceType = 6
  245. )
  246. var RecognitionMetadata_RecordingDeviceType_name = map[int32]string{
  247. 0: "RECORDING_DEVICE_TYPE_UNSPECIFIED",
  248. 1: "SMARTPHONE",
  249. 2: "PC",
  250. 3: "PHONE_LINE",
  251. 4: "VEHICLE",
  252. 5: "OTHER_OUTDOOR_DEVICE",
  253. 6: "OTHER_INDOOR_DEVICE",
  254. }
  255. var RecognitionMetadata_RecordingDeviceType_value = map[string]int32{
  256. "RECORDING_DEVICE_TYPE_UNSPECIFIED": 0,
  257. "SMARTPHONE": 1,
  258. "PC": 2,
  259. "PHONE_LINE": 3,
  260. "VEHICLE": 4,
  261. "OTHER_OUTDOOR_DEVICE": 5,
  262. "OTHER_INDOOR_DEVICE": 6,
  263. }
  264. func (x RecognitionMetadata_RecordingDeviceType) String() string {
  265. return proto.EnumName(RecognitionMetadata_RecordingDeviceType_name, int32(x))
  266. }
  267. func (RecognitionMetadata_RecordingDeviceType) EnumDescriptor() ([]byte, []int) {
  268. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{5, 3}
  269. }
  270. // Indicates the type of speech event.
  271. type StreamingRecognizeResponse_SpeechEventType int32
  272. const (
  273. // No speech event specified.
  274. StreamingRecognizeResponse_SPEECH_EVENT_UNSPECIFIED StreamingRecognizeResponse_SpeechEventType = 0
  275. // This event indicates that the server has detected the end of the user's
  276. // speech utterance and expects no additional speech. Therefore, the server
  277. // will not process additional audio (although it may subsequently return
  278. // additional results). The client should stop sending additional audio
  279. // data, half-close the gRPC connection, and wait for any additional results
  280. // until the server closes the gRPC connection. This event is only sent if
  281. // `single_utterance` was set to `true`, and is not used otherwise.
  282. StreamingRecognizeResponse_END_OF_SINGLE_UTTERANCE StreamingRecognizeResponse_SpeechEventType = 1
  283. )
  284. var StreamingRecognizeResponse_SpeechEventType_name = map[int32]string{
  285. 0: "SPEECH_EVENT_UNSPECIFIED",
  286. 1: "END_OF_SINGLE_UTTERANCE",
  287. }
  288. var StreamingRecognizeResponse_SpeechEventType_value = map[string]int32{
  289. "SPEECH_EVENT_UNSPECIFIED": 0,
  290. "END_OF_SINGLE_UTTERANCE": 1,
  291. }
  292. func (x StreamingRecognizeResponse_SpeechEventType) String() string {
  293. return proto.EnumName(StreamingRecognizeResponse_SpeechEventType_name, int32(x))
  294. }
  295. func (StreamingRecognizeResponse_SpeechEventType) EnumDescriptor() ([]byte, []int) {
  296. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{11, 0}
  297. }
  298. // The top-level message sent by the client for the `Recognize` method.
  299. type RecognizeRequest struct {
  300. // *Required* Provides information to the recognizer that specifies how to
  301. // process the request.
  302. Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  303. // *Required* The audio data to be recognized.
  304. Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
  305. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  306. XXX_unrecognized []byte `json:"-"`
  307. XXX_sizecache int32 `json:"-"`
  308. }
  309. func (m *RecognizeRequest) Reset() { *m = RecognizeRequest{} }
  310. func (m *RecognizeRequest) String() string { return proto.CompactTextString(m) }
  311. func (*RecognizeRequest) ProtoMessage() {}
  312. func (*RecognizeRequest) Descriptor() ([]byte, []int) {
  313. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{0}
  314. }
  315. func (m *RecognizeRequest) XXX_Unmarshal(b []byte) error {
  316. return xxx_messageInfo_RecognizeRequest.Unmarshal(m, b)
  317. }
  318. func (m *RecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  319. return xxx_messageInfo_RecognizeRequest.Marshal(b, m, deterministic)
  320. }
  321. func (dst *RecognizeRequest) XXX_Merge(src proto.Message) {
  322. xxx_messageInfo_RecognizeRequest.Merge(dst, src)
  323. }
  324. func (m *RecognizeRequest) XXX_Size() int {
  325. return xxx_messageInfo_RecognizeRequest.Size(m)
  326. }
  327. func (m *RecognizeRequest) XXX_DiscardUnknown() {
  328. xxx_messageInfo_RecognizeRequest.DiscardUnknown(m)
  329. }
  330. var xxx_messageInfo_RecognizeRequest proto.InternalMessageInfo
  331. func (m *RecognizeRequest) GetConfig() *RecognitionConfig {
  332. if m != nil {
  333. return m.Config
  334. }
  335. return nil
  336. }
  337. func (m *RecognizeRequest) GetAudio() *RecognitionAudio {
  338. if m != nil {
  339. return m.Audio
  340. }
  341. return nil
  342. }
  343. // The top-level message sent by the client for the `LongRunningRecognize`
  344. // method.
  345. type LongRunningRecognizeRequest struct {
  346. // *Required* Provides information to the recognizer that specifies how to
  347. // process the request.
  348. Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  349. // *Required* The audio data to be recognized.
  350. Audio *RecognitionAudio `protobuf:"bytes,2,opt,name=audio,proto3" json:"audio,omitempty"`
  351. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  352. XXX_unrecognized []byte `json:"-"`
  353. XXX_sizecache int32 `json:"-"`
  354. }
  355. func (m *LongRunningRecognizeRequest) Reset() { *m = LongRunningRecognizeRequest{} }
  356. func (m *LongRunningRecognizeRequest) String() string { return proto.CompactTextString(m) }
  357. func (*LongRunningRecognizeRequest) ProtoMessage() {}
  358. func (*LongRunningRecognizeRequest) Descriptor() ([]byte, []int) {
  359. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{1}
  360. }
  361. func (m *LongRunningRecognizeRequest) XXX_Unmarshal(b []byte) error {
  362. return xxx_messageInfo_LongRunningRecognizeRequest.Unmarshal(m, b)
  363. }
  364. func (m *LongRunningRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  365. return xxx_messageInfo_LongRunningRecognizeRequest.Marshal(b, m, deterministic)
  366. }
  367. func (dst *LongRunningRecognizeRequest) XXX_Merge(src proto.Message) {
  368. xxx_messageInfo_LongRunningRecognizeRequest.Merge(dst, src)
  369. }
  370. func (m *LongRunningRecognizeRequest) XXX_Size() int {
  371. return xxx_messageInfo_LongRunningRecognizeRequest.Size(m)
  372. }
  373. func (m *LongRunningRecognizeRequest) XXX_DiscardUnknown() {
  374. xxx_messageInfo_LongRunningRecognizeRequest.DiscardUnknown(m)
  375. }
  376. var xxx_messageInfo_LongRunningRecognizeRequest proto.InternalMessageInfo
  377. func (m *LongRunningRecognizeRequest) GetConfig() *RecognitionConfig {
  378. if m != nil {
  379. return m.Config
  380. }
  381. return nil
  382. }
  383. func (m *LongRunningRecognizeRequest) GetAudio() *RecognitionAudio {
  384. if m != nil {
  385. return m.Audio
  386. }
  387. return nil
  388. }
  389. // The top-level message sent by the client for the `StreamingRecognize` method.
  390. // Multiple `StreamingRecognizeRequest` messages are sent. The first message
  391. // must contain a `streaming_config` message and must not contain `audio` data.
  392. // All subsequent messages must contain `audio` data and must not contain a
  393. // `streaming_config` message.
  394. type StreamingRecognizeRequest struct {
  395. // The streaming request, which is either a streaming config or audio content.
  396. //
  397. // Types that are valid to be assigned to StreamingRequest:
  398. // *StreamingRecognizeRequest_StreamingConfig
  399. // *StreamingRecognizeRequest_AudioContent
  400. StreamingRequest isStreamingRecognizeRequest_StreamingRequest `protobuf_oneof:"streaming_request"`
  401. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  402. XXX_unrecognized []byte `json:"-"`
  403. XXX_sizecache int32 `json:"-"`
  404. }
  405. func (m *StreamingRecognizeRequest) Reset() { *m = StreamingRecognizeRequest{} }
  406. func (m *StreamingRecognizeRequest) String() string { return proto.CompactTextString(m) }
  407. func (*StreamingRecognizeRequest) ProtoMessage() {}
  408. func (*StreamingRecognizeRequest) Descriptor() ([]byte, []int) {
  409. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{2}
  410. }
  411. func (m *StreamingRecognizeRequest) XXX_Unmarshal(b []byte) error {
  412. return xxx_messageInfo_StreamingRecognizeRequest.Unmarshal(m, b)
  413. }
  414. func (m *StreamingRecognizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  415. return xxx_messageInfo_StreamingRecognizeRequest.Marshal(b, m, deterministic)
  416. }
  417. func (dst *StreamingRecognizeRequest) XXX_Merge(src proto.Message) {
  418. xxx_messageInfo_StreamingRecognizeRequest.Merge(dst, src)
  419. }
  420. func (m *StreamingRecognizeRequest) XXX_Size() int {
  421. return xxx_messageInfo_StreamingRecognizeRequest.Size(m)
  422. }
  423. func (m *StreamingRecognizeRequest) XXX_DiscardUnknown() {
  424. xxx_messageInfo_StreamingRecognizeRequest.DiscardUnknown(m)
  425. }
  426. var xxx_messageInfo_StreamingRecognizeRequest proto.InternalMessageInfo
  427. type isStreamingRecognizeRequest_StreamingRequest interface {
  428. isStreamingRecognizeRequest_StreamingRequest()
  429. }
  430. type StreamingRecognizeRequest_StreamingConfig struct {
  431. StreamingConfig *StreamingRecognitionConfig `protobuf:"bytes,1,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
  432. }
  433. type StreamingRecognizeRequest_AudioContent struct {
  434. AudioContent []byte `protobuf:"bytes,2,opt,name=audio_content,json=audioContent,proto3,oneof"`
  435. }
  436. func (*StreamingRecognizeRequest_StreamingConfig) isStreamingRecognizeRequest_StreamingRequest() {}
  437. func (*StreamingRecognizeRequest_AudioContent) isStreamingRecognizeRequest_StreamingRequest() {}
  438. func (m *StreamingRecognizeRequest) GetStreamingRequest() isStreamingRecognizeRequest_StreamingRequest {
  439. if m != nil {
  440. return m.StreamingRequest
  441. }
  442. return nil
  443. }
  444. func (m *StreamingRecognizeRequest) GetStreamingConfig() *StreamingRecognitionConfig {
  445. if x, ok := m.GetStreamingRequest().(*StreamingRecognizeRequest_StreamingConfig); ok {
  446. return x.StreamingConfig
  447. }
  448. return nil
  449. }
  450. func (m *StreamingRecognizeRequest) GetAudioContent() []byte {
  451. if x, ok := m.GetStreamingRequest().(*StreamingRecognizeRequest_AudioContent); ok {
  452. return x.AudioContent
  453. }
  454. return nil
  455. }
  456. // XXX_OneofFuncs is for the internal use of the proto package.
  457. func (*StreamingRecognizeRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  458. return _StreamingRecognizeRequest_OneofMarshaler, _StreamingRecognizeRequest_OneofUnmarshaler, _StreamingRecognizeRequest_OneofSizer, []interface{}{
  459. (*StreamingRecognizeRequest_StreamingConfig)(nil),
  460. (*StreamingRecognizeRequest_AudioContent)(nil),
  461. }
  462. }
  463. func _StreamingRecognizeRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  464. m := msg.(*StreamingRecognizeRequest)
  465. // streaming_request
  466. switch x := m.StreamingRequest.(type) {
  467. case *StreamingRecognizeRequest_StreamingConfig:
  468. b.EncodeVarint(1<<3 | proto.WireBytes)
  469. if err := b.EncodeMessage(x.StreamingConfig); err != nil {
  470. return err
  471. }
  472. case *StreamingRecognizeRequest_AudioContent:
  473. b.EncodeVarint(2<<3 | proto.WireBytes)
  474. b.EncodeRawBytes(x.AudioContent)
  475. case nil:
  476. default:
  477. return fmt.Errorf("StreamingRecognizeRequest.StreamingRequest has unexpected type %T", x)
  478. }
  479. return nil
  480. }
  481. func _StreamingRecognizeRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  482. m := msg.(*StreamingRecognizeRequest)
  483. switch tag {
  484. case 1: // streaming_request.streaming_config
  485. if wire != proto.WireBytes {
  486. return true, proto.ErrInternalBadWireType
  487. }
  488. msg := new(StreamingRecognitionConfig)
  489. err := b.DecodeMessage(msg)
  490. m.StreamingRequest = &StreamingRecognizeRequest_StreamingConfig{msg}
  491. return true, err
  492. case 2: // streaming_request.audio_content
  493. if wire != proto.WireBytes {
  494. return true, proto.ErrInternalBadWireType
  495. }
  496. x, err := b.DecodeRawBytes(true)
  497. m.StreamingRequest = &StreamingRecognizeRequest_AudioContent{x}
  498. return true, err
  499. default:
  500. return false, nil
  501. }
  502. }
  503. func _StreamingRecognizeRequest_OneofSizer(msg proto.Message) (n int) {
  504. m := msg.(*StreamingRecognizeRequest)
  505. // streaming_request
  506. switch x := m.StreamingRequest.(type) {
  507. case *StreamingRecognizeRequest_StreamingConfig:
  508. s := proto.Size(x.StreamingConfig)
  509. n += 1 // tag and wire
  510. n += proto.SizeVarint(uint64(s))
  511. n += s
  512. case *StreamingRecognizeRequest_AudioContent:
  513. n += 1 // tag and wire
  514. n += proto.SizeVarint(uint64(len(x.AudioContent)))
  515. n += len(x.AudioContent)
  516. case nil:
  517. default:
  518. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  519. }
  520. return n
  521. }
  522. // Provides information to the recognizer that specifies how to process the
  523. // request.
  524. type StreamingRecognitionConfig struct {
  525. // *Required* Provides information to the recognizer that specifies how to
  526. // process the request.
  527. Config *RecognitionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  528. // *Optional* If `false` or omitted, the recognizer will perform continuous
  529. // recognition (continuing to wait for and process audio even if the user
  530. // pauses speaking) until the client closes the input stream (gRPC API) or
  531. // until the maximum time limit has been reached. May return multiple
  532. // `StreamingRecognitionResult`s with the `is_final` flag set to `true`.
  533. //
  534. // If `true`, the recognizer will detect a single spoken utterance. When it
  535. // detects that the user has paused or stopped speaking, it will return an
  536. // `END_OF_SINGLE_UTTERANCE` event and cease recognition. It will return no
  537. // more than one `StreamingRecognitionResult` with the `is_final` flag set to
  538. // `true`.
  539. SingleUtterance bool `protobuf:"varint,2,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
  540. // *Optional* If `true`, interim results (tentative hypotheses) may be
  541. // returned as they become available (these interim results are indicated with
  542. // the `is_final=false` flag).
  543. // If `false` or omitted, only `is_final=true` result(s) are returned.
  544. InterimResults bool `protobuf:"varint,3,opt,name=interim_results,json=interimResults,proto3" json:"interim_results,omitempty"`
  545. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  546. XXX_unrecognized []byte `json:"-"`
  547. XXX_sizecache int32 `json:"-"`
  548. }
  549. func (m *StreamingRecognitionConfig) Reset() { *m = StreamingRecognitionConfig{} }
  550. func (m *StreamingRecognitionConfig) String() string { return proto.CompactTextString(m) }
  551. func (*StreamingRecognitionConfig) ProtoMessage() {}
  552. func (*StreamingRecognitionConfig) Descriptor() ([]byte, []int) {
  553. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{3}
  554. }
  555. func (m *StreamingRecognitionConfig) XXX_Unmarshal(b []byte) error {
  556. return xxx_messageInfo_StreamingRecognitionConfig.Unmarshal(m, b)
  557. }
  558. func (m *StreamingRecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  559. return xxx_messageInfo_StreamingRecognitionConfig.Marshal(b, m, deterministic)
  560. }
  561. func (dst *StreamingRecognitionConfig) XXX_Merge(src proto.Message) {
  562. xxx_messageInfo_StreamingRecognitionConfig.Merge(dst, src)
  563. }
  564. func (m *StreamingRecognitionConfig) XXX_Size() int {
  565. return xxx_messageInfo_StreamingRecognitionConfig.Size(m)
  566. }
  567. func (m *StreamingRecognitionConfig) XXX_DiscardUnknown() {
  568. xxx_messageInfo_StreamingRecognitionConfig.DiscardUnknown(m)
  569. }
  570. var xxx_messageInfo_StreamingRecognitionConfig proto.InternalMessageInfo
  571. func (m *StreamingRecognitionConfig) GetConfig() *RecognitionConfig {
  572. if m != nil {
  573. return m.Config
  574. }
  575. return nil
  576. }
  577. func (m *StreamingRecognitionConfig) GetSingleUtterance() bool {
  578. if m != nil {
  579. return m.SingleUtterance
  580. }
  581. return false
  582. }
  583. func (m *StreamingRecognitionConfig) GetInterimResults() bool {
  584. if m != nil {
  585. return m.InterimResults
  586. }
  587. return false
  588. }
  589. // Provides information to the recognizer that specifies how to process the
  590. // request.
  591. type RecognitionConfig struct {
  592. // Encoding of audio data sent in all `RecognitionAudio` messages.
  593. // This field is optional for `FLAC` and `WAV` audio files and required
  594. // for all other audio formats. For details, see
  595. // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
  596. Encoding RecognitionConfig_AudioEncoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.cloud.speech.v1p1beta1.RecognitionConfig_AudioEncoding" json:"encoding,omitempty"`
  597. // Sample rate in Hertz of the audio data sent in all
  598. // `RecognitionAudio` messages. Valid values are: 8000-48000.
  599. // 16000 is optimal. For best results, set the sampling rate of the audio
  600. // source to 16000 Hz. If that's not possible, use the native sample rate of
  601. // the audio source (instead of re-sampling).
  602. // This field is optional for `FLAC` and `WAV` audio files and required
  603. // for all other audio formats. For details, see
  604. // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
  605. SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
  606. // *Optional* The number of channels in the input audio data.
  607. // ONLY set this for MULTI-CHANNEL recognition.
  608. // Valid values for LINEAR16 and FLAC are `1`-`8`.
  609. // Valid values for OGG_OPUS are '1'-'254'.
  610. // Valid value for MULAW, AMR, AMR_WB and SPEEX_WITH_HEADER_BYTE is only `1`.
  611. // If `0` or omitted, defaults to one channel (mono).
  612. // Note: We only recognize the first channel by default.
  613. // To perform independent recognition on each channel set
  614. // `enable_separate_recognition_per_channel` to 'true'.
  615. AudioChannelCount int32 `protobuf:"varint,7,opt,name=audio_channel_count,json=audioChannelCount,proto3" json:"audio_channel_count,omitempty"`
  616. // This needs to be set to ‘true’ explicitly and `audio_channel_count` > 1
  617. // to get each channel recognized separately. The recognition result will
  618. // contain a `channel_tag` field to state which channel that result belongs
  619. // to. If this is not true, we will only recognize the first channel. The
  620. // request is billed cumulatively for all channels recognized:
  621. // `audio_channel_count` multiplied by the length of the audio.
  622. EnableSeparateRecognitionPerChannel bool `protobuf:"varint,12,opt,name=enable_separate_recognition_per_channel,json=enableSeparateRecognitionPerChannel,proto3" json:"enable_separate_recognition_per_channel,omitempty"`
  623. // *Required* The language of the supplied audio as a
  624. // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
  625. // Example: "en-US".
  626. // See [Language Support](/speech-to-text/docs/languages)
  627. // for a list of the currently supported language codes.
  628. LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
  629. // *Optional* A list of up to 3 additional
  630. // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
  631. // listing possible alternative languages of the supplied audio.
  632. // See [Language Support](/speech-to-text/docs/languages)
  633. // for a list of the currently supported language codes.
  634. // If alternative languages are listed, recognition result will contain
  635. // recognition in the most likely language detected including the main
  636. // language_code. The recognition result will include the language tag
  637. // of the language detected in the audio.
  638. // Note: This feature is only supported for Voice Command and Voice Search
  639. // use cases and performance may vary for other use cases (e.g., phone call
  640. // transcription).
  641. AlternativeLanguageCodes []string `protobuf:"bytes,18,rep,name=alternative_language_codes,json=alternativeLanguageCodes,proto3" json:"alternative_language_codes,omitempty"`
  642. // *Optional* Maximum number of recognition hypotheses to be returned.
  643. // Specifically, the maximum number of `SpeechRecognitionAlternative` messages
  644. // within each `SpeechRecognitionResult`.
  645. // The server may return fewer than `max_alternatives`.
  646. // Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
  647. // one. If omitted, will return a maximum of one.
  648. MaxAlternatives int32 `protobuf:"varint,4,opt,name=max_alternatives,json=maxAlternatives,proto3" json:"max_alternatives,omitempty"`
  649. // *Optional* If set to `true`, the server will attempt to filter out
  650. // profanities, replacing all but the initial character in each filtered word
  651. // with asterisks, e.g. "f***". If set to `false` or omitted, profanities
  652. // won't be filtered out.
  653. ProfanityFilter bool `protobuf:"varint,5,opt,name=profanity_filter,json=profanityFilter,proto3" json:"profanity_filter,omitempty"`
  654. // *Optional* array of
  655. // [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. A means to
  656. // provide context to assist the speech recognition. For more information, see
  657. // [Phrase Hints](/speech-to-text/docs/basics#phrase-hints).
  658. SpeechContexts []*SpeechContext `protobuf:"bytes,6,rep,name=speech_contexts,json=speechContexts,proto3" json:"speech_contexts,omitempty"`
  659. // *Optional* If `true`, the top result includes a list of words and
  660. // the start and end time offsets (timestamps) for those words. If
  661. // `false`, no word-level time offset information is returned. The default is
  662. // `false`.
  663. EnableWordTimeOffsets bool `protobuf:"varint,8,opt,name=enable_word_time_offsets,json=enableWordTimeOffsets,proto3" json:"enable_word_time_offsets,omitempty"`
  664. // *Optional* If `true`, the top result includes a list of words and the
  665. // confidence for those words. If `false`, no word-level confidence
  666. // information is returned. The default is `false`.
  667. EnableWordConfidence bool `protobuf:"varint,15,opt,name=enable_word_confidence,json=enableWordConfidence,proto3" json:"enable_word_confidence,omitempty"`
  668. // *Optional* If 'true', adds punctuation to recognition result hypotheses.
  669. // This feature is only available in select languages. Setting this for
  670. // requests in other languages has no effect at all.
  671. // The default 'false' value does not add punctuation to result hypotheses.
  672. // Note: This is currently offered as an experimental service, complimentary
  673. // to all users. In the future this may be exclusively available as a
  674. // premium feature.
  675. EnableAutomaticPunctuation bool `protobuf:"varint,11,opt,name=enable_automatic_punctuation,json=enableAutomaticPunctuation,proto3" json:"enable_automatic_punctuation,omitempty"`
  676. // *Optional* If 'true', enables speaker detection for each recognized word in
  677. // the top alternative of the recognition result using a speaker_tag provided
  678. // in the WordInfo.
  679. // Note: When this is true, we send all the words from the beginning of the
  680. // audio for the top alternative in every consecutive STREAMING responses.
  681. // This is done in order to improve our speaker tags as our models learn to
  682. // identify the speakers in the conversation over time.
  683. // For non-streaming requests, the diarization results will be provided only
  684. // in the top alternative of the FINAL SpeechRecognitionResult.
  685. EnableSpeakerDiarization bool `protobuf:"varint,16,opt,name=enable_speaker_diarization,json=enableSpeakerDiarization,proto3" json:"enable_speaker_diarization,omitempty"`
  686. // *Optional*
  687. // If set, specifies the estimated number of speakers in the conversation.
  688. // If not set, defaults to '2'.
  689. // Ignored unless enable_speaker_diarization is set to true."
  690. DiarizationSpeakerCount int32 `protobuf:"varint,17,opt,name=diarization_speaker_count,json=diarizationSpeakerCount,proto3" json:"diarization_speaker_count,omitempty"`
  691. // *Optional* Metadata regarding this request.
  692. Metadata *RecognitionMetadata `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`
  693. // *Optional* Which model to select for the given request. Select the model
  694. // best suited to your domain to get best results. If a model is not
  695. // explicitly specified, then we auto-select a model based on the parameters
  696. // in the RecognitionConfig.
  697. // <table>
  698. // <tr>
  699. // <td><b>Model</b></td>
  700. // <td><b>Description</b></td>
  701. // </tr>
  702. // <tr>
  703. // <td><code>command_and_search</code></td>
  704. // <td>Best for short queries such as voice commands or voice search.</td>
  705. // </tr>
  706. // <tr>
  707. // <td><code>phone_call</code></td>
  708. // <td>Best for audio that originated from a phone call (typically
  709. // recorded at an 8khz sampling rate).</td>
  710. // </tr>
  711. // <tr>
  712. // <td><code>video</code></td>
  713. // <td>Best for audio that originated from from video or includes multiple
  714. // speakers. Ideally the audio is recorded at a 16khz or greater
  715. // sampling rate. This is a premium model that costs more than the
  716. // standard rate.</td>
  717. // </tr>
  718. // <tr>
  719. // <td><code>default</code></td>
  720. // <td>Best for audio that is not one of the specific audio models.
  721. // For example, long-form audio. Ideally the audio is high-fidelity,
  722. // recorded at a 16khz or greater sampling rate.</td>
  723. // </tr>
  724. // </table>
  725. Model string `protobuf:"bytes,13,opt,name=model,proto3" json:"model,omitempty"`
  726. // *Optional* Set to true to use an enhanced model for speech recognition.
  727. // If `use_enhanced` is set to true and the `model` field is not set, then
  728. // an appropriate enhanced model is chosen if:
  729. // 1. project is eligible for requesting enhanced models
  730. // 2. an enhanced model exists for the audio
  731. //
  732. // If `use_enhanced` is true and an enhanced version of the specified model
  733. // does not exist, then the speech is recognized using the standard version
  734. // of the specified model.
  735. //
  736. // Enhanced speech models require that you opt-in to data logging using
  737. // instructions in the
  738. // [documentation](/speech-to-text/docs/enable-data-logging). If you set
  739. // `use_enhanced` to true and you have not enabled audio logging, then you
  740. // will receive an error.
  741. UseEnhanced bool `protobuf:"varint,14,opt,name=use_enhanced,json=useEnhanced,proto3" json:"use_enhanced,omitempty"`
  742. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  743. XXX_unrecognized []byte `json:"-"`
  744. XXX_sizecache int32 `json:"-"`
  745. }
  746. func (m *RecognitionConfig) Reset() { *m = RecognitionConfig{} }
  747. func (m *RecognitionConfig) String() string { return proto.CompactTextString(m) }
  748. func (*RecognitionConfig) ProtoMessage() {}
  749. func (*RecognitionConfig) Descriptor() ([]byte, []int) {
  750. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{4}
  751. }
  752. func (m *RecognitionConfig) XXX_Unmarshal(b []byte) error {
  753. return xxx_messageInfo_RecognitionConfig.Unmarshal(m, b)
  754. }
  755. func (m *RecognitionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  756. return xxx_messageInfo_RecognitionConfig.Marshal(b, m, deterministic)
  757. }
  758. func (dst *RecognitionConfig) XXX_Merge(src proto.Message) {
  759. xxx_messageInfo_RecognitionConfig.Merge(dst, src)
  760. }
  761. func (m *RecognitionConfig) XXX_Size() int {
  762. return xxx_messageInfo_RecognitionConfig.Size(m)
  763. }
  764. func (m *RecognitionConfig) XXX_DiscardUnknown() {
  765. xxx_messageInfo_RecognitionConfig.DiscardUnknown(m)
  766. }
  767. var xxx_messageInfo_RecognitionConfig proto.InternalMessageInfo
  768. func (m *RecognitionConfig) GetEncoding() RecognitionConfig_AudioEncoding {
  769. if m != nil {
  770. return m.Encoding
  771. }
  772. return RecognitionConfig_ENCODING_UNSPECIFIED
  773. }
  774. func (m *RecognitionConfig) GetSampleRateHertz() int32 {
  775. if m != nil {
  776. return m.SampleRateHertz
  777. }
  778. return 0
  779. }
  780. func (m *RecognitionConfig) GetAudioChannelCount() int32 {
  781. if m != nil {
  782. return m.AudioChannelCount
  783. }
  784. return 0
  785. }
  786. func (m *RecognitionConfig) GetEnableSeparateRecognitionPerChannel() bool {
  787. if m != nil {
  788. return m.EnableSeparateRecognitionPerChannel
  789. }
  790. return false
  791. }
  792. func (m *RecognitionConfig) GetLanguageCode() string {
  793. if m != nil {
  794. return m.LanguageCode
  795. }
  796. return ""
  797. }
  798. func (m *RecognitionConfig) GetAlternativeLanguageCodes() []string {
  799. if m != nil {
  800. return m.AlternativeLanguageCodes
  801. }
  802. return nil
  803. }
  804. func (m *RecognitionConfig) GetMaxAlternatives() int32 {
  805. if m != nil {
  806. return m.MaxAlternatives
  807. }
  808. return 0
  809. }
  810. func (m *RecognitionConfig) GetProfanityFilter() bool {
  811. if m != nil {
  812. return m.ProfanityFilter
  813. }
  814. return false
  815. }
  816. func (m *RecognitionConfig) GetSpeechContexts() []*SpeechContext {
  817. if m != nil {
  818. return m.SpeechContexts
  819. }
  820. return nil
  821. }
  822. func (m *RecognitionConfig) GetEnableWordTimeOffsets() bool {
  823. if m != nil {
  824. return m.EnableWordTimeOffsets
  825. }
  826. return false
  827. }
  828. func (m *RecognitionConfig) GetEnableWordConfidence() bool {
  829. if m != nil {
  830. return m.EnableWordConfidence
  831. }
  832. return false
  833. }
  834. func (m *RecognitionConfig) GetEnableAutomaticPunctuation() bool {
  835. if m != nil {
  836. return m.EnableAutomaticPunctuation
  837. }
  838. return false
  839. }
  840. func (m *RecognitionConfig) GetEnableSpeakerDiarization() bool {
  841. if m != nil {
  842. return m.EnableSpeakerDiarization
  843. }
  844. return false
  845. }
  846. func (m *RecognitionConfig) GetDiarizationSpeakerCount() int32 {
  847. if m != nil {
  848. return m.DiarizationSpeakerCount
  849. }
  850. return 0
  851. }
  852. func (m *RecognitionConfig) GetMetadata() *RecognitionMetadata {
  853. if m != nil {
  854. return m.Metadata
  855. }
  856. return nil
  857. }
  858. func (m *RecognitionConfig) GetModel() string {
  859. if m != nil {
  860. return m.Model
  861. }
  862. return ""
  863. }
  864. func (m *RecognitionConfig) GetUseEnhanced() bool {
  865. if m != nil {
  866. return m.UseEnhanced
  867. }
  868. return false
  869. }
  870. // Description of audio data to be recognized.
  871. type RecognitionMetadata struct {
  872. // The use case most closely describing the audio content to be recognized.
  873. InteractionType RecognitionMetadata_InteractionType `protobuf:"varint,1,opt,name=interaction_type,json=interactionType,proto3,enum=google.cloud.speech.v1p1beta1.RecognitionMetadata_InteractionType" json:"interaction_type,omitempty"`
  874. // The industry vertical to which this speech recognition request most
  875. // closely applies. This is most indicative of the topics contained
  876. // in the audio. Use the 6-digit NAICS code to identify the industry
  877. // vertical - see https://www.naics.com/search/.
  878. IndustryNaicsCodeOfAudio uint32 `protobuf:"varint,3,opt,name=industry_naics_code_of_audio,json=industryNaicsCodeOfAudio,proto3" json:"industry_naics_code_of_audio,omitempty"`
  879. // The audio type that most closely describes the audio being recognized.
  880. MicrophoneDistance RecognitionMetadata_MicrophoneDistance `protobuf:"varint,4,opt,name=microphone_distance,json=microphoneDistance,proto3,enum=google.cloud.speech.v1p1beta1.RecognitionMetadata_MicrophoneDistance" json:"microphone_distance,omitempty"`
  881. // The original media the speech was recorded on.
  882. OriginalMediaType RecognitionMetadata_OriginalMediaType `protobuf:"varint,5,opt,name=original_media_type,json=originalMediaType,proto3,enum=google.cloud.speech.v1p1beta1.RecognitionMetadata_OriginalMediaType" json:"original_media_type,omitempty"`
  883. // The type of device the speech was recorded with.
  884. RecordingDeviceType RecognitionMetadata_RecordingDeviceType `protobuf:"varint,6,opt,name=recording_device_type,json=recordingDeviceType,proto3,enum=google.cloud.speech.v1p1beta1.RecognitionMetadata_RecordingDeviceType" json:"recording_device_type,omitempty"`
  885. // The device used to make the recording. Examples 'Nexus 5X' or
  886. // 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
  887. // 'Cardioid Microphone'.
  888. RecordingDeviceName string `protobuf:"bytes,7,opt,name=recording_device_name,json=recordingDeviceName,proto3" json:"recording_device_name,omitempty"`
  889. // Mime type of the original audio file. For example `audio/m4a`,
  890. // `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
  891. // A list of possible audio mime types is maintained at
  892. // http://www.iana.org/assignments/media-types/media-types.xhtml#audio
  893. OriginalMimeType string `protobuf:"bytes,8,opt,name=original_mime_type,json=originalMimeType,proto3" json:"original_mime_type,omitempty"`
  894. // Obfuscated (privacy-protected) ID of the user, to identify number of
  895. // unique users using the service.
  896. ObfuscatedId int64 `protobuf:"varint,9,opt,name=obfuscated_id,json=obfuscatedId,proto3" json:"obfuscated_id,omitempty"`
  897. // Description of the content. Eg. "Recordings of federal supreme court
  898. // hearings from 2012".
  899. AudioTopic string `protobuf:"bytes,10,opt,name=audio_topic,json=audioTopic,proto3" json:"audio_topic,omitempty"`
  900. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  901. XXX_unrecognized []byte `json:"-"`
  902. XXX_sizecache int32 `json:"-"`
  903. }
  904. func (m *RecognitionMetadata) Reset() { *m = RecognitionMetadata{} }
  905. func (m *RecognitionMetadata) String() string { return proto.CompactTextString(m) }
  906. func (*RecognitionMetadata) ProtoMessage() {}
  907. func (*RecognitionMetadata) Descriptor() ([]byte, []int) {
  908. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{5}
  909. }
  910. func (m *RecognitionMetadata) XXX_Unmarshal(b []byte) error {
  911. return xxx_messageInfo_RecognitionMetadata.Unmarshal(m, b)
  912. }
  913. func (m *RecognitionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  914. return xxx_messageInfo_RecognitionMetadata.Marshal(b, m, deterministic)
  915. }
  916. func (dst *RecognitionMetadata) XXX_Merge(src proto.Message) {
  917. xxx_messageInfo_RecognitionMetadata.Merge(dst, src)
  918. }
  919. func (m *RecognitionMetadata) XXX_Size() int {
  920. return xxx_messageInfo_RecognitionMetadata.Size(m)
  921. }
  922. func (m *RecognitionMetadata) XXX_DiscardUnknown() {
  923. xxx_messageInfo_RecognitionMetadata.DiscardUnknown(m)
  924. }
  925. var xxx_messageInfo_RecognitionMetadata proto.InternalMessageInfo
  926. func (m *RecognitionMetadata) GetInteractionType() RecognitionMetadata_InteractionType {
  927. if m != nil {
  928. return m.InteractionType
  929. }
  930. return RecognitionMetadata_INTERACTION_TYPE_UNSPECIFIED
  931. }
  932. func (m *RecognitionMetadata) GetIndustryNaicsCodeOfAudio() uint32 {
  933. if m != nil {
  934. return m.IndustryNaicsCodeOfAudio
  935. }
  936. return 0
  937. }
  938. func (m *RecognitionMetadata) GetMicrophoneDistance() RecognitionMetadata_MicrophoneDistance {
  939. if m != nil {
  940. return m.MicrophoneDistance
  941. }
  942. return RecognitionMetadata_MICROPHONE_DISTANCE_UNSPECIFIED
  943. }
  944. func (m *RecognitionMetadata) GetOriginalMediaType() RecognitionMetadata_OriginalMediaType {
  945. if m != nil {
  946. return m.OriginalMediaType
  947. }
  948. return RecognitionMetadata_ORIGINAL_MEDIA_TYPE_UNSPECIFIED
  949. }
  950. func (m *RecognitionMetadata) GetRecordingDeviceType() RecognitionMetadata_RecordingDeviceType {
  951. if m != nil {
  952. return m.RecordingDeviceType
  953. }
  954. return RecognitionMetadata_RECORDING_DEVICE_TYPE_UNSPECIFIED
  955. }
  956. func (m *RecognitionMetadata) GetRecordingDeviceName() string {
  957. if m != nil {
  958. return m.RecordingDeviceName
  959. }
  960. return ""
  961. }
  962. func (m *RecognitionMetadata) GetOriginalMimeType() string {
  963. if m != nil {
  964. return m.OriginalMimeType
  965. }
  966. return ""
  967. }
  968. func (m *RecognitionMetadata) GetObfuscatedId() int64 {
  969. if m != nil {
  970. return m.ObfuscatedId
  971. }
  972. return 0
  973. }
  974. func (m *RecognitionMetadata) GetAudioTopic() string {
  975. if m != nil {
  976. return m.AudioTopic
  977. }
  978. return ""
  979. }
  980. // Provides "hints" to the speech recognizer to favor specific words and phrases
  981. // in the results.
  982. type SpeechContext struct {
  983. // *Optional* A list of strings containing words and phrases "hints" so that
  984. // the speech recognition is more likely to recognize them. This can be used
  985. // to improve the accuracy for specific words and phrases, for example, if
  986. // specific commands are typically spoken by the user. This can also be used
  987. // to add additional words to the vocabulary of the recognizer. See
  988. // [usage limits](/speech-to-text/quotas#content).
  989. Phrases []string `protobuf:"bytes,1,rep,name=phrases,proto3" json:"phrases,omitempty"`
  990. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  991. XXX_unrecognized []byte `json:"-"`
  992. XXX_sizecache int32 `json:"-"`
  993. }
  994. func (m *SpeechContext) Reset() { *m = SpeechContext{} }
  995. func (m *SpeechContext) String() string { return proto.CompactTextString(m) }
  996. func (*SpeechContext) ProtoMessage() {}
  997. func (*SpeechContext) Descriptor() ([]byte, []int) {
  998. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{6}
  999. }
  1000. func (m *SpeechContext) XXX_Unmarshal(b []byte) error {
  1001. return xxx_messageInfo_SpeechContext.Unmarshal(m, b)
  1002. }
  1003. func (m *SpeechContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1004. return xxx_messageInfo_SpeechContext.Marshal(b, m, deterministic)
  1005. }
  1006. func (dst *SpeechContext) XXX_Merge(src proto.Message) {
  1007. xxx_messageInfo_SpeechContext.Merge(dst, src)
  1008. }
  1009. func (m *SpeechContext) XXX_Size() int {
  1010. return xxx_messageInfo_SpeechContext.Size(m)
  1011. }
  1012. func (m *SpeechContext) XXX_DiscardUnknown() {
  1013. xxx_messageInfo_SpeechContext.DiscardUnknown(m)
  1014. }
  1015. var xxx_messageInfo_SpeechContext proto.InternalMessageInfo
  1016. func (m *SpeechContext) GetPhrases() []string {
  1017. if m != nil {
  1018. return m.Phrases
  1019. }
  1020. return nil
  1021. }
  1022. // Contains audio data in the encoding specified in the `RecognitionConfig`.
  1023. // Either `content` or `uri` must be supplied. Supplying both or neither
  1024. // returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
  1025. // See [content limits](/speech-to-text/quotas#content).
  1026. type RecognitionAudio struct {
  1027. // The audio source, which is either inline content or a Google Cloud
  1028. // Storage uri.
  1029. //
  1030. // Types that are valid to be assigned to AudioSource:
  1031. // *RecognitionAudio_Content
  1032. // *RecognitionAudio_Uri
  1033. AudioSource isRecognitionAudio_AudioSource `protobuf_oneof:"audio_source"`
  1034. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1035. XXX_unrecognized []byte `json:"-"`
  1036. XXX_sizecache int32 `json:"-"`
  1037. }
  1038. func (m *RecognitionAudio) Reset() { *m = RecognitionAudio{} }
  1039. func (m *RecognitionAudio) String() string { return proto.CompactTextString(m) }
  1040. func (*RecognitionAudio) ProtoMessage() {}
  1041. func (*RecognitionAudio) Descriptor() ([]byte, []int) {
  1042. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{7}
  1043. }
  1044. func (m *RecognitionAudio) XXX_Unmarshal(b []byte) error {
  1045. return xxx_messageInfo_RecognitionAudio.Unmarshal(m, b)
  1046. }
  1047. func (m *RecognitionAudio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1048. return xxx_messageInfo_RecognitionAudio.Marshal(b, m, deterministic)
  1049. }
  1050. func (dst *RecognitionAudio) XXX_Merge(src proto.Message) {
  1051. xxx_messageInfo_RecognitionAudio.Merge(dst, src)
  1052. }
  1053. func (m *RecognitionAudio) XXX_Size() int {
  1054. return xxx_messageInfo_RecognitionAudio.Size(m)
  1055. }
  1056. func (m *RecognitionAudio) XXX_DiscardUnknown() {
  1057. xxx_messageInfo_RecognitionAudio.DiscardUnknown(m)
  1058. }
  1059. var xxx_messageInfo_RecognitionAudio proto.InternalMessageInfo
  1060. type isRecognitionAudio_AudioSource interface {
  1061. isRecognitionAudio_AudioSource()
  1062. }
  1063. type RecognitionAudio_Content struct {
  1064. Content []byte `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
  1065. }
  1066. type RecognitionAudio_Uri struct {
  1067. Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"`
  1068. }
  1069. func (*RecognitionAudio_Content) isRecognitionAudio_AudioSource() {}
  1070. func (*RecognitionAudio_Uri) isRecognitionAudio_AudioSource() {}
  1071. func (m *RecognitionAudio) GetAudioSource() isRecognitionAudio_AudioSource {
  1072. if m != nil {
  1073. return m.AudioSource
  1074. }
  1075. return nil
  1076. }
  1077. func (m *RecognitionAudio) GetContent() []byte {
  1078. if x, ok := m.GetAudioSource().(*RecognitionAudio_Content); ok {
  1079. return x.Content
  1080. }
  1081. return nil
  1082. }
  1083. func (m *RecognitionAudio) GetUri() string {
  1084. if x, ok := m.GetAudioSource().(*RecognitionAudio_Uri); ok {
  1085. return x.Uri
  1086. }
  1087. return ""
  1088. }
  1089. // XXX_OneofFuncs is for the internal use of the proto package.
  1090. func (*RecognitionAudio) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  1091. return _RecognitionAudio_OneofMarshaler, _RecognitionAudio_OneofUnmarshaler, _RecognitionAudio_OneofSizer, []interface{}{
  1092. (*RecognitionAudio_Content)(nil),
  1093. (*RecognitionAudio_Uri)(nil),
  1094. }
  1095. }
  1096. func _RecognitionAudio_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1097. m := msg.(*RecognitionAudio)
  1098. // audio_source
  1099. switch x := m.AudioSource.(type) {
  1100. case *RecognitionAudio_Content:
  1101. b.EncodeVarint(1<<3 | proto.WireBytes)
  1102. b.EncodeRawBytes(x.Content)
  1103. case *RecognitionAudio_Uri:
  1104. b.EncodeVarint(2<<3 | proto.WireBytes)
  1105. b.EncodeStringBytes(x.Uri)
  1106. case nil:
  1107. default:
  1108. return fmt.Errorf("RecognitionAudio.AudioSource has unexpected type %T", x)
  1109. }
  1110. return nil
  1111. }
  1112. func _RecognitionAudio_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1113. m := msg.(*RecognitionAudio)
  1114. switch tag {
  1115. case 1: // audio_source.content
  1116. if wire != proto.WireBytes {
  1117. return true, proto.ErrInternalBadWireType
  1118. }
  1119. x, err := b.DecodeRawBytes(true)
  1120. m.AudioSource = &RecognitionAudio_Content{x}
  1121. return true, err
  1122. case 2: // audio_source.uri
  1123. if wire != proto.WireBytes {
  1124. return true, proto.ErrInternalBadWireType
  1125. }
  1126. x, err := b.DecodeStringBytes()
  1127. m.AudioSource = &RecognitionAudio_Uri{x}
  1128. return true, err
  1129. default:
  1130. return false, nil
  1131. }
  1132. }
  1133. func _RecognitionAudio_OneofSizer(msg proto.Message) (n int) {
  1134. m := msg.(*RecognitionAudio)
  1135. // audio_source
  1136. switch x := m.AudioSource.(type) {
  1137. case *RecognitionAudio_Content:
  1138. n += 1 // tag and wire
  1139. n += proto.SizeVarint(uint64(len(x.Content)))
  1140. n += len(x.Content)
  1141. case *RecognitionAudio_Uri:
  1142. n += 1 // tag and wire
  1143. n += proto.SizeVarint(uint64(len(x.Uri)))
  1144. n += len(x.Uri)
  1145. case nil:
  1146. default:
  1147. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1148. }
  1149. return n
  1150. }
  1151. // The only message returned to the client by the `Recognize` method. It
  1152. // contains the result as zero or more sequential `SpeechRecognitionResult`
  1153. // messages.
  1154. type RecognizeResponse struct {
  1155. // Output only. Sequential list of transcription results corresponding to
  1156. // sequential portions of audio.
  1157. Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
  1158. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1159. XXX_unrecognized []byte `json:"-"`
  1160. XXX_sizecache int32 `json:"-"`
  1161. }
  1162. func (m *RecognizeResponse) Reset() { *m = RecognizeResponse{} }
  1163. func (m *RecognizeResponse) String() string { return proto.CompactTextString(m) }
  1164. func (*RecognizeResponse) ProtoMessage() {}
  1165. func (*RecognizeResponse) Descriptor() ([]byte, []int) {
  1166. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{8}
  1167. }
  1168. func (m *RecognizeResponse) XXX_Unmarshal(b []byte) error {
  1169. return xxx_messageInfo_RecognizeResponse.Unmarshal(m, b)
  1170. }
  1171. func (m *RecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1172. return xxx_messageInfo_RecognizeResponse.Marshal(b, m, deterministic)
  1173. }
  1174. func (dst *RecognizeResponse) XXX_Merge(src proto.Message) {
  1175. xxx_messageInfo_RecognizeResponse.Merge(dst, src)
  1176. }
  1177. func (m *RecognizeResponse) XXX_Size() int {
  1178. return xxx_messageInfo_RecognizeResponse.Size(m)
  1179. }
  1180. func (m *RecognizeResponse) XXX_DiscardUnknown() {
  1181. xxx_messageInfo_RecognizeResponse.DiscardUnknown(m)
  1182. }
  1183. var xxx_messageInfo_RecognizeResponse proto.InternalMessageInfo
  1184. func (m *RecognizeResponse) GetResults() []*SpeechRecognitionResult {
  1185. if m != nil {
  1186. return m.Results
  1187. }
  1188. return nil
  1189. }
  1190. // The only message returned to the client by the `LongRunningRecognize` method.
  1191. // It contains the result as zero or more sequential `SpeechRecognitionResult`
  1192. // messages. It is included in the `result.response` field of the `Operation`
  1193. // returned by the `GetOperation` call of the `google::longrunning::Operations`
  1194. // service.
  1195. type LongRunningRecognizeResponse struct {
  1196. // Output only. Sequential list of transcription results corresponding to
  1197. // sequential portions of audio.
  1198. Results []*SpeechRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
  1199. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1200. XXX_unrecognized []byte `json:"-"`
  1201. XXX_sizecache int32 `json:"-"`
  1202. }
  1203. func (m *LongRunningRecognizeResponse) Reset() { *m = LongRunningRecognizeResponse{} }
  1204. func (m *LongRunningRecognizeResponse) String() string { return proto.CompactTextString(m) }
  1205. func (*LongRunningRecognizeResponse) ProtoMessage() {}
  1206. func (*LongRunningRecognizeResponse) Descriptor() ([]byte, []int) {
  1207. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{9}
  1208. }
  1209. func (m *LongRunningRecognizeResponse) XXX_Unmarshal(b []byte) error {
  1210. return xxx_messageInfo_LongRunningRecognizeResponse.Unmarshal(m, b)
  1211. }
  1212. func (m *LongRunningRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1213. return xxx_messageInfo_LongRunningRecognizeResponse.Marshal(b, m, deterministic)
  1214. }
  1215. func (dst *LongRunningRecognizeResponse) XXX_Merge(src proto.Message) {
  1216. xxx_messageInfo_LongRunningRecognizeResponse.Merge(dst, src)
  1217. }
  1218. func (m *LongRunningRecognizeResponse) XXX_Size() int {
  1219. return xxx_messageInfo_LongRunningRecognizeResponse.Size(m)
  1220. }
  1221. func (m *LongRunningRecognizeResponse) XXX_DiscardUnknown() {
  1222. xxx_messageInfo_LongRunningRecognizeResponse.DiscardUnknown(m)
  1223. }
  1224. var xxx_messageInfo_LongRunningRecognizeResponse proto.InternalMessageInfo
  1225. func (m *LongRunningRecognizeResponse) GetResults() []*SpeechRecognitionResult {
  1226. if m != nil {
  1227. return m.Results
  1228. }
  1229. return nil
  1230. }
  1231. // Describes the progress of a long-running `LongRunningRecognize` call. It is
  1232. // included in the `metadata` field of the `Operation` returned by the
  1233. // `GetOperation` call of the `google::longrunning::Operations` service.
  1234. type LongRunningRecognizeMetadata struct {
  1235. // Approximate percentage of audio processed thus far. Guaranteed to be 100
  1236. // when the audio is fully processed and the results are available.
  1237. ProgressPercent int32 `protobuf:"varint,1,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"`
  1238. // Time when the request was received.
  1239. StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  1240. // Time of the most recent processing update.
  1241. LastUpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
  1242. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1243. XXX_unrecognized []byte `json:"-"`
  1244. XXX_sizecache int32 `json:"-"`
  1245. }
  1246. func (m *LongRunningRecognizeMetadata) Reset() { *m = LongRunningRecognizeMetadata{} }
  1247. func (m *LongRunningRecognizeMetadata) String() string { return proto.CompactTextString(m) }
  1248. func (*LongRunningRecognizeMetadata) ProtoMessage() {}
  1249. func (*LongRunningRecognizeMetadata) Descriptor() ([]byte, []int) {
  1250. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{10}
  1251. }
  1252. func (m *LongRunningRecognizeMetadata) XXX_Unmarshal(b []byte) error {
  1253. return xxx_messageInfo_LongRunningRecognizeMetadata.Unmarshal(m, b)
  1254. }
  1255. func (m *LongRunningRecognizeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1256. return xxx_messageInfo_LongRunningRecognizeMetadata.Marshal(b, m, deterministic)
  1257. }
  1258. func (dst *LongRunningRecognizeMetadata) XXX_Merge(src proto.Message) {
  1259. xxx_messageInfo_LongRunningRecognizeMetadata.Merge(dst, src)
  1260. }
  1261. func (m *LongRunningRecognizeMetadata) XXX_Size() int {
  1262. return xxx_messageInfo_LongRunningRecognizeMetadata.Size(m)
  1263. }
  1264. func (m *LongRunningRecognizeMetadata) XXX_DiscardUnknown() {
  1265. xxx_messageInfo_LongRunningRecognizeMetadata.DiscardUnknown(m)
  1266. }
  1267. var xxx_messageInfo_LongRunningRecognizeMetadata proto.InternalMessageInfo
  1268. func (m *LongRunningRecognizeMetadata) GetProgressPercent() int32 {
  1269. if m != nil {
  1270. return m.ProgressPercent
  1271. }
  1272. return 0
  1273. }
  1274. func (m *LongRunningRecognizeMetadata) GetStartTime() *timestamp.Timestamp {
  1275. if m != nil {
  1276. return m.StartTime
  1277. }
  1278. return nil
  1279. }
  1280. func (m *LongRunningRecognizeMetadata) GetLastUpdateTime() *timestamp.Timestamp {
  1281. if m != nil {
  1282. return m.LastUpdateTime
  1283. }
  1284. return nil
  1285. }
  1286. // `StreamingRecognizeResponse` is the only message returned to the client by
  1287. // `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
  1288. // messages are streamed back to the client. If there is no recognizable
  1289. // audio, and `single_utterance` is set to false, then no messages are streamed
  1290. // back to the client.
  1291. //
  1292. // Here's an example of a series of ten `StreamingRecognizeResponse`s that might
  1293. // be returned while processing audio:
  1294. //
  1295. // 1. results { alternatives { transcript: "tube" } stability: 0.01 }
  1296. //
  1297. // 2. results { alternatives { transcript: "to be a" } stability: 0.01 }
  1298. //
  1299. // 3. results { alternatives { transcript: "to be" } stability: 0.9 }
  1300. // results { alternatives { transcript: " or not to be" } stability: 0.01 }
  1301. //
  1302. // 4. results { alternatives { transcript: "to be or not to be"
  1303. // confidence: 0.92 }
  1304. // alternatives { transcript: "to bee or not to bee" }
  1305. // is_final: true }
  1306. //
  1307. // 5. results { alternatives { transcript: " that's" } stability: 0.01 }
  1308. //
  1309. // 6. results { alternatives { transcript: " that is" } stability: 0.9 }
  1310. // results { alternatives { transcript: " the question" } stability: 0.01 }
  1311. //
  1312. // 7. results { alternatives { transcript: " that is the question"
  1313. // confidence: 0.98 }
  1314. // alternatives { transcript: " that was the question" }
  1315. // is_final: true }
  1316. //
  1317. // Notes:
  1318. //
  1319. // - Only two of the above responses #4 and #7 contain final results; they are
  1320. // indicated by `is_final: true`. Concatenating these together generates the
  1321. // full transcript: "to be or not to be that is the question".
  1322. //
  1323. // - The others contain interim `results`. #3 and #6 contain two interim
  1324. // `results`: the first portion has a high stability and is less likely to
  1325. // change; the second portion has a low stability and is very likely to
  1326. // change. A UI designer might choose to show only high stability `results`.
  1327. //
  1328. // - The specific `stability` and `confidence` values shown above are only for
  1329. // illustrative purposes. Actual values may vary.
  1330. //
  1331. // - In each response, only one of these fields will be set:
  1332. // `error`,
  1333. // `speech_event_type`, or
  1334. // one or more (repeated) `results`.
  1335. type StreamingRecognizeResponse struct {
  1336. // Output only. If set, returns a [google.rpc.Status][google.rpc.Status]
  1337. // message that specifies the error for the operation.
  1338. Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
  1339. // Output only. This repeated list contains zero or more results that
  1340. // correspond to consecutive portions of the audio currently being processed.
  1341. // It contains zero or one `is_final=true` result (the newly settled portion),
  1342. // followed by zero or more `is_final=false` results (the interim results).
  1343. Results []*StreamingRecognitionResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
  1344. // Output only. Indicates the type of speech event.
  1345. SpeechEventType StreamingRecognizeResponse_SpeechEventType `protobuf:"varint,4,opt,name=speech_event_type,json=speechEventType,proto3,enum=google.cloud.speech.v1p1beta1.StreamingRecognizeResponse_SpeechEventType" json:"speech_event_type,omitempty"`
  1346. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1347. XXX_unrecognized []byte `json:"-"`
  1348. XXX_sizecache int32 `json:"-"`
  1349. }
  1350. func (m *StreamingRecognizeResponse) Reset() { *m = StreamingRecognizeResponse{} }
  1351. func (m *StreamingRecognizeResponse) String() string { return proto.CompactTextString(m) }
  1352. func (*StreamingRecognizeResponse) ProtoMessage() {}
  1353. func (*StreamingRecognizeResponse) Descriptor() ([]byte, []int) {
  1354. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{11}
  1355. }
  1356. func (m *StreamingRecognizeResponse) XXX_Unmarshal(b []byte) error {
  1357. return xxx_messageInfo_StreamingRecognizeResponse.Unmarshal(m, b)
  1358. }
  1359. func (m *StreamingRecognizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1360. return xxx_messageInfo_StreamingRecognizeResponse.Marshal(b, m, deterministic)
  1361. }
  1362. func (dst *StreamingRecognizeResponse) XXX_Merge(src proto.Message) {
  1363. xxx_messageInfo_StreamingRecognizeResponse.Merge(dst, src)
  1364. }
  1365. func (m *StreamingRecognizeResponse) XXX_Size() int {
  1366. return xxx_messageInfo_StreamingRecognizeResponse.Size(m)
  1367. }
  1368. func (m *StreamingRecognizeResponse) XXX_DiscardUnknown() {
  1369. xxx_messageInfo_StreamingRecognizeResponse.DiscardUnknown(m)
  1370. }
  1371. var xxx_messageInfo_StreamingRecognizeResponse proto.InternalMessageInfo
  1372. func (m *StreamingRecognizeResponse) GetError() *status.Status {
  1373. if m != nil {
  1374. return m.Error
  1375. }
  1376. return nil
  1377. }
  1378. func (m *StreamingRecognizeResponse) GetResults() []*StreamingRecognitionResult {
  1379. if m != nil {
  1380. return m.Results
  1381. }
  1382. return nil
  1383. }
  1384. func (m *StreamingRecognizeResponse) GetSpeechEventType() StreamingRecognizeResponse_SpeechEventType {
  1385. if m != nil {
  1386. return m.SpeechEventType
  1387. }
  1388. return StreamingRecognizeResponse_SPEECH_EVENT_UNSPECIFIED
  1389. }
  1390. // A streaming speech recognition result corresponding to a portion of the audio
  1391. // that is currently being processed.
  1392. type StreamingRecognitionResult struct {
  1393. // Output only. May contain one or more recognition hypotheses (up to the
  1394. // maximum specified in `max_alternatives`).
  1395. // These alternatives are ordered in terms of accuracy, with the top (first)
  1396. // alternative being the most probable, as ranked by the recognizer.
  1397. Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
  1398. // Output only. If `false`, this `StreamingRecognitionResult` represents an
  1399. // interim result that may change. If `true`, this is the final time the
  1400. // speech service will return this particular `StreamingRecognitionResult`,
  1401. // the recognizer will not return any further hypotheses for this portion of
  1402. // the transcript and corresponding audio.
  1403. IsFinal bool `protobuf:"varint,2,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
  1404. // Output only. An estimate of the likelihood that the recognizer will not
  1405. // change its guess about this interim result. Values range from 0.0
  1406. // (completely unstable) to 1.0 (completely stable).
  1407. // This field is only provided for interim results (`is_final=false`).
  1408. // The default of 0.0 is a sentinel value indicating `stability` was not set.
  1409. Stability float32 `protobuf:"fixed32,3,opt,name=stability,proto3" json:"stability,omitempty"`
  1410. // Output only. Time offset of the end of this result relative to the
  1411. // beginning of the audio.
  1412. ResultEndTime *duration.Duration `protobuf:"bytes,4,opt,name=result_end_time,json=resultEndTime,proto3" json:"result_end_time,omitempty"`
  1413. // For multi-channel audio, this is the channel number corresponding to the
  1414. // recognized result for the audio from that channel.
  1415. // For audio_channel_count = N, its output values can range from '1' to 'N'.
  1416. ChannelTag int32 `protobuf:"varint,5,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"`
  1417. // Output only. The
  1418. // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
  1419. // language in this result. This language code was detected to have the most
  1420. // likelihood of being spoken in the audio.
  1421. LanguageCode string `protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
  1422. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1423. XXX_unrecognized []byte `json:"-"`
  1424. XXX_sizecache int32 `json:"-"`
  1425. }
  1426. func (m *StreamingRecognitionResult) Reset() { *m = StreamingRecognitionResult{} }
  1427. func (m *StreamingRecognitionResult) String() string { return proto.CompactTextString(m) }
  1428. func (*StreamingRecognitionResult) ProtoMessage() {}
  1429. func (*StreamingRecognitionResult) Descriptor() ([]byte, []int) {
  1430. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{12}
  1431. }
  1432. func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error {
  1433. return xxx_messageInfo_StreamingRecognitionResult.Unmarshal(m, b)
  1434. }
  1435. func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1436. return xxx_messageInfo_StreamingRecognitionResult.Marshal(b, m, deterministic)
  1437. }
  1438. func (dst *StreamingRecognitionResult) XXX_Merge(src proto.Message) {
  1439. xxx_messageInfo_StreamingRecognitionResult.Merge(dst, src)
  1440. }
  1441. func (m *StreamingRecognitionResult) XXX_Size() int {
  1442. return xxx_messageInfo_StreamingRecognitionResult.Size(m)
  1443. }
  1444. func (m *StreamingRecognitionResult) XXX_DiscardUnknown() {
  1445. xxx_messageInfo_StreamingRecognitionResult.DiscardUnknown(m)
  1446. }
  1447. var xxx_messageInfo_StreamingRecognitionResult proto.InternalMessageInfo
  1448. func (m *StreamingRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative {
  1449. if m != nil {
  1450. return m.Alternatives
  1451. }
  1452. return nil
  1453. }
  1454. func (m *StreamingRecognitionResult) GetIsFinal() bool {
  1455. if m != nil {
  1456. return m.IsFinal
  1457. }
  1458. return false
  1459. }
  1460. func (m *StreamingRecognitionResult) GetStability() float32 {
  1461. if m != nil {
  1462. return m.Stability
  1463. }
  1464. return 0
  1465. }
  1466. func (m *StreamingRecognitionResult) GetResultEndTime() *duration.Duration {
  1467. if m != nil {
  1468. return m.ResultEndTime
  1469. }
  1470. return nil
  1471. }
  1472. func (m *StreamingRecognitionResult) GetChannelTag() int32 {
  1473. if m != nil {
  1474. return m.ChannelTag
  1475. }
  1476. return 0
  1477. }
  1478. func (m *StreamingRecognitionResult) GetLanguageCode() string {
  1479. if m != nil {
  1480. return m.LanguageCode
  1481. }
  1482. return ""
  1483. }
  1484. // A speech recognition result corresponding to a portion of the audio.
  1485. type SpeechRecognitionResult struct {
  1486. // Output only. May contain one or more recognition hypotheses (up to the
  1487. // maximum specified in `max_alternatives`).
  1488. // These alternatives are ordered in terms of accuracy, with the top (first)
  1489. // alternative being the most probable, as ranked by the recognizer.
  1490. Alternatives []*SpeechRecognitionAlternative `protobuf:"bytes,1,rep,name=alternatives,proto3" json:"alternatives,omitempty"`
  1491. // For multi-channel audio, this is the channel number corresponding to the
  1492. // recognized result for the audio from that channel.
  1493. // For audio_channel_count = N, its output values can range from '1' to 'N'.
  1494. ChannelTag int32 `protobuf:"varint,2,opt,name=channel_tag,json=channelTag,proto3" json:"channel_tag,omitempty"`
  1495. // Output only. The
  1496. // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
  1497. // language in this result. This language code was detected to have the most
  1498. // likelihood of being spoken in the audio.
  1499. LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
  1500. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1501. XXX_unrecognized []byte `json:"-"`
  1502. XXX_sizecache int32 `json:"-"`
  1503. }
  1504. func (m *SpeechRecognitionResult) Reset() { *m = SpeechRecognitionResult{} }
  1505. func (m *SpeechRecognitionResult) String() string { return proto.CompactTextString(m) }
  1506. func (*SpeechRecognitionResult) ProtoMessage() {}
  1507. func (*SpeechRecognitionResult) Descriptor() ([]byte, []int) {
  1508. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{13}
  1509. }
  1510. func (m *SpeechRecognitionResult) XXX_Unmarshal(b []byte) error {
  1511. return xxx_messageInfo_SpeechRecognitionResult.Unmarshal(m, b)
  1512. }
  1513. func (m *SpeechRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1514. return xxx_messageInfo_SpeechRecognitionResult.Marshal(b, m, deterministic)
  1515. }
  1516. func (dst *SpeechRecognitionResult) XXX_Merge(src proto.Message) {
  1517. xxx_messageInfo_SpeechRecognitionResult.Merge(dst, src)
  1518. }
  1519. func (m *SpeechRecognitionResult) XXX_Size() int {
  1520. return xxx_messageInfo_SpeechRecognitionResult.Size(m)
  1521. }
  1522. func (m *SpeechRecognitionResult) XXX_DiscardUnknown() {
  1523. xxx_messageInfo_SpeechRecognitionResult.DiscardUnknown(m)
  1524. }
  1525. var xxx_messageInfo_SpeechRecognitionResult proto.InternalMessageInfo
  1526. func (m *SpeechRecognitionResult) GetAlternatives() []*SpeechRecognitionAlternative {
  1527. if m != nil {
  1528. return m.Alternatives
  1529. }
  1530. return nil
  1531. }
  1532. func (m *SpeechRecognitionResult) GetChannelTag() int32 {
  1533. if m != nil {
  1534. return m.ChannelTag
  1535. }
  1536. return 0
  1537. }
  1538. func (m *SpeechRecognitionResult) GetLanguageCode() string {
  1539. if m != nil {
  1540. return m.LanguageCode
  1541. }
  1542. return ""
  1543. }
  1544. // Alternative hypotheses (a.k.a. n-best list).
  1545. type SpeechRecognitionAlternative struct {
  1546. // Output only. Transcript text representing the words that the user spoke.
  1547. Transcript string `protobuf:"bytes,1,opt,name=transcript,proto3" json:"transcript,omitempty"`
  1548. // Output only. The confidence estimate between 0.0 and 1.0. A higher number
  1549. // indicates an estimated greater likelihood that the recognized words are
  1550. // correct. This field is set only for the top alternative of a non-streaming
  1551. // result or, of a streaming result where `is_final=true`.
  1552. // This field is not guaranteed to be accurate and users should not rely on it
  1553. // to be always provided.
  1554. // The default of 0.0 is a sentinel value indicating `confidence` was not set.
  1555. Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
  1556. // Output only. A list of word-specific information for each recognized word.
  1557. // Note: When `enable_speaker_diarization` is true, you will see all the words
  1558. // from the beginning of the audio.
  1559. Words []*WordInfo `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
  1560. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1561. XXX_unrecognized []byte `json:"-"`
  1562. XXX_sizecache int32 `json:"-"`
  1563. }
  1564. func (m *SpeechRecognitionAlternative) Reset() { *m = SpeechRecognitionAlternative{} }
  1565. func (m *SpeechRecognitionAlternative) String() string { return proto.CompactTextString(m) }
  1566. func (*SpeechRecognitionAlternative) ProtoMessage() {}
  1567. func (*SpeechRecognitionAlternative) Descriptor() ([]byte, []int) {
  1568. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{14}
  1569. }
  1570. func (m *SpeechRecognitionAlternative) XXX_Unmarshal(b []byte) error {
  1571. return xxx_messageInfo_SpeechRecognitionAlternative.Unmarshal(m, b)
  1572. }
  1573. func (m *SpeechRecognitionAlternative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1574. return xxx_messageInfo_SpeechRecognitionAlternative.Marshal(b, m, deterministic)
  1575. }
  1576. func (dst *SpeechRecognitionAlternative) XXX_Merge(src proto.Message) {
  1577. xxx_messageInfo_SpeechRecognitionAlternative.Merge(dst, src)
  1578. }
  1579. func (m *SpeechRecognitionAlternative) XXX_Size() int {
  1580. return xxx_messageInfo_SpeechRecognitionAlternative.Size(m)
  1581. }
  1582. func (m *SpeechRecognitionAlternative) XXX_DiscardUnknown() {
  1583. xxx_messageInfo_SpeechRecognitionAlternative.DiscardUnknown(m)
  1584. }
  1585. var xxx_messageInfo_SpeechRecognitionAlternative proto.InternalMessageInfo
  1586. func (m *SpeechRecognitionAlternative) GetTranscript() string {
  1587. if m != nil {
  1588. return m.Transcript
  1589. }
  1590. return ""
  1591. }
  1592. func (m *SpeechRecognitionAlternative) GetConfidence() float32 {
  1593. if m != nil {
  1594. return m.Confidence
  1595. }
  1596. return 0
  1597. }
  1598. func (m *SpeechRecognitionAlternative) GetWords() []*WordInfo {
  1599. if m != nil {
  1600. return m.Words
  1601. }
  1602. return nil
  1603. }
  1604. // Word-specific information for recognized words.
  1605. type WordInfo struct {
  1606. // Output only. Time offset relative to the beginning of the audio,
  1607. // and corresponding to the start of the spoken word.
  1608. // This field is only set if `enable_word_time_offsets=true` and only
  1609. // in the top hypothesis.
  1610. // This is an experimental feature and the accuracy of the time offset can
  1611. // vary.
  1612. StartTime *duration.Duration `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  1613. // Output only. Time offset relative to the beginning of the audio,
  1614. // and corresponding to the end of the spoken word.
  1615. // This field is only set if `enable_word_time_offsets=true` and only
  1616. // in the top hypothesis.
  1617. // This is an experimental feature and the accuracy of the time offset can
  1618. // vary.
  1619. EndTime *duration.Duration `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
  1620. // Output only. The word corresponding to this set of information.
  1621. Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"`
  1622. // Output only. The confidence estimate between 0.0 and 1.0. A higher number
  1623. // indicates an estimated greater likelihood that the recognized words are
  1624. // correct. This field is set only for the top alternative of a non-streaming
  1625. // result or, of a streaming result where `is_final=true`.
  1626. // This field is not guaranteed to be accurate and users should not rely on it
  1627. // to be always provided.
  1628. // The default of 0.0 is a sentinel value indicating `confidence` was not set.
  1629. Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
  1630. // Output only. A distinct integer value is assigned for every speaker within
  1631. // the audio. This field specifies which one of those speakers was detected to
  1632. // have spoken this word. Value ranges from '1' to diarization_speaker_count.
  1633. // speaker_tag is set if enable_speaker_diarization = 'true' and only in the
  1634. // top alternative.
  1635. SpeakerTag int32 `protobuf:"varint,5,opt,name=speaker_tag,json=speakerTag,proto3" json:"speaker_tag,omitempty"`
  1636. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1637. XXX_unrecognized []byte `json:"-"`
  1638. XXX_sizecache int32 `json:"-"`
  1639. }
  1640. func (m *WordInfo) Reset() { *m = WordInfo{} }
  1641. func (m *WordInfo) String() string { return proto.CompactTextString(m) }
  1642. func (*WordInfo) ProtoMessage() {}
  1643. func (*WordInfo) Descriptor() ([]byte, []int) {
  1644. return fileDescriptor_cloud_speech_9e62932d6cbd582d, []int{15}
  1645. }
  1646. func (m *WordInfo) XXX_Unmarshal(b []byte) error {
  1647. return xxx_messageInfo_WordInfo.Unmarshal(m, b)
  1648. }
  1649. func (m *WordInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1650. return xxx_messageInfo_WordInfo.Marshal(b, m, deterministic)
  1651. }
  1652. func (dst *WordInfo) XXX_Merge(src proto.Message) {
  1653. xxx_messageInfo_WordInfo.Merge(dst, src)
  1654. }
  1655. func (m *WordInfo) XXX_Size() int {
  1656. return xxx_messageInfo_WordInfo.Size(m)
  1657. }
  1658. func (m *WordInfo) XXX_DiscardUnknown() {
  1659. xxx_messageInfo_WordInfo.DiscardUnknown(m)
  1660. }
  1661. var xxx_messageInfo_WordInfo proto.InternalMessageInfo
  1662. func (m *WordInfo) GetStartTime() *duration.Duration {
  1663. if m != nil {
  1664. return m.StartTime
  1665. }
  1666. return nil
  1667. }
  1668. func (m *WordInfo) GetEndTime() *duration.Duration {
  1669. if m != nil {
  1670. return m.EndTime
  1671. }
  1672. return nil
  1673. }
  1674. func (m *WordInfo) GetWord() string {
  1675. if m != nil {
  1676. return m.Word
  1677. }
  1678. return ""
  1679. }
  1680. func (m *WordInfo) GetConfidence() float32 {
  1681. if m != nil {
  1682. return m.Confidence
  1683. }
  1684. return 0
  1685. }
  1686. func (m *WordInfo) GetSpeakerTag() int32 {
  1687. if m != nil {
  1688. return m.SpeakerTag
  1689. }
  1690. return 0
  1691. }
  1692. func init() {
  1693. proto.RegisterType((*RecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.RecognizeRequest")
  1694. proto.RegisterType((*LongRunningRecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest")
  1695. proto.RegisterType((*StreamingRecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.StreamingRecognizeRequest")
  1696. proto.RegisterType((*StreamingRecognitionConfig)(nil), "google.cloud.speech.v1p1beta1.StreamingRecognitionConfig")
  1697. proto.RegisterType((*RecognitionConfig)(nil), "google.cloud.speech.v1p1beta1.RecognitionConfig")
  1698. proto.RegisterType((*RecognitionMetadata)(nil), "google.cloud.speech.v1p1beta1.RecognitionMetadata")
  1699. proto.RegisterType((*SpeechContext)(nil), "google.cloud.speech.v1p1beta1.SpeechContext")
  1700. proto.RegisterType((*RecognitionAudio)(nil), "google.cloud.speech.v1p1beta1.RecognitionAudio")
  1701. proto.RegisterType((*RecognizeResponse)(nil), "google.cloud.speech.v1p1beta1.RecognizeResponse")
  1702. proto.RegisterType((*LongRunningRecognizeResponse)(nil), "google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse")
  1703. proto.RegisterType((*LongRunningRecognizeMetadata)(nil), "google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata")
  1704. proto.RegisterType((*StreamingRecognizeResponse)(nil), "google.cloud.speech.v1p1beta1.StreamingRecognizeResponse")
  1705. proto.RegisterType((*StreamingRecognitionResult)(nil), "google.cloud.speech.v1p1beta1.StreamingRecognitionResult")
  1706. proto.RegisterType((*SpeechRecognitionResult)(nil), "google.cloud.speech.v1p1beta1.SpeechRecognitionResult")
  1707. proto.RegisterType((*SpeechRecognitionAlternative)(nil), "google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative")
  1708. proto.RegisterType((*WordInfo)(nil), "google.cloud.speech.v1p1beta1.WordInfo")
  1709. proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionConfig_AudioEncoding", RecognitionConfig_AudioEncoding_name, RecognitionConfig_AudioEncoding_value)
  1710. proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_InteractionType", RecognitionMetadata_InteractionType_name, RecognitionMetadata_InteractionType_value)
  1711. proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_MicrophoneDistance", RecognitionMetadata_MicrophoneDistance_name, RecognitionMetadata_MicrophoneDistance_value)
  1712. proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_OriginalMediaType", RecognitionMetadata_OriginalMediaType_name, RecognitionMetadata_OriginalMediaType_value)
  1713. proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_RecordingDeviceType", RecognitionMetadata_RecordingDeviceType_name, RecognitionMetadata_RecordingDeviceType_value)
  1714. proto.RegisterEnum("google.cloud.speech.v1p1beta1.StreamingRecognizeResponse_SpeechEventType", StreamingRecognizeResponse_SpeechEventType_name, StreamingRecognizeResponse_SpeechEventType_value)
  1715. }
  1716. // Reference imports to suppress errors if they are not otherwise used.
  1717. var _ context.Context
  1718. var _ grpc.ClientConn
  1719. // This is a compile-time assertion to ensure that this generated file
  1720. // is compatible with the grpc package it is being compiled against.
  1721. const _ = grpc.SupportPackageIsVersion4
  1722. // SpeechClient is the client API for Speech service.
  1723. //
  1724. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1725. type SpeechClient interface {
  1726. // Performs synchronous speech recognition: receive results after all audio
  1727. // has been sent and processed.
  1728. Recognize(ctx context.Context, in *RecognizeRequest, opts ...grpc.CallOption) (*RecognizeResponse, error)
  1729. // Performs asynchronous speech recognition: receive results via the
  1730. // google.longrunning.Operations interface. Returns either an
  1731. // `Operation.error` or an `Operation.response` which contains
  1732. // a `LongRunningRecognizeResponse` message.
  1733. LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
  1734. // Performs bidirectional streaming speech recognition: receive results while
  1735. // sending audio. This method is only available via the gRPC API (not REST).
  1736. StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (Speech_StreamingRecognizeClient, error)
  1737. }
  1738. type speechClient struct {
  1739. cc *grpc.ClientConn
  1740. }
  1741. func NewSpeechClient(cc *grpc.ClientConn) SpeechClient {
  1742. return &speechClient{cc}
  1743. }
  1744. func (c *speechClient) Recognize(ctx context.Context, in *RecognizeRequest, opts ...grpc.CallOption) (*RecognizeResponse, error) {
  1745. out := new(RecognizeResponse)
  1746. err := c.cc.Invoke(ctx, "/google.cloud.speech.v1p1beta1.Speech/Recognize", in, out, opts...)
  1747. if err != nil {
  1748. return nil, err
  1749. }
  1750. return out, nil
  1751. }
  1752. func (c *speechClient) LongRunningRecognize(ctx context.Context, in *LongRunningRecognizeRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
  1753. out := new(longrunning.Operation)
  1754. err := c.cc.Invoke(ctx, "/google.cloud.speech.v1p1beta1.Speech/LongRunningRecognize", in, out, opts...)
  1755. if err != nil {
  1756. return nil, err
  1757. }
  1758. return out, nil
  1759. }
  1760. func (c *speechClient) StreamingRecognize(ctx context.Context, opts ...grpc.CallOption) (Speech_StreamingRecognizeClient, error) {
  1761. stream, err := c.cc.NewStream(ctx, &_Speech_serviceDesc.Streams[0], "/google.cloud.speech.v1p1beta1.Speech/StreamingRecognize", opts...)
  1762. if err != nil {
  1763. return nil, err
  1764. }
  1765. x := &speechStreamingRecognizeClient{stream}
  1766. return x, nil
  1767. }
  1768. type Speech_StreamingRecognizeClient interface {
  1769. Send(*StreamingRecognizeRequest) error
  1770. Recv() (*StreamingRecognizeResponse, error)
  1771. grpc.ClientStream
  1772. }
  1773. type speechStreamingRecognizeClient struct {
  1774. grpc.ClientStream
  1775. }
  1776. func (x *speechStreamingRecognizeClient) Send(m *StreamingRecognizeRequest) error {
  1777. return x.ClientStream.SendMsg(m)
  1778. }
  1779. func (x *speechStreamingRecognizeClient) Recv() (*StreamingRecognizeResponse, error) {
  1780. m := new(StreamingRecognizeResponse)
  1781. if err := x.ClientStream.RecvMsg(m); err != nil {
  1782. return nil, err
  1783. }
  1784. return m, nil
  1785. }
  1786. // SpeechServer is the server API for Speech service.
  1787. type SpeechServer interface {
  1788. // Performs synchronous speech recognition: receive results after all audio
  1789. // has been sent and processed.
  1790. Recognize(context.Context, *RecognizeRequest) (*RecognizeResponse, error)
  1791. // Performs asynchronous speech recognition: receive results via the
  1792. // google.longrunning.Operations interface. Returns either an
  1793. // `Operation.error` or an `Operation.response` which contains
  1794. // a `LongRunningRecognizeResponse` message.
  1795. LongRunningRecognize(context.Context, *LongRunningRecognizeRequest) (*longrunning.Operation, error)
  1796. // Performs bidirectional streaming speech recognition: receive results while
  1797. // sending audio. This method is only available via the gRPC API (not REST).
  1798. StreamingRecognize(Speech_StreamingRecognizeServer) error
  1799. }
  1800. func RegisterSpeechServer(s *grpc.Server, srv SpeechServer) {
  1801. s.RegisterService(&_Speech_serviceDesc, srv)
  1802. }
  1803. func _Speech_Recognize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1804. in := new(RecognizeRequest)
  1805. if err := dec(in); err != nil {
  1806. return nil, err
  1807. }
  1808. if interceptor == nil {
  1809. return srv.(SpeechServer).Recognize(ctx, in)
  1810. }
  1811. info := &grpc.UnaryServerInfo{
  1812. Server: srv,
  1813. FullMethod: "/google.cloud.speech.v1p1beta1.Speech/Recognize",
  1814. }
  1815. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1816. return srv.(SpeechServer).Recognize(ctx, req.(*RecognizeRequest))
  1817. }
  1818. return interceptor(ctx, in, info, handler)
  1819. }
  1820. func _Speech_LongRunningRecognize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1821. in := new(LongRunningRecognizeRequest)
  1822. if err := dec(in); err != nil {
  1823. return nil, err
  1824. }
  1825. if interceptor == nil {
  1826. return srv.(SpeechServer).LongRunningRecognize(ctx, in)
  1827. }
  1828. info := &grpc.UnaryServerInfo{
  1829. Server: srv,
  1830. FullMethod: "/google.cloud.speech.v1p1beta1.Speech/LongRunningRecognize",
  1831. }
  1832. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1833. return srv.(SpeechServer).LongRunningRecognize(ctx, req.(*LongRunningRecognizeRequest))
  1834. }
  1835. return interceptor(ctx, in, info, handler)
  1836. }
  1837. func _Speech_StreamingRecognize_Handler(srv interface{}, stream grpc.ServerStream) error {
  1838. return srv.(SpeechServer).StreamingRecognize(&speechStreamingRecognizeServer{stream})
  1839. }
  1840. type Speech_StreamingRecognizeServer interface {
  1841. Send(*StreamingRecognizeResponse) error
  1842. Recv() (*StreamingRecognizeRequest, error)
  1843. grpc.ServerStream
  1844. }
  1845. type speechStreamingRecognizeServer struct {
  1846. grpc.ServerStream
  1847. }
  1848. func (x *speechStreamingRecognizeServer) Send(m *StreamingRecognizeResponse) error {
  1849. return x.ServerStream.SendMsg(m)
  1850. }
  1851. func (x *speechStreamingRecognizeServer) Recv() (*StreamingRecognizeRequest, error) {
  1852. m := new(StreamingRecognizeRequest)
  1853. if err := x.ServerStream.RecvMsg(m); err != nil {
  1854. return nil, err
  1855. }
  1856. return m, nil
  1857. }
  1858. var _Speech_serviceDesc = grpc.ServiceDesc{
  1859. ServiceName: "google.cloud.speech.v1p1beta1.Speech",
  1860. HandlerType: (*SpeechServer)(nil),
  1861. Methods: []grpc.MethodDesc{
  1862. {
  1863. MethodName: "Recognize",
  1864. Handler: _Speech_Recognize_Handler,
  1865. },
  1866. {
  1867. MethodName: "LongRunningRecognize",
  1868. Handler: _Speech_LongRunningRecognize_Handler,
  1869. },
  1870. },
  1871. Streams: []grpc.StreamDesc{
  1872. {
  1873. StreamName: "StreamingRecognize",
  1874. Handler: _Speech_StreamingRecognize_Handler,
  1875. ServerStreams: true,
  1876. ClientStreams: true,
  1877. },
  1878. },
  1879. Metadata: "google/cloud/speech/v1p1beta1/cloud_speech.proto",
  1880. }
  1881. func init() {
  1882. proto.RegisterFile("google/cloud/speech/v1p1beta1/cloud_speech.proto", fileDescriptor_cloud_speech_9e62932d6cbd582d)
  1883. }
  1884. var fileDescriptor_cloud_speech_9e62932d6cbd582d = []byte{
  1885. // 2178 bytes of a gzipped FileDescriptorProto
  1886. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xbf, 0x73, 0xdb, 0xc8,
  1887. 0xf5, 0x37, 0x48, 0x51, 0x12, 0x9f, 0x7e, 0x41, 0x2b, 0xdf, 0x89, 0x96, 0x75, 0x67, 0x1b, 0x9e,
  1888. 0x3b, 0xfb, 0xee, 0x7b, 0x43, 0xd9, 0xfa, 0xde, 0x5c, 0xce, 0xbe, 0xe4, 0x26, 0x14, 0x00, 0x99,
  1889. 0x98, 0x21, 0x09, 0xce, 0x92, 0xb2, 0xe3, 0x6b, 0x76, 0x56, 0xc4, 0x92, 0xc2, 0x84, 0x04, 0x10,
  1890. 0x60, 0xe1, 0x58, 0x2e, 0xd3, 0xa6, 0x48, 0x91, 0x99, 0x74, 0xa9, 0x72, 0x75, 0xfe, 0x80, 0x34,
  1891. 0x97, 0x26, 0x4d, 0x9a, 0x14, 0xe9, 0x52, 0xa5, 0xc8, 0x7f, 0x90, 0x26, 0x33, 0x69, 0x32, 0xbb,
  1892. 0x0b, 0x50, 0x10, 0x29, 0x5b, 0xb6, 0x26, 0x37, 0x93, 0x0e, 0xfb, 0x79, 0x3f, 0xf6, 0xbd, 0xb7,
  1893. 0x6f, 0xdf, 0xbe, 0x07, 0x78, 0x30, 0x0a, 0xc3, 0xd1, 0x98, 0xed, 0x0d, 0xc6, 0x61, 0xea, 0xed,
  1894. 0x25, 0x11, 0x63, 0x83, 0x93, 0xbd, 0x17, 0x0f, 0xa3, 0x87, 0xc7, 0x8c, 0xd3, 0x87, 0x0a, 0x26,
  1895. 0x0a, 0xae, 0x47, 0x71, 0xc8, 0x43, 0xf4, 0x81, 0x92, 0xa8, 0x4b, 0x52, 0x3d, 0x23, 0x4d, 0x25,
  1896. 0x76, 0x76, 0x33, 0x85, 0x34, 0xf2, 0xf7, 0x68, 0x10, 0x84, 0x9c, 0x72, 0x3f, 0x0c, 0x12, 0x25,
  1897. 0xbc, 0x73, 0x37, 0xa3, 0x8e, 0xc3, 0x60, 0x14, 0xa7, 0x41, 0xe0, 0x07, 0xa3, 0xbd, 0x30, 0x62,
  1898. 0xf1, 0x39, 0xa6, 0x1b, 0x19, 0x93, 0x5c, 0x1d, 0xa7, 0xc3, 0x3d, 0x1a, 0x9c, 0x66, 0xa4, 0x0f,
  1899. 0x67, 0x49, 0x5e, 0xaa, 0x64, 0x33, 0xfa, 0xcd, 0x59, 0x3a, 0x9b, 0x44, 0x3c, 0x17, 0xbe, 0x35,
  1900. 0x4b, 0xe4, 0xfe, 0x84, 0x25, 0x9c, 0x4e, 0xa2, 0x8c, 0x61, 0x3b, 0x63, 0x88, 0xa3, 0xc1, 0x5e,
  1901. 0xc2, 0x29, 0x4f, 0x33, 0x8b, 0x8c, 0xdf, 0x69, 0xa0, 0x63, 0x36, 0x08, 0x47, 0x81, 0xff, 0x8a,
  1902. 0x61, 0xf6, 0xb3, 0x94, 0x25, 0x1c, 0x35, 0x61, 0x71, 0x10, 0x06, 0x43, 0x7f, 0x54, 0xd3, 0x6e,
  1903. 0x6b, 0xf7, 0x57, 0xf6, 0x1f, 0xd4, 0xdf, 0x18, 0x99, 0x7a, 0xa6, 0x40, 0x58, 0x6b, 0x4a, 0x39,
  1904. 0x9c, 0xc9, 0x23, 0x1b, 0x2a, 0x34, 0xf5, 0xfc, 0xb0, 0x56, 0x92, 0x8a, 0xf6, 0xde, 0x5e, 0x51,
  1905. 0x43, 0x88, 0x61, 0x25, 0x6d, 0xfc, 0x5e, 0x83, 0x9b, 0xad, 0x30, 0x18, 0x61, 0x15, 0xd8, 0xff,
  1906. 0x7d, 0x83, 0xbf, 0xd3, 0xe0, 0x46, 0x8f, 0xc7, 0x8c, 0x4e, 0x2e, 0x32, 0x77, 0x08, 0x7a, 0x92,
  1907. 0x13, 0xc9, 0x39, 0xc3, 0x1f, 0x5d, 0xb2, 0xdf, 0xac, 0xce, 0x33, 0x0f, 0x9a, 0xd7, 0xf0, 0xc6,
  1908. 0x54, 0xa9, 0x82, 0xd0, 0x47, 0xb0, 0x26, 0xcd, 0x11, 0x7b, 0x70, 0x16, 0x70, 0xe9, 0xd4, 0x6a,
  1909. 0xf3, 0x1a, 0x5e, 0x95, 0xb0, 0xa9, 0xd0, 0x83, 0x2d, 0xd8, 0x3c, 0x33, 0x27, 0x56, 0x36, 0x1a,
  1910. 0x7f, 0xd0, 0x60, 0xe7, 0xf5, 0xbb, 0xfd, 0x17, 0x23, 0xfe, 0x09, 0xe8, 0x89, 0x1f, 0x8c, 0xc6,
  1911. 0x8c, 0xa4, 0x9c, 0xb3, 0x98, 0x06, 0x03, 0x26, 0xed, 0x5c, 0xc6, 0x1b, 0x0a, 0x3f, 0xca, 0x61,
  1912. 0x74, 0x0f, 0x36, 0xfc, 0x80, 0xb3, 0xd8, 0x9f, 0x90, 0x98, 0x25, 0xe9, 0x98, 0x27, 0xb5, 0xb2,
  1913. 0xe4, 0x5c, 0xcf, 0x60, 0xac, 0x50, 0xe3, 0x9f, 0xcb, 0xb0, 0x39, 0x6f, 0xf3, 0x37, 0xb0, 0xcc,
  1914. 0x82, 0x41, 0xe8, 0xf9, 0x81, 0xb2, 0x7a, 0x7d, 0xff, 0xeb, 0x77, 0xb5, 0xba, 0x2e, 0x4f, 0xd9,
  1915. 0xce, 0xb4, 0xe0, 0xa9, 0x3e, 0xf4, 0x29, 0x6c, 0x26, 0x74, 0x12, 0x8d, 0x19, 0x89, 0x29, 0x67,
  1916. 0xe4, 0x84, 0xc5, 0xfc, 0x95, 0x74, 0xa3, 0x82, 0x37, 0x14, 0x01, 0x53, 0xce, 0x9a, 0x02, 0x46,
  1917. 0x75, 0xd8, 0xca, 0x8e, 0xe5, 0x84, 0x06, 0x01, 0x1b, 0x93, 0x41, 0x98, 0x06, 0xbc, 0xb6, 0x24,
  1918. 0xb9, 0x37, 0xd5, 0xd1, 0x28, 0x8a, 0x29, 0x08, 0xa8, 0x0f, 0xf7, 0x58, 0x40, 0x8f, 0xc7, 0x8c,
  1919. 0x24, 0x2c, 0xa2, 0x52, 0x7f, 0x7c, 0x66, 0x18, 0x89, 0x58, 0x9c, 0x6b, 0xaa, 0xad, 0xca, 0x70,
  1920. 0xdc, 0x55, 0xec, 0xbd, 0x8c, 0xbb, 0xe0, 0x45, 0x97, 0xc5, 0x99, 0x6a, 0x74, 0x17, 0xd6, 0xc6,
  1921. 0x34, 0x18, 0xa5, 0x74, 0xc4, 0xc8, 0x20, 0xf4, 0x98, 0x0c, 0x65, 0x15, 0xaf, 0xe6, 0xa0, 0x19,
  1922. 0x7a, 0x0c, 0xfd, 0x10, 0x76, 0xe8, 0x98, 0xb3, 0x38, 0xa0, 0xdc, 0x7f, 0xc1, 0xc8, 0x39, 0x81,
  1923. 0xa4, 0x86, 0x6e, 0x97, 0xef, 0x57, 0x71, 0xad, 0xc0, 0xd1, 0x2a, 0x08, 0x27, 0xe2, 0x68, 0x27,
  1924. 0xf4, 0x25, 0x29, 0xd0, 0x93, 0xda, 0x82, 0x8a, 0xc9, 0x84, 0xbe, 0x6c, 0x14, 0x60, 0xc1, 0x1a,
  1925. 0xc5, 0xe1, 0x90, 0x06, 0x3e, 0x3f, 0x25, 0x43, 0x5f, 0x90, 0x6a, 0x15, 0x95, 0x05, 0x53, 0xfc,
  1926. 0x50, 0xc2, 0xe8, 0x08, 0x36, 0xd4, 0x41, 0xa9, 0xb4, 0x7e, 0xc9, 0x93, 0xda, 0xe2, 0xed, 0xf2,
  1927. 0xfd, 0x95, 0xfd, 0xcf, 0x2e, 0xbb, 0x3c, 0x12, 0x30, 0x95, 0x10, 0x5e, 0x4f, 0x8a, 0xcb, 0x04,
  1928. 0xfd, 0x00, 0x6a, 0x59, 0x94, 0x7f, 0x1e, 0xc6, 0x1e, 0x11, 0x15, 0x94, 0x84, 0xc3, 0x61, 0xc2,
  1929. 0x78, 0x52, 0x5b, 0x96, 0x96, 0xbc, 0xa7, 0xe8, 0xcf, 0xc2, 0xd8, 0xeb, 0xfb, 0x13, 0xe6, 0x2a,
  1930. 0x22, 0xfa, 0x1c, 0xde, 0x2f, 0x0a, 0xca, 0xb4, 0xf6, 0x98, 0x48, 0xe3, 0x0d, 0x29, 0x76, 0xfd,
  1931. 0x4c, 0xcc, 0x9c, 0xd2, 0xd0, 0x8f, 0x61, 0x37, 0x93, 0xa2, 0x29, 0x0f, 0x27, 0x94, 0xfb, 0x03,
  1932. 0x12, 0xa5, 0xc1, 0x80, 0xa7, 0xb2, 0xea, 0xd7, 0x56, 0xa4, 0xec, 0x8e, 0xe2, 0x69, 0xe4, 0x2c,
  1933. 0xdd, 0x33, 0x0e, 0x71, 0x36, 0x79, 0x5a, 0x44, 0x8c, 0xfe, 0x94, 0xc5, 0xc4, 0xf3, 0x69, 0xec,
  1934. 0xbf, 0x52, 0xf2, 0xba, 0x94, 0xcf, 0x5c, 0xea, 0x29, 0x06, 0xeb, 0x8c, 0x8e, 0x1e, 0xc3, 0x8d,
  1935. 0x02, 0xfb, 0x54, 0x85, 0x4a, 0xc5, 0x4d, 0x79, 0x48, 0xdb, 0x05, 0x86, 0x4c, 0x83, 0x4a, 0xc8,
  1936. 0x0e, 0x2c, 0x4f, 0x18, 0xa7, 0x1e, 0xe5, 0xb4, 0x56, 0x95, 0xd7, 0x7f, 0xff, 0xed, 0x2f, 0x52,
  1937. 0x3b, 0x93, 0xc4, 0x53, 0x1d, 0xe8, 0x3a, 0x54, 0x26, 0xa1, 0xc7, 0xc6, 0xb5, 0x35, 0x99, 0x82,
  1938. 0x6a, 0x81, 0xee, 0xc0, 0x6a, 0x9a, 0x30, 0xc2, 0x82, 0x13, 0x71, 0xf9, 0xbd, 0xda, 0xba, 0xf4,
  1939. 0x68, 0x25, 0x4d, 0x98, 0x9d, 0x41, 0xc6, 0x2f, 0x35, 0x58, 0x3b, 0x77, 0x23, 0x51, 0x0d, 0xae,
  1940. 0xdb, 0x1d, 0xd3, 0xb5, 0x9c, 0xce, 0x13, 0x72, 0xd4, 0xe9, 0x75, 0x6d, 0xd3, 0x39, 0x74, 0x6c,
  1941. 0x4b, 0xbf, 0x86, 0x56, 0x61, 0xb9, 0xe5, 0x74, 0xec, 0x06, 0x7e, 0xf8, 0x85, 0xae, 0xa1, 0x65,
  1942. 0x58, 0x38, 0x6c, 0x35, 0x4c, 0xbd, 0x84, 0xaa, 0x50, 0x69, 0x1f, 0xb5, 0x1a, 0xcf, 0xf4, 0x32,
  1943. 0x5a, 0x82, 0x72, 0xa3, 0x8d, 0xf5, 0x05, 0x04, 0xb0, 0xd8, 0x68, 0x63, 0xf2, 0xec, 0x40, 0xaf,
  1944. 0x08, 0x39, 0xf7, 0xc9, 0x13, 0xe2, 0x76, 0x8f, 0x7a, 0xfa, 0x22, 0xda, 0x81, 0xf7, 0x7b, 0x5d,
  1945. 0xdb, 0xfe, 0x09, 0x79, 0xe6, 0xf4, 0x9b, 0xa4, 0x69, 0x37, 0x2c, 0x1b, 0x93, 0x83, 0xe7, 0x7d,
  1946. 0x5b, 0x5f, 0x32, 0xfe, 0x5d, 0x85, 0xad, 0x0b, 0x1c, 0x45, 0x13, 0xd0, 0x65, 0x7d, 0xa2, 0x03,
  1947. 0x19, 0x6a, 0x7e, 0x1a, 0xb1, 0xac, 0xfe, 0x1c, 0xbc, 0x7b, 0xd8, 0xea, 0xce, 0x99, 0xaa, 0xfe,
  1948. 0x69, 0xc4, 0xf0, 0x86, 0x7f, 0x1e, 0x40, 0x5f, 0xc3, 0xae, 0x1f, 0x78, 0x69, 0xc2, 0xe3, 0x53,
  1949. 0x12, 0x50, 0x7f, 0x90, 0xc8, 0xdb, 0x4a, 0xc2, 0x21, 0x51, 0x2f, 0x9b, 0xb8, 0xe7, 0x6b, 0xb8,
  1950. 0x96, 0xf3, 0x74, 0x04, 0x8b, 0xb8, 0xaf, 0xee, 0x50, 0x86, 0x12, 0xbd, 0x80, 0xad, 0x89, 0x3f,
  1951. 0x88, 0xc3, 0xe8, 0x24, 0x0c, 0x18, 0xf1, 0xfc, 0x84, 0xcb, 0x9a, 0xbc, 0x20, 0x2d, 0xb6, 0xaf,
  1952. 0x60, 0x71, 0x7b, 0xaa, 0xcd, 0xca, 0x94, 0x61, 0x34, 0x99, 0xc3, 0x10, 0x87, 0xad, 0x30, 0xf6,
  1953. 0x47, 0x7e, 0x40, 0xc7, 0x64, 0xc2, 0x3c, 0x9f, 0xaa, 0x48, 0x55, 0xe4, 0xbe, 0xd6, 0x15, 0xf6,
  1954. 0x75, 0x33, 0x6d, 0x6d, 0xa1, 0x4c, 0xc6, 0x6a, 0x33, 0x9c, 0x85, 0xd0, 0x2b, 0x78, 0x4f, 0x14,
  1955. 0xd3, 0x58, 0x64, 0x0f, 0xf1, 0xd8, 0x0b, 0x7f, 0xc0, 0xd4, 0xbe, 0x8b, 0x72, 0xdf, 0xc3, 0x2b,
  1956. 0xec, 0x8b, 0x73, 0x7d, 0x96, 0x54, 0x27, 0x77, 0xde, 0x8a, 0xe7, 0x41, 0xb4, 0x7f, 0xc1, 0xde,
  1957. 0x01, 0x9d, 0x30, 0xf9, 0x14, 0x54, 0xe7, 0x64, 0x3a, 0x74, 0xc2, 0xd0, 0x67, 0x80, 0xce, 0xa2,
  1958. 0x24, 0x6a, 0x94, 0x34, 0x76, 0x59, 0x0a, 0xe8, 0x53, 0xf7, 0xfc, 0x89, 0xda, 0xe1, 0x2e, 0xac,
  1959. 0x85, 0xc7, 0xc3, 0x34, 0x19, 0x50, 0xce, 0x3c, 0xe2, 0x7b, 0xf2, 0xba, 0x96, 0xf1, 0xea, 0x19,
  1960. 0xe8, 0x78, 0xe8, 0x16, 0xac, 0xa8, 0xf7, 0x88, 0x87, 0x91, 0x3f, 0xa8, 0x81, 0xd4, 0x05, 0x12,
  1961. 0xea, 0x0b, 0xc4, 0xf8, 0x93, 0x06, 0x1b, 0x33, 0x69, 0x87, 0x6e, 0xc3, 0xae, 0xd3, 0xe9, 0xdb,
  1962. 0xb8, 0x61, 0xf6, 0x1d, 0xb7, 0x43, 0xfa, 0xcf, 0xbb, 0xf6, 0xcc, 0x85, 0x5b, 0x07, 0xb0, 0x9c,
  1963. 0x9e, 0x79, 0xd4, 0xeb, 0x39, 0x6e, 0x47, 0xd7, 0x90, 0x0e, 0xab, 0x5d, 0x6c, 0xf7, 0xec, 0x4e,
  1964. 0xbf, 0x21, 0x44, 0xf4, 0x92, 0xe0, 0xe8, 0x36, 0xdd, 0x8e, 0x4d, 0xcc, 0x46, 0xab, 0xa5, 0x97,
  1965. 0xd1, 0x1a, 0x54, 0x9f, 0xba, 0x8e, 0x69, 0xb7, 0x1b, 0x4e, 0x4b, 0x5f, 0x40, 0x37, 0x61, 0xbb,
  1966. 0x8b, 0xdd, 0x43, 0x5b, 0x2a, 0x68, 0xb4, 0x5a, 0xcf, 0x49, 0x17, 0xbb, 0xd6, 0x91, 0x69, 0x5b,
  1967. 0x7a, 0x45, 0x68, 0x93, 0xbc, 0xa4, 0x67, 0x37, 0xb0, 0xd9, 0xd4, 0x17, 0xd1, 0x26, 0xac, 0x29,
  1968. 0xc4, 0x74, 0xdb, 0xed, 0x46, 0xc7, 0xd2, 0x97, 0x84, 0x42, 0xcb, 0x31, 0xb3, 0xfd, 0x96, 0x0d,
  1969. 0x0f, 0xd0, 0x7c, 0x2e, 0xa2, 0xbb, 0x70, 0xab, 0xed, 0x98, 0xd8, 0x55, 0xa6, 0x58, 0x4e, 0xaf,
  1970. 0xdf, 0xe8, 0x98, 0xb3, 0xce, 0xac, 0x41, 0x55, 0xd4, 0x8e, 0x43, 0xc7, 0x6e, 0x59, 0xba, 0x26,
  1971. 0x8a, 0x42, 0xdb, 0xb1, 0xd4, 0xaa, 0x24, 0x56, 0x87, 0x39, 0xad, 0x6c, 0x74, 0x60, 0x73, 0x2e,
  1972. 0xf3, 0xc4, 0x26, 0x2e, 0x76, 0x9e, 0x38, 0x9d, 0x46, 0x8b, 0xb4, 0x6d, 0xcb, 0x69, 0x5c, 0x14,
  1973. 0xb1, 0x2a, 0x54, 0x1a, 0x47, 0x96, 0xe3, 0xea, 0x9a, 0xf8, 0x7c, 0xea, 0x58, 0xb6, 0xab, 0x97,
  1974. 0x8c, 0x6f, 0x35, 0x55, 0x56, 0x66, 0xb3, 0xe7, 0x23, 0xb8, 0x83, 0x6d, 0xd3, 0xc5, 0xb2, 0xd6,
  1975. 0x59, 0xf6, 0x53, 0xe1, 0xfa, 0xc5, 0xc7, 0xd0, 0x6b, 0x37, 0x70, 0x5f, 0xba, 0xa7, 0x6b, 0x68,
  1976. 0x11, 0x4a, 0x5d, 0xb3, 0x18, 0x7c, 0x51, 0x15, 0xf5, 0x32, 0x5a, 0x81, 0xa5, 0xa7, 0x76, 0xd3,
  1977. 0x31, 0x5b, 0xb6, 0xbe, 0x20, 0xca, 0xa8, 0xdb, 0x6f, 0xda, 0x98, 0xb8, 0x47, 0x7d, 0xcb, 0x75,
  1978. 0x71, 0xa6, 0x5f, 0xaf, 0xa0, 0x6d, 0xd8, 0x52, 0x14, 0xa7, 0x53, 0x24, 0x2c, 0x1a, 0x9f, 0xc0,
  1979. 0xda, 0xb9, 0x07, 0x16, 0xd5, 0x60, 0x29, 0x3a, 0x89, 0x69, 0xc2, 0x92, 0x9a, 0x26, 0x1b, 0x85,
  1980. 0x7c, 0x69, 0xe0, 0xe9, 0xcc, 0x31, 0x6d, 0x9c, 0xd1, 0x0e, 0x2c, 0xe5, 0x5d, 0xaa, 0x96, 0x75,
  1981. 0xa9, 0x39, 0x80, 0x10, 0x94, 0xd3, 0xd8, 0x97, 0xed, 0x54, 0xb5, 0x79, 0x0d, 0x8b, 0xc5, 0xc1,
  1982. 0x3a, 0xa8, 0x26, 0x96, 0x24, 0x61, 0x1a, 0x0f, 0x98, 0xc1, 0xa6, 0x1d, 0x9f, 0xe8, 0xb3, 0x93,
  1983. 0x28, 0x0c, 0x12, 0x86, 0xba, 0xb0, 0x94, 0x37, 0x8a, 0x25, 0xd9, 0x22, 0x7c, 0xf1, 0x56, 0x2d,
  1984. 0x42, 0xc1, 0x38, 0xd5, 0x51, 0xe2, 0x5c, 0x8d, 0x11, 0xc1, 0xee, 0xc5, 0x83, 0xc8, 0xf7, 0xb6,
  1985. 0xe3, 0x9f, 0xb5, 0x8b, 0xb7, 0x9c, 0x3e, 0x2f, 0xaa, 0x75, 0x1a, 0xc5, 0x2c, 0x49, 0x44, 0x2f,
  1986. 0x38, 0xc8, 0x43, 0x58, 0x91, 0xad, 0x93, 0xc4, 0xbb, 0x0a, 0x46, 0x8f, 0x00, 0x12, 0x4e, 0x63,
  1987. 0x2e, 0xbb, 0x9b, 0x6c, 0xc4, 0xd9, 0xc9, 0x0d, 0xcc, 0x87, 0xc7, 0x7a, 0x3f, 0x1f, 0x1e, 0x71,
  1988. 0x55, 0x72, 0x8b, 0x35, 0xb2, 0x40, 0x1f, 0xd3, 0x84, 0x93, 0x34, 0xf2, 0x44, 0x03, 0x2a, 0x15,
  1989. 0x94, 0x2f, 0x55, 0xb0, 0x2e, 0x64, 0x8e, 0xa4, 0x88, 0x00, 0x8d, 0xbf, 0x97, 0xe6, 0xa7, 0x8a,
  1990. 0x42, 0xf4, 0xee, 0x43, 0x85, 0xc5, 0x71, 0x18, 0x67, 0x43, 0x05, 0xca, 0x35, 0xc7, 0xd1, 0xa0,
  1991. 0xde, 0x93, 0x63, 0x2b, 0x56, 0x0c, 0xa8, 0x37, 0x1b, 0xe7, 0xab, 0x4c, 0x4e, 0x33, 0xa1, 0x46,
  1992. 0x29, 0x6c, 0x66, 0x9d, 0x25, 0x7b, 0xc1, 0x02, 0xae, 0x4a, 0xab, 0x7a, 0xf7, 0x9c, 0x77, 0x54,
  1993. 0x7f, 0xe6, 0x54, 0x76, 0xc2, 0xb6, 0xd0, 0xa8, 0x1e, 0xec, 0xe4, 0x3c, 0x60, 0xb4, 0x60, 0x63,
  1994. 0x86, 0x07, 0xed, 0x42, 0x4d, 0xb4, 0x19, 0x66, 0x93, 0xd8, 0x4f, 0xed, 0x4e, 0x7f, 0xe6, 0x4a,
  1995. 0xdf, 0x84, 0x6d, 0xbb, 0x63, 0x11, 0xf7, 0x90, 0xf4, 0x9c, 0xce, 0x93, 0x96, 0x4d, 0x8e, 0xfa,
  1996. 0xa2, 0x12, 0x77, 0x4c, 0x5b, 0xd7, 0x8c, 0xef, 0x4a, 0x17, 0x0f, 0x6e, 0xca, 0x59, 0x44, 0x60,
  1997. 0xf5, 0x5c, 0x3f, 0xae, 0xc9, 0xe8, 0x7d, 0xf5, 0xae, 0x59, 0x5a, 0x68, 0xde, 0xf1, 0x39, 0x85,
  1998. 0xe8, 0x06, 0x2c, 0xfb, 0x09, 0x19, 0x8a, 0xf2, 0x97, 0xcd, 0x71, 0x4b, 0x7e, 0x72, 0x28, 0x96,
  1999. 0x68, 0x17, 0x44, 0x42, 0x1d, 0xfb, 0x63, 0x9f, 0x9f, 0xca, 0xe4, 0x29, 0xe1, 0x33, 0x00, 0x35,
  2000. 0x60, 0x43, 0x1d, 0x04, 0x61, 0x81, 0xea, 0xbf, 0x65, 0xec, 0x57, 0xf6, 0x6f, 0xcc, 0x25, 0x98,
  2001. 0x95, 0xfd, 0x1b, 0xc1, 0x6b, 0x4a, 0xc2, 0x0e, 0x64, 0x47, 0x2e, 0x5e, 0xb2, 0x7c, 0xa6, 0xe2,
  2002. 0x74, 0x24, 0x5b, 0x87, 0x0a, 0x86, 0x0c, 0xea, 0xd3, 0xd1, 0xfc, 0xd0, 0xb3, 0x38, 0x3f, 0xf4,
  2003. 0x18, 0x7f, 0xd4, 0x60, 0xfb, 0x35, 0xd7, 0xf2, 0xfb, 0x0f, 0xdf, 0x8c, 0x0b, 0xa5, 0xcb, 0x5d,
  2004. 0xa8, 0x5c, 0xe0, 0xc2, 0x6f, 0x35, 0xd8, 0x7d, 0xd3, 0xa6, 0xe8, 0x43, 0x00, 0x1e, 0xd3, 0x20,
  2005. 0x19, 0xc4, 0x7e, 0xa4, 0xca, 0x45, 0x15, 0x17, 0x10, 0x41, 0x2f, 0x0c, 0x32, 0x25, 0x79, 0x56,
  2006. 0x05, 0x04, 0xfd, 0x08, 0x2a, 0x62, 0xda, 0x11, 0x03, 0xb8, 0x08, 0xc0, 0xbd, 0x4b, 0x02, 0x20,
  2007. 0x86, 0x1f, 0x27, 0x18, 0x86, 0x58, 0x49, 0x19, 0x7f, 0xd1, 0x60, 0x39, 0xc7, 0xd0, 0x97, 0xe7,
  2008. 0xaa, 0x92, 0x76, 0xd9, 0x99, 0x17, 0x8a, 0xd2, 0xe7, 0x62, 0xa2, 0xf7, 0x8a, 0xd5, 0xec, 0x0d,
  2009. 0x72, 0x4b, 0x2c, 0xcb, 0x12, 0x04, 0x0b, 0xc2, 0x8a, 0x6c, 0xe0, 0x95, 0xdf, 0x33, 0xfe, 0x2e,
  2010. 0xcc, 0xf9, 0x7b, 0x0b, 0x56, 0xf2, 0x11, 0xa9, 0x90, 0x59, 0x19, 0xd4, 0xa7, 0xa3, 0xfd, 0xbf,
  2011. 0x95, 0x61, 0x51, 0x45, 0x1c, 0xfd, 0x46, 0x83, 0xea, 0xb4, 0x0c, 0xa0, 0xb7, 0xfc, 0x85, 0x34,
  2012. 0xfd, 0x3b, 0xb4, 0xf3, 0xe0, 0xed, 0x05, 0x54, 0x85, 0x31, 0x3e, 0xfe, 0xc5, 0x5f, 0xff, 0xf1,
  2013. 0xeb, 0xd2, 0x6d, 0xe3, 0x66, 0xe1, 0xff, 0xa6, 0x12, 0x7b, 0x1c, 0xe7, 0xcc, 0x8f, 0xb5, 0x4f,
  2014. 0xd1, 0xb7, 0x1a, 0x5c, 0xbf, 0xe8, 0x29, 0x41, 0x8f, 0x2f, 0xd9, 0xf2, 0x0d, 0xff, 0xde, 0x76,
  2015. 0x3e, 0xc8, 0x65, 0x0b, 0x7f, 0x3e, 0xeb, 0x6e, 0xfe, 0xe7, 0xd3, 0x78, 0x28, 0x6d, 0xfb, 0x3f,
  2016. 0xe3, 0xe3, 0x79, 0xdb, 0x0a, 0x02, 0xe7, 0xcc, 0xfc, 0x95, 0x06, 0x68, 0xbe, 0x9e, 0xa2, 0x2f,
  2017. 0xaf, 0x50, 0x82, 0x95, 0x89, 0x8f, 0xae, 0x5c, 0xbc, 0x8d, 0x6b, 0xf7, 0xb5, 0x07, 0xda, 0xc1,
  2018. 0x2b, 0xb8, 0x33, 0x08, 0x27, 0x6f, 0xd6, 0x72, 0xb0, 0xa2, 0x8e, 0xbf, 0x2b, 0x12, 0xaf, 0xab,
  2019. 0x7d, 0x63, 0x66, 0xdc, 0xa3, 0x50, 0xdc, 0xcc, 0x7a, 0x18, 0x8f, 0xf6, 0x46, 0x2c, 0x90, 0x69,
  2020. 0xb9, 0xa7, 0x48, 0x34, 0xf2, 0x93, 0xd7, 0xfc, 0x9e, 0xfe, 0x4a, 0x01, 0xff, 0xd2, 0xb4, 0xe3,
  2021. 0x45, 0x29, 0xf2, 0xff, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x29, 0xdf, 0xd7, 0xd0, 0x16,
  2022. 0x00, 0x00,
  2023. }