I have a project which consist to control the Raspberry with voice.
I use an adapter (Logitech): Google "microphone for raspberry" search.
What configuration do I need to make it work?
If the adapter you mention is a usb sound card, it will work. Alternatively you can also use a GPIO header based sound card, such as one of these.
To record, try installing and using "audacity". Or if you want to use voice commands, try to use one of these already existing softwares to do that. This linke discusses the following 3 softwares which may be of interest to you : Jasper – Voice Recognition Software. Raspberry Pi Voice Recognition by Oscar Liang. Raspberry Pi Voice Control by Steven Hickson.