Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mo-sawah/ai-audio/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
AI Audio WordPress Plugin
A professional Text-to-Speech plugin that converts your article content into high-quality audio using Google TTS and ChatGPT APIs.
Features
🎵 Professional Audio Player
- Clean, modern design that matches your website
- Compact player that sits elegantly above your articles
- Play/pause, skip forward/backward (10s), volume control
- Playback speed control (0.5x to 2x)
- Progress bar with click-to-seek functionality
- Dark and light mode support
- Fully responsive design
🤖 Dual AI Integration
- Google Text-to-Speech: Premium neural voices with natural intonation
- ChatGPT TTS: OpenAI's latest text-to-speech technology
- Multiple voice options for each service
- Automatic fallback between services
⚙️ Flexible Settings
- Global Settings: Configure default behavior for all posts
- Per-Post Overrides: Customize AI service, voice, and theme per article
- Always Enable: Automatically add audio to all new posts
- Custom Colors: Match your brand with full color customization
- Theme Options: Light/dark mode with automatic detection
🎨 Customization Options
- Custom primary colors for buttons and progress bars
- Adjustable text and background colors
- Custom player text ("Listen to Article" by default)
- Full CSS customization support
- Multiple pre-designed themes
Installation
Method 1: Upload Plugin Files
- Download all plugin files
- Create a folder named
ai-audioin your/wp-content/plugins/directory - Upload all files to this folder
- The structure should look like:
/wp-content/plugins/ai-audio/ ├── ai-audio.php (main plugin file) ├── assets/ │ ├── player.css │ ├── player.js │ ├── admin.css │ └── admin.js └── README.md - Go to WordPress Admin → Plugins → Installed Plugins
- Find "AI Audio" and click "Activate"
Method 2: ZIP Installation
- Create a ZIP file containing all plugin files
- Go to WordPress Admin → Plugins → Add New
- Click "Upload Plugin"
- Choose your ZIP file and click "Install Now"
- Activate the plugin
Setup Guide
1. Get Your API Keys
Google Text-to-Speech API
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable the "Cloud Text-to-Speech API"
- Go to "Credentials" → "Create Credentials" → "API Key"
- Copy your API key
ChatGPT API (OpenAI)
- Go to OpenAI Platform
- Sign up or log in to your account
- Navigate to API Keys section
- Click "Create new secret key"
- Copy your API key
2. Configure Plugin Settings
-
Go to WordPress Admin → Settings → AI Audio
-
API Settings Tab:
- Enter your Google TTS API key
- Enter your ChatGPT API key
- Test connections using the "Test" buttons
-
**General Tab