This patch moves to use the sox package instead of arecord for getting microphone data, and it also validates that both sox and rec and installed. We also add a standalone example.
9 lines
149 B
Plaintext
9 lines
149 B
Plaintext
import "example"
|
|
|
|
$vumeter = example.vumeter("====", 10, 0.9)
|
|
|
|
file "/tmp/vumeter" {
|
|
state => $const.res.file.state.exists,
|
|
content => $vumeter,
|
|
}
|