> For the complete documentation index, see [llms.txt](https://docs.17movement.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.17movement.net/speech-recognition/custom-action-via-export.md).

# Custom Action via export

```lua
exports["17mov_SpeechRecognition"]:NewAction({
    phrases = {
        "recognition test",
        -- Make as much phrases for this action you want.
    },

    blockInVehicle = true,

    actionType = "event",
    eventType = "client",
    eventName = "17mov_SpeechRecognition:TestPhrase",
    arguments = {
        arg1 = "17movement.net",
    },

    -- actionType = "executeCommand",
    -- commandString = "e flip",

    -- actionType = "custom",
    -- actionFunction = function(recognizedSentence)
    --     -- Add here ur custom code
    -- end,
})
```
