File size: 2,669 Bytes
04f3f01
bdc09b3
949d893
 
 
 
 
 
 
 
 
 
 
04f3f01
 
949d893
04f3f01
949d893
04f3f01
 
 
 
949d893
04f3f01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
949d893
 
 
 
 
04f3f01
 
 
 
 
 
 
 
 
949d893
 
 
 
 
04f3f01
949d893
 
 
 
 
 
 
04f3f01
 
949d893
04f3f01
 
 
949d893
 
 
04f3f01
949d893
04f3f01
949d893
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
```markdown
```
---
title: Amharic Text-to-Speech (TTS) Application
emoji: πŸ‡ͺπŸ‡Ή
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 4.13.0
app_file: app.py
pinned: false
license: mit
---

# Amharic Text-to-Speech (TTS) Application

<div align="center">
  <img src="https://raw.githubusercontent.com/snackshell/amharic-tts/main/assets/demo.png" alt="Amharic TTS Interface" width="800">
  <br>
  <em>Convert Amharic text to natural-sounding speech directly in your browser</em>
</div>

[![Open in Spaces](https://img.shields.io/badge/πŸ€—-Open%20in%20Spaces-blue.svg)](https://huggingface.co/spaces/snackshell/amharic-tts)

## Features ✨
- πŸ—£οΈ Native Amharic voice support (Male & Female)
- 🌍 Web interface with Amharic localization
- ⚑ Real-time speech synthesis
- 🎧 Direct audio playback in browser
- πŸ› οΈ Error handling with Amharic/English messages
- ⏱️ 30-second timeout protection

## Supported Voices 🎢
| Name   | Gender | Voice ID           |
|--------|--------|--------------------|
| Ameha  | Male   | `am-ET-AmehaNeural`|
| Mekdes | Female | `am-ET-MekdesNeural`|

## How to Use πŸš€
1. Type/paste Amharic text in the input box
2. Select preferred voice (Ameha or Mekdes)
3. Click "α‹΅αˆα… ፍጠር" (Generate Audio)
4. Play the generated audio using the built-in player

## Technical Details πŸ”§
```mermaid
graph TD
    A[User Interface] --> B(Gradio Frontend)
    B --> C[Edge TTS Service]
    C --> D[Microsoft Cognitive Services]
```

### Built With
- 🐍 Python 3.10+
- πŸŽ›οΈ Gradio (Web Interface)
- πŸ”Š edge-tts (TTS Engine)
- ⚑ asyncio (Async Operations)

## Local Development πŸ’»
```bash
git clone https://github.com/snackshell/amharic-tts.git
cd amharic-tts
pip install -r requirements.txt
python app.py
```

## License πŸ“„
This project is licensed under the [MIT License](LICENSE)

## Acknowledgments πŸ™
- Microsoft Edge TTS services
- Hugging Face for hosting
- Gradio team for the web framework
- Ethiopian tech community for support

[πŸ“ GitHub Repository](https://github.com/snackshell/amharic-tts) | [πŸ› Report Issues](https://github.com/snackshell/amharic-tts/issues)
```

Key changes made for Hugging Face Spaces:
1. Added Spaces metadata header
2. Changed image path to absolute URL
3. Added "Open in Spaces" badge
4. Simplified installation to focus on Space usage
5. Reorganized sections for ML Hub context
6. Added direct GitHub links at bottom
7. Removed redundant contribution instructions (link to GitHub instead)
8. Updated acknowledgments to include Hugging Face

Keep your existing `requirements.txt` file - Hugging Face Spaces will automatically use it for dependency installation.