https://github.com/kabir5296/multilingual-asr
This repository contains my work with ASR and NLP. The repository utilizes insanely fast ASR with Whisper and performs several NLP tasks as well.
https://github.com/kabir5296/multilingual-asr
Last synced: 2 months ago
JSON representation
This repository contains my work with ASR and NLP. The repository utilizes insanely fast ASR with Whisper and performs several NLP tasks as well.
- Host: GitHub
- URL: https://github.com/kabir5296/multilingual-asr
- Owner: Kabir5296
- Created: 2024-01-16T11:23:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-10T16:38:36.000Z (over 1 year ago)
- Last Synced: 2025-01-30T23:48:46.231Z (4 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multilingual ASR
This repository contains multilingual ASR for Bengali and English.
Created by A F M Mahfuzul Kabir \
mahfuzulkabir.com \
https://www.linkedin.com/in/mahfuzulkabir \### How to use:
Initialize:
```
from DoBanglaSummarize import DoBanglaSummarize
from agent import TranscriberAgentagent = TranscriberAgent()
summarizer_agent = DoBanglaSummarize()
```Transcribe, Create Conversation and Get Keywords:
```
transcription = agent.get_raw_transcription(audio_path)
conversation = agent.create_conversation(audio_path)
keywords = agent.get_keywords(audio_path)
# you can also define your own set of keywords by passing it throug an arguement
keywords = agent.get_keywords(audio_path, keywords=list_of_keywords)
```### FastAPI Integration
The repository is now integrated with FastAPI for hosting endpoints.
```
Endpoint 1, 2 & 3: Transcribe, Converse, Summarize
Input: 'file': String = File path to the audio file.
'language' : String = 'bn' for Bengali, 'en' for English
Output: Dictionary = {'content':
{'filename': Filename,
'transcription': Transcription (string) for endpoint 1, List of list for endpoint 2, Summary (string) for endpoint 3
}
}
``````
Endpoint 4: Get Keyword
Input: 'file' : String = File path to the audio file.
'keyword_str' : String = String with keywords separated with comma ','. Example: 'Apple, Mango, Juice'
'language' : String = 'bn' for Bengali, 'en' for EnglishOutput: Dictionary = {'content':
{'filename': Filename,
'keywords':
{
'keys': Keywords given in the input,
'count':
{
'key1' : count,
'key2' : count,
.
.
}
}
}
}
```