Skip to content

Add interactive CLI file picker for markdown narration#2

Open
mattlockyer wants to merge 2 commits intoNavaneethsen:mainfrom
mattlockyer:feature/interactive-cli-pr
Open

Add interactive CLI file picker for markdown narration#2
mattlockyer wants to merge 2 commits intoNavaneethsen:mainfrom
mattlockyer:feature/interactive-cli-pr

Conversation

@mattlockyer
Copy link
Copy Markdown

Summary

  • Adds cli.py with an interactive arrow-key directory browser using InquirerPy
  • Shows only directories and .md files for easy navigation
  • Starts from ~/, defaults to kokoro engine with automatic fallback to macOS say
  • Output saved to the directory where the command was invoked
  • Usage: uv run cli.py

Test plan

  • Run uv run cli.py and verify the file picker appears
  • Navigate directories with arrow keys, confirm only .md files and folders are shown
  • Select a .md file and verify audio generation starts
  • Run from a different directory and confirm output is saved to the invocation directory

Adds cli.py with an arrow-key directory browser (using InquirerPy)
that filters to only show directories and .md files. Defaults to
kokoro engine with automatic fallback to macOS say.
@mattlockyer
Copy link
Copy Markdown
Author

I can run it from a folder designed for dumping the output files and synced with my phone.

Easier for some people to browse for their input files using arrows/enter.

Optional: doesn't change main.py

Support --output, --speaker, --rate, --fallback, --engine, --model,
--instruct, and --kokoro-voice flags matching main.py.
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.

1 participant