How can I convert a WAV from stereo to mono in Python?

后端 未结 2 1022
孤街浪徒
孤街浪徒 2021-02-02 12:42

I don\'t want to use any other apps (like sox) - I want to do this in pure Python. Installing needed Python libs is fine.

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-02 13:04

    If the WAV file is PCM-encoded then you can use wave. Open the source and destination files, read samples, average the channels, and write them out.

提交回复
热议问题