That’s a good idea, I’ll give that a shot!
install audacity and have a look at what you have in comparison to your not-kw, something is not right though but you know that
Yeah, I did the recordings in audacity in the first place (following sparkyvision’s handy guide) and tried to clean them up as much as possible before training. I also trimmed silence at the beginnings and ends of the samples I made.
So I tried precise-test hey-mycroft.pb data/
to test the default/included/built-in wake word model against my test data set. This looks better, and matches my experience with the default model missing some wake word activations (at least, when the voice sounds like mine).
I can’t train though, I guess precise-train
can’t work on hey-mycroft.pb
?
$ precise-train hey-mycroft.pb data/
Using TensorFlow backend.
Loading from hey-mycroft.pb...
Warning: Unknown model type, hey-mycroft.pb
Traceback (most recent call last):
File "/home/user/mycroft-precise/.venv/bin/precise-train", line 33, in <module>
sys.exit(load_entry_point('mycroft-precise', 'console_scripts', 'precise-train')())
File "/home/user/mycroft-precise/precise/scripts/base_script.py", line 43, in run_main
script = cls(args)
File "/home/user/mycroft-precise/precise/scripts/train.py", line 87, in __init__
self.model = create_model(args.model, params)
File "/home/user/mycroft-precise/precise/model.py", line 70, in create_model
model = load_precise_model(model_name)
File "/home/user/mycroft-precise/precise/model.py", line 54, in load_precise_model
return load_keras().models.load_model(model_name)
File "/home/user/mycroft-precise/.venv/lib/python3.7/site-packages/keras/models.py", line 237, in load_model
with h5py.File(filepath, mode='r') as f:
File "/home/user/mycroft-precise/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 408, in __init__
swmr=swmr)
File "/home/user/mycroft-precise/.venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 173, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 88, in h5py.h5f.open
OSError: Unable to open file (file signature not found)
Is there an easy way to convert this .pb
file to a .net
file that works with precise-train
? I searched around and tried a few methods and none worked for me.