Do you want the buzzer to sound for 7 seconds only at power-up?
If so, then the schematic below can provide a high signal on power-up. Then it gradually drops.
At some point on the slope, your buzzer would stop. Or you can use a buffer device to switch it off cleanly.
The capacitor retains its charge as long as power is on. The buzzer is off.
When power is shut off, (1) the diode is needed to prevent backflow of current from the capacitor, and (2) the capacitor discharges slowly through the high resistance (in parallel).