1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Speech;
19
20class RecognitionConfig extends \Google\Collection
21{
22  protected $collection_key = 'speechContexts';
23  protected $adaptationType = SpeechAdaptation::class;
24  protected $adaptationDataType = '';
25  /**
26   * @var string[]
27   */
28  public $alternativeLanguageCodes;
29  /**
30   * @var int
31   */
32  public $audioChannelCount;
33  protected $diarizationConfigType = SpeakerDiarizationConfig::class;
34  protected $diarizationConfigDataType = '';
35  /**
36   * @var bool
37   */
38  public $enableAutomaticPunctuation;
39  /**
40   * @var bool
41   */
42  public $enableSeparateRecognitionPerChannel;
43  /**
44   * @var bool
45   */
46  public $enableSpokenEmojis;
47  /**
48   * @var bool
49   */
50  public $enableSpokenPunctuation;
51  /**
52   * @var bool
53   */
54  public $enableWordConfidence;
55  /**
56   * @var bool
57   */
58  public $enableWordTimeOffsets;
59  /**
60   * @var string
61   */
62  public $encoding;
63  /**
64   * @var string
65   */
66  public $languageCode;
67  /**
68   * @var int
69   */
70  public $maxAlternatives;
71  protected $metadataType = RecognitionMetadata::class;
72  protected $metadataDataType = '';
73  /**
74   * @var string
75   */
76  public $model;
77  /**
78   * @var bool
79   */
80  public $profanityFilter;
81  /**
82   * @var int
83   */
84  public $sampleRateHertz;
85  protected $speechContextsType = SpeechContext::class;
86  protected $speechContextsDataType = 'array';
87  /**
88   * @var bool
89   */
90  public $useEnhanced;
91
92  /**
93   * @param SpeechAdaptation
94   */
95  public function setAdaptation(SpeechAdaptation $adaptation)
96  {
97    $this->adaptation = $adaptation;
98  }
99  /**
100   * @return SpeechAdaptation
101   */
102  public function getAdaptation()
103  {
104    return $this->adaptation;
105  }
106  /**
107   * @param string[]
108   */
109  public function setAlternativeLanguageCodes($alternativeLanguageCodes)
110  {
111    $this->alternativeLanguageCodes = $alternativeLanguageCodes;
112  }
113  /**
114   * @return string[]
115   */
116  public function getAlternativeLanguageCodes()
117  {
118    return $this->alternativeLanguageCodes;
119  }
120  /**
121   * @param int
122   */
123  public function setAudioChannelCount($audioChannelCount)
124  {
125    $this->audioChannelCount = $audioChannelCount;
126  }
127  /**
128   * @return int
129   */
130  public function getAudioChannelCount()
131  {
132    return $this->audioChannelCount;
133  }
134  /**
135   * @param SpeakerDiarizationConfig
136   */
137  public function setDiarizationConfig(SpeakerDiarizationConfig $diarizationConfig)
138  {
139    $this->diarizationConfig = $diarizationConfig;
140  }
141  /**
142   * @return SpeakerDiarizationConfig
143   */
144  public function getDiarizationConfig()
145  {
146    return $this->diarizationConfig;
147  }
148  /**
149   * @param bool
150   */
151  public function setEnableAutomaticPunctuation($enableAutomaticPunctuation)
152  {
153    $this->enableAutomaticPunctuation = $enableAutomaticPunctuation;
154  }
155  /**
156   * @return bool
157   */
158  public function getEnableAutomaticPunctuation()
159  {
160    return $this->enableAutomaticPunctuation;
161  }
162  /**
163   * @param bool
164   */
165  public function setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel)
166  {
167    $this->enableSeparateRecognitionPerChannel = $enableSeparateRecognitionPerChannel;
168  }
169  /**
170   * @return bool
171   */
172  public function getEnableSeparateRecognitionPerChannel()
173  {
174    return $this->enableSeparateRecognitionPerChannel;
175  }
176  /**
177   * @param bool
178   */
179  public function setEnableSpokenEmojis($enableSpokenEmojis)
180  {
181    $this->enableSpokenEmojis = $enableSpokenEmojis;
182  }
183  /**
184   * @return bool
185   */
186  public function getEnableSpokenEmojis()
187  {
188    return $this->enableSpokenEmojis;
189  }
190  /**
191   * @param bool
192   */
193  public function setEnableSpokenPunctuation($enableSpokenPunctuation)
194  {
195    $this->enableSpokenPunctuation = $enableSpokenPunctuation;
196  }
197  /**
198   * @return bool
199   */
200  public function getEnableSpokenPunctuation()
201  {
202    return $this->enableSpokenPunctuation;
203  }
204  /**
205   * @param bool
206   */
207  public function setEnableWordConfidence($enableWordConfidence)
208  {
209    $this->enableWordConfidence = $enableWordConfidence;
210  }
211  /**
212   * @return bool
213   */
214  public function getEnableWordConfidence()
215  {
216    return $this->enableWordConfidence;
217  }
218  /**
219   * @param bool
220   */
221  public function setEnableWordTimeOffsets($enableWordTimeOffsets)
222  {
223    $this->enableWordTimeOffsets = $enableWordTimeOffsets;
224  }
225  /**
226   * @return bool
227   */
228  public function getEnableWordTimeOffsets()
229  {
230    return $this->enableWordTimeOffsets;
231  }
232  /**
233   * @param string
234   */
235  public function setEncoding($encoding)
236  {
237    $this->encoding = $encoding;
238  }
239  /**
240   * @return string
241   */
242  public function getEncoding()
243  {
244    return $this->encoding;
245  }
246  /**
247   * @param string
248   */
249  public function setLanguageCode($languageCode)
250  {
251    $this->languageCode = $languageCode;
252  }
253  /**
254   * @return string
255   */
256  public function getLanguageCode()
257  {
258    return $this->languageCode;
259  }
260  /**
261   * @param int
262   */
263  public function setMaxAlternatives($maxAlternatives)
264  {
265    $this->maxAlternatives = $maxAlternatives;
266  }
267  /**
268   * @return int
269   */
270  public function getMaxAlternatives()
271  {
272    return $this->maxAlternatives;
273  }
274  /**
275   * @param RecognitionMetadata
276   */
277  public function setMetadata(RecognitionMetadata $metadata)
278  {
279    $this->metadata = $metadata;
280  }
281  /**
282   * @return RecognitionMetadata
283   */
284  public function getMetadata()
285  {
286    return $this->metadata;
287  }
288  /**
289   * @param string
290   */
291  public function setModel($model)
292  {
293    $this->model = $model;
294  }
295  /**
296   * @return string
297   */
298  public function getModel()
299  {
300    return $this->model;
301  }
302  /**
303   * @param bool
304   */
305  public function setProfanityFilter($profanityFilter)
306  {
307    $this->profanityFilter = $profanityFilter;
308  }
309  /**
310   * @return bool
311   */
312  public function getProfanityFilter()
313  {
314    return $this->profanityFilter;
315  }
316  /**
317   * @param int
318   */
319  public function setSampleRateHertz($sampleRateHertz)
320  {
321    $this->sampleRateHertz = $sampleRateHertz;
322  }
323  /**
324   * @return int
325   */
326  public function getSampleRateHertz()
327  {
328    return $this->sampleRateHertz;
329  }
330  /**
331   * @param SpeechContext[]
332   */
333  public function setSpeechContexts($speechContexts)
334  {
335    $this->speechContexts = $speechContexts;
336  }
337  /**
338   * @return SpeechContext[]
339   */
340  public function getSpeechContexts()
341  {
342    return $this->speechContexts;
343  }
344  /**
345   * @param bool
346   */
347  public function setUseEnhanced($useEnhanced)
348  {
349    $this->useEnhanced = $useEnhanced;
350  }
351  /**
352   * @return bool
353   */
354  public function getUseEnhanced()
355  {
356    return $this->useEnhanced;
357  }
358}
359
360// Adding a class alias for backwards compatibility with the previous class name.
361class_alias(RecognitionConfig::class, 'Google_Service_Speech_RecognitionConfig');
362