Skip to content

v0.10.38: mux the audio

Choose a tag to compare

@gnacho gnacho released this 06 Nov 05:59
· 17 commits to main since this release

The visitor can be heard, and the two new knobs are in the interface.

Fixed

  • The audio branch required a separate audioOut writer, but in MPEG-TS mode
    there is none: the sound goes into the muxer. So the remote audio of the
    doorbell never reached the consumer, and a session log said audio=0 while
    the stream announced PCMA and only the filler silence came out.
  • Both paths now go through writeAudioFrame, which returns whether it actually
    wrote, so the counter reflects reality.

Added

  • trickle_ms (default 20, 0 disables the filler) and lock_wait (default 300,
    0 fails at once) as add-on options, next to open_settle.

Verified

  • TestWriteAudioFrameGoesIntoTheMuxer, TestWriteAudioFrameFallsBackToTheWriter,
    TestWriteAudioFrameWithoutSinkWritesNothing and TestWriteAudioFrameSkipsEmptyFrames.
  • gofmt, go vet clean, full suite green in 9.1 s, coverage 63.9%.

Not verified

  • That audio content reaches Home Assistant: needs this version deployed and a
    live session with the bell awake, checking the frame counter in the log.