Skip to content

Commit

Permalink
docs: Update client libraries for v1p1beta1 api (#372)
Browse files Browse the repository at this point in the history
* docs: Update client libraries for v1p1beta1 api

PiperOrigin-RevId: 447572837

Source-Link: googleapis/googleapis@10c88bb

Source-Link: googleapis/googleapis-gen@8a8244e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGE4MjQ0ZWRiNWNmYzNmNjI1MzA0MWRlOGZlMGIxZTdjOTg2M2RlZSJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 11, 2022
1 parent 0d9b246 commit 72e8079
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,14 @@ async def sample_create_phrase_set():
on the ``request`` instance; if ``request`` is provided, this
should not be set.
phrase_set_id (:class:`str`):
Required. The ID to use for the phrase set, which will
become the final component of the phrase set's resource
Required. The ID to use for the
phrase set, which will become the final
component of the phrase set's resource
name.
This value should be 4-63 characters, and valid
characters are /[a-z][0-9]-/.
This value should restrict to letters,
numbers, and hyphens, with the first
character a letter, the last a letter or
a number, and be 4-63 characters.
This corresponds to the ``phrase_set_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -817,12 +819,14 @@ async def sample_create_custom_class():
on the ``request`` instance; if ``request`` is provided, this
should not be set.
custom_class_id (:class:`str`):
Required. The ID to use for the custom class, which will
become the final component of the custom class' resource
name.
This value should be 4-63 characters, and valid
characters are /[a-z][0-9]-/.
Required. The ID to use for the
custom class, which will become the
final component of the custom class'
resource name.
This value should restrict to letters,
numbers, and hyphens, with the first
character a letter, the last a letter or
a number, and be 4-63 characters.
This corresponds to the ``custom_class_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,14 @@ def sample_create_phrase_set():
on the ``request`` instance; if ``request`` is provided, this
should not be set.
phrase_set_id (str):
Required. The ID to use for the phrase set, which will
become the final component of the phrase set's resource
Required. The ID to use for the
phrase set, which will become the final
component of the phrase set's resource
name.
This value should be 4-63 characters, and valid
characters are /[a-z][0-9]-/.
This value should restrict to letters,
numbers, and hyphens, with the first
character a letter, the last a letter or
a number, and be 4-63 characters.
This corresponds to the ``phrase_set_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -1065,12 +1067,14 @@ def sample_create_custom_class():
on the ``request`` instance; if ``request`` is provided, this
should not be set.
custom_class_id (str):
Required. The ID to use for the custom class, which will
become the final component of the custom class' resource
name.
This value should be 4-63 characters, and valid
characters are /[a-z][0-9]-/.
Required. The ID to use for the
custom class, which will become the
final component of the custom class'
resource name.
This value should restrict to letters,
numbers, and hyphens, with the first
character a letter, the last a letter or
a number, and be 4-63 characters.
This corresponds to the ``custom_class_id`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,16 @@ class RecognitionConfig(proto.Message):
For example, long-form audio. Ideally the audio is high-fidelity,
recorded at a 16khz or greater sampling rate.</td>
</tr>
<tr>
<td><code>medical_conversation</code></td>
<td>Best for audio that originated from a conversation between a
medical provider and patient.</td>
</tr>
<tr>
<td><code>medical_dictation</code></td>
<td>Best for audio that originated from dictation notes by a medical
provider.</td>
</tr>
</table>
use_enhanced (bool):
Set to true to use an enhanced model for speech recognition.
Expand Down Expand Up @@ -1182,7 +1192,11 @@ class SpeechRecognitionAlternative(proto.Message):
Attributes:
transcript (str):
Transcript text representing the words that
the user spoke.
the user spoke. In languages that use spaces to
separate words, the transcript might have a
leading space if it isn't the first result. You
can concatenate each result to obtain the full
transcript without using a separator.
confidence (float):
The confidence estimate between 0.0 and 1.0. A higher number
indicates an estimated greater likelihood that the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ class CreatePhraseSetRequest(proto.Message):
endpoint <https://cloud.google.com/speech-to-text/docs/endpoints>`__
with matching ``us`` or ``eu`` location value.
phrase_set_id (str):
Required. The ID to use for the phrase set, which will
become the final component of the phrase set's resource
name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Required. The ID to use for the phrase set,
which will become the final component of the
phrase set's resource name.
This value should restrict to letters, numbers,
and hyphens, with the first character a letter,
the last a letter or a number, and be 4-63
characters.
phrase_set (google.cloud.speech_v1p1beta1.types.PhraseSet):
Required. The phrase set to create.
"""
Expand Down Expand Up @@ -242,12 +243,13 @@ class CreateCustomClassRequest(proto.Message):
endpoint <https://cloud.google.com/speech-to-text/docs/endpoints>`__
with matching ``us`` or ``eu`` location value.
custom_class_id (str):
Required. The ID to use for the custom class, which will
become the final component of the custom class' resource
name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Required. The ID to use for the custom class,
which will become the final component of the
custom class' resource name.
This value should restrict to letters, numbers,
and hyphens, with the first character a letter,
the last a letter or a number, and be 4-63
characters.
custom_class (google.cloud.speech_v1p1beta1.types.CustomClass):
Required. The custom class to create.
"""
Expand Down

0 comments on commit 72e8079

Please sign in to comment.