fork download
  1. #!/bin/sh
  2. # Program to record a simple helloworld audio file (change audio apps as needed)
  3.  
  4. printf "Say: Hello world!\n"
  5. echo -e "\a"
  6.  
  7. # only testing for arecord here
  8. if command -v arecord >/dev/null 2>&1
  9. then
  10. arecord -d 4 hello.wav
  11. echo -e "\a"
  12. timeout 2s
  13. xdg-open hello.wav
  14. exit 0
  15. fi
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Say: Hello world!