Skip to content

Commit cd48b3d

Browse files
fix: always use detect_language for Deepgram file transcription
Deepgram's `language` parameter enforces a specific language and returns empty results when the audio doesn't match. Removed the language pass-through so detect_language=true is always used, preventing empty transcriptions. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 67062d0 commit cd48b3d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

frontend/src/hooks/useFileTranscription.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,13 +711,11 @@ async function executeDeepgram(
711711
updateJob(jobId, { status: 'uploading', progress: 20 })
712712

713713
updateJob(jobId, { status: 'transcribing', progress: 40 })
714-
const singleLang = config.languageHints?.length === 1 ? config.languageHints[0] : undefined
715714
const response = await deepgramTranscribeFile(
716715
apiKey,
717716
file,
718717
{
719718
model: config.model || 'nova-3',
720-
language: singleLang,
721719
diarize: config.enableSpeakerDiarization,
722720
punctuate: true,
723721
utterances: true,

0 commit comments

Comments
 (0)