{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "audio-player-demo",
  "title": "Audio Player Demo",
  "description": "A worked example of Audio Player: A recording with its shape, its position and its words, so a voice note can be read as well as heard.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/audio-player.json"
  ],
  "files": [
    {
      "path": "components/demos/audio-player-demo.tsx",
      "content": "\"use client\"\n\nimport { SAMPLE_AUDIO, voiceNote } from \"@/components/demos/audio-fixtures\"\nimport { AudioPlayer } from \"@/registry/default/audio-player/audio-player\"\n\nexport function AudioPlayerDemo() {\n  return (\n    <div className=\"w-full max-w-lg\">\n      <AudioPlayer\n        src={SAMPLE_AUDIO}\n        waveform\n        transcript={voiceNote}\n        label=\"voice note\"\n      />\n    </div>\n  )\n}\n",
      "type": "registry:example"
    },
    {
      "path": "components/demos/audio-fixtures.ts",
      "content": "import type { TranscriptLine } from \"@/registry/default/audio-player/audio-player\"\n\nexport const SAMPLE_AUDIO = \"/demo/audio/voice-note.m4a\"\n\n/**\n * Timed from the four clips this file was assembled out of, so every line\n * starts on the word it names rather than near it.\n */\nexport const voiceNote: TranscriptLine[] = [\n  { start: 0, end: 1.52, text: \"Quick note before I forget.\" },\n  {\n    start: 1.87,\n    end: 5.07,\n    text: \"The upload retry is firing twice when the network drops.\",\n  },\n  {\n    start: 5.42,\n    end: 8.1,\n    text: \"I think the listener gets added again on reconnect.\",\n  },\n  {\n    start: 8.45,\n    end: 11.88,\n    text: \"I'll push a fix this afternoon, but I wanted it written down.\",\n  },\n]\n\nexport const SAMPLE_VIDEO = \"/demo/video/screen-note.mp4\"\n\nexport const videoCaptions = [\n  {\n    src: \"/demo/video/screen-note.vtt\",\n    srcLang: \"en\",\n    label: \"English\",\n    default: true,\n  },\n]\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}