mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
[voice_assistant] Half the microphone ringbuffer size (#6830)
This commit is contained in:
parent
63fc8ab10a
commit
8aba890e69
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ static const char *const TAG = "voice_assistant";
|
|||
|
||||
static const size_t SAMPLE_RATE_HZ = 16000;
|
||||
static const size_t INPUT_BUFFER_SIZE = 32 * SAMPLE_RATE_HZ / 1000; // 32ms * 16kHz / 1000ms
|
||||
static const size_t BUFFER_SIZE = 1024 * SAMPLE_RATE_HZ / 1000;
|
||||
static const size_t BUFFER_SIZE = 512 * SAMPLE_RATE_HZ / 1000;
|
||||
static const size_t SEND_BUFFER_SIZE = INPUT_BUFFER_SIZE * sizeof(int16_t);
|
||||
static const size_t RECEIVE_SIZE = 1024;
|
||||
static const size_t SPEAKER_BUFFER_SIZE = 16 * RECEIVE_SIZE;
|
||||
|
|
Loading…
Reference in a new issue