diff options
| -rw-r--r-- | esp32/main/main.c | 4 | ||||
| -rw-r--r-- | recv.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/esp32/main/main.c b/esp32/main/main.c index a1e6fda..e5a2767 100644 --- a/esp32/main/main.c +++ b/esp32/main/main.c @@ -18,8 +18,8 @@ #include "wifi.h" -#define BUFLEN 2100 -#define SAMPLE_RATE 8000 +#define BUFLEN 2100 +#define SAMPLE_RATE 8000 #define I2S_WS GPIO_NUM_4 #define I2S_SD GPIO_NUM_1 @@ -7,7 +7,7 @@ read_until = datetime.datetime.now() + datetime.timedelta(seconds = 30) wav = wave.open('sound.wav', 'wb') wav.setnchannels(1) -wav.setframerate(8000) +wav.setframerate(16000) wav.setsampwidth(3) n = 0 |
