GithubHelp home page GithubHelp logo

fwcd / okpi Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 143 KB

Virtual assistant with offline voice recognition for Raspberry Pi

License: Mozilla Public License 2.0

TypeScript 100.00%
speech-recognition speech-assistant raspberry-pi pocketsphinx

okpi's Introduction

OkPi

Virtual assistant with offline voice recognition. Despite being primarily designed for Raspberry Pi, it should compile on any computer running Linux or macOS.

Installation

Pocket Sphinx

  • The PocketSphinx installation currently requires Node.js 6
    • This can be achieved by using a version manager such as nvm:
      • nvm install 6
  • Install the PocketSphinx dependencies:
    • apt-get install cmake pkg-config libpcre3-dev bison
    • swig from GitHub
    • sphinxbase from GitHub
    • pocketsphinx from GitHub
    • Note that certain tweaks might be required prior to install:
      • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      • ln -s /usr/bin/swig3.0 /usr/bin/swig (Create a symlink for swig3.0)
    • npm install cmake-js -g

Say.js

  • Install Festival with a default voice:
    • apt-get install festival festvox-rablpc16k

NPM Dependencies

  • npm install

Launching

  • Make sure that this repository (OkPi) is in the same folder as the cloned pocketsphinx repository
  • npm run start
    • Or alternatively using watch mode:
    • npm run watch
    • npm run launch (in a separate terminal)

Architecture

  • The application roughly implements the following structure:

  • Speech input

    • -> AudioInput
    • -> SpeechRecognitionEngine
    • -> UtteranceProcessor
    • -> Skill
    • -> OutputFacade

okpi's People

Contributors

fwcd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

capasitore

okpi's Issues

Command Line Arguments

Implement configuration options (such as the language model or the keyphrase) as CLI arguments.

Plugin API

Create a plugin/extension system that allows the user to add custom "skills".

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.