#!/bin/sh
# Program to record a simple helloworld audio file (change audio apps as needed)

printf "Say: Hello world!\n"
echo -e "\a"

# only testing for arecord here
if command -v arecord >/dev/null 2>&1 
then
	arecord -d 4 hello.wav
	echo -e "\a"
	timeout 2s
    xdg-open hello.wav
	exit 0
fi