2.9 KiB
Troubleshooting
Validation Failed
- Run:
python3 scripts/project_manager.py validate <project_path>
- Fix missing files or invalid directories reported by the validator.
- Re-run validation before post-processing or export.
SVG Preview Looks Wrong
- Check the file path and filename.
- Confirm naming conventions are consistent.
- Run the mandatory post-processing step when you need a self-contained preview:
python3 scripts/finalize_svg.py <project_path>
python3 -m http.server --directory <project_path>/svg_final 8000
svg_final/ is the visual-preview artifact and may be inserted into PowerPoint as an SVG picture. Fix authored content in svg_output/, then regenerate svg_final/; do not edit the derived preview as the source.
Speaker Notes Do Not Split
Check total.md:
- headings must start with
# - heading text must match SVG filenames
- sections must be separated by
---
Then rerun:
python3 scripts/total_md_split.py <project_path>
PPT Export Quality Issues
Preferred sequence:
python3 scripts/total_md_split.py <project_path>
python3 scripts/finalize_svg.py <project_path>
python3 scripts/svg_to_pptx.py <project_path>
Keep all three steps even though they have different consumers: Step 7.2 creates the mandatory svg_final/ visual preview, while the supported native PPTX exporter reads svg_output/ directly. Do not pass -s final for a release export; that override is diagnostic-only.
Inserted SVG Does Not Convert Cleanly to Shapes
PowerPoint's manual Convert-to-Shape behavior is unsupported. svg_final/ is supported only as a visual preview / SVG picture. Use the native PPTX generated from svg_output/ when editable DrawingML shapes are required.
Recorded Narration Missing
- Generate audio after
total_md_split.py, so filenames inaudio/can match splitnotes/*.mdfiles. - Export with the project-relative audio directory:
python3 scripts/notes_to_audio.py <project_path> --voice zh-CN-XiaoxiaoNeural
python3 scripts/svg_to_pptx.py <project_path> --recorded-narration audio
--recorded-narration prepares PowerPoint recorded timings and narrations. If it fails, check:
- every slide has a matching
m4a,mp3, orwavfile inaudio/ ffprobeis installed and can read each audio duration- the deck is not using
--animation-trigger on-click
Use --narration-audio-dir audio only when you intentionally want lower-level, partial audio embedding instead of PowerPoint recorded timings.
Dependency Checklist
Most tools use the standard library. Install extra dependencies only when needed:
pip install -r requirements.txt
Important optional packages:
python-pptxfor PPTX exportedge-ttsfornotes_to_audio.pyrecorded narration audioPillowfor image utilitiesnumpyfor watermark removalPyMuPDFfor PDF conversiongoogle-genaifor Gemini image generation