From 9346a03693c49901d34045de3a230ec4707516af Mon Sep 17 00:00:00 2001 From: TimTim Date: Mon, 29 Jun 2020 02:41:53 +0800 Subject: Access files in binary mode --- examples/rnnoise_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \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); -- cgit v1.2.3 From 1e7cbfefaa71c4dbc1c19ac6b3eabd7343b51902 Mon Sep 17 00:00:00 2001 From: tangshi Date: Thu, 30 May 2019 20:49:14 +0800 Subject: Update celt_lpc.c --- src/celt_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3 From 90ec41ef659fd82cfec2103e9bb7fc235e9ea66c Mon Sep 17 00:00:00 2001 From: Peng Yu Date: Thu, 4 Jun 2020 21:10:41 -0400 Subject: rename TRAINING -> TRAINING-README for case insensitive file system --- TRAINING | 11 ----------- TRAINING-README | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 TRAINING create mode 100644 TRAINING-README diff --git a/TRAINING b/TRAINING deleted file mode 100644 index 86c5a4e..0000000 --- a/TRAINING +++ /dev/null @@ -1,11 +0,0 @@ -(1) cd src ; ./compile.sh - -(2) ./denoise_training signal.raw noise.raw count > training.f32 - - (note the matrix size and replace 500000 87 below) - -(3) cd training ; ./bin2hdf5.py ../src/training.f32 500000 87 training.h5 - -(4) ./rnn_train.py - -(5) ./dump_rnn.py weights.hdf5 ../src/rnn_data.c ../src/rnn_data.h diff --git a/TRAINING-README b/TRAINING-README new file mode 100644 index 0000000..86c5a4e --- /dev/null +++ b/TRAINING-README @@ -0,0 +1,11 @@ +(1) cd src ; ./compile.sh + +(2) ./denoise_training signal.raw noise.raw count > training.f32 + + (note the matrix size and replace 500000 87 below) + +(3) cd training ; ./bin2hdf5.py ../src/training.f32 500000 87 training.h5 + +(4) ./rnn_train.py + +(5) ./dump_rnn.py weights.hdf5 ../src/rnn_data.c ../src/rnn_data.h -- cgit v1.2.3 From 0627990e0dc0b6de607a2575b7adb0efe67c181e Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sat, 28 Nov 2020 17:05:15 +1100 Subject: docs: fix simple typo, delares -> declares There is a small typo in src/kiss_fft.c. Should read `declares` rather than `delares`. --- src/kiss_fft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3 From bd7a29c9c1cfaa656993f627600280b8638820df Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 18 Jan 2021 09:36:04 +0100 Subject: Document in the README the authorative source for the code. --- README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README b/README index 88fc79c..da30b69 100644 --- a/README +++ b/README @@ -15,3 +15,7 @@ PCM files sampled at 48 kHz. It can be used as: ./examples/rnnoise_demo < 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. -- cgit v1.2.3 From 125d8a56e0049728c86c9a575dab348fc9523e96 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Tue, 14 Jul 2020 16:07:21 +0200 Subject: fix inclusion of rnnoise.h into C++ code --- include/rnnoise.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#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 -- cgit v1.2.3