Skip to content

Commit bbc7ce4

Browse files
feat: [speech] Voice Activity Detection: adding speech event time and speech event type (#9154)
* feat: Voice Activity Detection: adding speech event time and speech event type PiperOrigin-RevId: 511839326 Source-Link: googleapis/googleapis@f04b136 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2130aec98181cfba3e2bc95c9f14f13d058ac3eb Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6IjIxMzBhZWM5ODE4MWNmYmEzZTJiYzk1YzlmMTRmMTNkMDU4YWMzZWIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent fc3c53d commit bbc7ce4

File tree

41 files changed

+4683
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4683
-554
lines changed

java-speech/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-speech</artifactId>
22-
<version>4.4.0</version>
22+
<version>4.6.0</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-speech:4.4.0'
29+
implementation 'com.google.cloud:google-cloud-speech:4.6.0'
3030
```
3131

3232
If you are using SBT, add this to your dependencies:
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.4.0"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.6.0"
3636
```
3737

3838
## Authentication

java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public void streamingRecognizeTest() throws Exception {
191191
StreamingRecognizeResponse.newBuilder()
192192
.setError(Status.newBuilder().build())
193193
.addAllResults(new ArrayList<StreamingRecognitionResult>())
194+
.setSpeechEventTime(Duration.newBuilder().build())
194195
.setTotalBilledTime(Duration.newBuilder().build())
195196
.setSpeechAdaptationInfo(SpeechAdaptationInfo.newBuilder().build())
196197
.setRequestId(37109963)

java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public void streamingRecognizeTest() throws Exception {
191191
StreamingRecognizeResponse.newBuilder()
192192
.setError(Status.newBuilder().build())
193193
.addAllResults(new ArrayList<StreamingRecognitionResult>())
194+
.setSpeechEventTime(Duration.newBuilder().build())
194195
.setTotalBilledTime(Duration.newBuilder().build())
195196
.setSpeechAdaptationInfo(SpeechAdaptationInfo.newBuilder().build())
196197
.setRequestId(37109963)

java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java

+14-14
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
192192
*
193193
*
194194
* <pre>
195-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
196-
* as byte content.
195+
* Output only. The URI of the audio file being transcribed. Empty if the
196+
* audio was sent as byte content.
197197
* </pre>
198198
*
199199
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -216,8 +216,8 @@ public java.lang.String getUri() {
216216
*
217217
*
218218
* <pre>
219-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
220-
* as byte content.
219+
* Output only. The URI of the audio file being transcribed. Empty if the
220+
* audio was sent as byte content.
221221
* </pre>
222222
*
223223
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1090,8 +1090,8 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() {
10901090
*
10911091
*
10921092
* <pre>
1093-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
1094-
* as byte content.
1093+
* Output only. The URI of the audio file being transcribed. Empty if the
1094+
* audio was sent as byte content.
10951095
* </pre>
10961096
*
10971097
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1113,8 +1113,8 @@ public java.lang.String getUri() {
11131113
*
11141114
*
11151115
* <pre>
1116-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
1117-
* as byte content.
1116+
* Output only. The URI of the audio file being transcribed. Empty if the
1117+
* audio was sent as byte content.
11181118
* </pre>
11191119
*
11201120
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1136,8 +1136,8 @@ public com.google.protobuf.ByteString getUriBytes() {
11361136
*
11371137
*
11381138
* <pre>
1139-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
1140-
* as byte content.
1139+
* Output only. The URI of the audio file being transcribed. Empty if the
1140+
* audio was sent as byte content.
11411141
* </pre>
11421142
*
11431143
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1158,8 +1158,8 @@ public Builder setUri(java.lang.String value) {
11581158
*
11591159
*
11601160
* <pre>
1161-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
1162-
* as byte content.
1161+
* Output only. The URI of the audio file being transcribed. Empty if the
1162+
* audio was sent as byte content.
11631163
* </pre>
11641164
*
11651165
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -1176,8 +1176,8 @@ public Builder clearUri() {
11761176
*
11771177
*
11781178
* <pre>
1179-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
1180-
* as byte content.
1179+
* Output only. The URI of the audio file being transcribed. Empty if the
1180+
* audio was sent as byte content.
11811181
* </pre>
11821182
*
11831183
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
111111
*
112112
*
113113
* <pre>
114-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
115-
* as byte content.
114+
* Output only. The URI of the audio file being transcribed. Empty if the
115+
* audio was sent as byte content.
116116
* </pre>
117117
*
118118
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
@@ -124,8 +124,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
124124
*
125125
*
126126
* <pre>
127-
* Output only. The URI of the audio file being transcribed. Empty if the audio was sent
128-
* as byte content.
127+
* Output only. The URI of the audio file being transcribed. Empty if the
128+
* audio was sent as byte content.
129129
* </pre>
130130
*
131131
* <code>string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java

+31-22
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* <pre>
2525
* Contains audio data in the encoding specified in the `RecognitionConfig`.
2626
* Either `content` or `uri` must be supplied. Supplying both or neither
27-
* returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
28-
* [content limits](https://cloud.google.com/speech-to-text/quotas#content).
27+
* returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
28+
* See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
2929
* </pre>
3030
*
3131
* Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
@@ -164,8 +164,9 @@ public com.google.protobuf.ByteString getContent() {
164164
* Currently, only Google Cloud Storage URIs are
165165
* supported, which must be specified in the following format:
166166
* `gs://bucket_name/object_name` (other URI formats return
167-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
168-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
167+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
168+
* For more information, see [Request
169+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
169170
* </pre>
170171
*
171172
* <code>string uri = 2;</code>
@@ -184,8 +185,9 @@ public boolean hasUri() {
184185
* Currently, only Google Cloud Storage URIs are
185186
* supported, which must be specified in the following format:
186187
* `gs://bucket_name/object_name` (other URI formats return
187-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
188-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
188+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
189+
* For more information, see [Request
190+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
189191
* </pre>
190192
*
191193
* <code>string uri = 2;</code>
@@ -217,8 +219,9 @@ public java.lang.String getUri() {
217219
* Currently, only Google Cloud Storage URIs are
218220
* supported, which must be specified in the following format:
219221
* `gs://bucket_name/object_name` (other URI formats return
220-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
221-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
222+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
223+
* For more information, see [Request
224+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
222225
* </pre>
223226
*
224227
* <code>string uri = 2;</code>
@@ -435,8 +438,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
435438
* <pre>
436439
* Contains audio data in the encoding specified in the `RecognitionConfig`.
437440
* Either `content` or `uri` must be supplied. Supplying both or neither
438-
* returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
439-
* [content limits](https://cloud.google.com/speech-to-text/quotas#content).
441+
* returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
442+
* See [content limits](https://cloud.google.com/speech-to-text/quotas#content).
440443
* </pre>
441444
*
442445
* Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
@@ -741,8 +744,9 @@ public Builder clearContent() {
741744
* Currently, only Google Cloud Storage URIs are
742745
* supported, which must be specified in the following format:
743746
* `gs://bucket_name/object_name` (other URI formats return
744-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
745-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
747+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
748+
* For more information, see [Request
749+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
746750
* </pre>
747751
*
748752
* <code>string uri = 2;</code>
@@ -762,8 +766,9 @@ public boolean hasUri() {
762766
* Currently, only Google Cloud Storage URIs are
763767
* supported, which must be specified in the following format:
764768
* `gs://bucket_name/object_name` (other URI formats return
765-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
766-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
769+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
770+
* For more information, see [Request
771+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
767772
* </pre>
768773
*
769774
* <code>string uri = 2;</code>
@@ -796,8 +801,9 @@ public java.lang.String getUri() {
796801
* Currently, only Google Cloud Storage URIs are
797802
* supported, which must be specified in the following format:
798803
* `gs://bucket_name/object_name` (other URI formats return
799-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
800-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
804+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
805+
* For more information, see [Request
806+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
801807
* </pre>
802808
*
803809
* <code>string uri = 2;</code>
@@ -830,8 +836,9 @@ public com.google.protobuf.ByteString getUriBytes() {
830836
* Currently, only Google Cloud Storage URIs are
831837
* supported, which must be specified in the following format:
832838
* `gs://bucket_name/object_name` (other URI formats return
833-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
834-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
839+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
840+
* For more information, see [Request
841+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
835842
* </pre>
836843
*
837844
* <code>string uri = 2;</code>
@@ -857,8 +864,9 @@ public Builder setUri(java.lang.String value) {
857864
* Currently, only Google Cloud Storage URIs are
858865
* supported, which must be specified in the following format:
859866
* `gs://bucket_name/object_name` (other URI formats return
860-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
861-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
867+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
868+
* For more information, see [Request
869+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
862870
* </pre>
863871
*
864872
* <code>string uri = 2;</code>
@@ -882,8 +890,9 @@ public Builder clearUri() {
882890
* Currently, only Google Cloud Storage URIs are
883891
* supported, which must be specified in the following format:
884892
* `gs://bucket_name/object_name` (other URI formats return
885-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
886-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
893+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
894+
* For more information, see [Request
895+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
887896
* </pre>
888897
*
889898
* <code>string uri = 2;</code>

java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java

+9-6
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ public interface RecognitionAudioOrBuilder
6161
* Currently, only Google Cloud Storage URIs are
6262
* supported, which must be specified in the following format:
6363
* `gs://bucket_name/object_name` (other URI formats return
64-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
65-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
64+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
65+
* For more information, see [Request
66+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
6667
* </pre>
6768
*
6869
* <code>string uri = 2;</code>
@@ -79,8 +80,9 @@ public interface RecognitionAudioOrBuilder
7980
* Currently, only Google Cloud Storage URIs are
8081
* supported, which must be specified in the following format:
8182
* `gs://bucket_name/object_name` (other URI formats return
82-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
83-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
83+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
84+
* For more information, see [Request
85+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
8486
* </pre>
8587
*
8688
* <code>string uri = 2;</code>
@@ -97,8 +99,9 @@ public interface RecognitionAudioOrBuilder
9799
* Currently, only Google Cloud Storage URIs are
98100
* supported, which must be specified in the following format:
99101
* `gs://bucket_name/object_name` (other URI formats return
100-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
101-
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
102+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
103+
* For more information, see [Request
104+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
102105
* </pre>
103106
*
104107
* <code>string uri = 2;</code>

0 commit comments

Comments
 (0)