public sealed class SpeechToTextConfig : IMessage<SpeechToTextConfig>, IEquatable<SpeechToTextConfig>, IDeepCloneable<SpeechToTextConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class SpeechToTextConfig.
Configures speech transcription for
[ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile].
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
for more details.
Property Value
Type
Description
string
SpeechModelVariant
public SpeechModelVariant SpeechModelVariant { get; set; }
The speech model used in speech to text.
SPEECH_MODEL_VARIANT_UNSPECIFIED, USE_BEST_AVAILABLE will be treated as
USE_ENHANCED. It can be overridden in
[AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
and
[StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe provided content details the \u003ccode\u003eSpeechToTextConfig\u003c/code\u003e class within the Google Cloud Dialogflow v2 API, specifically for .NET, which configures speech transcription for ConversationProfiles.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eSpeechToTextConfig\u003c/code\u003e is 4.26.0, and a range of previous versions from 4.25.0 down to 3.2.0 are also documented with links to their respective pages.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechToTextConfig\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eModel\u003c/code\u003e (specifying the speech model to use) and \u003ccode\u003eSpeechModelVariant\u003c/code\u003e (defining the speech model variant), which can be set to optimize speech-to-text transcription.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eSpeechToTextConfig\u003c/code\u003e class, one being the default, and the other taking another instance of \u003ccode\u003eSpeechToTextConfig\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]