examples, lang: funcs: core: example: Update vumeter

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.
This commit is contained in:
James Shubin
2023-02-08 12:14:11 -05:00
parent cde3251dd8
commit a41789a746
2 changed files with 54 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
import "example"
$vumeter = example.vumeter("====", 10, 0.9)
file "/tmp/vumeter" {
state => $const.res.file.state.exists,
content => $vumeter,
}