Cannot record new wakeword - Error inside


#1

Hi guys. Merry Christmas.

I would like to record a new wakeword but i get an error after typing :

pi@snips-wohnzimmmer:~/snips-record-personal-hotword $ sudo systemctl stop snips-audio-server; python script_recording.py hey_raspberry

/home/pi/snips-record-personal-hotword/utils.py:104: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  return y[full_index], np.asarray([start, end])
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

#2

Just realized that this warnings and errors are normal. Next problem:

How can i record a hotword longer than 2 seconds?

for “Hey Raspberry” its too short


#3

Use your main machine to record your samples, with, per exemple audacity, three times the same. Trim the samples at the closest possible to the actual speaking, get rid of the emptiness

Once done, save the three samples 0, 1 and 2.wav, @16khz, mono, unsigned. Place them all in a directory and add that json file called config.json

{
    "num_mel_bins": 13, 
    "window_type": "povey", 
    "kind": "personal", 
    "window_size": 10, 
    "cepstral_lifter": 22.0, 
    "use_energy": false, 
    "energy_floor": 0.0, 
    "from_mfcc": 1, 
    "dtw_ref": 0.22, 
    "raw_energy": true, 
    "frame_length_ms": 25.0, 
    "frame_shift_ms": 10.0, 
    "preemphasis_coefficient": 0.97, 
    "to_mfcc": 13, 
    "sample_rate": 16000, 
    "dither": 0.0, 
    "mel_low_freq": 20, 
    "shift": 10, 
    "num_mfcc": 13, 
    "band_radius": 10, 
    "hotword_key": "CHOOSE AN HOTWORD ID HERE"
}