Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
docs: improve audio storage explanation in README
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolOppo committed Nov 3, 2024
1 parent db186cb commit 49c4723
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Command-line interface executable:
3. **Audio Processing**
- 44.1kHz 16-bit mono WAV output
- Crossfading algorithm for smooth transitions
- Lazy loading of audio data via static compilation
- Fileless audio storage - phoneme WAV data is serialized and embedded directly into the binary

4. **Dictionary System**
- CMU dictionary-based word to phoneme conversion
Expand All @@ -78,9 +78,9 @@ Command-line interface executable:

### Build Process
1. The build script (`build.rs`) processes the CMU dictionary and WAV files
2. Dictionary is converted to a binary lookup table
3. WAV files are serialized into the binary
4. Lazy static initialization ensures efficient runtime loading
2. Dictionary is converted to a binary lookup table using bincode serialization
3. WAV files are serialized and embedded directly into the binary
4. Static initialization provides immediate access to audio data at runtime

### Audio Synthesis Process
1. Input text is normalized and split into words
Expand All @@ -91,9 +91,9 @@ Command-line interface executable:
6. Final audio is written to WAV file

### Performance Considerations
- Static compilation of audio data eliminates file I/O
- Lazy loading prevents unnecessary memory usage
- Efficient hashmap-based dictionary lookups
- Audio data is compiled directly into the binary, eliminating runtime file I/O
- Efficient bincode serialization for compact data storage
- High-performance hashmap-based dictionary lookups
- Optimized crossfading algorithm for smooth transitions

## Dependencies
Expand Down

0 comments on commit 49c4723

Please sign in to comment.