Skip to content

A speech sentiment text recorder for improve communication by Flask, GCP, Javascript

License

Notifications You must be signed in to change notification settings

angryducks/angry-ducks

Repository files navigation

angry-ducks


License

DuckHacks 2019 at Stevens Institute of Technology

If you appreciate the content, support projects, give star!

English| 中文

Introduction

Nowadays, the society has become more and more extensive in international culture, and English has become a bridge for communication between people all over the world. But even if it is a language, people who are not native speakers of English may have different understandings of the language. The result is a bias in emotional understanding.

If our program can record conversations in real time, we can analyze the emotions of the language and assist in speaking to judge whether our emotions are correct. In this way, the most accurate emotions and meanings are expressed.

Purposals

This is a lightweight web service access program that allows you to directly translate text into words and record them. Emotional analysis can be performed while recording.

Architecture。

Features

  • Create Flask web server
  • Build fontend and backend
  • Add feature: Real time speech to text
  • Add feature: Identify sentiment
  • Add feature: Record speech text
  • Make real time speech, text, sentiment identification.
  • Run Angry-Ducks on the Google Cloud Server

Demo

Run the code:

  1. Clone this repository:
git clone [email protected]:nature1995/angry-duckhacks.git
  1. Go into angry-duckhacks folder and set up virtual environment (https://pypi.org/project/virtualenv):
 cd angry-duckhacks
 virtualenv env
 source env/bin/active
  1. Install requirement:
 pip install -r requirement.txt
  1. Set up Google Cloud Platform:
    • Go to https://console.cloud.google.com
    • Click "Select a project"
    • Set up a new project.
    • Go to APIs & Services and choose “+ENABLE APIS AND SERVICES”.
    • Enable “Cloud Natural Language API” and “Cloud Speech-to-Text API”.
    • Click “Credentials” => “Create credentials” => “Service account key” =>get your own json key.
  2. Put your json key under angry-duckhacks root
/angry-duckhacks/<your project ID>.json
  1. Change setting.py
GOOGLE_API = 'google-api.json' #Your GOOGLE_API
  1. Run server on your own computer:
python main.py 0.0.0.0:5000

Author

  1. nature1995 | Ziran Gong
  2. zfz | Fangzhou Zhang
  3. zzdqqqq | Zidong Zhang
  4. zlaomin | Yuchen Zeng

Organization

  • Angry Ducks: 门前大桥下, 游过一群鸭, 快来, 快来数一数, 二四六七八。

Anyone is welcome to participate and improve: one can go very fast, but a group of people can go further.

License

This software is licensed under the GNU General Public License v3.0 License. For more information, read the file LICENSE.

About

A speech sentiment text recorder for improve communication by Flask, GCP, Javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published