Cloud Video Intelligence V1 Client - Class SpeechContext (1.15.5)

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
Name Description
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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this