History Management
VozCraft automatically maintains a comprehensive history of all your generated audio, allowing you to replay, rename, export, and manage your text-to-speech creations. This guide covers all history features and best practices for organizing your audio library.Overview
Every audio generation is automatically saved to your history with complete metadata:Automatic Saving
30 Item Limit
Browser Storage
History Panel
Location and Display
The history panel is located:- Desktop: Right side of the screen (fixed width: 340px)
- Tablet: Below the main control panel
- Mobile: Below the main control panel
Panel Components
- Header
- Scroll Area
- Title: ”📋 Historial” (Spanish) or ”📋 History” (English)
- Count: Number of items in parentheses (e.g., “(15)”)
- Clear Button: Red “Limpiar todo” / “Clear all” button
History Items
Each history item is a comprehensive record of a single audio generation:Item Structure
Visual Display
Each history item shows:Name Row
- Left: Bold name or auto-generated “Audio · [date/time]”
- Right: ✏️ Edit button (24x24px)
- Truncates with ellipsis if too long
- Edit button changes color on hover (blue)
Metadata Row
- Small text (11px)
- Secondary color (muted)
- Separated by bullets (·)
- Wraps on mobile
- Adapts to selected interface language
Text Preview
- Single line with ellipsis
- Shows beginning of transcript
- Helps identify content quickly
Action Buttons
- Play/Stop (blue/purple) - Flex-grow, main action
- MP3 (green) - Export as MP3
- WAV (amber) - Export as WAV
- TXT (purple) - Download transcript
- Delete (red) - Remove from history
Audio Player (When Playing)
- Progress Bar: Seekable with position indicator
- Play/Pause Button: 32px circular button
- Waveform Visualization: 32 animated bars
- Time Display: “0:45 / 2:30” format
Visual States
- Default State
- Playing State
- Hover State
- Light background (white or dark card color)
- Standard border
- ”▶ Reproducir” / ”▶ Play” button
- No audio player visible
Renaming Audio
VozCraft allows you to assign custom names to your audio for better organization:Default Naming
When audio is first generated, it has no custom name (nombre: ""), so it displays:
"Audio · " + localized_date_time
Rename Process
Open Rename Modal
- Centered overlay with backdrop blur
- Title: “✏️ Nombre del audio” / “✏️ Audio name”
- Text input with current name pre-filled
- Input is auto-focused and text is selected
Enter New Name
- Maximum length: 80 characters
- Allowed characters: All characters accepted
- Placeholder: “Escribe un nombre…” / “Enter a name…”
- “Product Demo Script v2”
- “Spanish Lesson 1 - Greetings”
- “Podcast Intro - Season 2”
- “Training Module 5”
- “Customer Service Script - Returns”
Save or Cancel
- Click Save Button: “Guardar” / “Save” (blue gradient)
- Press ENTER: Quick-save shortcut
- Press ESC: Cancel (no changes)
Confirmation
- Modal closes immediately
- Name updates in history item
- Toast notification: ”✓ Nombre actualizado” / ”✓ Name updated”
- History is saved to browser storage
- New name will be used for file exports
Rename Modal Details
Playback from History
Playing Audio
Click the ”▶ Reproducir” / ”▶ Play” button on any history item:Audio Begins Playing
- Button changes to ”⏹ Detener” / ”⏹ Stop” with purple gradient
- Item background becomes blue-tinted
- Inline audio player appears below buttons
- Web Speech API synthesizes audio with original settings
Audio Player Features
- Visual progress indicator (5px height)
- Seekable - click anywhere to jump to position
- Animated position dot follows progress
- Gradient fill (blue to purple)
- 32 vertical bars
- Varying heights (20-90%) for visual interest
- Bars animate when playing
- Color changes: blue for played, gray for upcoming
- Animation:
wave-bar-minikeyframes, 0.6-1.08s duration
- Format: “0:45 / 2:30” (current / total)
- Updates 10 times per second (100ms interval)
- Tabular numbers for alignment
- Gray text color
Playback Controls
- Playing: Shows ⏸ (pause icon), purple background
- Paused: Shows ▶ (play icon), blue background
- Click to toggle playback state
- Click progress bar to jump to position
- Audio restarts from clicked position
- Useful for long audio content
Stopping Playback
- Current audio stops immediately
- Button reverts to ”▶ Reproducir”
- Player remains visible until item changes
- Background color returns to normal
Duration Calculation
VozCraft estimates duration based on text length and settings:Example 1: Normal Settings
Example 1: Normal Settings
- Text: 700 characters
- Speed: Normal (1.00)
- Voice Type: Normal (-0.05)
- Mood: Neutral (1.00x)
Example 2: Fast & Energetic
Example 2: Fast & Energetic
- Text: 1000 characters
- Speed: Fast (1.25)
- Voice Type: High-pitched (+0.05)
- Mood: Energetic (1.30x)
Example 3: Slow & Melancholic
Example 3: Slow & Melancholic
- Text: 500 characters
- Speed: Slow (0.75)
- Voice Type: Normal (-0.05)
- Mood: Melancholic (0.78x)
Deleting History Items
Delete Single Item
Remove individual history items:Click Delete Button
Immediate Removal
- Item disappears from history instantly
- No confirmation dialog (action is immediate)
- Remaining items re-flow to fill space
- History count updates (e.g., “(15)” becomes “(14)”)
- Browser storage updated
Confirmation Toast
- Spanish: “Eliminado del historial”
- English: “Removed from history”
- Green background (success)
- Auto-dismisses after 3.2 seconds
Clear All History
Remove all history items at once:Click Clear All Button
Immediate Clearing
- All history items removed instantly
- No confirmation dialog
- Empty state message appears
- Count badge disappears
- “Clear all” button hides (only visible when history exists)
Storage Cleared
- Browser local storage cleared
- No way to undo this action
- Toast: “Historial limpiado” / “History cleared”
Exporting History (JSON)
Export Process
Save your entire history as a JSON file:Click Save Button
File Generation
- Filename:
vozcraft-historial.json - Format: Pretty-printed JSON (2-space indentation)
- Encoding: UTF-8
- Contains array of all history items
Download
- File saves to default Downloads folder
- No processing delay (instant)
- Toast notification: ”📁 Historial exportado”
JSON File Structure
- Top-level: Array of objects
- Each object: One history item
- Order: Newest first (reverse chronological)
- All fields preserved exactly as stored
Use Cases for JSON Export
Backup
- Prevent data loss: Export regularly to preserve your work
- Browser changes: Protect against browser data clearing
- Migration: Move history to another device
- Archive: Long-term storage of audio metadata
Sharing
- Team collaboration: Share audio library with colleagues
- Project handoff: Transfer work to another team member
- Templates: Share commonly-used audio settings
- Documentation: Include in project documentation
Analysis
- Content audit: Review what content has been generated
- Statistics: Analyze language/mood/speed usage
- Search: Find specific content across all generations
- Reporting: Generate reports on TTS usage
Recovery
- Restore after clearing: Recover accidentally cleared history
- Device failure: Restore history after hardware issues
- Browser reset: Recover after clearing browser data
- Experimentation: Try different settings, revert to backup
Importing History (JSON)
Import Process
Restore or merge history from a JSON file:Click Load Button
Select File
- File filter:
.jsonfiles only - Navigate to your history file
- Select
vozcraft-historial.json(or renamed file) - Click “Open”
Processing
- Parses JSON content
- Validates structure (must be array)
- Checks for required fields in each item
- Handles errors gracefully
Merge with Existing History
- New items added to existing history
- Duplicates possible (based on ID collision)
- Combined history limited to 30 most recent items
- Items sorted by timestamp (newest first)
Success Confirmation
- Message: ”✓ [X] entradas cargadas” / ”✓ [X] entries loaded”
- X = number of items in imported file
- Green background (success)
- History panel updates immediately
Import Behavior
- Merge Logic
- Error Handling
- Duplicate Handling
- Import does NOT replace existing history
- Import ADDS to existing history
- To replace completely, clear history first, then import
- 30-item limit applies after merging
Valid JSON Format
For manual JSON creation or editing:History Limit and Rotation
30-Item Maximum
VozCraft maintains a maximum of 30 history items:- New items added to beginning of array
- When adding 31st item, oldest (30th) is removed
- FIFO queue: First In, First Out
- Automatic rotation maintains limit
- Prevents excessive browser storage usage
- Keeps UI responsive with reasonable scroll depth
- Encourages users to export important histories
- Typical use case: Keep recent work, export archives
Managing the Limit
Monitor Your History
- Approaches 30: Consider exporting or cleaning
- Reaches 30: Oldest items will be auto-removed
- Over 30: Not possible (enforced by code)
Export Before Limit
- Export current history to JSON
- Clear history if starting fresh project
- Import only items you need from archive
Curate Your History
- Delete test generations
- Remove duplicates or mistakes
- Rename important items for easy identification
- Export individual audio files you want to keep
Browser Storage Details
Local Storage Implementation
VozCraft uses the browser’slocalStorage API:
Storage Characteristics
Persistence
- Survives: Browser restarts, computer restarts
- Lost on: Clearing browser data, incognito mode end
- Per-domain: Isolated to VozCraft’s domain
- Capacity: Typically 5-10 MB per domain
Automatic Operations
- Save on: Every generation, rename, delete, import
- Load on: Page load, browser refresh
- No user action: Completely transparent
- Error handling: Graceful degradation if storage fails
Storage Size Estimate
Typical History Item Size:Clearing Browser Storage
History is lost when:Clearing Browser Data
Clearing Browser Data
- Settings > Privacy and Security
- Clear browsing data
- Select “Cookies and other site data”
- Choose time range
- Click “Clear data”
Incognito/Private Mode
Incognito/Private Mode
- History saves during incognito session
- History deleted when incognito window closes
- Not shared with normal browsing mode
- No persistence between sessions
Different Browsers
Different Browsers
- Each browser has separate localStorage
- History in Chrome ≠ History in Firefox
- No automatic synchronization
Troubleshooting History Issues
History disappeared
History disappeared
- Browser data cleared
- Using different browser/profile
- Incognito mode used
- Storage quota exceeded (rare)
- Browser extension interference
- Check if you have an exported JSON backup
- Verify you’re using the same browser and profile
- Disable browser extensions and test
- Check browser storage settings
Can't import history file
Can't import history file
- File is not valid JSON
- File is corrupted
- Top-level is not an array
- File encoding issues
- Verify file opens in text editor
- Check JSON validity with online validator
- Ensure file exported from VozCraft
- Try re-exporting from original source
Imported history looks wrong
Imported history looks wrong
- Field names don’t match expected format
- Language/voice labels don’t match VOCES array
- Speed/mood labels don’t match arrays
- Missing required fields
- Only import files exported by VozCraft
- If manually editing, match labels exactly
- Check source code arrays for valid values
- Re-export from working VozCraft instance
