Avoid glitch at the beginning

This commit is contained in:
Jean-Marc Valin 2019-01-21 16:53:26 -05:00
parent b84a06dd08
commit 9fd3e45fd3
2 changed files with 2 additions and 1 deletions

View file

@ -68,7 +68,7 @@ model.load_weights('lpcnet20g_384_10_G16_02.h5')
order = 16
pcm = np.zeros((nb_frames*pcm_chunk_size, ))
fexc = np.zeros((1, 1, 3), dtype='int16')
fexc = np.zeros((1, 1, 3), dtype='int16')+128
state1 = np.zeros((1, model.rnn_units1), dtype='float32')
state2 = np.zeros((1, model.rnn_units2), dtype='float32')