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
Every generated audio is instantly added to history with all settings preserved
30 Item Limit
History maintains your 30 most recent audio generations
Browser Storage
History persists in browser local storage across sessions
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
History Header displays:
- 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
Audio Name + Edit Button
- 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
Date · Voice · Type · Speed · MoodExample:
- Small text (11px)
- Secondary color (muted)
- Separated by bullets (·)
- Wraps on mobile
- Adapts to selected interface language
Text Preview
First Line of Text
- Single line with ellipsis
- Shows beginning of transcript
- Helps identify content quickly
Action Buttons
Button RowFive 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)
Inline Player ComponentAppears below buttons when audio is 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
Not Playing:
- 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
Click the ✏️ (pencil) icon next to the audio name.A modal dialog appears:
- 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
Type your desired name in the input field:
- 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
Three ways to confirm:
- Click Save Button: “Guardar” / “Save” (blue gradient)
- Press ENTER: Quick-save shortcut
- Press ESC: Cancel (no changes)
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
Progress Bar:
- 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
Play/Pause Button (32px circle):
- 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
Duration Calculation
VozCraft estimates duration based on text length and settings:Example 1: Normal Settings
Example 1: Normal Settings
Settings:Result: ~53 seconds of audio
- Text: 700 characters
- Speed: Normal (1.00)
- Voice Type: Normal (-0.05)
- Mood: Neutral (1.00x)
Example 2: Fast & Energetic
Example 2: Fast & Energetic
Settings:Result: ~42 seconds of audio (fast!)
- 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
Settings:Result: ~65 seconds (very slow and contemplative)
- 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: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
Clear All History
Remove all history items at once: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)
Exporting History (JSON)
Export Process
Save your entire history as a JSON file:File Generation
VozCraft generates a JSON file:
- Filename:
vozcraft-historial.json - Format: Pretty-printed JSON (2-space indentation)
- Encoding: UTF-8
- Contains array of all history items
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:Select File
Browser file picker opens:
- File filter:
.jsonfiles only - Navigate to your history file
- Select
vozcraft-historial.json(or renamed file) - Click “Open”
Processing
VozCraft reads and validates the file:
- Parses JSON content
- Validates structure (must be array)
- Checks for required fields in each item
- Handles errors gracefully
Merge with Existing History
Imported items are merged with current 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)
Import Behavior
- Merge Logic
- Error Handling
- Duplicate Handling
How Import Merges with Existing History:Important Notes:
- 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:| Field | Type | Valid Values | Notes |
|---|---|---|---|
id | string | Any string | Used as React key, typically timestamp |
timestamp | number | Unix timestamp | Milliseconds since epoch |
texto | string | Any text | 1-5000 characters recommended |
nombre | string | Any text | 0-80 characters, empty string if unnamed |
voz | string | VOCES labels | Must match exactly |
genero | string | ”Voz Normal” or “Voz Aguda” | Case-sensitive |
velocidad | string | VELOCIDADES labels | Must match exactly |
animo | string | ANIMOS labels | Must match exactly |
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
Why 30 Items? This limit balances functionality with performance and storage concerns:
- 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
Watch the count in the history header:
- Approaches 30: Consider exporting or cleaning
- Reaches 30: Oldest items will be auto-removed
- Over 30: Not possible (enforced by code)
Export Before Limit
Before reaching 30 items:
- Export current history to JSON
- Clear history if starting fresh project
- Import only items you need from archive
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:VozCraft’s history storage is very efficient. Even with maximum-length texts and 30 items, storage usage is minimal compared to typical localStorage capacity.
Clearing Browser Storage
History is lost when:Clearing Browser Data
Clearing Browser Data
Manual Clear (Chrome/Edge):
- 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
Behavior:
- 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
Cross-Browser:
- Each browser has separate localStorage
- History in Chrome ≠ History in Firefox
- No automatic synchronization
Troubleshooting History Issues
History disappeared
History disappeared
Possible Causes:
- 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
Error: “Error al leer el archivo”Causes:
- 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
Items show default values or errorsCauses:
- 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
Next Steps
Audio Export
Learn about exporting audio as MP3, WAV, and TXT files
Using VozCraft
Complete guide to VozCraft workflows
Troubleshooting
Solutions to common issues and problems
