Sorry, I didn't read the question carefully and the example was a redundant command anyway. This should work for your case.
exec = putteam "[n]" sI'm not sure if it needs the '!' in front or not. Be sure you have the "-characters in place. That way the command will not get confused if the name includes spaces in between.
The *.voice files define the sounds definitions. Directories inside sound directory are just for your own convenience to group the files by kind, you might not have any of the as well. Inside the sound categories direcotries place your .wav files and map them in the .voice files. Then in the wm_quickmessageAlt.menu you define your vsay menu.
Example:
wm_allies_chat.voice
hello1
{
sound/ksl/hi/hello1.wav "^4Hello!"
}wm_quickmessageAlt.menu with hello1
QM_MENU_START( "wm_quickhibye_alt" )
QM_MENU_ITEM( "^71. Dzien dobry", exec "VoiceChat dziendobry";close wm_quickhibye_alt, "1", 0 )
QM_MENU_ITEM( "^72. Hello 1!", exec "VoiceChat hello1"; close wm_quickhibye_alt, "2", 1 )
QM_MENU_ITEM( "^73. Hello 2!", exec "VoiceChat hello2"; close wm_quickhibye_alt, "3", 2 )
QM_MENU_ITEM( "^74. Hello 3!", exec "VoiceChat hello3"; close wm_quickhibye_alt, "4", 3 )
QM_MENU_ITEM( "^75. Hello 4!", exec "VoiceChat hello4"; close wm_quickhibye_alt, "5", 4 )
QM_MENU_ITEM( "^76. Hello 5!", exec "VoiceChat hello5"; close wm_quickhibye_alt, "6", 5 )
QM_MENU_ITEM( "^77. Hello 6!", exec "VoiceChat hello6"; close wm_quickhibye_alt, "7", 6 )
QM_MENU_ITEM( "^78. Hi!", exec "VoiceChat kslhi"; close wm_quickhibye_alt, "8", 7 )
QM_MENU_ITEM( "^D9. More...", close wm_quickhibye_alt; open wm_quickhibye2_alt, "9", 8 )
QM_MENU_ENDIf you don't know how to do it despite the example above, please check the pk3 files from some server and check how it is done there, you will quickly grasp the idea.