
    i                     6    d dl Zd dlmZmZ eed               Zy)    N)audio_video_fxrequires_durationc                 8      fd} j                  |d      S )zw Return a sound clip where the sound fades out progressively
        over ``duration`` seconds at the end of the clip. c                 R    | |      }t        j                  |      r;t        dj                  |z
  z  z  d      }t        j                  ||g      }||z  S t        j
                  dj                  |z
  z  z  d      }t        j                  ||g      j                  }||z  S )Ng      ?   )npisscalarmindurationarrayminimumvstackT)gftgftfactorclipr   s       \/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/audio/fx/audio_fadeout.pyfadingzaudio_fadeout.<locals>.fading   s    e;;q> 12X=qAFXXvfo.F | ZZ(9!:X!EqIFYYv/11F|    T)keep_duration)fl)r   r   r   s   `` r   audio_fadeoutr      s    	 7764700r   )numpyr   moviepy.decoratorsr   r   r    r   r   <module>r      s'     @ 1  1r   