1 | <?php |
||
12 | class TextToSpeechManager extends Manager |
||
13 | { |
||
14 | /** |
||
15 | * Get a driver instance. |
||
16 | * |
||
17 | * @param string|null $name |
||
18 | * @return mixed |
||
19 | */ |
||
20 | public function engine($name = null) |
||
24 | |||
25 | /** |
||
26 | * Create an Amazon Polly Converter instance. |
||
27 | * |
||
28 | * @return \Cion\TextToSpeech\Converters\PollyConverter |
||
29 | */ |
||
30 | public function createPollyDriver() |
||
44 | |||
45 | /** |
||
46 | * Sets the polly client |
||
47 | * |
||
48 | * @param array $config |
||
49 | * @param Credentials $credentials |
||
50 | * @return PollyClient |
||
51 | */ |
||
52 | protected function setPollyClient(array $config, Credentials $credentials) |
||
60 | /** |
||
61 | * Get credentials of AWS. |
||
62 | * |
||
63 | * @param array $credentials |
||
64 | * @return \Aws\Credentials\Credentials |
||
65 | */ |
||
66 | protected function getCredentials(array $credentials) |
||
70 | |||
71 | /** |
||
72 | * Create a Null Converter instance. |
||
73 | * |
||
74 | * @return \Cion\TextToSpeech\Converters\NullConverter |
||
75 | */ |
||
76 | public function createNullDriver() |
||
80 | |||
81 | /** |
||
82 | * Ensure the AWS SDK is installed. |
||
83 | * |
||
84 | * @return void |
||
85 | * |
||
86 | * @throws \Exception |
||
87 | */ |
||
88 | protected function ensureAwsSdkIsInstalled() |
||
96 | |||
97 | /** |
||
98 | * Get the default Text to Speech driver name. |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getDefaultDriver() |
||
112 | } |
||
113 |