Add HuggingFace Spaces Docker deployment
Browse files
README.md
CHANGED
|
@@ -21,52 +21,23 @@ Built for LLM-based healthcare assistants to deliver medical guidance in native
|
|
| 21 |
|
| 22 |
- **11 Indian Languages**: Hindi, Bengali, Marathi, Telugu, Kannada, Bhojpuri, Chhattisgarhi, Maithili, Magahi, English, Gujarati
|
| 23 |
- **21 Voice Options**: Male & Female voices for each language
|
| 24 |
-
- **REST API**: FastAPI with OpenAPI docs at
|
| 25 |
|
| 26 |
## 🔌 API Endpoint
|
| 27 |
|
| 28 |
-
```
|
| 29 |
GET /Get_Inference?text=नमस्ते&lang=hindi
|
| 30 |
-
```
|
| 31 |
|
| 32 |
### Parameters
|
| 33 |
|
| 34 |
| Parameter | Type | Required | Description |
|
| 35 |
|-----------|------|----------|-------------|
|
| 36 |
-
| text | string |
|
| 37 |
-
| lang | string |
|
| 38 |
-
| speaker_wav | file |
|
| 39 |
-
|
| 40 |
-
### Example
|
| 41 |
-
|
| 42 |
-
```python
|
| 43 |
-
import requests
|
| 44 |
-
|
| 45 |
-
url = "https://Harshil748-voiceapi.hf.space/Get_Inference"
|
| 46 |
-
params = {"text": "नमस्ते, आप कैसे हैं?", "lang": "hindi"}
|
| 47 |
-
|
| 48 |
-
with open("reference.wav", "rb") as f:
|
| 49 |
-
response = requests.get(url, params=params, files={"speaker_wav": f})
|
| 50 |
-
|
| 51 |
-
with open("output.wav", "wb") as f:
|
| 52 |
-
f.write(response.content)
|
| 53 |
-
```
|
| 54 |
|
| 55 |
## 📊 Supported Languages
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|----------|------|--------|
|
| 59 |
-
| Hindi | hindi | Male, Female |
|
| 60 |
-
| Bengali | bengali | Male, Female |
|
| 61 |
-
| Marathi | marathi | Male, Female |
|
| 62 |
-
| Telugu | telugu | Male, Female |
|
| 63 |
-
| Kannada | kannada | Male, Female |
|
| 64 |
-
| Gujarati | gujarati | MMS |
|
| 65 |
-
| Bhojpuri | bhojpuri | Male, Female |
|
| 66 |
-
| Chhattisgarhi | chhattisgarhi | Male, Female |
|
| 67 |
-
| Maithili | maithili | Male, Female |
|
| 68 |
-
| Magahi | magahi | Male, Female |
|
| 69 |
-
| English | english | Male, Female |
|
| 70 |
|
| 71 |
## 🙏 Credits
|
| 72 |
|
|
|
|
| 21 |
|
| 22 |
- **11 Indian Languages**: Hindi, Bengali, Marathi, Telugu, Kannada, Bhojpuri, Chhattisgarhi, Maithili, Magahi, English, Gujarati
|
| 23 |
- **21 Voice Options**: Male & Female voices for each language
|
| 24 |
+
- **REST API**: FastAPI with OpenAPI docs at /docs
|
| 25 |
|
| 26 |
## 🔌 API Endpoint
|
| 27 |
|
|
|
|
| 28 |
GET /Get_Inference?text=नमस्ते&lang=hindi
|
|
|
|
| 29 |
|
| 30 |
### Parameters
|
| 31 |
|
| 32 |
| Parameter | Type | Required | Description |
|
| 33 |
|-----------|------|----------|-------------|
|
| 34 |
+
| text | string | Yes | Text to synthesize |
|
| 35 |
+
| lang | string | Yes | Language code |
|
| 36 |
+
| speaker_wav | file | Yes | Reference WAV file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## 📊 Supported Languages
|
| 39 |
|
| 40 |
+
Hindi, Bengali, Marathi, Telugu, Kannada, Gujarati, Bhojpuri, Chhattisgarhi, Maithili, Magahi, English
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
## 🙏 Credits
|
| 43 |
|