Files
AI_Printer/main/Kconfig.projbuild
2026-02-24 21:36:14 +08:00

141 lines
2.6 KiB
Plaintext

menu "TQ Controller Config"
config TQ_WIFI_SSID
string "Wi-Fi SSID"
default ""
config TQ_WIFI_PASSWORD
string "Wi-Fi Password"
default ""
config TQ_WIFI_MAXIMUM_RETRY
int "Wi-Fi Maximum Retry"
default 10
config TQ_HTTP_PORT
int "REST HTTP Port"
default 80
config TQ_API_KEY
string "REST API Key (optional, empty means disabled)"
default ""
config TQ_VOICE_API_KEY
string "Voice API Key for DashScope WebSocket (optional)"
default ""
config TQ_VOICE_WS_URI
string "Voice WebSocket URI"
default "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
config TQ_VOICE_WORKSPACE_ID
string "Voice workspace_id"
default ""
config TQ_VOICE_APP_ID
string "Voice app_id"
default ""
config TQ_VOICE_USER_ID
string "Voice client user_id"
default "esp32-user"
config TQ_VOICE_DEVICE_UUID
string "Voice client device uuid (optional)"
default ""
config TQ_VOICE_TTS_VOICE
string "Voice TTS voice (optional)"
default ""
config TQ_VOICE_SAMPLE_RATE
int "Voice sample rate"
range 8000 48000
default 16000
config TQ_VOICE_OPUS_FRAME_MS
int "Voice raw-opus frame size (ms)"
range 10 120
default 100
config TQ_VOICE_OPUS_BITRATE_KBPS
int "Voice raw-opus bitrate (kbps)"
range 6 128
default 32
config TQ_VOICE_HEARTBEAT_SEC
int "Voice heartbeat interval seconds"
range 10 55
default 50
config TQ_VOICE_I2C_PORT
int "Voice I2C port"
range 0 1
default 0
config TQ_VOICE_I2C_SDA_PIN
int "Voice I2C SDA GPIO"
range 0 48
default 17
config TQ_VOICE_I2C_SCL_PIN
int "Voice I2C SCL GPIO"
range 0 48
default 18
config TQ_VOICE_CODEC_ADDR
int "ES8311 I2C address"
range 1 126
default 48
config TQ_VOICE_I2S_PORT
int "Voice I2S port"
range 0 1
default 0
config TQ_VOICE_I2S_MCLK_PIN
int "Voice I2S MCLK GPIO"
range -1 48
default 16
config TQ_VOICE_I2S_BCLK_PIN
int "Voice I2S BCLK GPIO"
range 0 48
default 9
config TQ_VOICE_I2S_WS_PIN
int "Voice I2S WS GPIO"
range 0 48
default 45
config TQ_VOICE_I2S_DOUT_PIN
int "Voice I2S DOUT GPIO"
range 0 48
default 8
config TQ_VOICE_I2S_DIN_PIN
int "Voice I2S DIN GPIO"
range 0 48
default 10
config TQ_VOICE_CODEC_PA_PIN
int "ES8311 PA control GPIO"
range -1 48
default 48
config TQ_VOICE_CODEC_PA_PIN_REVERSED
bool "ES8311 PA enable level is active-low"
default n
config TQ_VOICE_CODEC_OUT_VOL
int "ES8311 output volume (0-100)"
range 0 100
default 70
config TQ_VOICE_CODEC_MIC_GAIN_DB
int "ES8311 mic gain dB"
range 0 42
default 24
endmenu