Code Monkey home page Code Monkey logo

multilingual-asr's Introduction

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 TranscriberAgent

agent = 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 English

    Output: Dictionary =    {'content': 
                                {'filename': Filename, 
                                'keywords': 
                                    {
                                        'keys': Keywords given in the input,
                                        'count': 
                                            {
                                                'key1' : count,
                                                'key2' : count,
                                                .
                                                .
                                            }
                                    }
                                }
                            }

multilingual-asr's People

Contributors

kabir5296 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.