| 更新: | 2025-10-15 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2025.3 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| /* | |
| static func getOutputDevices() -> [AudioDeviceID: String]? | |
| static func isOutputDevice(deviceID: AudioDeviceID) -> Bool | |
| static func getAggregateDeviceSubDeviceList(deviceID: AudioDeviceID) -> [AudioDeviceID] | |
| static func isAggregateDevice(deviceID: AudioDeviceID) -> Bool | |
| static func setDeviceVolume(deviceID: AudioDeviceID, leftChannelLevel: Float, rightChannelLevel: Float) | |
| static func setOutputDevice(newDeviceID: AudioDeviceID) | |
| static func getDeviceVolume(deviceID: AudioDeviceID) -> [Float] | |
| static func getDefaultOutputDevice() -> AudioDeviceID | |
| */ |
| # -*- coding: utf-8 -*- | |
| #マイク0番からの入力を受ける。一定時間(RECROD_SECONDS)だけ録音し、ファイル名:mono.wavで保存する。 | |
| import pyaudio | |
| import sys | |
| import time | |
| import wave | |
| import requests | |
| import os | |
| import json |
| 更新: | 2025-10-15 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2025.3 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| # -*- coding: utf-8 -*- | |
| require_relative 'twitterbot' | |
| Twitter.configure {|config| | |
| config.consumer_key = 'consumer key' | |
| config.consumer_secret = 'consumer secret' | |
| config.oauth_token = 'oauth token' | |
| config.oauth_token_secret = 'oauth token secret' | |
| } |