6/21/2023 0 Comments M4a to mp3 converter pythonĤ、 Will judge the suffix of audio file, See if it's MP3.Ĭheck it out, To prepare the 10 individual MP3 file. ![]() ģ、 Mainly through handle Method batch pair MP3 Audio directory traversal processing. Ģ、audio_transfor The main parameters of the method are : Audio file address 、 The output directory. Result = os.path.join(output_dir, ''.format(os.path.basename(audio_path).strip().split('.'), 'wav'))ĭef handle(audio_dir: str, output_dir: str):Īudio_transfor(os.path.join(audio_dir, x), output_dir)ġ、handle The main parameters of the method are : Audio directory 、 The output directory. # : : Swordsman a Liang : : : 14:48:18ĭef audio_transfor(audio_path: str, output_dir: str):Įxt = os.path.basename(audio_path).strip().split('.') įfmpeg Environmental installation, You can refer to another article of mine : windows ffmpeg Installation and deployment _ A Liang's blog -CSDN Blog ![]() ![]() This article provides a batch of MP3 Convert audio format to wav Format tool code, Pragmatism as always.
0 Comments
Leave a Reply. |