Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 3ccf3fe

Browse files
yoshi-automationchingor13
authored andcommitted
feat: add speaker_tag to WordInfo (#40)
* [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * fix: allow proto interface changes
1 parent 604855f commit 3ccf3fe

34 files changed

Lines changed: 793 additions & 135 deletions

‎.github/ISSUE_TEMPLATE/bug_report.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible:
2121
General, Core, and Other are also allowed as types
2222
2. OS type and version:
2323
3. Java version:
24-
4. google-cloud-speect version(s):
24+
4. google-cloud-speech version(s):
2525

2626
#### Steps to reproduce
2727

‎.kokoro/continuous/propose_release.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; th
2222
# Groom the release PR as new commits are merged.
2323
npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
2424
--repo-url=googleapis/java-speech \
25-
--package-name="google-cloud-speect" \
25+
--package-name="google-cloud-speech" \
2626
--api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
2727
--proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \
2828
--release-type=java-yoshi

‎.kokoro/release/bump_snapshot.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; th
2222
# Groom the snapshot release PR immediately after publishing a release
2323
npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \
2424
--repo-url=googleapis/java-speech \
25-
--package-name="google-cloud-speect" \
25+
--package-name="google-cloud-speech" \
2626
--api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \
2727
--proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \
2828
--snapshot \

‎.kokoro/release/drop.cfg‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ env_vars: {
44
key: "TRAMPOLINE_BUILD_FILE"
55
value: "github/java-speech/.kokoro/release/drop.sh"
66
}
7-
8-
# Download staging properties file.
9-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-speech"

‎.kokoro/release/promote.cfg‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@ env_vars: {
44
key: "TRAMPOLINE_BUILD_FILE"
55
value: "github/java-speech/.kokoro/release/promote.sh"
66
}
7-
8-
# Download staging properties file.
9-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-speech"
10-

‎.kokoro/release/publish_javadoc.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader
3333
# compile all packages
3434
mvn clean install -B -DskipTests=true
3535

36-
NAME=google-cloud-speect
36+
NAME=google-cloud-speech
3737
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
3838

3939
# build the docs

‎google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechSmokeTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void executeNoCatch() throws Exception {
5353
.setSampleRateHertz(sampleRateHertz)
5454
.setEncoding(encoding)
5555
.build();
56-
String uri = "gs://gapic-toolkit/hello.flac";
56+
String uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac";
5757
RecognitionAudio audio = RecognitionAudio.newBuilder().setUri(uri).build();
5858

5959
RecognizeResponse response = client.recognize(config, audio);

‎google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechSmokeTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void executeNoCatch() throws Exception {
5353
.setSampleRateHertz(sampleRateHertz)
5454
.setEncoding(encoding)
5555
.build();
56-
String uri = "gs://gapic-toolkit/hello.flac";
56+
String uri = "gs://cloud-samples-data/speech/brooklyn_bridge.flac";
5757
RecognitionAudio audio = RecognitionAudio.newBuilder().setUri(uri).build();
5858

5959
RecognizeResponse response = client.recognize(config, audio);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7012</differenceType>
6+
<className>com/google/cloud/speech/v1/*OrBuilder</className>
7+
<method>* get*(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7012</differenceType>
11+
<className>com/google/cloud/speech/v1/*OrBuilder</className>
12+
<method>boolean contains*(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7012</differenceType>
16+
<className>com/google/cloud/speech/v1/*OrBuilder</className>
17+
<method>boolean has*(*)</method>
18+
</difference>
19+
</differences>

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

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,13 @@ public int getMaxSpeakerCount() {
174174
*
175175
*
176176
* <pre>
177-
* A distinct integer value is assigned for every speaker within
178-
* the audio. This field specifies which one of those speakers was detected to
179-
* have spoken this word. Value ranges from '1' to diarization_speaker_count.
180-
* speaker_tag is set if enable_speaker_diarization = 'true' and only in the
181-
* top alternative.
177+
* Unused.
182178
* </pre>
183179
*
184-
* <code>int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
180+
* <code>int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
181+
* </code>
185182
*/
183+
@java.lang.Deprecated
186184
public int getSpeakerTag() {
187185
return speakerTag_;
188186
}
@@ -704,31 +702,27 @@ public Builder clearMaxSpeakerCount() {
704702
*
705703
*
706704
* <pre>
707-
* A distinct integer value is assigned for every speaker within
708-
* the audio. This field specifies which one of those speakers was detected to
709-
* have spoken this word. Value ranges from '1' to diarization_speaker_count.
710-
* speaker_tag is set if enable_speaker_diarization = 'true' and only in the
711-
* top alternative.
705+
* Unused.
712706
* </pre>
713707
*
714-
* <code>int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
708+
* <code>int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
709+
* </code>
715710
*/
711+
@java.lang.Deprecated
716712
public int getSpeakerTag() {
717713
return speakerTag_;
718714
}
719715
/**
720716
*
721717
*
722718
* <pre>
723-
* A distinct integer value is assigned for every speaker within
724-
* the audio. This field specifies which one of those speakers was detected to
725-
* have spoken this word. Value ranges from '1' to diarization_speaker_count.
726-
* speaker_tag is set if enable_speaker_diarization = 'true' and only in the
727-
* top alternative.
719+
* Unused.
728720
* </pre>
729721
*
730-
* <code>int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
722+
* <code>int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
723+
* </code>
731724
*/
725+
@java.lang.Deprecated
732726
public Builder setSpeakerTag(int value) {
733727

734728
speakerTag_ = value;
@@ -739,15 +733,13 @@ public Builder setSpeakerTag(int value) {
739733
*
740734
*
741735
* <pre>
742-
* A distinct integer value is assigned for every speaker within
743-
* the audio. This field specifies which one of those speakers was detected to
744-
* have spoken this word. Value ranges from '1' to diarization_speaker_count.
745-
* speaker_tag is set if enable_speaker_diarization = 'true' and only in the
746-
* top alternative.
736+
* Unused.
747737
* </pre>
748738
*
749-
* <code>int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
739+
* <code>int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
740+
* </code>
750741
*/
742+
@java.lang.Deprecated
751743
public Builder clearSpeakerTag() {
752744

753745
speakerTag_ = 0;

0 commit comments

Comments
 (0)