mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
choice EXAMPLE_MODE
|
|
prompt "Example mode"
|
|
default EXAMPLE_MODE_MUSIC
|
|
help
|
|
Select example work mode
|
|
|
|
config EXAMPLE_MODE_MUSIC
|
|
bool "music"
|
|
config EXAMPLE_MODE_ECHO
|
|
bool "echo"
|
|
endchoice
|
|
|
|
choice EXAMPLE_SELECT_MIC_GAIN
|
|
prompt "Set MIC gain"
|
|
depends on EXAMPLE_MODE_ECHO
|
|
default MIC_GAIN_18DB
|
|
help
|
|
Select mic gain for echo mode
|
|
|
|
config MIC_GAIN_0DB
|
|
bool "0dB"
|
|
config MIC_GAIN_6DB
|
|
bool "6dB"
|
|
config MIC_GAIN_12DB
|
|
bool "12dB"
|
|
config MIC_GAIN_18DB
|
|
bool "18dB"
|
|
config MIC_GAIN_24DB
|
|
bool "24dB"
|
|
config MIC_GAIN_30DB
|
|
bool "30dB"
|
|
config MIC_GAIN_36DB
|
|
bool "36dB"
|
|
config MIC_GAIN_42DB
|
|
bool "42dB"
|
|
endchoice
|
|
|
|
config EXAMPLE_MIC_GAIN
|
|
int
|
|
default 0 if MIC_GAIN_0DB
|
|
default 1 if MIC_GAIN_6DB
|
|
default 2 if MIC_GAIN_12DB
|
|
default 3 if MIC_GAIN_18DB
|
|
default 4 if MIC_GAIN_24DB
|
|
default 5 if MIC_GAIN_30DB
|
|
default 6 if MIC_GAIN_36DB
|
|
default 7 if MIC_GAIN_42DB
|
|
|
|
config EXAMPLE_VOICE_VOLUME
|
|
int "Voice volume"
|
|
range 0 100
|
|
default 60
|
|
help
|
|
Set voice volume
|
|
|
|
endmenu
|