forked from xiaozhi/xiaozhi-esp32
separate encoder for detect word
This commit is contained in:
@@ -16,8 +16,10 @@ public:
|
||||
~OpusEncoder();
|
||||
|
||||
void Configure(int sample_rate, int channels, int duration_ms = 60);
|
||||
void SetComplexity(int complexity);
|
||||
void Encode(const iovec pcm, std::function<void(const iovec opus)> handler);
|
||||
bool IsBufferEmpty() const { return in_buffer_.empty(); }
|
||||
void ResetState();
|
||||
|
||||
private:
|
||||
struct OpusEncoder* audio_enc_ = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user