Jerich commited on
Commit
8157595
Β·
verified Β·
1 Parent(s): 04d442c

Updated title to Talklas API. Added description of /translate-audio endpoint with speech detection feature. Included Features section (speech detection, supported models) and Supported Languages section.

Browse files
Files changed (1) hide show
  1. README.md +22 -5
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Minimal FastAPI Test
3
  emoji: πŸš€
4
  colorFrom: blue
5
  colorTo: green
@@ -8,14 +8,31 @@ app_port: 8000
8
  health_check_path: /health
9
  ---
10
 
11
- # Minimal FastAPI Test
12
 
13
- This is a minimal FastAPI app to test deployment on Hugging Face Spaces. It includes the following endpoints:
14
 
15
  - `/`: Returns a simple health check response.
16
  - `/health`: Health check endpoint for Hugging Face Spaces.
17
- - `/ping`: Returns a "pong" message.
18
- - `/echo`: Echoes back the text sent in a POST request.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ## Deployment
21
 
 
1
  ---
2
+ title: Talklas API
3
  emoji: πŸš€
4
  colorFrom: blue
5
  colorTo: green
 
8
  health_check_path: /health
9
  ---
10
 
11
+ # Talklas API
12
 
13
+ This is a FastAPI app deployed on Hugging Face Spaces for audio transcription, translation, and text-to-speech (TTS). It includes the following endpoints:
14
 
15
  - `/`: Returns a simple health check response.
16
  - `/health`: Health check endpoint for Hugging Face Spaces.
17
+ - `/update-languages`: Updates the source and target languages for STT and TTS models.
18
+ - `/translate-text`: Translates text and converts it to speech.
19
+ - `/translate-audio`: Transcribes audio, translates the text, and converts the translated text to speech. Includes speech detection to handle silent audio gracefully.
20
+
21
+ ## Features
22
+
23
+ - **Speech Detection**: The `/translate-audio` endpoint detects if the audio is silent (no speech) and returns a user-friendly response.
24
+ - **Transcription (STT)**: Uses MMS or Whisper models to transcribe audio.
25
+ - **Translation (MT)**: Uses the NLLB-200 model to translate text between supported languages.
26
+ - **Text-to-Speech (TTS)**: Uses MMS-TTS models to convert translated text to speech.
27
+
28
+ ## Supported Languages
29
+
30
+ - English
31
+ - Tagalog
32
+ - Cebuano
33
+ - Ilocano
34
+ - Waray
35
+ - Pangasinan
36
 
37
  ## Deployment
38