TelegramBot Voice to text
VoiceFlow: Advanced Telegram Bot Source Code for Audio Transcription and PDF Summarization
Unlock the power of automation with VoiceFlow, a feature-rich Telegram bot designed for audio transcription, PDF summarization, subscription management, and user support. This Python-based source code is perfect for developers, entrepreneurs, or businesses looking to deploy a customizable, monetizable bot on Telegram. Built with modern libraries like Telethon and aiogram, VoiceFlow is a robust solution for processing media, handling payments, and engaging users.
What You Get
- Complete Source Code: A well-structured Python codebase with modules for handling audio, subscriptions, support tickets, and more.
- Database Schema: SQLite-based database for managing users, transcriptions, payments, logs, and support tickets.
- Documentation: Basic setup instructions to get the bot running on your server.
- Dependencies List: All required Python libraries and external tools (e.g., ffmpeg for audio processing).
- Open-Source Libraries: Built with Telethon, aiogram, aiohttp, pydub, and reportlab, ensuring no proprietary licensing costs.
Key Functional Capabilities
-
Audio Transcription:
- Converts audio files (MP3, OGG, WAV, M4A, etc.) to text using the Whisper API.
- Supports URL-based audio/video downloading (e.g., YouTube) with real-time progress updates.
- Handles media groups for batch processing of multiple files.
- Exports transcriptions as PDF files with Cyrillic support using DejaVuSans font.
-
PDF Summarization:
- Uploads PDF files to a backend API for detailed or brief summarization.
- Asynchronous processing with status updates to keep users informed.
- Integrates with a custom API for file uploads and result retrieval.
-
Subscription and Payment System:
- Supports free and paid tiers (basic and pro) with time-based and file-count limits.
- Integrates with Telegram Stars for seamless in-app payments.
- Automatically manages subscription statuses, renewals, and expirations.
- Notifies users when subscriptions are about to expire.
-
Support Ticket System:
- Allows users to create support tickets with a simple interface.
- Admin panel for managing and responding to tickets.
- Notifies users of admin replies with inline buttons for easy navigation.
-
Achievement System:
- Gamifies user engagement by rewarding transcription milestones (e.g., 5, 20, 50, 100+ hours).
- Updates user achievement levels in the database and sends celebratory messages.
-
Robust Error Handling and Logging:
- Comprehensive logging to a file (bot.log) for debugging and monitoring.
- Error handling for API calls, file conversions, and database operations.
- Semaphore-based API request management to prevent overload.
-
Scalable Architecture:
- Modular design with separate files for handlers, database models, support, and API interactions.
- Asynchronous operations using asyncio and aiohttp for high performance.
- Easily extensible for additional features or API integrations.
Technical Details
- Programming Language: Python 3.8+
-
Main Libraries:
- Telethon and aiogram for Telegram API interactions
- aiohttp for asynchronous HTTP requests
- pydub and ffmpeg for audio processing
- reportlab for PDF generation
- sqlite3 for database management
- Database: SQLite (users.db) with tables for users, payments, transcriptions, logs, and support tickets
- External Dependencies: ffmpeg (for audio validation and conversion), Whisper API (for transcription), custom backend API (for PDF summarization)
- Configuration: Requires API keys for Whisper API and the custom backend API, plus a Telegram bot token.
Setup Requirements
To deploy VoiceFlow, you'll need:
- A server or local machine with Python 3.8+ and ffmpeg installed.
- A Telegram bot token (obtained via BotFather).
- API keys for the Whisper API and the custom backend API (replace placeholders in config.py).
- A SQLite database (automatically created on first run).
- Basic knowledge of Python and Telegram bot development for customization.
Setup Instructions
- Clone the source code to your server.
- Install dependencies: pip install telethon aiogram aiohttp pydub reportlab.
- Install ffmpeg: sudo apt-get install ffmpeg (Linux) or equivalent for your OS.
- Configure config.py with your Telegram bot token, Whisper API key, and backend API credentials.
- Run main.py to start the Telethon-based bot and aiobot.py for aiogram-based payment handling.
- Deploy on a server (e.g., Heroku, AWS, or a VPS) for 24/7 operation.
Why Buy VoiceFlow?
- Ready-to-Deploy: A fully functional bot with monetization features, saving you hundreds of hours of development.
- Customizable: Easily adapt the code to add new features, change APIs, or support other languages.
- Monetization Potential: Use the subscription and payment system to generate revenue.
- Scalable: Built for high performance with async operations and modular design.
- Commercial Use: Ideal for developers, startups, or businesses looking to offer transcription or summarization services.
Limitations
- Requires external API keys (Whisper API and custom backend API) for full functionality.
- The buyer is responsible for hosting and maintaining the bot.
- Basic documentation is provided; advanced customization may require Python expertise.
Support
- Includes basic setup documentation.
Get started with VoiceFlow today and bring powerful audio transcription and PDF summarization to your Telegram community!
0 sales
Size
1.71 MB
Add to wishlist