aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/SpeechToText/ISpeechToTextProvider.php
blob: a1aca06e2e4d0a6df39296d2d4cca760614bd817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */


namespace OCP\SpeechToText;

use OCP\Files\File;
use RuntimeException;

/**
 * @since 27.0.0
 */
interface ISpeechToTextProvider {
	/**
	 * @since 27.0.0
	 */
	public function getName(): string;

	/**
	 * @since 27.0.0
	 * @throws RuntimeException If the text could not be transcribed
	 */
	public function transcribeFile(File $file): string;
}