mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Fix(docs): Fix parameter type in doc block
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fbcd275acb
commit
db9901a02e
1 changed files with 3 additions and 3 deletions
|
|
@ -47,21 +47,21 @@ interface ISpeechToTextManager {
|
|||
* belonging to your transcription request.
|
||||
*
|
||||
* @param File $file The media file to transcribe
|
||||
* @param string $userId The user that triggered this request (only for convenience, will be available on the TranscriptEvents)
|
||||
* @param ?string $userId The user that triggered this request (only for convenience, will be available on the TranscriptEvents)
|
||||
* @param string $appId The app that triggered this request (only for convenience, will be available on the TranscriptEvents)
|
||||
* @since 27.0.0
|
||||
* @throws PreConditionNotMetException If no provider was registered but this method was still called
|
||||
* @throws InvalidArgumentException If the file could not be found or is not of a supported type
|
||||
* @since 27.0.0
|
||||
*/
|
||||
public function scheduleFileTranscription(File $file, ?string $userId, string $appId): void;
|
||||
|
||||
/**
|
||||
* @since 27.0.0
|
||||
* @param File $file The media file to transcribe
|
||||
* @returns string The transcription of the passed media file
|
||||
* @throws PreConditionNotMetException If no provider was registered but this method was still called
|
||||
* @throws InvalidArgumentException If the file could not be found or is not of a supported type
|
||||
* @throws RuntimeException If the transcription failed for other reasons
|
||||
* @since 27.0.0
|
||||
*/
|
||||
public function transcribeFile(File $file): string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue