Google Cloud Speech v1 API - Class PhraseSet (3.6.0)

public sealed class PhraseSet : IMessage<PhraseSet>, IEquatable<PhraseSet>, IDeepCloneable<PhraseSet>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Speech v1 API class PhraseSet.

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 as well as adding phrases both with and without boost to your requests.

Property Value
TypeDescription
float

Name

public string Name { get; set; }

The resource name of the phrase set.

Property Value
TypeDescription
string

PhraseSetName

public PhraseSetName PhraseSetName { get; set; }

PhraseSetName-typed view over the Name resource name property.

Property Value
TypeDescription
PhraseSetName

Phrases

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

A list of word and phrases.

Property Value
TypeDescription
RepeatedFieldPhraseSetTypesPhrase