mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
fix(SpeechToText): Add constructor to sample
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user