configure GPIO and sample rates

This commit is contained in:
Terrence
2024-09-01 13:24:45 +08:00
parent 490b8668f6
commit 16334ca75f
4 changed files with 103 additions and 30 deletions

View File

@@ -62,8 +62,10 @@ private:
OpusDecoder* opus_decoder_ = nullptr;
int opus_duration_ms_ = 60;
int opus_decode_sample_rate_ = CONFIG_AUDIO_OUTPUT_SAMPLE_RATE;
silk_resampler_state_struct resampler_state_;
void SetDecodeSampleRate(int sample_rate);
void SetChatState(ChatState state);
void StartDetection();
void StartCommunication();