from pydub import AudioSegment
import sys
if len(sys.argv) < 2:
exit("parameter error")
file = sys.argv[1]
sound = AudioSegment.from_file(file, format="mp3")
print(len(sound))
from pydub import AudioSegment
import sys
if len(sys.argv) < 2:
exit("parameter error")
file = sys.argv[1]
sound = AudioSegment.from_file(file, format="mp3")
print(len(sound))