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\Texttospeech;
19
20class AudioConfig extends \Google\Collection
21{
22  protected $collection_key = 'effectsProfileId';
23  /**
24   * @var string
25   */
26  public $audioEncoding;
27  /**
28   * @var string[]
29   */
30  public $effectsProfileId;
31  public $pitch;
32  /**
33   * @var int
34   */
35  public $sampleRateHertz;
36  public $speakingRate;
37  public $volumeGainDb;
38
39  /**
40   * @param string
41   */
42  public function setAudioEncoding($audioEncoding)
43  {
44    $this->audioEncoding = $audioEncoding;
45  }
46  /**
47   * @return string
48   */
49  public function getAudioEncoding()
50  {
51    return $this->audioEncoding;
52  }
53  /**
54   * @param string[]
55   */
56  public function setEffectsProfileId($effectsProfileId)
57  {
58    $this->effectsProfileId = $effectsProfileId;
59  }
60  /**
61   * @return string[]
62   */
63  public function getEffectsProfileId()
64  {
65    return $this->effectsProfileId;
66  }
67  public function setPitch($pitch)
68  {
69    $this->pitch = $pitch;
70  }
71  public function getPitch()
72  {
73    return $this->pitch;
74  }
75  /**
76   * @param int
77   */
78  public function setSampleRateHertz($sampleRateHertz)
79  {
80    $this->sampleRateHertz = $sampleRateHertz;
81  }
82  /**
83   * @return int
84   */
85  public function getSampleRateHertz()
86  {
87    return $this->sampleRateHertz;
88  }
89  public function setSpeakingRate($speakingRate)
90  {
91    $this->speakingRate = $speakingRate;
92  }
93  public function getSpeakingRate()
94  {
95    return $this->speakingRate;
96  }
97  public function setVolumeGainDb($volumeGainDb)
98  {
99    $this->volumeGainDb = $volumeGainDb;
100  }
101  public function getVolumeGainDb()
102  {
103    return $this->volumeGainDb;
104  }
105}
106
107// Adding a class alias for backwards compatibility with the previous class name.
108class_alias(AudioConfig::class, 'Google_Service_Texttospeech_AudioConfig');
109