formatstring(Required)
Audio format.
Valid values:
pcm
wav
mp3
opus
speex
aac
amr
ImportantParaformer enforces the following constraints:
- opus and speex: Must use Ogg encapsulation.
- wav: Must use PCM encoding.
- amr: Only AMR-NB is supported.
sample_rateinteger(Required)
Sample rate, in Hz.
Valid values:
vocabulary_idstring(Optional)
Hotword vocabulary ID.
disfluency_removal_enabledboolean(Optional)
ImportantOnly Paraformer supports this parameter.
Whether to filter out filler words.
Default: false.
language_hintsarray[string](Optional)
Language of the audio to recognize. No default value. If not set, the model detects the language automatically.
Valid values:
-
Paraformer:
- zh: Chinese
- en: English
- ja: Japanese
- yue: Cantonese
- ko: Korean
- de: German
- fr: French
- ru: Russian
semantic_punctuation_enabledboolean(Optional)
ImportantOnly Paraformer v2 supports this parameter.
Whether to enable semantic-based sentence segmentation.
Default: false.
- true: Enables semantic-based segmentation and disables VAD-based segmentation.
- false (default): Enables VAD-based segmentation and disables semantic-based segmentation.
Semantic-based segmentation is more accurate and suits meeting transcription. VAD-based (Voice Activity Detection) segmentation has lower latency and suits interactive scenarios.
max_sentence_silenceinteger(Optional)
Important
- Only Paraformer v2 supports this parameter.
- Takes effect only when
semantic_punctuation_enabled is set to false.
Silence threshold for VAD-based sentence segmentation, in milliseconds. The system ends the current sentence when silence after a speech segment exceeds this threshold.
Default: 1300.
Valid range: [200, 6000].
multi_threshold_mode_enabledboolean(Optional)
Important
- Only Paraformer v2 supports this parameter.
- Takes effect only when
semantic_punctuation_enabled is set to false.
Whether to enable multi-threshold mode. When enabled, this mode prevents VAD-based segmentation from producing overly long segments.
Default: false.
punctuation_prediction_enabledboolean(Optional)
ImportantOnly Paraformer v2 supports this parameter.
Whether to add punctuation to the recognition results.
Default: true.
heartbeatboolean(Optional)
ImportantOnly Paraformer v2 supports this parameter.
Whether to enable heartbeat packets.
Default: false.
- true: Keeps the connection alive when only silent audio is being sent.
- false (default): Even when silent audio is continuously sent, the connection times out and closes after a period of time.
inverse_text_normalization_enabledboolean(Optional)
ImportantOnly Paraformer v2 supports this parameter.
Whether to enable Inverse Text Normalization (ITN). When enabled, Chinese numerals are converted to Arabic numerals.
Default: true.