Giter Site home page Giter Site logo

meeting-to-text's Introduction

meeting-to-text

speech to text

to run flask app:

python3 app.py

you will need a valid Aws account, and a user with the necessary privileges: aws transcribe full access, aws s3 full access.

set these as environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

you will also need a database setup with the only table in the database.py file

endpoint accepts an audio file, sends it to amazon transcribe (aws speech to text service), and returns response to user

image

typical response:

{
  "transcriptions": [
    {
      "index": 0, 
      "text": "Testing testing. This is a, this is a test."
    }
  ]
}

Test Generation

rm -r request_logs/request-*
<- browse around with app running, requests are captured ->
python generate-test-suite.py

Test are generated into the generated_test_suites folder. Refactor those folders into the test_suites folder if the test is useful.

Run Single Test Suite

python auto-test.py

Run All Tests

cd test_suites
python run.py
$ python run.py
['delete_clips_and_uploads', 'upload_10s_audio_sample', 'upload_bad_filetype', '__pycache__']
============ delete_clips_and_uploads ============
sending request GET http://localhost:5000/delete_all_sound_clips
200
============ upload_10s_audio_sample ============
sending request GET http://localhost:5000/
200
sending request POST http://localhost:5000/transcribe
handled as file upload
200
============ upload_bad_filetype ============
sending request POST http://localhost:5000/transcribe
handled as file upload
400
============ __pycache__ ============

meeting-to-text's People

Contributors

dylanosaur 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.