Replies: 1 comment
-
You should not call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone
This is my code to do diarization:
`import json
import os
import nemo.collections.asr.models as nemo_asr
from omegaconf import OmegaConf
input_file = '1.wav' # Note : The file needs to be mono .wav
meta = {
'audio_filepath': input_file,
'offset': 0,
'duration':None,
'label': 'infer',
'text': '-',
'num_speakers': 4,
'rttm_filepath': None, # You can add a reference file here
'uem_filepath' : None
}
with open('input_manifest.json','w') as fp:
json.dump(meta,fp)
fp.write('\n')
output_dir = os.path.join('my_directory', 'oracle_vad')
os.makedirs(output_dir,exist_ok=True)
MODEL_CONFIG = 'diar_infer_telephonic.yaml'
config = OmegaConf.load(MODEL_CONFIG)
print(OmegaConf.to_yaml(config))
sd_model = nemo_asr(cfg = config)
sd_model.diarize()`
I got this error:
File "D:\PythonCodes\pythonProject\pythonProject\nemo_diar.py", line 28, in
sd_model = nemo_asr(cfg = config)
TypeError: 'module' object is not callable
anyone knows about that?``
Beta Was this translation helpful? Give feedback.
All reactions