ISpeechToTextProvider.php 530 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\SpeechToText;
  8. use OCP\Files\File;
  9. use RuntimeException;
  10. /**
  11. * @since 27.0.0
  12. * @deprecated 30.0.0
  13. */
  14. interface ISpeechToTextProvider {
  15. /**
  16. * @since 27.0.0
  17. */
  18. public function getName(): string;
  19. /**
  20. * @since 27.0.0
  21. * @throws RuntimeException If the text could not be transcribed
  22. */
  23. public function transcribeFile(File $file): string;
  24. }