// VoiceAssistant.h
#ifndef VOICE_ASSISTANT_H
#define VOICE_ASSISTANT_H
#include < Arduino.h >
#include < WiFi.h >
#include < HTTPClient.h >
#include < ArduinoJson.h >
#include < driver / i2s.h >
#include < U8g2lib.h >
#include < Wire.h >
// Configuration constants
const int I2S_WS_PIN = 15;
const int I2S_SCK_PIN = 14;
const int I2S_SD_PIN = 16;
const int BUZZER_PIN = 25;
const int BUTTON_PIN = 0;
// Display pins
const int DISPLAY_SCL = 22;
const int DISPLAY_SDA = 21;
// I2S configuration
const int I2S_PORT = I2S_NUM_0;
const int I2S_SAMPLE_RATE = 16000;
const int I2S_BUFFER_SIZE = 1024;
class VoiceAssistant {
public: