Code Monkey home page Code Monkey logo

browserlearner's Introduction

Setting up audio loopback

$ pacmd load-module module-loopback latency_msec=5pav
$ pavucontrol
# Input Devices
# Show All Input Devices
# Click the green check mark next to "Monitor of Built-in Audio Analog Stereo"
import pocketsphinx
for phrase in pocketsphinx.LiveSpeach():
    print(phrase)

Now play some sound (ex: ./data/recordings/a.wav) and it should print out what it heard

Recording new sounds

$ python3 record.py hello # saves to ./data/recordings/hello.wav

If you run into "OSError: [Errno -9998] Invalid number of channels" and it should work, try a few more times and eventually it works. Additionally you can run $ sudo killall pulseaudio

If you run into "OSError: [Errno -9981] Input overflowed" this may be because the microphone volume is too high. Turning down the microphone gain may solve this issue

Install

Pocketsphinx

  1. Download and install sphinxbase and pocketsphinx per instructions
  2. sudo apt-get install python-dev to fix "Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable."

pycli

$ cd pycli
$ python -m venv env
$ source ./env/bin/activate
$ pip install -r requirements.txt
$ cd ./server && yarn install

Run

$ cd ./server && yarn start
$ cd ./client && yarn start
# open localhost:3000 in Chrome
$ cd pycli
$ source ./env/bin/activate
$ python3 main.py --letters
$ python3 main.py --youtube

WAV2VEC test

$ conda create --name torch python=3.8
$ conda activate torch
$ python wav2vec_test.py

browserlearner's People

Contributors

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