File size: 2,753 Bytes
a23d291
d6a8ab9
 
a23d291
 
 
 
 
 
 
 
 
 
d6a8ab9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: 'Bilingual TTS: Amharic & English'
emoji: 🌍
colorFrom: gray
colorTo: purple
sdk: gradio
sdk_version: 5.22.0
app_file: app.py
pinned: false
license: mit
short_description: Bilingual Text-to-Speech (Amharic & English) πŸ‡ͺπŸ‡ΉπŸ‡ΊπŸ‡Έ
---

# Bilingual Text-to-Speech Converter

<div align="center">
  <img src="https://raw.githubusercontent.com/snackshell/eng-amh-tts/main/assets/demo.png" width="800" alt="Bilingual TTS Interface">
  <br>
  <em>Natural sounding speech synthesis for Amharic and English</em>
</div>

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

## Key Features 🌟
- **Bilingual Support**: Switch between Amharic & English seamlessly
- **Four Natural Voices**:
  - πŸ‡ͺπŸ‡Ή Amharic: Ameha (Male) & Mekdes (Female)
  - πŸ‡ΊπŸ‡Έ English: Ryan (Male) & Clara (Female)
- **Real-time Generation**: <3s response time for most requests
- **Gradient UI**: Beautiful pink-to-blue theme
- **Cross-language Error Handling**: Automatic error messages in selected language

## How to Use 🎀
1. **Select Language**: Choose between Amharic/English
2. **Choose Voice**: Pick your preferred speaker
3. **Enter Text**: Type or paste your text (max 500 characters)
4. **Generate**: Click the gradient button
5. **Play**: Listen directly in your browser

![Usage Demo](https://raw.githubusercontent.com/snackshell/eng-amh-tts/main/assets/usage-demo.gif)

## Supported Voices 🎧
| Language  | Speaker | Gender | Voice ID           |
|-----------|---------|--------|--------------------|
| Amharic πŸ‡ͺπŸ‡Ή | Ameha   | Male   | `am-ET-AmehaNeural`|
| Amharic πŸ‡ͺπŸ‡Ή | Mekdes  | Female | `am-ET-MekdesNeural`|
| English πŸ‡ΊπŸ‡Έ | Ryan    | Male   | `en-GB-RyanNeural` |
| English πŸ‡ΊπŸ‡Έ | Clara   | Female | `en-CA-ClaraNeural`|

## Technical Flow πŸ”§
```mermaid
sequenceDiagram
    User->>+App: Select Language & Voice
    User->>+App: Input Text
    App->>+EdgeTTS: Send Request
    EdgeTTS-->>-App: Return Audio
    App->>+User: Play Audio
```

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

## Limitations ⚠️
- Max 500 characters per request
- Requires internet connection
- English voices optimized for neutral accents

## Acknowledgments πŸ™
- Voice Technology: Microsoft Edge TTS
- Hosting: Hugging Face Spaces
- UI Framework: Gradio
- Maintained by: [Bana Codes](https://t.me/banacodes)

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

```

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference