All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.speech.v1beta1.model.SpeechContext Maven / Gradle / Ivy

There is a newer version: v2beta1-rev20210810-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://code.google.com/p/google-apis-client-generator/
 * (build: 2017-02-15 17:18:02 UTC)
 * on 2017-04-08 at 18:29:03 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.speech.v1beta1.model;

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

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Cloud Speech API. For a detailed explanation * see: * http://code.google.com/p/google-http-java-client/wiki/JSON *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class SpeechContext extends com.google.api.client.json.GenericJson { /** * *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](https://cloud.google.com/speech/limits#content). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List phrases; /** * *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](https://cloud.google.com/speech/limits#content). * @return value or {@code null} for none */ public java.util.List getPhrases() { return phrases; } /** * *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](https://cloud.google.com/speech/limits#content). * @param phrases phrases or {@code null} for none */ public SpeechContext setPhrases(java.util.List phrases) { this.phrases = phrases; return this; } @Override public SpeechContext set(String fieldName, Object value) { return (SpeechContext) super.set(fieldName, value); } @Override public SpeechContext clone() { return (SpeechContext) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy