Skip to content

kfatehi/node-net-record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

access raw audio streams over the network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published