mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 06:55:08 -05:00
## CHANGES - Extract text extraction logic into separate method - Add GenAI client creation helper function - Split TTS generation into focused helper methods - Add audio data size validation with security limits - Implement MIME type validation for audio responses - Add WAV file generation input validation checks - Pre-allocate buffer capacity for better performance - Define audio constants for reusable configuration - Add comprehensive error handling for edge cases - Validate generated WAV data before returning results