LoginSignup
1
3

More than 1 year has passed since last update.

pythonでwavファイルの再生時刻を取得する

Posted at

背景

wavファイルの再生時間を取得したい

方法

import wave
    with wave.open('path/to/local/sample.wav', mode='rb') as wf:
        print('time(second): ', float(wf.getnframes() / wf.getframerate()))

参考

1
3
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
3