In case the sound events are not working in Pidgin you can use this solution:
- From the main menu select Tools -> Preferences (or just press the keyboard shortcut CTRL+p).
- From Preferences window select the Sounds tab.
- At the Sound method section, for Method select the Command option.
- In the Sound command field type: