public sealed class PhraseSet : IMessage<PhraseSet>, IEquatable<PhraseSet>, IDeepCloneable<PhraseSet>, IBufferMessage, IMessage
Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
Implements
IMessage<PhraseSet>, IEquatable<PhraseSet>, IDeepCloneable<PhraseSet>, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V1P1Beta1Assembly
Google.Cloud.Speech.V1P1Beta1.dll
Constructors
PhraseSet()
public PhraseSet()
PhraseSet(PhraseSet)
public PhraseSet(PhraseSet other)
Parameter | |
---|---|
Name | Description |
other | PhraseSet |
Properties
Boost
public float Boost { get; set; }
Hint Boost. Positive value will increase the probability that a specific
phrase will be recognized over other similar sounding phrases. The higher
the boost, the higher the chance of false positive recognition as well.
Negative boost values would correspond to anti-biasing. Anti-biasing is not
enabled, so negative boost will simply be ignored. Though boost
can
accept a wide range of positive values, most use cases are best served with
values between 0 (exclusive) and 20. We recommend using a binary search
approach to finding the optimal value for your use case. Speech recognition
will skip PhraseSets with a boost value of 0.
Property Value | |
---|---|
Type | Description |
Single |
Name
public string Name { get; set; }
The resource name of the phrase set.
Property Value | |
---|---|
Type | Description |
String |
Phrases
public RepeatedField<PhraseSet.Types.Phrase> Phrases { get; }
A list of word and phrases.
Property Value | |
---|---|
Type | Description |
RepeatedField<PhraseSet.Types.Phrase> |
PhraseSetName
public PhraseSetName PhraseSetName { get; set; }
PhraseSetName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
PhraseSetName |