File size: 9,132 Bytes
6248a54
93bb4f3
 
 
 
6248a54
93bb4f3
 
6248a54
93bb4f3
 
 
6248a54
 
 
93bb4f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
title: TalkGlobe (Gradio UI)
emoji: πŸ—£οΈ
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.26.0
app_file: src/app.py
pinned: false
license: mit
short_description: Real-time translator with multilang support (Gradio UI)
tags: [webrtc, gradio]
---

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

# TalkGlobe: Real-Time Speech Translation

TalkGlobe is an AI-powered application that enables seamless, real-time speech-to-speech translation. Using the state-of-the-art Seamless-M4T-v2 model from Meta, it delivers:

- **πŸŽ™οΈ 101 input languages** for speech recognition

- **πŸ”Š 35 output languages** for natural-sounding translated speech

- **⚑ Instant translation** with low latency

- **πŸ–₯️ Intuitive interface** for effortless language selection

Simply speak in your native language, choose a target language, and TalkGlobe generates the translated audio in real time. Ideal for travel, business, or multilingual conversations.

## Supported Languages:

Listed below, are the languages supported (either as source or target) by TalkGlobe (according to facebook/seamless-m4t-v2-large model card).

| code     | language               | Source | Target |
| -------- | ---------------------- | :----: | :----: |
| afr      | Afrikaans              |   βœ…   |   ❌   |
| amh      | Amharic                |   βœ…   |   ❌   |
| arb      | Modern Standard Arabic |   βœ…   |   βœ…   |
| ary      | Moroccan Arabic        |   βœ…   |   ❌   |
| arz      | Egyptian Arabic        |   βœ…   |   ❌   |
| asm      | Assamese               |   βœ…   |   ❌   |
| ast      | Asturian               |   βœ…   |   ❌   |
| azj      | North Azerbaijani      |   βœ…   |   ❌   |
| bel      | Belarusian             |   βœ…   |   ❌   |
| ben      | Bengali                |   βœ…   |   βœ…   |
| bos      | Bosnian                |   βœ…   |   ❌   |
| bul      | Bulgarian              |   βœ…   |   ❌   |
| cat      | Catalan                |   βœ…   |   βœ…   |
| ceb      | Cebuano                |   βœ…   |   ❌   |
| ces      | Czech                  |   βœ…   |   βœ…   |
| ckb      | Central Kurdish        |   βœ…   |   ❌   |
| cmn      | Mandarin Chinese       |   βœ…   |   βœ…   |
| cmn_Hant | Mandarin Chinese       |   βœ…   |   βœ…   |
| cym      | Welsh                  |   βœ…   |   βœ…   |
| dan      | Danish                 |   βœ…   |   βœ…   |
| deu      | German                 |   βœ…   |   βœ…   |
| ell      | Greek                  |   βœ…   |   ❌   |
| eng      | English                |   βœ…   |   βœ…   |
| est      | Estonian               |   βœ…   |   βœ…   |
| eus      | Basque                 |   βœ…   |   ❌   |
| fin      | Finnish                |   βœ…   |   βœ…   |
| fra      | French                 |   βœ…   |   βœ…   |
| fuv      | Nigerian Fulfulde      |   βœ…   |   ❌   |
| gaz      | West Central Oromo     |   βœ…   |   ❌   |
| gle      | Irish                  |   βœ…   |   ❌   |
| glg      | Galician               |   βœ…   |   ❌   |
| guj      | Gujarati               |   βœ…   |   ❌   |
| heb      | Hebrew                 |   βœ…   |   ❌   |
| hin      | Hindi                  |   βœ…   |   βœ…   |
| hrv      | Croatian               |   βœ…   |   ❌   |
| hun      | Hungarian              |   βœ…   |   ❌   |
| hye      | Armenian               |   βœ…   |   ❌   |
| ibo      | Igbo                   |   βœ…   |   ❌   |
| ind      | Indonesian             |   βœ…   |   βœ…   |
| isl      | Icelandic              |   βœ…   |   ❌   |
| ita      | Italian                |   βœ…   |   βœ…   |
| jav      | Javanese               |   βœ…   |   ❌   |
| jpn      | Japanese               |   βœ…   |   βœ…   |
| kam      | Kamba                  |   βœ…   |   ❌   |
| kan      | Kannada                |   βœ…   |   ❌   |
| kat      | Georgian               |   βœ…   |   ❌   |
| kaz      | Kazakh                 |   βœ…   |   ❌   |
| kea      | Kabuverdianu           |   βœ…   |   ❌   |
| khk      | Halh Mongolian         |   βœ…   |   ❌   |
| khm      | Khmer                  |   βœ…   |   ❌   |
| kir      | Kyrgyz                 |   βœ…   |   ❌   |
| kor      | Korean                 |   βœ…   |   βœ…   |
| lao      | Lao                    |   βœ…   |   ❌   |
| lit      | Lithuanian             |   βœ…   |   ❌   |
| ltz      | Luxembourgish          |   βœ…   |   ❌   |
| lug      | Ganda                  |   βœ…   |   ❌   |
| luo      | Luo                    |   βœ…   |   ❌   |
| lvs      | Standard Latvian       |   βœ…   |   ❌   |
| mai      | Maithili               |   βœ…   |   ❌   |
| mal      | Malayalam              |   βœ…   |   ❌   |
| mar      | Marathi                |   βœ…   |   ❌   |
| mkd      | Macedonian             |   βœ…   |   ❌   |
| mlt      | Maltese                |   βœ…   |   βœ…   |
| mni      | Meitei                 |   βœ…   |   ❌   |
| mya      | Burmese                |   βœ…   |   ❌   |
| nld      | Dutch                  |   βœ…   |   βœ…   |
| nno      | Norwegian Nynorsk      |   βœ…   |   ❌   |
| nob      | Norwegian BokmΓ₯l       |   βœ…   |   ❌   |
| npi      | Nepali                 |   βœ…   |   ❌   |
| nya      | Nyanja                 |   βœ…   |   ❌   |
| oci      | Occitan                |   βœ…   |   ❌   |
| ory      | Odia                   |   βœ…   |   ❌   |
| pan      | Punjabi                |   βœ…   |   ❌   |
| pbt      | Southern Pashto        |   βœ…   |   ❌   |
| pes      | Western Persian        |   βœ…   |   βœ…   |
| pol      | Polish                 |   βœ…   |   βœ…   |
| por      | Portuguese             |   βœ…   |   βœ…   |
| ron      | Romanian               |   βœ…   |   βœ…   |
| rus      | Russian                |   βœ…   |   βœ…   |
| slk      | Slovak                 |   βœ…   |   βœ…   |
| slv      | Slovenian              |   βœ…   |   ❌   |
| sna      | Shona                  |   βœ…   |   ❌   |
| snd      | Sindhi                 |   βœ…   |   ❌   |
| som      | Somali                 |   βœ…   |   ❌   |
| spa      | Spanish                |   βœ…   |   βœ…   |
| srp      | Serbian                |   βœ…   |   ❌   |
| swe      | Swedish                |   βœ…   |   βœ…   |
| swh      | Swahili                |   βœ…   |   βœ…   |
| tam      | Tamil                  |   βœ…   |   ❌   |
| tel      | Telugu                 |   βœ…   |   βœ…   |
| tgk      | Tajik                  |   βœ…   |   ❌   |
| tgl      | Tagalog                |   βœ…   |   βœ…   |
| tha      | Thai                   |   βœ…   |   βœ…   |
| tur      | Turkish                |   βœ…   |   βœ…   |
| ukr      | Ukrainian              |   βœ…   |   βœ…   |
| urd      | Urdu                   |   βœ…   |   βœ…   |
| uzn      | Northern Uzbek         |   βœ…   |   βœ…   |
| vie      | Vietnamese             |   βœ…   |   βœ…   |
| xho      | Xhosa                  |   βœ…   |   ❌   |
| yor      | Yoruba                 |   βœ…   |   ❌   |
| yue      | Cantonese              |   βœ…   |   ❌   |
| zlm      | Colloquial Malay       |   βœ…   |   ❌   |
| zul      | Zulu                   |   βœ…   |   ❌   |

## Getting Started

This guide provides step-by-step instructions to set up and run the project on your local machine for development and testing purposes. For details on deploying the project to a production environment, refer to the Deployment section.

### Prerequisites

To set up and run this project, ensure the following software and tools are installed on your system:

- **Python**: Version `3.10.12` or higher is required. Verify your Python version by running:

  ```bash
  python3 --version
  ```

- **Dependencies**: Install the required Python packages listed in requirements.txt using pip. Run the following command in your terminal:

  ```bash
  pip install -r requirements.txt
  ```

### Local Development and Testing

To run the application locally for development and testing purposes, execute the following command in your terminal:

```bash
python app.py
```

> [!WARNING]
> Ensure you are in the project's **src** directory before running the script or adapt running path.

## Deployment

### Deployment on Hugging Face Spaces

To deploy the project on Hugging Face Spaces, follow these steps:

1. Create an account on [Hugging Face](https://huggingface.co) if you don’t already have one.

2. Refer to the official [Spaces Overview](https://huggingface.co/docs/hub/en/spaces-overview) documentation for detailed instructions on setting up and deploying your project.

### Deployment on Other Cloud Platforms

For deployment on other cloud or live systems, consult the documentation provided by your chosen service provider. Each platform may have specific requirements and steps for deploying Python-based applications.

## Built With

- [Python 3.10.12](http://www.python.org/) - Developing with the best programming language

## Authors

**Vlasios Dimitriadis** - _Initial work:_ [TalkGlobe](https://huggingface.co/spaces/blasisd/talk-globe)