Skip to content
Merged
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
3 changes: 3 additions & 0 deletions lib/Service/RecordingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use OCP\Notification\IManager;
use OCP\Share\IManager as ShareManager;
use OCP\Share\IShare;
use OCP\SystemTag\ISystemTagObjectMapper;
use OCP\TaskProcessing\Exception\Exception;
use OCP\TaskProcessing\IManager as ITaskProcessingManager;
use OCP\TaskProcessing\Task;
Expand Down Expand Up @@ -80,6 +81,7 @@ public function __construct(
protected LoggerInterface $logger,
protected BackendNotifier $backendNotifier,
protected ITaskProcessingManager $taskProcessingManager,
protected ISystemTagObjectMapper $systemTagMapper,
protected IFactory $l10nFactory,
protected IUserManager $userManager,
) {
Expand Down Expand Up @@ -239,6 +241,7 @@ public function storeTranscript(string $owner, string $roomToken, int $recording
$transcriptFileName,
$output . "\n\n$warning\n",
);
$this->systemTagMapper->assignGeneratedByAITag((string)$fileNode->getId(), 'files');
$this->notifyStoredTranscript($room, $participant, $fileNode, $aiTask);
} catch (NoUserException) {
throw new InvalidArgumentException('owner_invalid');
Expand Down
4 changes: 2 additions & 2 deletions src/components/CallView/BottomBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ const liveTranscriptionButtonLabel = computed(() => {
return t('spreed', 'Disable live transcription')
}

return t('spreed', 'Enable live transcription')
return t('spreed', 'Enable live transcription (generated by AI)')
})

const liveTranslationButtonLabel = computed(() => {
if (callViewStore.isLiveTranscriptionEnabled && languageType.value === LanguageType.Target) {
return t('spreed', 'Disable live translation')
}

return t('spreed', 'Enable live translation')
return t('spreed', 'Enable live translation (generated by AI)')
})

const originalLanguageButtonLabel = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessagesList/MessagesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
v-if="shouldShowSummaryOption"
:disabled="loadingSummary"
@click="generateSummary">
{{ t('spreed', 'Generate summary') }}
{{ t('spreed', 'Generate summary with AI') }}
</NcAssistantButton>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions tests/php/Service/RecordingServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function is_uploaded_file($filename) {
use OCP\L10N\IFactory;
use OCP\Notification\IManager;
use OCP\Share\IManager as ShareManager;
use OCP\SystemTag\ISystemTagObjectMapper;
use OCP\TaskProcessing\IManager as ITaskProcessingManager;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\MockObject\MockObject;
Expand All @@ -59,6 +60,7 @@ class RecordingServiceTest extends TestCase {
protected LoggerInterface&MockObject $logger;
protected BackendNotifier&MockObject $backendNotifier;
protected ITaskProcessingManager&MockObject $taskProcessingManager;
protected ISystemTagObjectMapper&MockObject $systemTagMapper;
protected IFactory&MockObject $l10nFactory;
protected IUserManager&MockObject $userManager;
protected RecordingService $recordingService;
Expand All @@ -81,6 +83,7 @@ public function setUp(): void {
$this->logger = $this->createMock(LoggerInterface::class);
$this->backendNotifier = $this->createMock(BackendNotifier::class);
$this->taskProcessingManager = $this->createMock(ITaskProcessingManager::class);
$this->systemTagMapper = $this->createMock(ISystemTagObjectMapper::class);
$this->l10nFactory = $this->createMock(IFactory::class);
$this->userManager = $this->createMock(IUserManager::class);

Expand All @@ -100,6 +103,7 @@ public function setUp(): void {
$this->logger,
$this->backendNotifier,
$this->taskProcessingManager,
$this->systemTagMapper,
$this->l10nFactory,
$this->userManager,
);
Expand Down
Loading