Skip to main content

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()

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)

Source distribution for recorder 0.0.2
File Size Uploaded
recorder-0.0.2.tar.gz 3.2 kB 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page