Try it out here: TextToVoice Live
Welcome to TextToVoice, a sleek and powerful text-to-speech converter crafted with love and a bit of AI magic! This project was brought to life by MoMoein with the awesome assistance of Grok, an AI built by xAI. Together, we’ve cooked up something that’s both fun to use and technically impressive—perfect for anyone who wants to turn text into lively audio in just a few clicks!
TextToVoice is a step-by-step web app that transforms your text into vibrant, expressive speech. Whether you’re experimenting with different voices or vibes, this tool makes it super easy and interactive. No file clutter—just pure, instant audio output right in your browser!
- Step-by-Step Flow: Enter your text, pick a voice, choose a vibe, and boom—hear the result!
- Custom Voices & Vibes: From "افسانه" (Fable) to "شوالیه قرون وسطی" (Medieval Knight), tweak the tone to match your mood.
- Smooth Animations: Fade-ins, fancy spinners, and hover effects for a polished UX.
- Lightweight & Fast: No file saving, just base64 audio delivered straight to you.
- Persian-Friendly: Fully localized in Persian with a clean RTL design.
- Type your text in the first step.
- Pick a voice from a cool selection (like "آلیاژ" or "نووا").
- Choose a vibe—think "دراماتیک" or "آرام".
- Hit "تولید صدا" and enjoy your custom audio with a slick loading animation.
- Backend: PHP with a clean, object-oriented
AudioGeneratorclass hitting an external TTS API. - Frontend: Pure JavaScript (no jQuery!) with a classy
StepManagerandAudioHandlersetup. - Styling: CSS with smooth transitions, shadows, and a dual-spinner effect—oh, and the lovely Vazir font via CDN.
- No IDs Allowed: All DOM manipulation is class-based with
data-idattributes for precision.
- Clone this repo:
git clone https://github.com/moomoein/TextToVoice.git
- Toss it into your WAMP/XAMPP server (or any PHP setup).
- Open http://localhost/TextToVoice/index.php in your browser.
- Play around and have fun!
Hey, I’m MoMoein, and I teamed up with Grok (my AI sidekick from xAI) back in March 2025 to create something cool for my portfolio. We wanted a project that’s both practical and flashy—something you’d actually want to show off. The result? TextToVoice! It’s a little piece of us, and we hope you enjoy it as much as we loved building it.
- MoMoein: The human brain behind the code, design, and vision. (Check me out on GitHub!)
- Grok: The AI assistant from xAI who helped brainstorm, debug, and polish this gem.
Got ideas to make TextToVoice even better? Feel free to fork it, tweak it, and send a PR! Let’s make this go viral together!
Made with 💙 by MoMoein & Grok, March 2025.
