We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 254df7f commit 24ae2cbCopy full SHA for 24ae2cb
plugin/text2speech/src/IProvider.php
@@ -3,5 +3,6 @@
3
interface IProvider
4
{
5
public function __construct(string $url, string $key, string $filePath);
6
+
7
public function convert(string $text): string;
8
}
plugin/text2speech/src/mozillatts/MozillaTTS.php
@@ -22,11 +22,11 @@ public function convert(string $text): string
22
23
private function request(string $data): string
24
25
- $filename = uniqid().'.wav';
+ $filename = uniqid().'.wav';
26
$filePath = $this->filePath.$filename;
27
file_put_contents($filePath, file_get_contents(
28
$this->url.'?api_key='.urlencode($this->apiKey).
29
- '&text='.str_replace('%0A','+',urlencode($data))
+ '&text='.str_replace('%0A','+', urlencode($data))
30
));
31
32
return $filename;
0 commit comments