You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a composed Audio.AudioClip instance to attach to my video. I have a method to create notes from frequences, they are concatenated together as a chime, and then I want to use the chimes separated by silence periods for my video.
Actual Behavior
Concatenation of moviepy.audio.AudioClip.CompositeAudioClip instance list produces an error.
Steps to Reproduce the Problem
My code, with my method for chime creation. It uses concatenate_audioclips().
texts = chime_dict.keys()
trial_chimes = []
for txt in texts:
audioClip = mm.chime_clip(chime_dict[txt]['freq'],
periods=chime_dict[txt]['periods'])
print(audioClip.duration)
trial_chimes.append(trial_chimes)
trial_chimes_concat = concatenate_audioclips(trial_chimes)
Here what I see in my console as output:
<class 'moviepy.audio.AudioClip.CompositeAudioClip'>
1.0
<class 'moviepy.audio.AudioClip.CompositeAudioClip'>
1.0
<class 'moviepy.audio.AudioClip.CompositeAudioClip'>
1.0
Traceback (most recent call last):
Cell In[8], line 11
trial_chimes_concat = concatenate_audioclips(trial_chimes)
File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\moviepy\audio\AudioClip.py:315 in concatenate_audioclips
durations = [c.duration for c in clips]
AttributeError: 'list' object has no attribute 'duration'
Specifications
Python Version: 3.12.4
MoviePy Version: pip show moviePy
Platform Name: Microsoft Widows 11 Pro
Platform Version: 10.0.22631 Build 11631
The text was updated successfully, but these errors were encountered:
Expected Behavior
I want to create a composed Audio.AudioClip instance to attach to my video. I have a method to create notes from frequences, they are concatenated together as a chime, and then I want to use the chimes separated by silence periods for my video.
Actual Behavior
Concatenation of moviepy.audio.AudioClip.CompositeAudioClip instance list produces an error.
Steps to Reproduce the Problem
My code, with my method for chime creation. It uses
concatenate_audioclips()
.Here what I see in my console as output:
Specifications
The text was updated successfully, but these errors were encountered: