Last active
January 1, 2023 01:56
-
-
Save solace/e8998234d0a6e0d93d523d6ba1d54011 to your computer and use it in GitHub Desktop.
DeepGram JSON to Descript transcript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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