how the sound energy can be converted into electrical energy?
Yes, it is quite possible to convert sound energy to electrical energy. This can be done using a transducer which operates on the same principle as a microphone.