โมดูล PyAudio เป็นโมดูลสำหรับเล่นและอัดเสียงใน Python โดยเรียกใช้ไลบรารี PortAudio ซึ่งรองรับไฟล์เสียง wav และ wave เท่านั้น
- รองรับทั้งระบบปฎิบัติการ GNU/Linux, Microsoft Windows, และ Apple Mac OS X
- รองรับทั้ง Python 2 และ Python 3
- ใช้ MIT License
สำหรับผู้ใช้งาน Windows แนะนำให้โหลดไฟล์ .whl มาติดตั้งได้จาก http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio โดยใช้คำสั่ง
pip install ไฟล์.whlสำหรับผู้ใช้งาน Debian/Ubuntu และ Apple Mac OS X สามารถโหลดไฟล์ติดตั้งได้จาก http://people.csail.mit.edu/hubert/pyaudio/
สำหรับผู้ใช้งาน GNU/Linux อื่น ๆ ใช้คำสั่ง git ตามนี้ครับ
$ git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
$ cd pyaudio
$ sudo python setup.py installดูตัวอย่างการใช้งานได้ที่ http://people.csail.mit.edu/hubert/pyaudio/#examples
อ่านเอกสารการใช้งานได้ที่ http://people.csail.mit.edu/hubert/pyaudio/docs/
ติดตามบทความต่อไปนะครับ
ขอบคุณครับ

0 ความคิดเห็น:
แสดงความคิดเห็น
แสดงความคิดเห็นได้ครับ :)