Skip to content

Conversation

@Kholtien
Copy link

Fixes #20

VoxD was truncating transcriptions at exactly 285 characters due to ydotool command-line argument length limitations. Implemented automatic text chunking for strings exceeding 250 characters.

Changes:

  • Add intelligent text chunking for long transcriptions
  • Add configurable chunk size (default: 250 chars)
  • Add configurable inter-chunk delay (default: 50ms)
  • Maintain existing behavior for short text (<250 chars)
  • Add proper error handling and logging
  • Add comprehensive tests for chunking behavior
  • Update documentation with new typing options

Tested with transcriptions up to 2000+ characters with no character loss. Short text continues to use the fast, non-chunked method automatically.

Resolves truncation issue where long dictations (e.g., academic content) would cut off mid-word at 285 characters.

VoxD was truncating transcriptions at exactly 285 characters due to
ydotool command-line argument length limitations. Implemented automatic
text chunking for strings exceeding 250 characters.

Changes:
- Add intelligent text chunking for long transcriptions
- Add configurable chunk size (default: 250 chars)
- Add configurable inter-chunk delay (default: 50ms)
- Maintain existing behavior for short text (<250 chars)
- Add proper error handling and logging
- Add comprehensive tests for chunking behavior
- Update documentation with new typing options

Tested with transcriptions up to 2000+ characters with no character loss.
Short text continues to use the fast, non-chunked method automatically.

Resolves truncation issue where long dictations (e.g., academic content)
would cut off mid-word at 285 characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typing responses limited to 285 characters

2 participants