Skip to content

Commit

Permalink
feat(v2beta1): Add ability to set Cloud Speech model in SpeechToTextC…
Browse files Browse the repository at this point in the history
…onfig (#587)

* feat: Can directly set Cloud Speech model on the SpeechToTextConfig

PiperOrigin-RevId: 482665674

Source-Link: googleapis/googleapis@64926d5

Source-Link: googleapis/googleapis-gen@351722b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzUxNzIyYmUxNjNkZWY3NjY2ZjEzY2I3NmIyYTI5NWQ5ZjJhODQ1MCJ9

* 🦉 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 Oct 21, 2022
1 parent 3e5c5cd commit 81679ae
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,24 @@ class SpeechToTextConfig(proto.Message):
request. If enhanced model variant is specified and an
enhanced version of the specified model for the language
does not exist, then it would emit an error.
model (str):
Which Speech model to select. Select the model best suited
to your domain to get best results. If a model is not
explicitly specified, then a default model is used. Refer to
`Cloud Speech API
documentation <https://cloud.google.com/speech-to-text/docs/basics#select-model>`__
for more details.
"""

speech_model_variant = proto.Field(
proto.ENUM,
number=1,
enum="SpeechModelVariant",
)
model = proto.Field(
proto.STRING,
number=2,
)


__all__ = tuple(sorted(__protobuf__.manifest))

0 comments on commit 81679ae

Please sign in to comment.