'use client'; import React from 'react'; import { X, Keyboard, Mic, Save, Search, SkipForward, Bookmark, HelpCircle, FolderDown, FileAudio, FileText, FileJson } from 'lucide-react'; import { motion, AnimatePresence } from 'framer-motion'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; interface HelpModalProps { isOpen: boolean; onClose: () => void; } export default function HelpModal({ isOpen, onClose }: HelpModalProps) { return ( {isOpen && ( <>
Help & Documentation
{/* Quick Start */}

🚀 Quick Start

  1. Enter a Speaker ID and Dataset Name.
  2. Paste your text sentences into the text area and click Load Sentences.
  3. Press Space or click the microphone to start recording.
  4. Rate the recording and select an emotion (optional).
  5. Press Ctrl + S or click "Save & Next" to save.
  6. When finished, click Download Dataset in Settings.
{/* Features */}

✨ Features

  • Emotion Tagging: Label recordings with emotions like Happy, Sad, or Whisper.
  • Bookmarks: Flag difficult sentences to review later.
  • Search: Find specific sentences by keyword.
  • Skip: Skip irrelevant or problematic sentences.
{/* Keyboard Shortcuts */}

⌨️ Shortcuts

Start/Stop Recording Space
Save & Next Ctrl + S
Next Sentence
Previous Sentence
Focus Search Ctrl + F
{/* Dataset Format */}

Dataset Export Format

When you download your dataset, you'll get a ZIP file with the following structure:

dataset.zip
audio/
speaker_001_line1_hello_world.wav
speaker_001_line2_how_are_you.wav
transcriptions/
speaker_001_line1_hello_world.txt
speaker_001_line2_how_are_you.txt
{/* Transcription Format */}

Transcription File Format

{`[METADATA]
Recording_ID: speaker_001_line1_hello_world.wav
Speaker_ID: speaker_001
Dataset_Name: my_dataset
Timestamp: 2024-12-13T10:30:00Z
Emotion: neutral
Rating: 5
Duration: 2.5
[TEXT]
Hello world, this is a sample sentence.`}
{/* Audio Format */}

Audio Format

  • • Format: WAV
  • • Sample Rate: 48kHz
  • • Channels: Mono
  • • Bit Depth: 16-bit

Compatible With

  • • Coqui TTS
  • • Mozilla TTS
  • • VITS / SoVITS
  • • Hugging Face Datasets
)}
); }