Overview
This guide will help you set up a simple text-to-speech system that can convert written text in English, Hindi, Tamil, and many other languages into audio files. This is useful for creating audiobooks, accessibility services, or audio announcements.
Part 1: One-Time Setup (30 minutes)
Step 1: Install Python
Download Python:
- Go to: https://www.python.org/downloads/
- Click "Download Python 3.11" (or latest version)
Install Python:
- Run the downloaded file
- ⚠️ IMPORTANT: Check the box "Add Python to PATH"
- Click "Install Now"
- Wait for installation to complete
Verify Installation:
- Press
Windows Key + R
- Type
cmd and press Enter
- Type:
python --version
- You should see:
Python 3.11.x
Step 2: Install Text-to-Speech Engine
In the Command Prompt (same black window), type:
pip install edge-tts
Press Enter and wait. You should see "Successfully installed edge-tts"
Step 3: Install R and RStudio
Install R:
- Go to: https://cran.r-project.org/
- Click "Download R for Windows"
- Click "base"
- Download and install
Install RStudio:
- Go to: https://posit.co/download/rstudio-desktop/
- Download RStudio Desktop (Free)
- Install it
Part 2: Creating Audio Files
Part 3: Quick Start Instructions for Librarians
How to Use:
Save the R script above as library_tts.R on your computer
Create your text file:
- Open Notepad
- Type or paste your text
- Save as
english_text.txt (or hindi_text.txt, tamil_text.txt, etc.)
- Save in folder:
C:/Library_Audio_Files
Run the script:
- Open RStudio
- Click File → Open File → Select
library_tts.R
- Click the "Source" button (or press Ctrl+Shift+S)
Find your audio:
- Look in
C:/Library_Audio_Files
- You'll find an MP3 file ready to play!
Part 4: Common Library Use Cases
Example 1: Creating Audiobook Chapters
# For Chapter 1input_file <- "chapter1.txt"output_file <- "Chapter_1_Audio.mp3"
Example 2: Multi-Language Announcements
For English announcement:
language_code <- "en-US"voice_name <- "en-US-AriaNeural"input_file <- "announcement_english.txt"
output_file <- "Announcement_English.mp3"
For Hindi announcement:
language_code <- "hi-IN"voice_name <- "hi-IN-SwaraNeural"input_file <- "announcement_hindi.txt"
output_file <- "Announcement_Hindi.mp3"
For Tamil announcement:
language_code <- "ta-IN"voice_name <- "ta-IN-PallaviNeural"input_file <- "announcement_tamil.txt"
output_file <- "Announcement_Tamil.mp3"
Part 5: Troubleshooting
| Problem |
Solution |
| "Python not found" |
Install Python and check "Add to PATH" |
| "edge-tts not found" |
Run pip install edge-tts in Command Prompt |
| "Input file not found" |
Check file is in correct folder with correct name |
| "No sound in audio" |
Check text file has content, not empty |
| "Garbled audio" |
Save text file with UTF-8 encoding |
Part 6: Complete Voice Reference
Indian Languages Available:
- Hindi: Swara (F), Madhur (M)
- Tamil: Pallavi (F), Valluvar (M)
- Telugu: Shruti (F), Mohan (M)
- Kannada: Sapna (F), Gagan (M)
- Malayalam: Sobhana (F), Midhun (M)
- Marathi: Aarohi (F), Manohar (M)
- Gujarati: Dhwani (F), Niranjan (M)
- Bengali: Tanishaa (F), Bashkar (M)
Major International Languages:
- English: 20+ voices (US, UK, Australia, etc.)
- Spanish: 15+ voices
- French: 10+ voices
- German, Japanese, Chinese, Arabic, and 80+ more
Part 7: Tips for Best Results
Text preparation:
- Remove special characters
- Use proper punctuation
- Break very long texts into chapters
Speed adjustment:
- Normal reading:
"+0%"
- Faster (audiobooks):
"+20%"
- Very fast:
"+50%"
- Slower (learning):
"-20%"
File organization:
- Keep separate folders for each language
- Use descriptive filenames
- Date your files:
Book_Title_2025_01_14.mp3
This system is completely free, works offline after initial setup, and supports 140+ languages. Perfect for libraries serving diverse communities! 📚🎧
This documentation provides everything you need to install, configure, and operate the Library QR Gate Register System.
Library QR Gate Register (Wordpress Plugin) Documentation
Version: 1.5
Download: Click here
Core Function: QR-based automated entry/exit tracking with live occupancy and bulk member notification.
1. Installation & Setup
A. Plugin Installation
Create Folder: Navigate to /wp-content/plugins/ and create a folder named library-gate-register.
Create File: Create a file inside named library-gate-register.php.
Paste Code: Paste the Version 1.5 code provided in the previous message into this file.
Activate: Go to WordPress Dashboard > Plugins and click Activate on "Library QR Gate Register".
B. Requirements
HTTPS: Your website must have an SSL certificate (https://) for the browser to allow camera access.
SMTP: For bulk emails, install the WP Mail SMTP plugin to ensure QR codes are not marked as spam.
2. Configuration (Admin)
Defining Floors and Gates
Go to Library Register > Library Gates in your sidebar. Use the following format:
Use a Colon (:) to separate a floor from its gates.
Use a Comma (,) to separate multiple gates.
Put each floor on a new line.
Example:
Ground Floor: Main Gate, Cafe Gate
First Floor: Study Wing, Lab Entrance
3. Shortcode Reference
| Shortcode |
Purpose |
Visibility |
[library_qr] |
Displays the user's personal Digital ID & QR Code. |
Logged-in Members |
[library_scanner] |
Opens the camera to scan member codes. |
Admin/Staff Only |
Recommended Page Setup:
"My Library Pass" Page: Create a page for students and paste [library_qr]. Link this in your member menu.
"Staff Scanner" Page: Create a private page for library staff and paste [library_scanner].
4. Bulk Emailing System
How to send QR codes:
Go to Library Register > Visit Reports.
Click the button: "
Send QR to All Users".
The system will loop through all registered WordPress members and send a professionally designed HTML email containing their unique QR code.
5. Reports & Analytics
The Reporting Dashboard
Accessible via Library Register > Visit Reports.
Live Status: Users currently inside are marked with a green "● Active" dot.
Duration: The system automatically calculates total time spent once the user scans "Out."
CSV Export: Click "
Export CSV" to download all data for use in Microsoft Excel or Google Sheets.
Understanding Entry/Exit Logic
Scan 1: If the user is not in the library, the system logs a Check-In.
Scan 2: If the user is already "Active," the next scan logs a Check-Out and calculates the time.
Live Occupancy: The scanner screen displays a real-time count of people currently on that specific floor.
6. Gate Hardware Setup
Tablet/Mobile Configuration:
Mount a tablet at each gate.
Open the Staff Scanner Page created in Step 3.
Select the Current Location (e.g., First Floor | Lab Entrance) from the dropdown.
The device is now a dedicated scanner for that specific gate.
7. Troubleshooting
Camera won't open: Check that the page is loaded over https://. Ensure you have granted camera permissions to the browser.
User not found: Ensure the member is registered in WordPress with the same email used for the QR code.
Emails not arriving: Check your WP Mail SMTP settings. Many hosting providers block default PHP mail to prevent spam.
Comment Wall (1 comment)
You need to be a member of LIS Links to add comments!
Join LIS Links
Happy Birthday to u Gopal.