Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 1d258c2

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: https://github.com/googleapis/googleapis-gen/commit/351722be163def7666f13cb76b2a295d9f2a8450 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 0176be4 commit 1d258c2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)