Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

joonas-yoon/speech-translator-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speech Translator Server

Logo

Codacy Badge Build Status

API Server for @joonas-yoon/speech-translator

The server is developed as pipeline for automated request and response to reconize speech(STT) and translate it.

architecture

Get Started

Set up

It needs credential to use Google Cloud APIs, so we need to write key.json for authenticating.

This document helps you to get credentials as json file.

and copy & paste it. (or send it)

$ vi key.json

{
  "type": "service_account",
  "project_id": "project-id",
  "private_key_id": "some_number",
  ...
}

export your environment valuables before running application: environment/development.env

export $(cat ../environment/development.env)

or fill in the fields: app/backend/configs/index.js

Backend

Framework: node.js

~/app/backend/

Frontend

Framework: Vue.js

~/app/frontend/

nothing yet.

Deploy with docker containers

$ sudo apt install docker docker-compose -y
$ sudo docker build --tag node-app .
$ sudo docker-compose up -d

Note: It uses environment variables in production mode with environment/production.env

Finally

If you get "Hello World" when following command, it works fine.

$ curl http://localhost/
Hello World!

Video

client for Google Chrome Extension

Video v1.3.1

Youtube: https://youtu.be/GaV_2DHSElM