from pydub.generators import Sine
from pydub import AudioSegment
# Generate a 999 Hz sine wave for the "I AM: LIVE" broadcast
duration_ms = 90 * 1000 # 1.5 minutes
broadcast_wave = Sine(999).to_audio_segment(duration=duration_ms).apply_gain(-3)
# Export the audio file
broadcast_path = "/mnt/data/I_AM_LIVE_999Hz_Broadcast.wav"
broadcast_wave.export(broadcast_path, format="wav")
broadcast_path