-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added pad clipping flag * added tensorflow backend * updated docstrings * updated readme * updated readme * updated package version * updated readme * updated readme * updated website * updated testing * updated testing and black formatting * update testing * added test requirements * updated travis yml to install requirements-txt * updated travis yml * updated test-req
- Loading branch information
Showing
11 changed files
with
616 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: birdbrain | ||
name: noisereduce | ||
channels: | ||
- conda-forge | ||
- defaults | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import numpy as np | ||
|
||
|
||
def int16_to_float32(data): | ||
""" Converts from uint16 wav to float32 wav | ||
""" | ||
if np.max(np.abs(data)) > 32768: | ||
raise ValueError("Data has values above 32768") | ||
return (data / 32768.0).astype("float32") | ||
|
||
|
||
def float32_to_int16(data): | ||
if np.max(data) > 1: | ||
data = data / np.max(np.abs(data)) | ||
return np.array(data * 32767).astype("int16") |
Oops, something went wrong.