Skip to main content
Capabilities

Speech Synthesis & Recognition

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.
Append --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

CapabilityCommandTypical modelNotesCommon options
Speech synthesisbl speech synthesizecosyvoice-v3-flashMulti-voice streaming TTS; clone from 5–20s samples--list-voices, --voice, --instruction natural-language style control, --enable-ssml, --stream, --concurrent, --seed reproducible synthesis
bl speech synthesize --voice longwan --text "Welcome to the Bailian CLI" --stream

Speech recognition

CapabilityCommandTypical modelNotesCommon options
Speech recognitionbl speech recognizefun-asr30 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.
CapabilityCommandNotes
Create vocabularybl speech vocabulary createCreate a reusable hot-word vocabulary
List vocabulariesbl speech vocabulary listList all hot-word vocabularies
Vocabulary detailsbl speech vocabulary getShow details of a specific vocabulary
Update vocabularybl speech vocabulary updateUpdate hot-word vocabulary content
Delete vocabularybl speech vocabulary deleteDelete a hot-word vocabulary