fix(SpeechToText): Add constructor to sample

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2023-04-19 15:31:58 +02:00
parent 899e2a5e0f
commit 87f3384a74

View File

@@ -83,9 +83,15 @@ A **Speech-To-Text provider** is a class that implements the interface ``OCP\Spe
use OCA\MyApp\AppInfo\Application;
use OCP\Files\File;
use OCP\SpeechToText\ISpeechToTextProvider;
use OCP\IL10N;
class Provider implements ISpeechToTextProvider {
public function __construct(
private IL10N $l,
) {
}
public function getName(): string {
return $this->l->t('My awesome speech to text provider');
}