MCPcopy
hub / github.com/OpenBMB/VoxCPM / _dispatch_legacy

Function _dispatch_legacy

src/voxcpm/cli.py:594–618  ·  view source on GitHub ↗
(args, parser)

Source from the content-addressed store, hash-verified

592
593
594def _dispatch_legacy(args, parser):
595 warn_legacy_mode()
596
597 if args.input and args.text:
598 parser.error(
599 "Use either batch mode (--input) or single mode (--text), not both."
600 )
601
602 if args.input:
603 if not args.output_dir:
604 parser.error("Batch mode requires --output-dir")
605 return cmd_batch(args, parser)
606
607 if not args.text or not args.output:
608 parser.error("Single-sample legacy mode requires --text and --output")
609
610 if (
611 args.prompt_audio
612 or args.prompt_text
613 or args.prompt_file
614 or args.reference_audio
615 ):
616 return cmd_clone(args, parser)
617
618 return cmd_design(args, parser)
619
620
621# -----------------------------

Callers 1

mainFunction · 0.85

Calls 4

warn_legacy_modeFunction · 0.85
cmd_batchFunction · 0.85
cmd_cloneFunction · 0.85
cmd_designFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…