1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

全ての曲を1分にする

Last updated at Posted at 2021-12-11

タイトル通り。長い曲聴くのだるいと思ったから作った。

1分にする

1分になる速度まで速くする


path = "motoneta.mp3"

import pydub
from pydub import AudioSegment

base_sound = AudioSegment.from_file(path, format="mp3")
time = base_sound.duration_seconds

speed = time/60
base_sound = base_sound.speedup(playback_speed=speed, crossfade=0)
base_sound.export("one.mp3", format="mp3")

おしまい

感想

速くしたら訳わからなくなって聴く気なくなった。

#裏技コマンド

1分未満のファイルでやると壊れる

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?