window的包怎么调python的代码

想弄个播放语音的功能,来个大佬给点思路

几种方法:

  1. js - > c++ - >python
  2. python作为子程序,用child_process调用
  3. python开个服务器,js通过rpc调用
  4. 共享内存调用