GithubHelp home page GithubHelp logo

wuyongdec / accent-trainer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spaceraccoon/accent-trainer

0.0 3.0 0.0 27.11 MB

Flask webapp/endpoint that compares the user's speech with different accents and assigns similarity scores based on speed, voice (DTW/MFCC), and accuracy. The accents are generated from Amazon Polly and accuracy analysis using Bing Speech API speech to text.

Python 63.56% CSS 2.28% HTML 34.16%

accent-trainer's Introduction

Accent Trainer

Accent Trainer is Flask webapp/endpoint that compares the user's speech with different accents and assigns similarity scores based on speed, voice (DTW/MFCC), and accuracy. The accents are generated from Amazon Polly and accuracy analysis using Bing Speech API speech to text. screenshot

Performance

The distance results were compared against a model (i.e. same Polly voice and text), different accents (different Polly voice and same text), and negative examples (different Polly voice and different text). It performed as expected, with the model scoring 100%, similar accents scoring higher than dissimilar accents (i.e. US English rating highly with US English versus Portuguese accent), and negative examples performing the worst.

Install

  1. Install Anaconda for Python 3.6. If space is a problem, you can also use pip or Miniconda to install the dependencies.
  2. git clone the repository and cd into it.
  3. You may then choose to install the rest of the dependencies in a virtual environment or not (as well as the pip or conda method).
    1. conda install -c conda-forge librosa
    2. pip install pysoundfile
    3. pip install SpeechRecognition
    4. pip install python_speech_features
    5. pip install cydtw
    6. pip install Flask-WTF
  4. Register for Amazon Web Services, install the CLI and configure it. You might also need to pip install boto3.
  5. Register for Microsoft Azure and get a Bing Speech API key. Insert it into BING_KEY in functions.py.
  6. Write your own secret key in app.secret_key in app.py
  7. Modify the grade calculations under compare() and compare_json(). These are arbitrary so you might want your own formula.
  8. python app.py

Contribute

Feel free to post issues and make pull requests.

Deploy

This is a skeleton for a more fully developed server-side solution. Feel free to contact me via my website.

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.