This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsusb | |
Bus 001 Device 005: ID 056e:4008 Elecom Co., Ltd | |
Bus 001 Device 004: ID 0d8c:0134 C-Media Electronics, Inc. | |
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter | |
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#マイク0番からの入力を受ける。一定時間(RECROD_SECONDS)だけ録音し、ファイル名:mono.wavで保存する。 | |
import pyaudio | |
import sys | |
import time | |
import wave | |
import requests | |
import os | |
import json |