Skip to content

Add argument parsing for audio synthesis options#319

Open
krataratha wants to merge 1 commit into
OpenBMB:mainfrom
krataratha:patch-1
Open

Add argument parsing for audio synthesis options#319
krataratha wants to merge 1 commit into
OpenBMB:mainfrom
krataratha:patch-1

Conversation

@krataratha
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 31, 2026 02:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a standalone CLI script to run VoxCPM full-finetune inference (TTS and optional zero-shot voice cloning) from a checkpoint directory, with automatic output filename generation.

Changes:

  • Add required CLI args for checkpoint directory and synthesis text, plus optional prompt audio/text for voice cloning.
  • Implement main() to load the model, run inference, and write a WAV output (auto-named when not provided).
  • Ensure output directories are created before saving the generated audio.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +108 to 112
if __name__ == "__main__":
main()
"--ckpt_dir",
type=str,
required=True,
Comment on lines +84 to +87
if args.prompt_audio:
if not args.prompt_text:
print("Error: --prompt_text is required when --prompt_audio is provided.")
sys.exit(1)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not args.prompt_text:
print("Error: --prompt_text is required when --prompt_audio is provided.")
sys.exit(1)

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.

3 participants