Skip to content

Commit 81679ae

Browse files
feat(v2beta1): Add ability to set Cloud Speech model in SpeechToTextConfig (#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>
1 parent 3e5c5cd commit 81679ae

File tree

1 file changed

+11
-0
lines changed
  • packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types

1 file changed

+11
-0
lines changed

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,24 @@ class SpeechToTextConfig(proto.Message):
501501
request. If enhanced model variant is specified and an
502502
enhanced version of the specified model for the language
503503
does not exist, then it would emit an error.
504+
model (str):
505+
Which Speech model to select. Select the model best suited
506+
to your domain to get best results. If a model is not
507+
explicitly specified, then a default model is used. Refer to
508+
`Cloud Speech API
509+
documentation <https://cloud.google.com/speech-to-text/docs/basics#select-model>`__
510+
for more details.
504511
"""
505512

506513
speech_model_variant = proto.Field(
507514
proto.ENUM,
508515
number=1,
509516
enum="SpeechModelVariant",
510517
)
518+
model = proto.Field(
519+
proto.STRING,
520+
number=2,
521+
)
511522

512523

513524
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)