vosk-api
vosk-api copied to clipboard
ONNX format
Is it possible (now or as the future release option) to convert vosk models to an onnx format to reduce the model size?
It is a great idea!
It is a great idea!
Good) But for now, it's impossible to use ONNX, right?
Yes
@nshmyrev I find this https://github.com/XiaoMi/kaldi-onnx
@nshmyrev I find this https://github.com/XiaoMi/kaldi-onnx
I tried to convert vosk model (took file am/final.mdl from model directory, have no idea have I made it right) but for now I didn't succeed. What I did:
main(input_model=os.path.join(model_dir, model_name),
output=os.path.join(model_dir, new_model_name),
left_context=3, right_context=3, modulus=1, nnet_type=3)
left_context and right_context took from ivector/splice.conf modulus and nnet_type took from examples somewhere
I got an error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 32: invalid continuation byte
I would suppose it cannot recognize the mdl
file but this is just an assumption