mirror of
https://github.com/xiph/opus.git
synced 2025-06-03 17:17:42 +00:00
Avoid glitch at the beginning
This commit is contained in:
parent
b84a06dd08
commit
9fd3e45fd3
2 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue