Question: Currently, I'm working on a side project. I'm using javascript and node.js as of now. I'm trying to add voice recognition to my applications, although not in the browser. I know there's a lot of things out there that use the browser's speech recognition API, but I normally run my scripts in terminal using my mac. For example what I'm trying to achieve is something as follows.
I would say something, and if this corresponds with an if statement then the script will do whatever task as requested. So if I say "Hello" it will do whatever task that does when said.
Is there anything even like this?

Answer: 
OK I finally got this one.

I just ran

```
apt-get purge php7.0-xml && apt-get install php7.0-xml

```

Before restarting PHP to see XML modules (Reader, Writer and others) enabled.

I can't figure out what happened but at least I'm done with this.

Regards,
on Ubuntu 18.04 as root

`apt install php-xmlwriter` 

Or use sudo:

```
sudo apt install php-xmlwriter

```