Skip to content

Captures an audio stream and outputs to a pipe with buffering and silence detection

License

Notifications You must be signed in to change notification settings

natedreger/cpiped

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpiped (https://github.com/b-fitzpatrick/cpiped) captures an audio stream and outputs it to a pipe with a bit of buffering to handle clock mismatch. It also includes silence/sound detection and the ability to run a command on detection.

I'm using this to capture line-in audio from a sound card and send it to forked-daapd (https://github.com/ejurgensen/forked-daapd). On sound detection, it runs a simple script to start playing the associated pipe in forked-daapd.

NDpiped builds on cpiped but modifies code such that the buffer is only written if there is sound. Otherwise I found buffer was constantly writing and Forked-Daapd was playing silence rather then my playlist.

About

Captures an audio stream and outputs to a pipe with buffering and silence detection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 75.1%
  • Shell 24.1%
  • Makefile 0.8%