Giter Site home page Giter Site logo

actemo-server's Introduction

title

Table of Contents

๐Ÿ”ฎ Features

ACTemo's ACTion feature enables users to choose the emotional category they wish to practice and receive real-time feedback on the accuracy of their expression in the audio input. The feedback, provided in grades like 'A', 'B', and 'C', evaluates the expression's precision, ensuring users can refine their emotional portrayal skills instantly.


๐Ÿ›ณ Running ACTion with Docker

ACTemo provides a self-hosted version with Dockerfile. This allows you to deploy your own speech-emotion-evaluation model in just a few minutes, even without prior expertise.

๐Ÿš€ Make Your Own API Server

We provide a Dockerfile for deploying the ACTemo's ACTion function on your own private device. Use the following command to start:

# 1. Build docker image
$ docker build -f SER_model/Dockerfile.prod -t actemo:prod .

# 2. Run!
$ docker run -it --rm --name actemo-prod -p 8000:8000 actemo:prod

1 API Request Example

To make a request to the API server, use the following endpoint:

In the request body, include the following keys and values:

  • Attach your file to the "file" key.
  • Specify one of the following emotions as the value for the "emotion" key:
'Angry', 'Distressed', 'Content', 'Happy', 'Excited', 'Joyous', 'Depressed', 'Sad', 'Bored', 'Calm', 'Relaxed', 'Sleepy', 'Afraid', 'Surprised'

Tip

We support all audio formats compatible with ffmpeg, such as m4a, mp3, caf, and more.

2 API Response Example

The response is returned in JSON format, with each audio assigned a grade, such as 'A', 'B', and 'C'.



๐Ÿงฉ Just Want to Test the Model

If you simply want to train or test the model without deploying the API server, follow these steps:

# 1. Build docker image
$ docker build -f SER_model/Dockerfile.dev -t actemo:dev .

# 2. Run!
$ docker run -it --rm --name actemo-dev -p 8000:8000 -v $(pwd)/SER_model:/root/code actemo:dev /bin/bash

Note

After running the Docker container using the provided command, you'll have access to the bash shell within the container environment.

Execute Tests

Inside the Docker container's bash shell, execute the following command to run the test:

$ python test.py

You will be prompted with the following messages:

  1. "Enter the emotion: ": Input one of the listed emotions.

    'Angry', 'Distressed', 'Content', 'Happy', 'Excited', 'Joyous', 'Depressed', 'Sad', 'Bored', 'Calm', 'Relaxed', 'Sleepy', 'Afraid', 'Surprised'
    
  2. "Enter the path of the audio file: ": Input the path of the audio file containing the practiced emotional expression.

Tip

This process will continue indefinitely. If you wish to stop, simply press Ctrl + C.


๐Ÿ”— Link to Other Parts

If you want to explore other parts of the project, feel free to navigate to:

  • Overall Project Repository: For the complete project repository, including all parts, visit the GitHub repository.
  • Frontend Development: Explore the frontend development aspects of the project, including UI design and user interaction, implemented using Flutter.
  • Backend Development: Dive into the backend development aspects of the project, including API implementation and database management.

actemo-server's People

Contributors

smmin21 avatar

Stargazers

Junyoung Park avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.