ISpeechToTextManager
in
Tags
Table of Contents
Methods
- cancelScheduledFileTranscription() : void
- Will cancel a scheduled transcription process
- getProviders() : array<string|int, ISpeechToTextProvider>
- hasProviders() : bool
- scheduleFileTranscription() : void
- Will schedule a transcription process in the background. The result will become available with the \OCP\SpeechToText\Events\TranscriptionFinishedEvent You should add context information to the context array to re-identify the transcription result as belonging to your transcription request.
- transcribeFile() : string
Methods
cancelScheduledFileTranscription()
Will cancel a scheduled transcription process
public
cancelScheduledFileTranscription(File $file, string|null $userId, string $appId) : void
Parameters
- $file : File
-
The media file involved in the transcription
- $userId : string|null
-
The user that triggered this request
- $appId : string
-
The app that triggered this request
Tags
getProviders()
public
getProviders() : array<string|int, ISpeechToTextProvider>
Tags
Return values
array<string|int, ISpeechToTextProvider>hasProviders()
public
hasProviders() : bool
Tags
Return values
boolscheduleFileTranscription()
Will schedule a transcription process in the background. The result will become available with the \OCP\SpeechToText\Events\TranscriptionFinishedEvent You should add context information to the context array to re-identify the transcription result as belonging to your transcription request.
public
scheduleFileTranscription(File $file, string|null $userId, string $appId) : void
Parameters
- $file : File
-
The media file to transcribe
- $userId : string|null
-
The user that triggered this request (only for convenience, will be available on the TranscriptEvents)
- $appId : string
-
The app that triggered this request (only for convenience, will be available on the TranscriptEvents)
Tags
transcribeFile()
public
transcribeFile(File $file, string|null $userId, string $appId) : string
Parameters
- $file : File
-
The media file to transcribe
- $userId : string|null
-
The user that triggered this request
- $appId : string
-
The app that triggered this request