1. Install [VoiceAttack](https://voiceattack.com/Default.aspx#download-1). It is a paid app, but the free unlimited trial version allows 1 profile and 20 commands. * You would use multiple profiles if you wanted to create content for other games or mod setups. They also "kindly" disabled exporting/importing of profiles in the trial, so you cannot circumvent that without paying. * A single command represents a single word or phrase the app recognizes, so you are limited to 20 phrases in the trial -- this is probably more than enough. 2. Edit the built-in profile.<br/>![](https://hackmd.io/_uploads/SJ6nx5bo3.png) 3. Select all commands (Ctrl lets you select multiple, Ctrl+A selects all of them), and delete them.<br/>![](https://hackmd.io/_uploads/SJobW9-sh.png) 4. Add a new command for each phrase you want to be recognized.<br/>![](https://hackmd.io/_uploads/S1Er-5Zsn.png) 1. Enter the phrase to recognize.<br/>![](https://hackmd.io/_uploads/BkIw-qWjn.png) 2. Add an inline C# function action.<br/>![](https://hackmd.io/_uploads/SJu2-cZo2.png) 3. Enter the following piece of code into the big text field: ```cs= using System; using System.IO; using System.IO.Pipes; class VAInline { string host = "."; string pipeName = "SMAPI.ExternalCommands"; string command = "mob_spawner_preset_spawn_local slimes"; void main() { using (var pipeClient = new NamedPipeClientStream(host, pipeName, PipeDirection.InOut)) { pipeClient.Connect(); var writer = new BinaryWriter(pipeClient); writer.Write(command); pipeClient.Flush(); pipeClient.ReadByte(); } } } ``` * In theory you can change the `host` to execute commands on Stardew running on another PC, but I did not test it. * You can edit the `pipeName` (and change the `PipeName` in `config.json` accordingly), but the default value should be fine. * Edit the `command` to the console command you want to execute. The code above will execute the `mob_spawner_preset_spawn_local slimes` command, spawning monsters assigned to the `slimes` preset on the local player. ![](https://hackmd.io/_uploads/BkwAMcbo2.png) 4. Compile the code, then hit OK.<br/>![](https://hackmd.io/_uploads/SJ5WQcZi2.png) 5. Install the Mob Spawner 1.1.0 and External Commands 1.0.0 mods just like you would install any other SMAPI mod. 6. Start the game and load any save file. Open the Mob Spawner menu via the keybind (by default `]`). 7. For every phrase you would like to recognize: 1. Choose the monsters and settings you would like to save as a preset. 2. Without closing the menu, type `mob_spawner_preset_assign slimes` into the SMAPI console, where `slimes` is the name of the preset you want to assign, then hit Enter. 8. Aaand you're done! VoiceAttack should now recognize the phrases you set up and execute the mob spawning commands. You can also use the External Commands mod to communicate with any other mods, as long as they also add their own console commands. Typing `help` into the SMAPI console will list all of the console commands, including the ones added by Mob Spawner (there are several more commands, mostly for listing presets and unassigning them).