Simple script for global speech to text on Linux with Wayland support.
To start recording, say start typing. To stop recording, say stop typing. Letters will be entered via a virtual keyboard as if they were typed.
-
Create and activate a virtual environment with Python:
python3 -m venv venv source venv/bin/activate -
Install pip dependencies:
pip install -r requirements.txt
-
Install wtype: The method of installation will depend on your package manager. For apt:
sudo apt install wtype
For pacman:
sudo pacman -S wtype
-
Run the script.
python3 tts.py