diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-01-21 02:01:10 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-01-21 02:01:10 +0000 |
commit | 8e90f8af729a62b29642254b58dbd066e0b92efe (patch) | |
tree | e078a8aad46d844e49ce7684abf99a550acd3bee | |
parent | 869882628566e85b789ced8152379b05fd523511 (diff) | |
parent | 8ac3b9e918733fcc24540c890f278f35b34836dd (diff) | |
download | rnnoise-8e90f8af729a62b29642254b58dbd066e0b92efe.tar.gz |
Snap for 7093377 from 8ac3b9e918733fcc24540c890f278f35b34836dd to sc-d1-release
Change-Id: I9fd6e39beaa4ad07b282c831ac957634b7d700f5
-rw-r--r-- | METADATA | 12 | ||||
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | TRAINING-README (renamed from TRAINING) | 0 | ||||
-rw-r--r-- | examples/rnnoise_demo.c | 4 | ||||
-rw-r--r-- | include/rnnoise.h | 7 | ||||
-rw-r--r-- | src/celt_lpc.c | 2 | ||||
-rw-r--r-- | src/kiss_fft.c | 2 |
7 files changed, 22 insertions, 9 deletions
@@ -1,7 +1,5 @@ name: "rnnoise" -description: - "Recurrent neural network for audio noise reduction" - +description: "Recurrent neural network for audio noise reduction" third_party { url { type: HOMEPAGE @@ -11,7 +9,11 @@ third_party { type: GIT value: "https://github.com/xiph/rnnoise.git" } - version: "9acc1e5a633e0961a5895a73204df24744f199b6" - last_upgrade_date { year: 2020 month: 6 day: 3 } + version: "125d8a56e0049728c86c9a575dab348fc9523e96" license_type: NOTICE + last_upgrade_date { + year: 2021 + month: 1 + day: 18 + } } @@ -15,3 +15,7 @@ PCM files sampled at 48 kHz. It can be used as: ./examples/rnnoise_demo <number of channels> <maximum attenuation> < input.raw > output.raw The output is also a 16-bit raw PCM file. + +The latest version of the source is available from +https://gitlab.xiph.org/xiph/rnnoise . The github repository +is a convenience copy. diff --git a/TRAINING b/TRAINING-README index 86c5a4e..86c5a4e 100644 --- a/TRAINING +++ b/TRAINING-README diff --git a/examples/rnnoise_demo.c b/examples/rnnoise_demo.c index 83d0709..c70343d 100644 --- a/examples/rnnoise_demo.c +++ b/examples/rnnoise_demo.c @@ -41,8 +41,8 @@ int main(int argc, char **argv) { fprintf(stderr, "usage: %s <noisy speech> <output denoised>\n", argv[0]); return 1; } - f1 = fopen(argv[1], "r"); - fout = fopen(argv[2], "w"); + f1 = fopen(argv[1], "rb"); + fout = fopen(argv[2], "wb"); while (1) { short tmp[FRAME_SIZE]; fread(tmp, sizeof(short), FRAME_SIZE, f1); diff --git a/include/rnnoise.h b/include/rnnoise.h index 67f0b06..511a976 100644 --- a/include/rnnoise.h +++ b/include/rnnoise.h @@ -30,6 +30,9 @@ #include <stdio.h> +#ifdef __cplusplus +extern "C" { +#endif #ifndef RNNOISE_EXPORT # if defined(WIN32) @@ -62,4 +65,8 @@ RNNOISE_EXPORT RNNModel *rnnoise_model_from_file(FILE *f); RNNOISE_EXPORT void rnnoise_model_free(RNNModel *model); +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/celt_lpc.c b/src/celt_lpc.c index 5d7ffa4..521351e 100644 --- a/src/celt_lpc.c +++ b/src/celt_lpc.c @@ -103,7 +103,7 @@ void celt_fir( { opus_val32 sum[4]; sum[0] = SHL32(EXTEND32(x[i ]), SIG_SHIFT); - sum[1] = SHL32(EXTEND32(x[i+1]), SIG_SHIFT), + sum[1] = SHL32(EXTEND32(x[i+1]), SIG_SHIFT); sum[2] = SHL32(EXTEND32(x[i+2]), SIG_SHIFT); sum[3] = SHL32(EXTEND32(x[i+3]), SIG_SHIFT); xcorr_kernel(rnum, x+i-ord, sum, ord); diff --git a/src/kiss_fft.c b/src/kiss_fft.c index 922dacc..d6b9f26 100644 --- a/src/kiss_fft.c +++ b/src/kiss_fft.c @@ -39,7 +39,7 @@ #define CUSTOM_MODES /* The guts header contains all the multiplication and addition macros that are defined for - complex numbers. It also delares the kf_ internal functions. + complex numbers. It also declares the kf_ internal functions. */ static void kf_bfly2( |