Overview
The Discord Tagalog Word Bot is designed to teach and reinforce Tagalog vocabulary. It posts a Word of the Day at midnight, provides interactive commands, and can pronounce words using a TTS system with pitch modulation. This bot combines persistence, scheduling, and real-time interaction for an immersive learning experience.
Core Components
- Word Management: Uses JSON files (
tagalog_words.json,used_words.json) to track vocabulary. - Scheduler: Midnight loop posts daily words automatically.
- Slash Commands: Includes
/nextword,/define,/say, and more. - TTS Audio: Generates speech with
pyttsx3and modulates via FFmpeg before playing in Discord voice chat. - Statistics: Tracks progress and calculates estimated learning completion time.
System Flow
[ JSON Word Bank ] ---> [ Word Selector ] ---> [ Embed Message + Audio Output ]
| |
[ Used Words DB ] <---------|
Example Screenshot
Word of the Day embed with pronunciation and example usage.
Audio Pipeline
pyttsx3 (Generate Voice)
↓
tts_output.mp3 (Raw Speech)
↓ FFmpeg (Pitch/Tempo Modulation)
modulated_output.mp3 (Processed Voice)
↓
Discord Voice Channel (Playback)
Future Extensions
- Generate short video clips for Word of the Day.
- Integrate visual dictionary images.
- Create TikTok/YouTube Shorts from bot outputs.