Giter VIP home page Giter VIP logo

speech-to-text-py's Introduction

Speech-To-Text-Py

Python package to record input audio from a sound device and transcribe it into text for further operations

Installation and Usage

  • Clone entire directory into any folder of your choice
  • Manually go through each file and change the absolute paths based on your file structure
  • Inside the input_saver directory, run ./input.sh
  • After the process finishes, check results/test.txt for the transcription of the recording
  • the voskcall.py file is used for working with the vosk-transcriber and must be carefully altered
  • This package is supposed to work with https://github.com/realaryann/Keyword-Select-Service (service to extract keywords)

demo-ezgif com-video-to-gif-converter


Working pipeline of recording, transcribing, and storing

Required Python Libraries

  • sounddevice
  • numpy
  • scipy
  • vosk

Changing Sound Device

  • Navigate to input_saver/find_device.py
  • In a terminal, check the name of your sounddevice by running python3 -m sounddevice
  • Replace the DEVICE_NAME variable with the name of the device

Program Input

  • Input_Saver currently takes string input from the command line
  • Input Mapping
    1. R: Record for 5 seconds
    2. T: Record for 10 seconds
    3. Y: Record for 20 seconds
    4. Z: Exit program
  • The program will continue looping until valid input is entered

Configuring Output

  • Navigate to input_saver/voskhear.py
  • Replace the newf and filesrc variables (WARNING, could break everything!)

Cleaning Results

  • Navigate to the parent directory (./input_saver
  • Run ./clean.sh in ~/input_saver to clear out previous recordings and results

Full Release with tracking capabilities

(Check complete branch)
Order of execution for input_saver
  1. python3 inputaudio.py
  2. python3 voskhear.py

speech-to-text-py's People

Contributors

realaryann avatar

Stargazers

 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.