Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Hints for the speech recognizer to help with recognition in a specific conversation state.
Instance Attribute Summary collapse
-
#boost ⇒ Float
Optional.
-
#phrases ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechContext
constructor
A new instance of GoogleCloudDialogflowV2beta1SpeechContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechContext
Returns a new instance of GoogleCloudDialogflowV2beta1SpeechContext.
15422 15423 15424 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15422 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boost ⇒ Float
Optional. Boost for this context compared to other contexts: * If the boost is
positive, Dialogflow will increase the probability that the phrases in this
context are recognized over similar sounding phrases. * If the boost is
unspecified or non-positive, Dialogflow will not apply any boost. Dialogflow
recommends that you use boosts in the range (0, 20] and that you find a value
that fits your use case with binary search.
Corresponds to the JSON property boost
15410 15411 15412 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15410 def boost @boost end |
#phrases ⇒ Array<String>
Optional. A list of strings containing words and phrases that the speech
recognizer should recognize with higher likelihood. This list can be used to: *
improve accuracy for words and phrases you expect the user to say, e.g.
typical commands for your Dialogflow agent * add additional words to the
speech recognizer vocabulary * ... See the Cloud Speech documentation for usage limits.
Corresponds to the JSON property phrases
15420 15421 15422 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15420 def phrases @phrases end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15427 15428 15429 15430 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15427 def update!(**args) @boost = args[:boost] if args.key?(:boost) @phrases = args[:phrases] if args.key?(:phrases) end |