1 | <?php |
||
11 | class Polly extends AbstractOptions |
||
12 | { |
||
13 | protected $initialize; |
||
14 | |||
15 | protected $outputFormat = 'mp3'; |
||
16 | protected $lexiconNames = []; |
||
17 | protected $sampleRate = '16000'; |
||
18 | protected $textType = 'text'; |
||
19 | protected $voiceId = 'Salli'; |
||
20 | |||
21 | /** |
||
22 | * @return InitializeOptions |
||
23 | */ |
||
24 | public function getInitializeOptions() |
||
28 | |||
29 | /** |
||
30 | * @param InitializeOptions|array $options |
||
31 | * @return InitializeOptions |
||
32 | */ |
||
33 | public function initialize($options = []) |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function getOutputFormat() |
||
52 | |||
53 | /** |
||
54 | * @param mixed $outputFormat |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setOutputFormat($outputFormat) |
||
62 | |||
63 | /** |
||
64 | * @return array |
||
65 | */ |
||
66 | public function getLexiconNames() |
||
70 | |||
71 | /** |
||
72 | * @param array $lexiconNames |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function setLexiconNames($lexiconNames) |
||
80 | |||
81 | /** |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function getSampleRate() |
||
88 | |||
89 | /** |
||
90 | * @param mixed $sampleRate |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function setSampleRate($sampleRate) |
||
98 | |||
99 | /** |
||
100 | * @return mixed |
||
101 | */ |
||
102 | public function getTextType() |
||
106 | |||
107 | /** |
||
108 | * @param mixed $textType |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setTextType($textType) |
||
116 | |||
117 | /** |
||
118 | * @return mixed |
||
119 | */ |
||
120 | public function getVoiceId() |
||
124 | |||
125 | /** |
||
126 | * @param mixed $voiceId |
||
127 | * @return $this |
||
128 | */ |
||
129 | public function setVoiceId($voiceId) |
||
134 | } |
||
135 |