recorder
A simple audio recorder which is Based on PyAudio
Usage
install
pip install recorder
get device info
get all device info
from recorder import Recorder
r = Recorder()
print(r.get_device_info())
get specified device info
from recorder import Recorder
r = Recorder()
print(r.get_device_info(index=0))
record
record for 5 seconds and return the data as numpy array
from recorder import Recorder
r = Recorder()
np_data = r.record(5)
print(np_data)
record for 5 seconds and save the data to file out.wav
from recorder import Recorder
r = Recorder()
r.record(5, output='out.wav')
get wave data with queue
get wave data from queue and print data
from recorder import Recorder
r = Recorder()
q = r.get_wave_queue()
while True:
print(q.get())
play
play a piece of sound
from recorder import Recorder
Recorder.play('out.wav')
close
close the recorder
from recorder import Recorder
r = Recorder()
r.close()
Metadata
Release files for recorder 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| recorder-0.0.2.tar.gz | 3.2 kB | Without provenance | Details |
Release files / recorder-0.0.2.tar.gz
| Download URL | recorder-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
311ded36a517c30b20102c904f9a50eb86ef7a32431ed0077f4d195d276221ee
|
|
BLAKE2b-256 checksum How to use checksums |
575c72796223b369af88cfe697d2ac1d8afb2d3c2fac89515d36edf5e573c21d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Security for recorder 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.