How patrick-costa1605/tiko_994 works
This repository generates a hand-drawn, Portuguese-language scouting-history Reel from a JSON script, producing synchronized visuals, captions, voice, music, and effects before encoding an MP4. The main workflow is script blocks and scenes → speech and word timings (recorded or synthesized) → timed drawing and page transitions → audio mix and video export. The README documents both voice paths, transcription of changed recordings, and a separate deliverable check; those branches are included. Edges cite shown calls or README statements; unsampled render internals are not inferred beyond documented behavior.
Main entry points: render.py Render orchestrator · gravacao.py Recording alignment · voz.py Speech synthesis · transcrever.py Word transcription
Components 21
Script and scenes
- JSON script
guioes/como_surgiu.json - Scene artwork
src/cenas.py - Video settings
src/config.py
Visual rendering
- Render orchestrator
src/render.py - Drawing primitives
src/desenho.py - Rendered Reel
src/render.py - Caption text
src/render.py
Voice and timing
- Voice selection
src/render.py - Speech synthesis
src/voz.py - Recording alignment
src/gravacao.py - Word transcription
src/transcrever.py - Word timings
assets/gravacao/palavras.json - Recorded voice
assets/gravacao/voz_original.mp4 - Speech cache
assets/audio_cache
Audio production
- Audio processing
src/audio.py - Music adaptation
src/musica.py - Background track
assets/musica/bombinsound-happy-ukulele-512480.mp3
Output checks
- Reel verifier
src/verificar.py
Other components
- Video creator
- FFmpeg
- Edge TTS service
Connections 26
- Video creator → Render orchestrator: runs render
README.md - Video creator → Word transcription: transcribes recording
README.md - Video creator → Reel verifier: checks output
README.md - JSON script → Render orchestrator: provides blocks
README.md - Scene artwork → Render orchestrator: provides scenes
README.md - Video settings → Render orchestrator: configures layout
src/render.py - Render orchestrator → Drawing primitives: renders artwork
src/render.py - Render orchestrator → Voice selection: builds voice timeline
src/render.py - Voice selection → Recording alignment: uses recording path
src/render.py - Voice selection → Speech synthesis: uses synthesis path
src/render.py - Speech synthesis → Edge TTS service: requests speech
src/voz.py - Speech synthesis → Speech cache: reads or writes
src/voz.py - Recording alignment → Recorded voice: decodes recording
src/gravacao.py - Recording alignment → Word timings: aligns to timings
src/gravacao.py - Word transcription → Recorded voice: transcribes audio
src/transcrever.py - Word transcription → Word timings: writes timings
src/transcrever.py - Recording alignment → Audio processing: processes voice
src/gravacao.py - Render orchestrator → Music adaptation: requests soundtrack
src/render.py - Music adaptation → Background track: loads track
src/musica.py - Music adaptation → Audio processing: stretches audio
src/musica.py - Render orchestrator → Audio processing: mixes audio
README.md - Render orchestrator → FFmpeg: encodes output
README.md - Render orchestrator → Rendered Reel: writes MP4
README.md - Render orchestrator → Caption text: writes captions
README.md - Reel verifier → Render orchestrator: rebuilds timeline
src/verificar.py - Reel verifier → Rendered Reel: checks encoding
README.md