Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
317521b
feat(SpeechToText): Add SpeechToText provider API
marcelklehr Apr 11, 2023
f2eb224
feat(SpeechToText): Add autoload changes
marcelklehr Apr 11, 2023
a9b5d1f
chore(coding style): Run cs:fix
marcelklehr Apr 11, 2023
1833d93
chore(coding style): Run cs:fix
marcelklehr Apr 11, 2023
ef7ce88
ISpeechToTextProvider#transcribeFile: Pass \OCP\Files\File instead of…
marcelklehr Apr 12, 2023
176f1af
ISpeechToTextManager: Take File as input, drop $context
marcelklehr Apr 13, 2023
a8d3fff
Split TranscriptionFinishedEvent into Successful and Failed events
marcelklehr Apr 13, 2023
865ebfa
Add missing strict_types + author + copyright
marcelklehr Apr 13, 2023
ad66180
Update lib/private/SpeechToText/SpeechToTextManager.php
marcelklehr Apr 13, 2023
71523b9
AbstractTranscriptionEvent: Add File param
marcelklehr Apr 17, 2023
ad1a0d8
Transcription*Event: Add doc block
marcelklehr Apr 17, 2023
3779cc3
SpeechToTextManager: Deduplicate transcription jobs
marcelklehr Apr 17, 2023
6e9f260
Update lib/private/SpeechToText/SpeechToTextManager.php
marcelklehr Apr 17, 2023
aac6a18
Update lib/public/SpeechToText/ISpeechToTextManager.php
marcelklehr Apr 17, 2023
b082657
Update lib/public/SpeechToText/ISpeechToTextManager.php
marcelklehr Apr 17, 2023
47cff5d
Update lib/public/SpeechToText/ISpeechToTextManager.php
marcelklehr Apr 17, 2023
3f57725
SpeechToTextManager#transcribeFile: Try next provider if one fails
marcelklehr Apr 17, 2023
bef4cf0
Fix missing import
nickvergessen Apr 18, 2023
9649f91
Update lib/private/SpeechToText/SpeechToTextManager.php
marcelklehr Apr 18, 2023
ce651e5
Run cs:fix
marcelklehr Apr 18, 2023
eb996cb
TranscriptionJob: Ensure filesystem is setup before trying to retriev…
marcelklehr Apr 18, 2023
a8b27c9
TranscriptionJob: Add owner argument to simplify filesystem setup
marcelklehr Apr 19, 2023
a2f5421
SpeechToTextManager#scheduleFileTranscription: Take context params an…
marcelklehr Apr 19, 2023
fbcd275
Context params: Make userId nullable
marcelklehr Apr 19, 2023
db9901a
Fix(docs): Fix parameter type in doc block
nickvergessen Apr 19, 2023
ab7b63d
fix(autoloader): Rebuild
nickvergessen Apr 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix(docs): Fix parameter type in doc block
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 19, 2023
commit db9901a02e59479e44d32368d3cde377153b35fd
6 changes: 3 additions & 3 deletions lib/public/SpeechToText/ISpeechToTextManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ public function hasProviders(): bool;
* 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;
}