forked from iarv/meshing-around
1.6 KiB
1.6 KiB
Radio Module: Meshages TTS (Text-to-Speech) Setup
The radio module supports audible mesh messages using the KittenTTS engine. This allows the bot to generate and play speech from text, making mesh alerts and messages audible on your device.
Features
- Converts mesh messages to speech using KittenTTS.
Installation
-
Install Python dependencies:
kittenttsis the TTS engine.
pip install https://github.com/KittenML/KittenTTS/releases/download/0.1/kittentts-0.1.0-py3-none-any.whl
-
Install PortAudio (required for sounddevice):
- macOS:
brew install portaudio - Linux (Debian/Ubuntu):
sudo apt-get install portaudio19-dev - Windows:
No extra step needed;sounddevicewill use the default audio driver.
- macOS:
Configuration
- Enable TTS in your
config.ini:[radioMon] meshagesTTS = True
Usage
When enabled, the bot will generate and play speech for mesh messages using the selected voice.
No additional user action is required.
Troubleshooting
- If you see errors about missing
sounddeviceorportaudio, ensure you have installed the dependencies above. - On macOS, you may need to allow microphone/audio access for your terminal.
- If you have audio issues, check your system’s default output device.