Export Your Finished Transcript
Reading time: approx. 5 min
What You Will Learn
You now have a high-quality, punctuated, and timestamped text file. In this final, short moment you learn to use pandoc, a universal conversion tool, to transform your transcript_punctuated.txt into more useful and shareable formats.
The Basics: What Is Pandoc?
Pandoc is like a Swiss Army knife for documents. It can read almost any text format and write almost any other. We will use it to go from a simple text file to structured documents.
Install Pandoc
If you do not already have it, install Pandoc on your system.
For Debian/Ubuntu:
sudo apt update && sudo apt install pandoc
For Fedora:
sudo dnf install pandoc
For Arch Linux:
sudo pacman -S pandoc
How to Convert Your Text
Make sure you are in your project folder (~/sv-transkriptor) in the terminal. Here are the commands to convert your transcript_punctuated.txt.
Convert to Markdown
Markdown (.md) is a simple format used extensively on the web and for documentation.
pandoc transcript_punctuated.txt -o transcript.md
Convert to Word (.docx)
Perfect for sharing with colleagues or for further editing in Microsoft Word or Google Docs.
pandoc transcript_punctuated.txt -o transcript.docx
Convert to HTML
Create a web page of your transcript.
pandoc transcript_punctuated.txt -o transcript.html
How We Can Use This in the Classroom
The entire chain is now complete! You have gone from a YouTube video to a formatted, searchable, and useful document. This is a powerful workflow that you can customize and build upon.
Questions to Consider:
- Automation: How could you combine all the Python scripts and
pandoccommands into a single script that runs the entire process with a single command? - Structure: Would you like to merge the text between timestamps into longer, continuous paragraphs? How would you modify
punctuate.pyto do that? - Metadata: How can you add information like the video's title, URL, and date at the top of the exported document?
Course Conclusion
Congratulations! You have successfully completed an advanced AI process on your local computer. You have installed command-line tools, managed Python environments, run multiple AI models, and converted the result into professional formats.
The skills you have acquired in this course are a solid foundation for continuing to explore the rapidly growing world of open and local AI. Keep experimenting!

