diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-22 01:47:41 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-22 01:48:04 +0800 |
| commit | 7ed8424c249c9e3ebdd35ab99218b8808859b5ab (patch) | |
| tree | fedcd7ce2571f7137a510182fcbe39500c1daeda | |
| parent | 38d6036c1c3bff292b8f1d42c9eb0f26c34fe4a7 (diff) | |
Update dmvop.toml
| -rw-r--r-- | dmvop.toml | 12 | ||||
| -rw-r--r-- | src/args.rs | 8 |
2 files changed, 7 insertions, 13 deletions
@@ -36,7 +36,7 @@ output = [ ## TCP service mode ## After the client connects to the current port (port configured in `port`) ## DMVOP will automatically broadcast output to all connected clients - # "tcp", + "tcp", ## UDP service mode ## The client sends a message packet to the current port to complete the handshake (port configured in `port`) @@ -62,11 +62,6 @@ port = 5117 ## Shorter detection time, closer to real-time instant = false -## Model file storage directory -## Used to specify the directory for downloading and reading Whisper model files -## (Relative to the current configuration directory) -models_dir = "./models" - ## Subnet mask ## Used in UDP broadcast mode to specify the subnet mask for broadcasting subnet_mask = "255.255.255.0" @@ -76,6 +71,11 @@ subnet_mask = "255.255.255.0" ## Note: This mode is only supported on UNIX systems socket_file = "./dmvop.sock" +## Model file storage directory +## Used to specify the directory for downloading and reading Whisper model files +## (Relative to the current configuration directory) +# models_dir = "./models" + ## Post-processor ## After text parsing, a post-processor can be used to process the text content # post = "+pinyin(tone)" diff --git a/src/args.rs b/src/args.rs index 1f0b7df..5ff7b9d 100644 --- a/src/args.rs +++ b/src/args.rs @@ -81,13 +81,7 @@ pub struct DMVOPArguments { // vol : volume 0-100 // word : word // confid: confidence - #[arg( - long = "format", - short, - alias = "fmt", - default_value = "%{vol},%{word}", - require_equals = true - )] + #[arg(long = "format", short, alias = "fmt", require_equals = true)] pub format_pattern: Option<String>, #[arg(long = "format-file", short = 'S', require_equals = true)] |
