speech.ini - Speech menu
The speech.ini file in your addons\amx\config folder contains a list of sounds and words that can be run from the Speech menu that the rest of the players can hear. This is enabled by using the amx_speechmenu command. This is what the default speech.ini looks like:
; Menu configuration file
; File location: $moddir/addons/amx/config/speech.ini
; To use with Commands Menu plugin
; NOTE: Access level defined here overrides the access level of the command
; (if executed from admin console), so use with care.
; Commands Menu:
; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on all clients
; "d" - back to menu when executed
; Command for wav files: "spk path_to_sound_file"
; Commands for mp3 files: "mp3 play sound/path_to_sound_file"
; "mp3 loop sound/path_to_sound_file"
; (do not forget 'sound/')
; Custom wav and mp3 files will be automatically precached by the plugin.
"Hello!" "spk vox/hello" "cd" "u"
"Don't think so" "spk barney/dontguess" "cd" "u"
"Don't ask me" "spk barney/dontaskme" "cd" "u"
"Hey! Stop that!" "spk barney/donthurtem" "cd" "u"
"Yup" "spk barney/yup" "cd" "u"
"Nope" "spk barney/nope" "cd" "u"
"Maybe" "spk barney/maybe" "cd" "u"
"Seeya" "spk barney/seeya" "cd" "u"
"Man that sounded bad" "spk barney/soundsbad" "cd" "u"
"Hello and die" "spk \'vox/hello and die\'" "cd" "u"
"Move!" "spk \'hgrunt/move! _comma yessir!\'" "cd" "u"
"You will definitely pay!" "spk hgrunt/c2a2_hg_chat5a" "cd" "u"
"Laughter" "spk hgrunt/c2a3_hg_laugh" "cd" "u"
"Silence!" "spk hgrunt/silence!" "cd" "u"
"You talk too much" "spk barney/youtalkmuch" "cd" "u"
"You thinkin?" "spk barney/thinking" "cd" "u"
"Open fire Gordon!" "spk barney/openfire" "cd" "u"
"Couldnt make a bigger mess" "spk barney/bigmess" "cd" "u"
"I have a bad feeling" "spk barney/badfeeling" "cd" "u"
"Yes sir!" "spk hgrunt/yessir!" "cd" "u"
"No sir" "spk barney/nosir" "cd" "u"
(Note that a semi-colon ; was inserted at the beginning of some lines. This prevents them from being used.)
The speech menu delivers sounds to the clients via WAV file, or the built in VOX speech system. To add some of your own sounds or phrases to the menu, here is an example:
"Fire in the hole!" "spk \'vox/fire in the hole\'" "cd" "u"
"Stop camping!" "spk misc/stopcamping.wav" "cd" "u"
The "Fire in the hole!" example uses the built in speech engine and sounds a little better than a speak-n-spell. For a full list of words supported, click here. The second example involves a wav file. Just put the sound in the sound\misc folder in your mod folder. In the above example this sound was called "stopcamping.wav". Now from the Speech menu, this sound can be played so the clients can hear it.
This menu is accessed in the game by typing amx_speechmenu in the console. Or by binding a key to that command. The menu will show up on the left side of your screen while playing and looks like this:
Now just press the number for the sound or phrase you want played and that's it!