A Go program that converts podcast transcripts from text files into formatted HTML output with speaker highlighting and timestamps.
- Converts text transcripts to styled HTML output
- Distinguishes between host and guest speakers with different colors
- Includes timestamps for each speaker entry
- Progressive loading with "Read More" functionality
- Automatically copies generated HTML to clipboard
- Responsive design with fade effects
- Ensure you have Go installed on your system
- Clone this repository
- Install dependencies:
go mod tidyRun the program with the following command-line flags:
go run main.go -file input.txt -host "Host Name" -guest "Guest Name" -output output.html-file: Path to the input transcript text file-host: Name of the podcast host-guest: Name of the guest-output: Output HTML file name (defaults to "transcript.html")
The input text file should follow this format:
Host Name (00:00)
Host's message text
Guest Name (00:15)
Guest's message text
The program generates:
- An HTML file with styled transcript content
- Automatically copies the HTML content to your clipboard
The generated HTML includes:
- Color-coded speakers (blue for host, green for guest)
- Timestamps in gray
- Progressive loading with "Read More" functionality
- Fade effect for long transcripts
.
├── main.go # Main program logic
└── templates/ # HTML templates
├── base.html # Base HTML structure and styling
├── template.html # Transcript template with "Read More" functionality
└── speaker_entry.html # Speaker entry formatting