This is a simple API that receives a request containing JSON structured call log and translates the Arabic words into English.
To run this application make sure you have docker and docker compose on your machine then run:
git clone https://github.com/OmarKYassin/translate_api.git
cd translate_api
vim .env # You need to add a key with the name `OPENAI_API_KEY` in this file and optionally a key `PORT`
docker-compose upPOST "http://localhost:8080/translate"[
{ "speaker": "John", "time": "00:00:04", "sentence": "Hello Maria." },
{ "speaker": "Maria", "time": "00:00:09", "sentence": "صباح الخير" }
][
{ "speaker": "John", "time": "00:00:04", "sentence": "Hello Maria." },
{ "speaker": "Maria", "time": "00:00:09", "sentence": "Good Morning" }
]