Git Product home page Git Product logo

phone-call-surveillance-using-pocketsphinx-and-node's Introduction

SecureCall

PhoneCallSurveillance-using-pocketsphinx-and-node

SecureCall is a system designed for phone call surveillance. This is done by recording calls and sending them to a localhost device (running linux or macOS). This is done to perform the process of speech to text conversion on a separate device The server uses node to receive the files convert them and then uses pocketsphinx to convert it to text and check for keywords This cn be used to determine the nature of the call and send notifications to the user via mail the nature is determined using a point based system. The hardware requirement to run this system are:

  • A device running linux or macOS(eg any computer or laptop with linux, Rpi )
  • An android smartphone if using the Android Interface for recording calls provided
  • The server can be accessed by any other machine by http://you-ip-address:3000/ after running node file server.js by the html interface

There are two parts to running SecureCall

  1. Server package
  2. Android app

1.Server package

note: THIS CAN BE RUN ON ANY MACOS X OR LINUX DEVICE (TESTED ON MAC OS X HIGH SIERRA, RASPBIAN)

Unzip the package serverfile.zip

Download the latest pocketsphinx and sphinxbase from

Installation

Windows installation is not supported yet.

To build this module you need to have following dependencies:

  • node at least 4.2(recommended version 5.12.0)

  • cmake at least version 3.1

  • cmake-js https://github.com/cmake-js/cmake-js (install with npm install -g cmake-js)

  • swig at least 3.0.7

  • pkg-config

  • sphinxbase latest from github

  • pocketsphinx latest from github

  • ffmpe

  • The node package has the following dependencies install separately if not found in node-modules

    • express-fileupload
    • body-parser
    • fluent-ffmpeg
    • express
    • fs
    • mail
    • cmake-js

Additional notes for pocketsphinx

Make sure that pocketsphinx is installed properly, adjust LD_LIBRARY_PATH if libraries are not found. You can test pocketsphinx with

* pocketsphinx_continuous -infile goforward.raw // Recognize goforward.raw file

Build the project for your system(needs to be run on your system after installing packages)

first navigate into the server files directory and run

  • npm init

note: This should generate a build folder if issues occur downgrade/upgrade node to v5.12.0 using commands

  • sudo npm cache clean -f
  • sudo npm install -g n
  • sudo n 5.12.0

Open the nodefiles and open test1.js in your editor if you want to setup email client for notifications

Running the Server

navigate into the nodefiles folder and run command

  • node server.js

the server should start listening on port 3000 you can check by entering http://localhost:3000/ in the address bar of your browser

Additional notes for setting up server

check your machine ip

phone-call-surveillance-using-pocketsphinx-and-node's People

Contributors

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