A sophisticated audio story player template built with Next.js 15+, TypeScript, and Tailwind CSS. Features continuous playback across sections, variable speed control, keyboard shortcuts, and progress tracking. Perfect for creating immersive, audio-driven storytelling experiences with synchronized text.
š“ Live Demo
ā Safari Desktop & Mobile (including proper audio handling and autoplay) ā Chrome Desktop & Mobile ā Firefox Desktop & Mobile
Fork & Clone
git clone https://github.com/garysheng/audio-story-page-template.git
cd audio-story-page-template
Install Dependencies
npm install
Add Your Content
/public/story/
with your own MP3ssrc/components/story-playback.tsx
:const STORY_SECTIONS = [
{
id: 'your-section-id',
title: 'Your Section Title',
content: 'Your **Markdown** content',
audioUrl: '/story/your-audio-file.mp3'
},
// Add more sections...
]
src/app/page.tsx
Customize Styling (Optional)
src/app/globals.css
src/app/page.tsx
tailwind.config.ts
Test Locally
npm run dev
http://localhost:3000
Deploy
git remote set-url origin YOUR_NEW_REPO_URL
git push -u origin main
/public/story/
audioUrl
in story sectionsFeel free to open an issue if you run into any problems!