Bailian CLI command reference for speech synthesis (TTS), speech recognition (ASR), and hot-word vocabulary management.
A single command invokes Bailian's speech synthesis and recognition capabilities from the terminal, with hot-word vocabulary management for improved accuracy.
ImportantAppend --help to any command for full parameter details, e.g. bl speech synthesize --help. Every parameter that accepts a file URL also accepts a local path — the CLI auto-uploads it to temporary storage (valid for 48 hours), so you never need to host files as URLs yourself.
Speech synthesis
| Capability | Command | Typical model | Notes | Common options |
|---|---|---|---|---|
| Speech synthesis | bl speech synthesize | cosyvoice-v3-flash | Multi-voice streaming TTS | --list-voices, --voice, --instruction natural-language style control, --enable-ssml, --stream, --concurrent, --seed reproducible synthesis |
bl speech synthesize uses existing voices — pass a voice ID via --voice. Cloning a voice from a 5–20s sample is a CosyVoice model capability; see Voice cloning for the creation flow.
bl speech synthesize --voice longwan --text "Welcome to the Bailian CLI" --stream
Speech recognition
| Capability | Command | Typical model | Notes | Common options |
|---|---|---|---|---|
| Speech recognition | bl speech recognize | fun-asr | 30 languages, including Chinese dialects and accents | --diarization speaker separation, --speaker-count, --vocabulary-id hotword list, --vocabulary instant hot words, --context contextual enhancement, --language, --async, --out save result, batch up to 100 files |
bl speech recognize --url ./meeting.wav --diarization --out ./result.json
Hot-word vocabulary management
Manage reusable pre-built hot-word vocabularies to improve ASR accuracy on proper nouns.
| Capability | Command | Notes |
|---|---|---|
| Create vocabulary | bl speech vocabulary create | Create a reusable hot-word vocabulary |
| List vocabularies | bl speech vocabulary list | List all hot-word vocabularies |
| Vocabulary details | bl speech vocabulary get | Show details of a specific vocabulary |
| Update vocabulary | bl speech vocabulary update | Update hot-word vocabulary content |
| Delete vocabulary | bl speech vocabulary delete | Delete a hot-word vocabulary |