Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit 393e56f

Browse files
gcf-owl-bot[bot]summer-ji-engalexander-fensterbcoe
authored
docs: Add documentation for latest models to RecognitionConfig
PiperOrigin-RevId: 446200223 Source-Link: googleapis/googleapis@4f586ea Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ffe3d9fdff3cc55da70a56a8c643587e16e2fe8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZmZTNkOWZkZmYzY2M1NWRhNzBhNTZhOGM2NDM1ODdlMTZlMmZlOCJ9 feat: Add adaptation proto for v1 api PiperOrigin-RevId: 447561222 Source-Link: googleapis/googleapis@ec9193e Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd279b003e4455c9b805f22fc3b9976ad8639ee6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2QyNzliMDAzZTQ0NTVjOWI4MDVmMjJmYzNiOTk3NmFkODYzOWVlNiJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md PiperOrigin-RevId: 447572837 Source-Link: googleapis/googleapis@10c88bb Source-Link: https://github.com/googleapis/googleapis-gen/commit/8a8244edb5cfc3f6253041de8fe0b1e7c9863dee Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGE4MjQ0ZWRiNWNmYzNmNjI1MzA0MWRlOGZlMGIxZTdjOTg2M2RlZSJ9 fix: fixes for dynamic routing and streaming descriptors PiperOrigin-RevId: 450616838 Source-Link: googleapis/googleapis@7a47b72 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42cc6331bae0b99f61b8e01ae15b05211716c4f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjYzYzMzFiYWUwYjk5ZjYxYjhlMDFhZTE1YjA1MjExNzE2YzRmOSJ9 feat: support regapic LRO PiperOrigin-RevId: 456946341 Source-Link: googleapis/googleapis@88fd18d Source-Link: https://github.com/googleapis/googleapis-gen/commit/accfa371f667439313335c64042b063c1c53102e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWNjZmEzNzFmNjY3NDM5MzEzMzM1YzY0MDQyYjA2M2MxYzUzMTAyZSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md PiperOrigin-RevId: 458552034 Source-Link: googleapis/googleapis@ae65014 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b09ede435cce110446d4ab9f62a081b571d37e3f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjA5ZWRlNDM1Y2NlMTEwNDQ2ZDRhYjlmNjJhMDgxYjU3MWQzN2UzZiJ9 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> Co-authored-by: Summer Ji <[email protected]> Co-authored-by: Alexander Fenster <[email protected]> Co-authored-by: Benjamin E. Coe <[email protected]>
1 parent 2b8d012 commit 393e56f

38 files changed

+10359
-84
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"dependencies": {
4949
"@google-cloud/common": "^3.0.0",
5050
"@types/pumpify": "^1.4.1",
51-
"google-gax": "^3.0.1",
51+
"google-gax": "^3.1.2",
5252
"protobufjs": "^6.8.6",
5353
"pumpify": "^2.0.0",
5454
"stream-events": "^1.0.4",

protos/google/cloud/speech/v1/cloud_speech.proto

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -383,6 +383,15 @@ message RecognitionConfig {
383383
// <td><b>Description</b></td>
384384
// </tr>
385385
// <tr>
386+
// <td><code>latest_long</code></td>
387+
// <td>Best for long form content like media or conversation.</td>
388+
// </tr>
389+
// <tr>
390+
// <td><code>latest_short</code></td>
391+
// <td>Best for short form content like commands or single shot directed
392+
// speech.</td>
393+
// </tr>
394+
// <tr>
386395
// <td><code>command_and_search</code></td>
387396
// <td>Best for short queries such as voice commands or voice search.</td>
388397
// </tr>
@@ -404,6 +413,16 @@ message RecognitionConfig {
404413
// For example, long-form audio. Ideally the audio is high-fidelity,
405414
// recorded at a 16khz or greater sampling rate.</td>
406415
// </tr>
416+
// <tr>
417+
// <td><code>medical_conversation</code></td>
418+
// <td>Best for audio that originated from a conversation between a
419+
// medical provider and patient.</td>
420+
// </tr>
421+
// <tr>
422+
// <td><code>medical_dictation</code></td>
423+
// <td>Best for audio that originated from dictation notes by a medical
424+
// provider.</td>
425+
// </tr>
407426
// </table>
408427
string model = 13;
409428

@@ -444,6 +463,8 @@ message SpeakerDiarizationConfig {
444463

445464
// Description of audio data to be recognized.
446465
message RecognitionMetadata {
466+
option deprecated = true;
467+
447468
// Use case categories that the audio recognition request can be described
448469
// by.
449470
enum InteractionType {
@@ -819,6 +840,9 @@ message SpeechRecognitionResult {
819840
// Alternative hypotheses (a.k.a. n-best list).
820841
message SpeechRecognitionAlternative {
821842
// Transcript text representing the words that the user spoke.
843+
// In languages that use spaces to separate words, the transcript might have a
844+
// leading space if it isn't the first result. You can concatenate each result
845+
// to obtain the full transcript without using a separator.
822846
string transcript = 1;
823847

824848
// The confidence estimate between 0.0 and 1.0. A higher number

0 commit comments

Comments
 (0)