Logo Lanfrica

SunbirdAI/sunbird-ai-api

Domain:

natural language processing

Record type:

software
Creator:
Sun
Host:
Sunbird's API for language translation, speech to text and text to speech in African languages and English # Sunbird AI API This repository contains code for the publicly accessible Sunbird AI APIs. To get started using the API, view the tutorial. To get started with the sunflower model, view the sunflower API docs. ## Getting started locally on Windows #### Ensure virtualization is enabled on your computer This is required because CPU virtualization is needed for Windows to emulate Linux. For more on enabling virtualization. #### Ensure your windows is fully updated. Install WSL (Windows Subsystem for Linux). This is required because redis is not officially supported on Windows. ### Downloading, Setting Up, and Configuring WSL on Windows - Open PowerShell as an Administrator and run the following command to enable WSL: ```powershell wsl --install ``` - Restart your computer if prompted. - Once the system restarts, set up your Linux distribution (e.g., Ubuntu) from the Microsoft Store. ### After successfully installing `wsl`: - Press windows button and in the search bar type `windows features on or off` - Click on `Turn Windows features on or off` and a pop-up window will appear - Ensure option `Windows Subsystem for Linux` is checked - Restart your computer and launch Ubuntu ### Cloning the API Repository Locally on Your Windows Machine - Open your WSL terminal (e.g., Ubuntu). - Navigate to the directory where you want to clone the repository: ```bash cd /mnt/c/your-directory ``` - Clone the Sunbird AI API repository: ```bash git clone github.com ``` - Continue with `Getting started locally on Linux/macOS` ## Getting started locally on Linux/macOS To run the app locally: - Create and activate a local environment ```bash python3 -m venv .venv source .venv/bin/activate ``` - Install the requirements: ```bash pip install -r requirements.txt ``` - Set the environment variables in a `.env` file, the following variables are required: ``` SECRET_KEY DATABASE_URL RUNPOD_API_KEY REDIS_URL RUNPOD_ENDPOINT AUDIO_CONTENT_ …