Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,46 +10,57 @@ pinned: false
|
|
| 10 |
license: apache-2.0
|
| 11 |
short_description: text2speech+translate
|
| 12 |
---
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
[](https://huggingface.co/spaces/your-username/translate-speak-log)
|
| 16 |
+
[](https://gradio.app)
|
| 17 |
+
[](https://www.python.org/)
|
| 18 |
+
[](LICENSE)
|
| 19 |
|
| 20 |
---
|
| 21 |
|
| 22 |
+
## 🚀 Overview
|
| 23 |
+
Harness the power of **real-time NLP**, **on-the-fly translation**, and **neural TTS** in one elegant, CPU-only pipeline. This Space transforms user text into spoken audio—any English or Spanish input gets auto-detected, translated, and voiced back—while maintaining a live session log for data-driven insights.
|
| 24 |
+
|
| 25 |
+
**Key AI buzzwords:**
|
| 26 |
+
> Natural Language Processing (NLP) • Neural Text-to-Speech • Zero-shot language detection • Real-time inference • Session state management • Cloud-native deployment • User-centric design • Cost-efficient CPU runtime
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
+
## ✨ Features
|
| 31 |
|
| 32 |
+
| 🔑 Feature | 🔍 Description |
|
| 33 |
+
|--------------------------------|-------------------------------------------------------------------------------------------------------------|
|
| 34 |
+
| **🔄 Bidirectional Translation** | English ↔ Spanish via `deep-translator`’s GoogleTranslator (auto-detect source language) |
|
| 35 |
+
| **🗣️ Neural TTS** | High-fidelity speech generation with `gTTS` (Google Translate TTS) |
|
| 36 |
+
| **🕒 Real-Time Processing** | Sub-second response on free CPU tier—no GPUs, no paid APIs |
|
| 37 |
+
| **📊 Session Logging** | Data-driven UX: every input, translation, and audio event recorded in an interactive DataFrame |
|
| 38 |
+
| **🎨 Interactive UI** | Sleek Gradio Blocks interface with controls for text input, language selector, and playback |
|
| 39 |
+
| **🔧 Zero-Config Dev** | Drop-in `app.py` + `requirements.txt`—Spaces auto-builds and deploys |
|
| 40 |
+
| **💡 Extensible Architecture** | Modular pipelines—swap translators, TTS engines, or add analytics with minimal code changes |
|
| 41 |
|
| 42 |
---
|
| 43 |
|
| 44 |
+
## 🏗️ Architecture & Workflow
|
| 45 |
|
| 46 |
+
1. **User Input**
|
| 47 |
+
- Free-form text in any language (auto-detects English/Spanish).
|
| 48 |
+
2. **Translation**
|
| 49 |
+
- `deep-translator` → Google Translate API wrapper → high-accuracy text conversion.
|
| 50 |
+
3. **Text-to-Speech**
|
| 51 |
+
- `gTTS` → neural waveform synthesis → MP3 output.
|
| 52 |
+
4. **Session Log**
|
| 53 |
+
- Maintains a rolling table of `[Input, Target Language, Translated Text]` for audit trails and usage analytics.
|
| 54 |
+
5. **UI Rendering**
|
| 55 |
+
- Gradio Blocks orchestrates inputs, buttons, outputs, and state, delivering a seamless end-to-end experience.
|
| 56 |
|
| 57 |
---
|
| 58 |
|
| 59 |
+
## 🛠️ Quick Start (Local Development)
|
| 60 |
|
| 61 |
```bash
|
| 62 |
+
git clone https://github.com/your-username/translate-speak-log.git
|
| 63 |
+
cd translate-speak-log
|
| 64 |
+
python3 -m venv venv && source venv/bin/activate
|
| 65 |
pip install -r requirements.txt
|
| 66 |
python app.py
|