Cloud Video Intelligence V1 Client - Class SpeechContext (1.13.1)

Reference documentation and code samples for the Cloud Video Intelligence V1 Client class SpeechContext.

Provides "hints" to the speech recognizer to favor specific words and phrases in the results.

Generated from protobuf message google.cloud.videointelligence.v1.SpeechContext

Namespace

Google \ Cloud \ VideoIntelligence \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ phrases array

Optional. A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

getPhrases

Optional. A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPhrases

Optional. A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See usage limits.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this