Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 45 variants Synthesize { text: String, output: Option<PathBuf>, rate: f32, pitch: f32, volume: f32, quality: CliQualityLevel, enhance: bool, play: bool, auto_detect: bool, }, SynthesizeFile { input: PathBuf, output_dir: Option<PathBuf>, rate: f32, quality: CliQualityLevel, }, ListVoices { language: Option<String>, detailed: bool, }, VoiceInfo { voice_id: String, }, DownloadVoice { voice_id: String, force: bool, }, PreviewVoice { voice_id: String, text: Option<String>, output: Option<PathBuf>, no_play: bool, }, CompareVoices { voice_ids: Vec<String>, }, Test { text: String, play: bool, }, CrossLangTest { format: String, save_report: bool, }, TestApi { server_url: String, api_key: Option<String>, concurrent: Option<usize>, report: Option<String>, verbose: bool, }, Config { show: bool, init: bool, path: Option<PathBuf>, }, ListModels { backend: Option<String>, detailed: bool, }, DownloadModel { model_id: String, force: bool, }, BenchmarkModels { model_ids: Vec<String>, iterations: u32, accuracy: bool, }, OptimizeModel { model_id: String, output: Option<String>, strategy: String, }, Batch { input: PathBuf, output_dir: Option<PathBuf>, workers: Option<usize>, rate: f32, pitch: f32, volume: f32, quality: CliQualityLevel, resume: bool, }, Server { port: u16, host: String, }, Interactive { voice: Option<String>, no_audio: bool, debug: bool, load_session: Option<PathBuf>, auto_save: bool, }, Guide { command: Option<String>, getting_started: bool, examples: bool, }, GenerateCompletion { shell: Shell, output: Option<PathBuf>, install_help: bool, install_script: bool, status: bool, }, Dataset { command: DatasetCommands, }, Dashboard { interval: u64, }, Cloud { command: CloudCommands, }, Telemetry { command: TelemetryCommands, }, Lsp { verbose: bool, }, Accuracy { command: AccuracyCommand, }, Performance { command: PerformanceCommand, }, Emotion { command: EmotionCommand, }, Clone { command: CloningCommand, }, Convert { command: ConversionCommand, }, Sing { command: SingingCommand, }, Spatial { command: SpatialCommand, }, Capabilities { command: CapabilitiesCommand, }, Checkpoint { command: CheckpointCommands, }, Monitor { command: MonitoringCommand, }, Train { command: TrainCommands, }, ConvertModel { input: PathBuf, output: PathBuf, from: Option<String>, model_type: String, verify: bool, }, VocoderInfer { checkpoint: PathBuf, mel: Option<PathBuf>, output: PathBuf, steps: usize, quality: Option<String>, batch_input: Option<PathBuf>, batch_output: Option<PathBuf>, metrics: bool, }, Stream { text: Option<String>, latency: u64, chunk_size: usize, buffer_chunks: usize, play: bool, }, ModelInspect { model: PathBuf, detailed: bool, export: Option<PathBuf>, verify: bool, }, Export { export_type: String, source: String, output: PathBuf, include_weights: bool, }, Import { input: PathBuf, name: Option<String>, force: bool, validate: bool, }, History { limit: usize, stats: bool, suggest: bool, clear: bool, }, Workflow { command: WorkflowCommands, }, Alias { command: AliasCommand, },
}
Expand description

CLI commands

Variants§

§

Synthesize

Synthesize text to speech

Fields

§text: String

Text to synthesize

§output: Option<PathBuf>

Output file path (use ‘-’ for stdout, omit for auto-generated filename)

§rate: f32

Speaking rate (0.5 - 2.0)

§pitch: f32

Pitch shift in semitones (-12.0 - 12.0)

§volume: f32

Volume gain in dB (-20.0 - 20.0)

§quality: CliQualityLevel

Quality level

§enhance: bool

Enable audio enhancement

§play: bool

Play audio after synthesis

§auto_detect: bool

Auto-detect input format (SSML, Markdown, JSON, or plain text)

§

SynthesizeFile

Synthesize from file

Fields

§input: PathBuf

Input text file

§output_dir: Option<PathBuf>

Output directory

§rate: f32

Speaking rate

§quality: CliQualityLevel

Quality level

§

ListVoices

List available voices

Fields

§language: Option<String>

Filter by language

§detailed: bool

Show detailed information

§

VoiceInfo

Get voice information

Fields

§voice_id: String

Voice ID

§

DownloadVoice

Download voice

Fields

§voice_id: String

Voice ID to download

§force: bool

Force download even if voice exists

§

PreviewVoice

Preview a voice with a sample text

Fields

§voice_id: String

Voice ID to preview

§text: Option<String>

Custom preview text (default: “This is a preview of this voice.”)

§output: Option<PathBuf>

Save preview to file instead of just playing

§no_play: bool

Skip audio playback (only save to file)

§

CompareVoices

Compare multiple voices side by side

Fields

§voice_ids: Vec<String>

Voice IDs to compare

§

Test

Test synthesis pipeline

Fields

§text: String

Test text

§play: bool

Play audio instead of saving

§

CrossLangTest

Run cross-language consistency tests for FFI bindings

Fields

§format: String

Output format for test report (json, yaml)

§save_report: bool

Save detailed test report to file

§

TestApi

Test API endpoints for VoiRS server

Fields

§server_url: String

Server URL (e.g., http://localhost:8080)

§api_key: Option<String>

API key for authentication

§concurrent: Option<usize>

Number of concurrent requests for load testing

§report: Option<String>

Path to save test report (JSON or Markdown)

§verbose: bool

Enable verbose output

§

Config

Show configuration

Fields

§show: bool

Show configuration and exit

§init: bool

Initialize default configuration

§path: Option<PathBuf>

Configuration file path for init

§

ListModels

List available models

Fields

§backend: Option<String>

Filter by backend

§detailed: bool

Show detailed information

§

DownloadModel

Download a model

Fields

§model_id: String

Model ID to download

§force: bool

Force download even if model exists

§

BenchmarkModels

Benchmark models

Fields

§model_ids: Vec<String>

Model IDs to benchmark

§iterations: u32

Number of iterations

§accuracy: bool

Include accuracy testing against CMU test set (>95% phoneme accuracy target)

§

OptimizeModel

Optimize model for current hardware

Fields

§model_id: String

Model ID to optimize

§output: Option<String>

Output path for optimized model

§strategy: String

Optimization strategy (speed, quality, memory, balanced)

§

Batch

Batch process multiple texts

Fields

§input: PathBuf

Input file or directory

§output_dir: Option<PathBuf>

Output directory

§workers: Option<usize>

Number of parallel workers

§rate: f32

Speaking rate

§pitch: f32

Pitch shift in semitones

§volume: f32

Volume gain in dB

§quality: CliQualityLevel

Quality level

§resume: bool

Enable resume functionality

§

Server

Server mode (future feature)

Fields

§port: u16

Port to bind to

§host: String

Host to bind to

§

Interactive

Interactive mode for real-time synthesis

Fields

§voice: Option<String>

Initial voice to use

§no_audio: bool

Disable audio playback (synthesis only)

§debug: bool

Enable debug output

§load_session: Option<PathBuf>

Load session from file

§auto_save: bool

Auto-save session changes

§

Guide

Show detailed help and guides

Fields

§command: Option<String>

Command to get help for

§getting_started: bool

Show getting started guide

§examples: bool

Show examples for all commands

§

GenerateCompletion

Generate shell completion scripts

Fields

§shell: Shell

Shell to generate completion for

§output: Option<PathBuf>

Output file (default: stdout)

§install_help: bool

Show installation instructions

§install_script: bool

Generate installation script

§status: bool

Show completion status for all shells

§

Dataset

Dataset management and validation commands

Fields

§command: DatasetCommands

Dataset subcommand to execute

§

Dashboard

Real-time monitoring dashboard

Fields

§interval: u64

Update interval in milliseconds

§

Cloud

Cloud integration commands

Fields

§command: CloudCommands

Cloud subcommand to execute

§

Telemetry

Telemetry management commands

Fields

§command: TelemetryCommands

Telemetry subcommand to execute

§

Lsp

Start Language Server Protocol (LSP) server for editor integrations

Fields

§verbose: bool

Enable verbose logging

§

Accuracy

Accuracy benchmarking commands

Fields

§command: AccuracyCommand

Accuracy command configuration

§

Performance

Performance targets testing and monitoring

Fields

§command: PerformanceCommand

Performance command configuration

§

Emotion

Emotion control commands

Fields

§command: EmotionCommand

Emotion subcommand to execute

§

Clone

Voice cloning commands

Fields

§command: CloningCommand

Cloning subcommand to execute

§

Convert

Voice conversion commands

Fields

§command: ConversionCommand

Conversion subcommand to execute

§

Sing

Singing voice synthesis commands

Fields

§command: SingingCommand

Singing subcommand to execute

§

Spatial

3D spatial audio commands

Fields

§command: SpatialCommand

Spatial subcommand to execute

§

Capabilities

Feature detection and capability reporting

Fields

§command: CapabilitiesCommand

Capabilities subcommand to execute

§

Checkpoint

Checkpoint management commands

Fields

§command: CheckpointCommands

Checkpoint subcommand to execute

§

Monitor

Advanced monitoring and debugging commands

Fields

§command: MonitoringCommand

Monitoring subcommand to execute

§

Train

Train models (vocoder, acoustic, g2p)

Fields

§command: TrainCommands

Training subcommand to execute

§

ConvertModel

Convert model formats (ONNX, PyTorch → SafeTensors)

Fields

§input: PathBuf

Input model path

§output: PathBuf

Output path (SafeTensors format)

§from: Option<String>

Source format (auto-detect if not specified)

§model_type: String

Model type (vocoder, acoustic, g2p)

§verify: bool

Verify conversion by running test inference

§

VocoderInfer

Run vocoder inference (mel → audio)

Fields

§checkpoint: PathBuf

Path to vocoder checkpoint (SafeTensors)

§mel: Option<PathBuf>

Path to mel spectrogram file (optional, generates dummy if omitted)

§output: PathBuf

Output audio file path

§steps: usize

Number of diffusion sampling steps

§quality: Option<String>

Quality preset (fast, balanced, high)

§batch_input: Option<PathBuf>

Batch processing: input directory

§batch_output: Option<PathBuf>

Batch processing: output directory

§metrics: bool

Show performance metrics

§

Stream

Stream real-time text-to-speech synthesis

Fields

§text: Option<String>

Initial text to synthesize

§latency: u64

Target latency in milliseconds

§chunk_size: usize

Chunk size in frames

§buffer_chunks: usize

Buffer size in chunks

§play: bool

Enable audio output

§

ModelInspect

Inspect and analyze model files

Fields

§model: PathBuf

Model file path

§detailed: bool

Show detailed layer information

§export: Option<PathBuf>

Export architecture to file

§verify: bool

Verify model integrity

§

Export

Export voice profile or preset

Fields

§export_type: String

Export type (voice-profile, emotion-preset, config)

§source: String

Source identifier (voice ID, preset name, etc.)

§output: PathBuf

Output file path

§include_weights: bool

Include model weights

§

Import

Import voice profile or preset

Fields

§input: PathBuf

Import file path

§name: Option<String>

Installation name/identifier

§force: bool

Force overwrite if exists

§validate: bool

Validate before importing

§

History

View command history and get suggestions

Fields

§limit: usize

Number of recent commands to show

§stats: bool

Show usage statistics

§suggest: bool

Show command suggestions based on history

§clear: bool

Clear all history

§

Workflow

Workflow automation commands

Fields

§command: WorkflowCommands

Workflow subcommand to execute

§

Alias

Manage command aliases

Fields

§command: AliasCommand

Alias subcommand

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: Any,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,