Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,47 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# Musical Instrument Detection API
|
| 11 |
+
|
| 12 |
+
API REST para clasificaci贸n de instrumentos musicales en tiempo real usando FastAPI y modelos de machine learning.
|
| 13 |
+
|
| 14 |
+
## Descripci贸n
|
| 15 |
+
|
| 16 |
+
Esta API permite detectar y clasificar instrumentos musicales en archivos de audio. Est谩 optimizada para procesamiento en tiempo real y puede identificar m煤ltiples tipos de instrumentos como guitarra, piano, bater铆a, viol铆n, entre otros.
|
| 17 |
+
|
| 18 |
+
## Caracter铆sticas
|
| 19 |
+
|
| 20 |
+
- Clasificaci贸n de instrumentos musicales en tiempo real
|
| 21 |
+
- Soporte para m煤ltiples formatos de audio (WAV, MP3, M4A, FLAC, OGG)
|
| 22 |
+
- Procesamiento optimizado con normalizaci贸n autom谩tica
|
| 23 |
+
- API RESTful con documentaci贸n autom谩tica
|
| 24 |
+
- Logs detallados para monitoreo
|
| 25 |
+
|
| 26 |
+
## Endpoints
|
| 27 |
+
|
| 28 |
+
### POST /detect
|
| 29 |
+
Detecta instrumentos en un archivo de audio.
|
| 30 |
+
|
| 31 |
+
**Par谩metros:**
|
| 32 |
+
- `audio`: Archivo de audio (multipart/form-data)
|
| 33 |
+
|
| 34 |
+
**Respuesta:**
|
| 35 |
+
```json
|
| 36 |
+
{
|
| 37 |
+
"success": true,
|
| 38 |
+
"detected_instruments": [
|
| 39 |
+
{
|
| 40 |
+
"instrument": "guitar",
|
| 41 |
+
"confidence": 0.8547,
|
| 42 |
+
"probability_percent": 85.47
|
| 43 |
+
}
|
| 44 |
+
],
|
| 45 |
+
"audio_info": {
|
| 46 |
+
"duration_seconds": 3.5,
|
| 47 |
+
"sample_rate": 16000,
|
| 48 |
+
"file_size_mb": 0.5
|
| 49 |
+
},
|
| 50 |
+
"processing_time_seconds": 0.234
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|