Block 230 of 297
Audio Tour
Numbered self-guided tour stops with optional native audio, transcripts in disclosures and a phone dial-in panel.
- Puck key
- AudioTourBlock
- Export
- audioTourBlock
- React component
- <AudioTour />
- Path
- components/puck/audio-tour-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A self-guided tour with a sticky introduction column beside a numbered list of stops. Each stop can carry a thumbnail, gallery location, running time, a native audio player and a collapsible transcript. A dark dial-in panel serves visitors listening by phone. On small screens the intro and phone panel stack above the stops.
- An exhibition audio guide published to the web alongside the gallery labels
- A walking tour of a campus, garden or public art trail
- Archiving a past exhibition's recorded commentary with full transcripts
Writing the content
- Match Stop number to the number on the physical gallery label so visitors can find it with the phone keypad.
- Fill in Transcript for every stop and separate paragraphs with a blank line. The transcript disclosure only appears when there is text.
- Audio file URL is optional; without it no player shows, and visitors rely on the phone panel or the App note.
Accessibility
- Transcripts use a native details and summary disclosure, and the button text includes the stop title for screen readers, so each one is distinguishable.
- Each audio element gets an aria-label from the stop number and title, with a download link as fallback, and nothing plays until the visitor starts it.
- Running time and stop number carry hidden text labels, the decorative keypad is aria-hidden, and the phone number is a real tel: link.
Customizing the code
- Change indigo- classes to restyle the eyebrow icon, underline colors and the highlighted # key.
- The intro column stickiness comes from lg:sticky lg:top-8; remove it if the intro is long.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Phone panel labeltext
- Phone numbertext
- Phone instructionstextarea
- App notetextarea
- Transcript button texttext
- Stopsarray