Skip to content

Instantly share code, notes, and snippets.

@solace
Last active January 1, 2023 01:56
Show Gist options
  • Save solace/e8998234d0a6e0d93d523d6ba1d54011 to your computer and use it in GitHub Desktop.
Save solace/e8998234d0a6e0d93d523d6ba1d54011 to your computer and use it in GitHub Desktop.
DeepGram JSON to Descript transcript
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment