created AudioGenerator class