Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions lib/Controller/AssistantApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,18 +429,18 @@ public function getOutputFile(int $ocpTaskId, int $fileId): DataDownloadResponse
public function runFileAction(int $fileId, string $taskTypeId): DataResponse {
try {
$this->taskProcessingService->runFileAction($this->userId, $fileId, $taskTypeId);
$message = $this->l10n->t('Assistant task submitted successfully');
$message = $this->l10n->t('Assistant task submitted');
if ($taskTypeId === AudioToText::ID) {
$message = $this->l10n->t('Transcription task submitted successfully');
$message = $this->l10n->t('Transcription task submitted');
} elseif (class_exists('OCP\\TaskProcessing\\TaskTypes\\AudioToTextSubtitles')) {
if ($taskTypeId === \OCP\TaskProcessing\TaskTypes\AudioToTextSubtitles::ID) {
$message = $this->l10n->t('Subtitles task submitted successfully');
$message = $this->l10n->t('Subtitles task submitted');
}
} elseif ($taskTypeId === TextToTextSummary::ID) {
$message = $this->l10n->t('Summarization task submitted successfully');
$message = $this->l10n->t('Summarization task submitted');
} elseif (class_exists('OCP\\TaskProcessing\\TaskTypes\\TextToSpeech')) {
if ($taskTypeId === \OCP\TaskProcessing\TaskTypes\TextToSpeech::ID) {
$message = $this->l10n->t('Text-to-speech task submitted successfully');
$message = $this->l10n->t('Text-to-speech task submitted');
}
}
return new DataResponse([
Expand Down
8 changes: 4 additions & 4 deletions src/files/fileActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function registerSummarizeAction() {
try {
await axios.post(url)
showSuccess(
t('assistant', 'Summarization AI task submitted successfully.') + '\n'
t('assistant', 'Summarization AI task submitted.') + '\n'
+ t('assistant', 'You will be notified when it is ready.') + '\n'
+ t('assistant', 'It can also be checked in the Assistant in the "Work with text -> Summarize" menu.'),
)
Expand Down Expand Up @@ -103,7 +103,7 @@ function registerTtsAction() {
try {
await axios.post(url)
showSuccess(
t('assistant', 'Text-to-Speech AI task submitted successfully.') + '\n'
t('assistant', 'Text-to-Speech AI task submitted.') + '\n'
+ t('assistant', 'You will be notified when it is ready.') + '\n'
+ t('assistant', 'It can also be checked in the Assistant in the "Work with audio -> Generate speech" menu.'),
)
Expand Down Expand Up @@ -142,7 +142,7 @@ function registerSttAction() {
try {
await axios.post(url)
showSuccess(
t('assistant', 'Transcription AI task submitted successfully.') + '\n'
t('assistant', 'Transcription AI task submitted.') + '\n'
+ t('assistant', 'You will be notified when it is ready.') + '\n'
+ t('assistant', 'It can also be checked in the Assistant in the "Work with audio -> Transcribe audio" menu.'),
)
Expand Down Expand Up @@ -181,7 +181,7 @@ function registerSttSubtitlesAction() {
try {
await axios.post(url)
showSuccess(
t('assistant', 'AI subtitles task submitted successfully.') + '\n'
t('assistant', 'AI subtitles task submitted.') + '\n'
+ t('assistant', 'You will be notified when it is ready.') + '\n'
+ t('assistant', 'It can also be checked in the Assistant in the "Work with audio -> Generate subtitles" menu.'),
)
Expand Down
Loading