SinapsisCanaryASR
Python template · sinapsis_diarization.templates.canary_asr_template
Overview
Canary ASR template. Transcribes an audio using the Canary model: NVIDIA NeMo Canary-Qwen-2.5B is an English speech recognition model that achieves state-of-the art performance on multiple English speech benchmarks. With 2.5 billion parameters and running at 418 RTFx, Canary-Qwen-2.5B supports automatic speech-to-text recognition (ASR) in English with punctuation and capitalization (PnC)
Supported models: 'nvidia/canary-qwen-2.5b'
Attributes: model_name (str): name of model to run device (str): device to run the model sample_rate (int): sample rate of the audio chunk_size_in_secs (int): Size of the chunks to divide the audio. -1 for full audio search_window (float): Size of the search window root_dir(str): Path to root directory. Optional audio_file_path (str): Path to audio file. Optional
Example agent:
agent: name: my_test_agent templates: - template_name: InputTemplate class_name: InputTemplate attributes: {} - template_name: SinapsisCanaryASR class_name: SinapsisCanaryASR template_input: InputTemplate attributes: model_name: nvidia/canary-qwen-2.5b device: cuda sample_rate: 16000 chunk_size_in_secs: -1 search_window: 5.0 root_dir: null audio_file_path: null
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-diarization==1.0.0uv pip install sinapsis-diarization==1.0.0uv add sinapsis-diarization==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
device to run the model
Optional
Default: "cuda"
Optional
Default: null
Path to root directory. Optional
Optional
Default: "/home/ariel/.cache/sinapsis"
name of model to run
Optional
Default: "nvidia/canary-qwen-2.5b"
sample rate of the audio
Optional
Default: 16000
Size of the search window
Optional
Default: 5
Path to audio file. Optional
Optional
Default: null
Size of the chunks to divide the audio. -1 for full audio
Optional
Default: -1
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "SinapsisCanaryASR"
class_name: "SinapsisCanaryASR"
attributes:
device: "cuda"
root_dir: "/home/ariel/.cache/sinapsis"
model_name: "nvidia/canary-qwen-2.5b"
sample_rate: 16000
search_window: 5
audio_file_path: null
chunk_size_in_secs: -1
Inheritance
sinapsis_diarization.templates.base_asr_template.SinapsisBaseASREnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.