A web application for multilingual voice and text interactions with the MERaLiON-AudioLLM-Whisper-SEA-LION model. Supports English, Mandarin, Malay, and Tamil.
┌─────────────────────────────────────────────┐
│ Frontend (Next.js + React) │
│ - Audio recording (MediaRecorder API) │
│ - Text input │
│ - Language selection │
│ - Response display │
└──────────────┬──────────────────────────────┘
│ HTTP/JSON
↓
┌─────────────────────────────────────────────┐
│ Backend (FastAPI) │
│ - Audio/text processing endpoints │
│ - Model inference orchestration │
│ - CORS support for frontend │
└──────────────┬──────────────────────────────┘
│ PyTorch/Transformers
↓
┌─────────────────────────────────────────────┐
│ AI Inference (GPU Server) │
│ - MERaLiON-AudioLLM model │
│ - Whisper audio processor │
│ - SEA-LION text decoder │
└─────────────────────────────────────────────┘
cd backend
pip install -r requirements.txt
Get HuggingFace token:
huggingface-cli login and provide your tokenStart the FastAPI server:
cd backend
python main.py
The API will be available at http://localhost:8000
cd frontend
npm install
npm run dev
The app will be available at http://localhost:3000
http://localhost:3000 in your browserProcess audio and get text response
{
"audio": <binary>,
"language": "Singapore English" | "Mandarin" | "Malay" | "Tamil"
}
Process text input and get response
{
"text": "Your message here",
"language": "Singapore English" | "Mandarin" | "Malay" | "Tamil"
}
Health check endpoint
Get list of supported languages
├── backend/
│ ├── main.py # FastAPI server
│ └── requirements.txt # Python dependencies
├── frontend/
│ ├── pages/ # Next.js pages
│ ├── components/ # React components
│ ├── styles/ # CSS files
│ ├── package.json # Node dependencies
│ └── next.config.js # Next.js config
└── README.md
backend/main.py to lower valueAPI_BASE_URL in frontend/.env.localThis project uses the MERaLiON model from SEA-LION. See model card for details.
1 commits
JavaScript
57.6%
Python
25.1%
PowerShell
7.3%
Shell
5.4%
Dockerfile
2.8%
CSS
1.8%
A web application for multilingual voice and text interactions with the MERaLiON-AudioLLM-Whisper-SEA-LION model. Supports English, Mandarin, Malay, and Tamil.
┌─────────────────────────────────────────────┐
│ Frontend (Next.js + React) │
│ - Audio recording (MediaRecorder API) │
│ - Text input │
│ - Language selection │
│ - Response display │
└──────────────┬──────────────────────────────┘
│ HTTP/JSON
↓
┌─────────────────────────────────────────────┐
│ Backend (FastAPI) │
│ - Audio/text processing endpoints │
│ - Model inference orchestration │
│ - CORS support for frontend │
└──────────────┬──────────────────────────────┘
│ PyTorch/Transformers
↓
┌─────────────────────────────────────────────┐
│ AI Inference (GPU Server) │
│ - MERaLiON-AudioLLM model │
│ - Whisper audio processor │
│ - SEA-LION text decoder │
└─────────────────────────────────────────────┘
cd backend
pip install -r requirements.txt
Get HuggingFace token:
huggingface-cli login and provide your tokenStart the FastAPI server:
cd backend
python main.py
The API will be available at http://localhost:8000
cd frontend
npm install
npm run dev
The app will be available at http://localhost:3000
http://localhost:3000 in your browserProcess audio and get text response
{
"audio": <binary>,
"language": "Singapore English" | "Mandarin" | "Malay" | "Tamil"
}
Process text input and get response
{
"text": "Your message here",
"language": "Singapore English" | "Mandarin" | "Malay" | "Tamil"
}
Health check endpoint
Get list of supported languages
├── backend/
│ ├── main.py # FastAPI server
│ └── requirements.txt # Python dependencies
├── frontend/
│ ├── pages/ # Next.js pages
│ ├── components/ # React components
│ ├── styles/ # CSS files
│ ├── package.json # Node dependencies
│ └── next.config.js # Next.js config
└── README.md
backend/main.py to lower valueAPI_BASE_URL in frontend/.env.localThis project uses the MERaLiON model from SEA-LION. See model card for details.
1 commits
JavaScript
57.6%
Python
25.1%
PowerShell
7.3%
Shell
5.4%
Dockerfile
2.8%
CSS
1.8%