mirror of
https://github.com/xiph/opus.git
synced 2025-05-19 01:48:30 +00:00
more pcm outputs
This commit is contained in:
parent
70789e6f43
commit
4fec1144f3
5 changed files with 57 additions and 29 deletions
|
@ -73,6 +73,7 @@ for c in range(1, nb_frames):
|
|||
#fexc[0, 0, 0] = in_data[f*frame_size + i, 0]
|
||||
#print(cfeat.shape)
|
||||
p, state = dec.predict([fexc, cfeat[:, fr:fr+1, :], state])
|
||||
#p = np.maximum(p-0.003, 0)
|
||||
p = p/(1e-5 + np.sum(p))
|
||||
#print(np.sum(p))
|
||||
iexc[0, 0, 0] = np.argmax(np.random.multinomial(1, p[0,0,:], 1))-128
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue