Skip to content

Commit

Permalink
volume in reels
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan authored Jun 18, 2024
1 parent cd3fe3e commit 7114108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logos/animations/reel.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def animated_reel(request: ReelRequest, callback=None):
if speech_audio:
buffer = BytesIO()
music_audio = AudioSegment.from_mp3(BytesIO(music_bytes))
music_audio = music_audio - 5 # reduce music
music_audio = music_audio - 9 # reduce music
music_audio = music_audio.fade_out(2000)
speech_audio = speech_audio + 5 # boost speech
speech_audio = speech_audio + 9 # boost speech

# combine speech and audio at max duration
nm, na = len(music_audio), len(speech_audio)
Expand Down

0 comments on commit 7114108

Please sign in to comment.