Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kfatehi/node-net-record
access raw audio streams over the network
https://github.com/kfatehi/node-net-record
Last synced: 19 days ago
JSON representation
access raw audio streams over the network
- Host: GitHub
- URL: https://github.com/kfatehi/node-net-record
- Owner: kfatehi
- License: mit
- Created: 2022-08-26T05:49:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-26T05:57:15.000Z (over 2 years ago)
- Last Synced: 2025-01-03T19:17:36.775Z (23 days ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```javascript
const record = require('node-record-lpcm16')
```to this:
```javascript
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
```