Skip to content

Commit 8c08e88

Browse files
committed
fix conditions for transcription
1 parent 9a3ba20 commit 8c08e88

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/backend/core/api/viewsets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,9 @@ def start_room_recording(self, request, pk=None): # pylint: disable=unused-argu
340340
status=drf_status.HTTP_500_INTERNAL_SERVER_ERROR,
341341
)
342342

343-
if settings.METADATA_COLLECTOR_ENABLED and recording.options.get(
344-
"transcribe", False
343+
if settings.METADATA_COLLECTOR_ENABLED and (
344+
recording.mode == models.RecordingModeChoices.TRANSCRIPT
345+
or recording.options.get("transcribe", False)
345346
):
346347
try:
347348
MetadataCollectorService().start(recording)

src/frontend/src/features/recording/components/TranscriptSidePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ export const TranscriptSidePanel = () => {
102102
...(!isLanguageSetToAuto && {
103103
language: selectedLanguageKey,
104104
}),
105-
transcribe: true,
106105
...(includeScreenRecording && {
106+
transcribe: true,
107107
original_mode: RecordingMode.Transcript,
108108
}),
109109
}

0 commit comments

Comments
 (0)