Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [speech] add model and language_codes fields in RecognitionConfig message + enable default _ recognizer #9613

Merged
merged 2 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java-speech/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.16.0</version>
<version>26.18.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -231,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.14.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.15.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,8 @@ public final UnaryCallable<UndeleteRecognizerRequest, Operation> undeleteRecogni
* }</pre>
*
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`.
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.RecognizeRequest.config_mask] field can be used to
Expand Down Expand Up @@ -1170,7 +1171,8 @@ public final RecognizeResponse recognize(
* }</pre>
*
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`.
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.RecognizeRequest.config_mask] field can be used to
Expand Down Expand Up @@ -1230,7 +1232,8 @@ public final RecognizeResponse recognize(
* }</pre>
*
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`.
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.RecognizeRequest.config_mask] field can be used to
Expand Down Expand Up @@ -1287,7 +1290,8 @@ public final RecognizeResponse recognize(
* }</pre>
*
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`.
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.RecognizeRequest.config_mask] field can be used to
Expand Down Expand Up @@ -1443,7 +1447,9 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
* }
* }</pre>
*
* @param recognizer Required. Resource name of the recognizer to be used for ASR.
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used
Expand Down Expand Up @@ -1503,7 +1509,9 @@ public final OperationFuture<BatchRecognizeResponse, OperationMetadata> batchRec
* }
* }</pre>
*
* @param recognizer Required. Resource name of the recognizer to be used for ASR.
* @param recognizer Required. The name of the Recognizer to use during recognition. The expected
* format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* @param config Features and audio metadata to use for the Automatic Speech Recognition. This
* field in combination with the
* [config_mask][google.cloud.speech.v2.BatchRecognizeRequest.config_mask] field can be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ private ProcessingStrategy(int value) {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -241,7 +244,10 @@ public java.lang.String getRecognizer() {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand Down Expand Up @@ -1127,7 +1133,10 @@ public Builder mergeFrom(
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -1151,7 +1160,10 @@ public java.lang.String getRecognizer() {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -1175,7 +1187,10 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -1198,7 +1213,10 @@ public Builder setRecognizer(java.lang.String value) {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -1217,7 +1235,10 @@ public Builder clearRecognizer() {
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public interface BatchRecognizeRequestOrBuilder
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand All @@ -41,7 +44,10 @@ public interface BatchRecognizeRequestOrBuilder
*
*
* <pre>
* Required. Resource name of the recognizer to be used for ASR.
* Required. The name of the Recognizer to use during recognition. The
* expected format is
* `projects/{project}/locations/{location}/recognizers/{recognizer}`. The
* {recognizer} segment may be set to `_` to use an empty implicit Recognizer.
* </pre>
*
* <code>
Expand Down
Loading