net-record

0.3.1 • Public • Published

net-record

This was written in haste for use with Leon (leon.ai) to move the hotword microphone to where the microphone actually is.

This may be needed in circumstances where the client (where the microphone actually is) is not the same place where the Leon hotword detection model runs (currently, a project called snowboy).

In such a situation, this package can be used as a drop-in replacement for the microphone library expected by the hotword program, in place of the microphone library.

Instructions

Start the microphone server with npx net-record

You may specify the server with the environment variable PORT, e.g.:

PORT=7777 npx net-record

To use the client, we will use the Leon hotword example, relevant as of 1.0.0+beta7.

Open hotword/index.js

Change the line that says:

const record = require('node-record-lpcm16')

to this:

const record = require('net-record')

Be sure to install this module so you can use the client:

npm install net-record

When you run node hotword/index.js, you can use the environment variables to indicate where to connect to the server

NETRECORD_HOST=192.168.1.2 NETRECORD_PORT=7777 node hotword/index.js

Readme

Keywords

Package Sidebar

Install

npm i net-record

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

5.43 kB

Total Files

7

Last publish

Collaborators

  • keyvanfatehi