function alert {
	if (( $? == 0 )) then
		say -v trinoids 'successfully done'
	else
		say -v bad 'failed'
	fi
}

function alert {
	if (( $? == 0 )) then
		say -v Karen 'successfully done'
	else
		say -v Fred 'failed'
	fi
}

Change voices used for alert
Change voices used for alert

The old voices are not supported in Sierra anymore.
