Turning Wifi of Matrix Voice (ESP32) off


I am using the Matrix Voice ESP32 boards with Rasperry Pi 3 in a smart home project. The raspberries are connected via LAN. Therefore I would like to turn the ESP32 wifi off.
Do you have an idea how to do it.