Convert DeepGram to Descript transcript format

Descript provides transcription as part of their service, but if you already have transcripts, why not use them?

You can use this command to generate a Descript compatible transcript from a DeepGram transcript using jq.

You’ll need to update the speaker labels and may need to make some minor corrections like joining split paragraphs from the same speaker due to mislabelling before importing.

# Warning: This is not a complete script.
# You may also need to edit the transcript text to fix speaker names
# and make minor corrections before importing into Descript.
cat deepgram.json | jq -r '
.results.channels[0].alternatives[0].paragraphs.paragraphs[]
| ("SPEAKER_" + (.speaker|tostring)) + ": "
+ ([.sentences[].text] | join(" "))' > transcript.txt
Published January 1, 2023