1
1
{
2
- "clientLibrary" : {
3
- "name" : " nodejs-speech" ,
4
- "version" : " 0.1.0" ,
5
- "language" : " TYPESCRIPT" ,
6
- "apis" : [
7
- {
8
- "id" : " google.cloud.speech.v1" ,
9
- "version" : " v1"
10
- }
11
- ]
12
- },
13
- "snippets" : [
14
- {
15
- "regionTag" : " speech_v1_generated_Speech_Recognize_async" ,
16
- "title" : " Speech recognize Sample" ,
17
- "origin" : " API_DEFINITION" ,
18
- "description" : " Performs synchronous speech recognition: receive results after all audio has been sent and processed." ,
19
- "canonical" : true ,
20
- "file" : " speech.recognize.js" ,
21
- "language" : " JAVASCRIPT" ,
22
- "segments" : [
23
- {
24
- "start" : 25 ,
25
- "end" : 56 ,
26
- "type" : " FULL"
27
- }
28
- ],
29
- "clientMethod" : {
30
- "shortName" : " Recognize" ,
31
- "fullName" : " google.cloud.speech.v1.Speech.Recognize" ,
32
- "async" : true ,
33
- "parameters" : [
34
- {
35
- "name" : " config" ,
36
- "type" : " .google.cloud.speech.v1.RecognitionConfig"
37
- },
38
- {
39
- "name" : " audio" ,
40
- "type" : " .google.cloud.speech.v1.RecognitionAudio"
41
- }
42
- ],
43
- "resultType" : " .google.cloud.speech.v1.RecognizeResponse" ,
44
- "client" : {
45
- "shortName" : " SpeechClient" ,
46
- "fullName" : " google.cloud.speech.v1.SpeechClient"
47
- },
48
- "method" : {
49
- "shortName" : " Recognize" ,
50
- "fullName" : " google.cloud.speech.v1.Speech.Recognize" ,
51
- "service" : {
52
- "shortName" : " Speech" ,
53
- "fullName" : " google.cloud.speech.v1.Speech"
54
- }
55
- }
56
- }
2
+ "clientLibrary" : {
3
+ "name" : " nodejs-speech" ,
4
+ "version" : " 4.10.1" ,
5
+ "language" : " TYPESCRIPT" ,
6
+ "apis" : [
7
+ {
8
+ "id" : " google.cloud.speech.v1" ,
9
+ "version" : " v1"
10
+ }
11
+ ]
57
12
},
58
- {
59
- "regionTag" : " speech_v1_generated_Speech_LongRunningRecognize_async" ,
60
- "title" : " Speech longRunningRecognize Sample" ,
61
- "origin" : " API_DEFINITION" ,
62
- "description" : " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize)." ,
63
- "canonical" : true ,
64
- "file" : " speech.long_running_recognize.js" ,
65
- "language" : " JAVASCRIPT" ,
66
- "segments" : [
13
+ "snippets" : [
67
14
{
68
- "start" : 25 ,
69
- "end" : 61 ,
70
- "type" : " FULL"
71
- }
72
- ],
73
- "clientMethod" : {
74
- "shortName" : " LongRunningRecognize" ,
75
- "fullName" : " google.cloud.speech.v1.Speech.LongRunningRecognize" ,
76
- "async" : true ,
77
- "parameters" : [
78
- {
79
- "name" : " config" ,
80
- "type" : " .google.cloud.speech.v1.RecognitionConfig"
81
- },
82
- {
83
- "name" : " audio" ,
84
- "type" : " .google.cloud.speech.v1.RecognitionAudio"
85
- },
86
- {
87
- "name" : " output_config" ,
88
- "type" : " .google.cloud.speech.v1.TranscriptOutputConfig"
89
- }
90
- ],
91
- "resultType" : " .google.longrunning.Operation" ,
92
- "client" : {
93
- "shortName" : " SpeechClient" ,
94
- "fullName" : " google.cloud.speech.v1.SpeechClient"
15
+ "regionTag" : " speech_v1_generated_Speech_Recognize_async" ,
16
+ "title" : " Speech recognize Sample" ,
17
+ "origin" : " API_DEFINITION" ,
18
+ "description" : " Performs synchronous speech recognition: receive results after all audio has been sent and processed." ,
19
+ "canonical" : true ,
20
+ "file" : " speech.recognize.js" ,
21
+ "language" : " JAVASCRIPT" ,
22
+ "segments" : [
23
+ {
24
+ "start" : 25 ,
25
+ "end" : 56 ,
26
+ "type" : " FULL"
27
+ }
28
+ ],
29
+ "clientMethod" : {
30
+ "shortName" : " Recognize" ,
31
+ "fullName" : " google.cloud.speech.v1.Speech.Recognize" ,
32
+ "async" : true ,
33
+ "parameters" : [
34
+ {
35
+ "name" : " config" ,
36
+ "type" : " .google.cloud.speech.v1.RecognitionConfig"
37
+ },
38
+ {
39
+ "name" : " audio" ,
40
+ "type" : " .google.cloud.speech.v1.RecognitionAudio"
41
+ }
42
+ ],
43
+ "resultType" : " .google.cloud.speech.v1.RecognizeResponse" ,
44
+ "client" : {
45
+ "shortName" : " SpeechClient" ,
46
+ "fullName" : " google.cloud.speech.v1.SpeechClient"
47
+ },
48
+ "method" : {
49
+ "shortName" : " Recognize" ,
50
+ "fullName" : " google.cloud.speech.v1.Speech.Recognize" ,
51
+ "service" : {
52
+ "shortName" : " Speech" ,
53
+ "fullName" : " google.cloud.speech.v1.Speech"
54
+ }
55
+ }
56
+ }
95
57
},
96
- "method" : {
97
- "shortName" : " LongRunningRecognize" ,
98
- "fullName" : " google.cloud.speech.v1.Speech.LongRunningRecognize" ,
99
- "service" : {
100
- "shortName" : " Speech" ,
101
- "fullName" : " google.cloud.speech.v1.Speech"
102
- }
103
- }
104
- }
105
- },
106
- {
107
- "regionTag" : " speech_v1_generated_Speech_StreamingRecognize_async" ,
108
- "title" : " Speech streamingRecognize Sample" ,
109
- "origin" : " API_DEFINITION" ,
110
- "description" : " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST)." ,
111
- "canonical" : true ,
112
- "file" : " speech.streaming_recognize.js" ,
113
- "language" : " JAVASCRIPT" ,
114
- "segments" : [
115
58
{
116
- "start" : 25 ,
117
- "end" : 66 ,
118
- "type" : " FULL"
119
- }
120
- ],
121
- "clientMethod" : {
122
- "shortName" : " StreamingRecognize" ,
123
- "fullName" : " google.cloud.speech.v1.Speech.StreamingRecognize" ,
124
- "async" : true ,
125
- "parameters" : [
126
- {
127
- "name" : " streaming_config" ,
128
- "type" : " .google.cloud.speech.v1.StreamingRecognitionConfig"
129
- },
130
- {
131
- "name" : " audio_content" ,
132
- "type" : " TYPE_BYTES"
133
- }
134
- ],
135
- "resultType" : " .google.cloud.speech.v1.StreamingRecognizeResponse" ,
136
- "client" : {
137
- "shortName" : " SpeechClient" ,
138
- "fullName" : " google.cloud.speech.v1.SpeechClient"
59
+ "regionTag" : " speech_v1_generated_Speech_LongRunningRecognize_async" ,
60
+ "title" : " Speech longRunningRecognize Sample" ,
61
+ "origin" : " API_DEFINITION" ,
62
+ "description" : " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize)." ,
63
+ "canonical" : true ,
64
+ "file" : " speech.long_running_recognize.js" ,
65
+ "language" : " JAVASCRIPT" ,
66
+ "segments" : [
67
+ {
68
+ "start" : 25 ,
69
+ "end" : 61 ,
70
+ "type" : " FULL"
71
+ }
72
+ ],
73
+ "clientMethod" : {
74
+ "shortName" : " LongRunningRecognize" ,
75
+ "fullName" : " google.cloud.speech.v1.Speech.LongRunningRecognize" ,
76
+ "async" : true ,
77
+ "parameters" : [
78
+ {
79
+ "name" : " config" ,
80
+ "type" : " .google.cloud.speech.v1.RecognitionConfig"
81
+ },
82
+ {
83
+ "name" : " audio" ,
84
+ "type" : " .google.cloud.speech.v1.RecognitionAudio"
85
+ },
86
+ {
87
+ "name" : " output_config" ,
88
+ "type" : " .google.cloud.speech.v1.TranscriptOutputConfig"
89
+ }
90
+ ],
91
+ "resultType" : " .google.longrunning.Operation" ,
92
+ "client" : {
93
+ "shortName" : " SpeechClient" ,
94
+ "fullName" : " google.cloud.speech.v1.SpeechClient"
95
+ },
96
+ "method" : {
97
+ "shortName" : " LongRunningRecognize" ,
98
+ "fullName" : " google.cloud.speech.v1.Speech.LongRunningRecognize" ,
99
+ "service" : {
100
+ "shortName" : " Speech" ,
101
+ "fullName" : " google.cloud.speech.v1.Speech"
102
+ }
103
+ }
104
+ }
139
105
},
140
- "method" : {
141
- "shortName" : " StreamingRecognize" ,
142
- "fullName" : " google.cloud.speech.v1.Speech.StreamingRecognize" ,
143
- "service" : {
144
- "shortName" : " Speech" ,
145
- "fullName" : " google.cloud.speech.v1.Speech"
146
- }
106
+ {
107
+ "regionTag" : " speech_v1_generated_Speech_StreamingRecognize_async" ,
108
+ "title" : " Speech streamingRecognize Sample" ,
109
+ "origin" : " API_DEFINITION" ,
110
+ "description" : " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST)." ,
111
+ "canonical" : true ,
112
+ "file" : " speech.streaming_recognize.js" ,
113
+ "language" : " JAVASCRIPT" ,
114
+ "segments" : [
115
+ {
116
+ "start" : 25 ,
117
+ "end" : 66 ,
118
+ "type" : " FULL"
119
+ }
120
+ ],
121
+ "clientMethod" : {
122
+ "shortName" : " StreamingRecognize" ,
123
+ "fullName" : " google.cloud.speech.v1.Speech.StreamingRecognize" ,
124
+ "async" : true ,
125
+ "parameters" : [
126
+ {
127
+ "name" : " streaming_config" ,
128
+ "type" : " .google.cloud.speech.v1.StreamingRecognitionConfig"
129
+ },
130
+ {
131
+ "name" : " audio_content" ,
132
+ "type" : " TYPE_BYTES"
133
+ }
134
+ ],
135
+ "resultType" : " .google.cloud.speech.v1.StreamingRecognizeResponse" ,
136
+ "client" : {
137
+ "shortName" : " SpeechClient" ,
138
+ "fullName" : " google.cloud.speech.v1.SpeechClient"
139
+ },
140
+ "method" : {
141
+ "shortName" : " StreamingRecognize" ,
142
+ "fullName" : " google.cloud.speech.v1.Speech.StreamingRecognize" ,
143
+ "service" : {
144
+ "shortName" : " Speech" ,
145
+ "fullName" : " google.cloud.speech.v1.Speech"
146
+ }
147
+ }
148
+ }
147
149
}
148
- }
149
- }
150
- ]
151
- }
150
+ ]
151
+ }
0 commit comments