mirror of
https://github.com/xiph/opus.git
synced 2025-05-16 16:38:30 +00:00
added LPCNet torch implementation
Signed-off-by: Jan Buethe <jbuethe@amazon.de>
This commit is contained in:
parent
90a171c1c2
commit
35ee397e06
38 changed files with 3200 additions and 0 deletions
6
dnn/torch/lpcnet/utils/pcm.py
Normal file
6
dnn/torch/lpcnet/utils/pcm.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
def clip_to_int16(x):
|
||||
int_min = -2**15
|
||||
int_max = 2**15 - 1
|
||||
x_clipped = max(int_min, min(x, int_max))
|
||||
return x_clipped
|
Loading…
Add table
Add a link
Reference in a new issue