buzz-me-in 2.2.0-beta.0 → 2.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/homekit.js +6 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -86,7 +86,8 @@ The health endpoints are deliberately unauthenticated so systemd checks, uptime
86
86
  - Node.js >= 20
87
87
  - Runtime is tested on Node 20+.
88
88
  - Repo tooling/CI currently runs on Node 20, 22, and 24.
89
- - ffmpeg with libx264 and libopus: `sudo apt install ffmpeg`
89
+ - ffmpeg >= 5.1 with libx264 and libopus: `sudo apt install ffmpeg`
90
+ - The 5.1 floor is the `-ch_layout` option used on the inbound audio pipeline. Debian 12 (bookworm) ships 5.1 and Raspberry Pi OS based on Debian 13 ships 7.1, so apt satisfies this on any currently supported release.
90
91
 
91
92
  ### Accounts and services
92
93
 
package/homekit.js CHANGED
@@ -291,6 +291,10 @@ function _startSession(sessionID, s, request, callback) {
291
291
  // Input 0 – raw mulaw/8kHz from Twilio via stdin
292
292
  // Let the raw audio demuxer derive PTS from sample count. Using wall-clock
293
293
  // timestamps breaks when ffmpeg drains the buffered startup audio burst.
294
+ // -ch_layout declares mono rather than -ac counting one channel: a count
295
+ // leaves the layout unset, so the decoder guesses it and logs "Guessed
296
+ // Channel Layout: mono" on every call. Our stderr handler is a warn, so
297
+ // that guess looked like a fault in the journal. Needs ffmpeg >= 5.1.
294
298
  //
295
299
  // Input 1 – synthetic black video (lavfi color source)
296
300
  // Generates H.264 Baseline/3.1 frames at 15 fps.
@@ -313,8 +317,8 @@ function _startSession(sessionID, s, request, callback) {
313
317
  'mulaw',
314
318
  '-ar',
315
319
  '8000',
316
- '-ac',
317
- '1',
320
+ '-ch_layout',
321
+ 'mono',
318
322
  '-i',
319
323
  'pipe:0',
320
324
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buzz-me-in",
3
- "version": "2.2.0-beta.0",
3
+ "version": "2.2.0-beta.1",
4
4
  "description": "HomeKit-compatible apartment intercom via Twilio media streams",
5
5
  "main": "server.js",
6
6
  "bin": {