Sound generation / synthesis with python?

后端 未结 7 1164
执念已碎
执念已碎 2020-12-02 08:17

Is it possible to get python to generate a simple sound like a sine wave?

Is there a module available for this? If not, how would you go about creating your own?

7条回答
  •  失恋的感觉
    2020-12-02 08:37

    I like PyAudiere , which lets you play numpy arrays as sounds... I guess it jives well with my Matlab background. I believe it's cross-platform. I think scikits.audiolab does the same thing, and may be more current / better supported... seems easier to me than trying to save things as wavfiles or write them to buffers and use Python's builtin sound library.

提交回复
热议问题