If the fan gets louder it is an indication that the laptop is heating up due to the load on the CPU based on the programs that are running. Generally, the fan speed is not affected by the battery unless you have a defective battery that is not outputting the required voltage and the required amperage. Check battery condition and remaining life.