How do I mix audio files using python?

后端 未结 3 1587
情深已故
情深已故 2021-02-19 18:41

I would like to do basic audio mixing in python.

To give an example: I would like to take two mp3 files and add them together and return one mp3 file. Another example:

3条回答
  •  忘了有多久
    2021-02-19 19:44

    The way I've done this in the past is just use subprocess. and call sox.

    E.g. subprocess.call(["sox", "in.1.mp3", "in.2.mp3", "out.mp3"])

提交回复
热议问题