# NeMo does not run on 3.13+ python3.12 -m venv .venv source .venv/bin/activate git clone https://github.com/NVIDIA/NeMo.git nemo cd nemo pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cu128 pip install .[asr] deactivate
import os import sys import nemo.collections.asr as nemo_asr model_path = sys.argv[1] audio_path = sys.argv[2] # Load from a local path... asr_model = nemo_asr.models.EncDecRNNTBPEModel.restore_from(restore_path=model_path) # Or download from huggingface ('org/model')... asr_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(model_name=model_path) output = asr_moel.transcribe([audio_path]) print(output[0])
You'll need to modify the python script to process the response and output it in a format you can use.
You'll need to modify the python script to process the response and output it in a format you can use.