Class PhraseSet (2.8.0)

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.

Inheritance

Object > PhraseSet

Namespace

Google.Cloud.Speech.V1

Assembly

Google.Cloud.Speech.V1.dll

Constructors

PhraseSet()

public PhraseSet()

PhraseSet(PhraseSet)

public PhraseSet(PhraseSet other)
Parameter
NameDescription
otherPhraseSet

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
TypeDescription
Single

Name

public string Name { get; set; }

The resource name of the phrase set.

Property Value
TypeDescription
String

Phrases

public RepeatedField<PhraseSet.Types.Phrase> Phrases { get; }

A list of word and phrases.

Property Value
TypeDescription
RepeatedField<PhraseSet.Types.Phrase>

PhraseSetName

public PhraseSetName PhraseSetName { get; set; }

PhraseSetName-typed view over the Name resource name property.

Property Value
TypeDescription
PhraseSetName