2023-04-11 12:59:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-04-11 12:59:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
namespace OCP\SpeechToText;
|
|
|
|
|
2023-04-12 14:52:11 +00:00
|
|
|
use OCP\Files\File;
|
2023-04-11 12:59:57 +00:00
|
|
|
use RuntimeException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 27.0.0
|
2024-07-26 09:20:46 +00:00
|
|
|
* @deprecated 30.0.0
|
2023-04-11 12:59:57 +00:00
|
|
|
*/
|
|
|
|
interface ISpeechToTextProvider {
|
|
|
|
/**
|
|
|
|
* @since 27.0.0
|
|
|
|
*/
|
|
|
|
public function getName(): string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 27.0.0
|
|
|
|
* @throws RuntimeException If the text could not be transcribed
|
|
|
|
*/
|
2023-04-12 14:52:11 +00:00
|
|
|
public function transcribeFile(File $file): string;
|
2023-04-11 12:59:57 +00:00
|
|
|
}
|