REIP - data processing pipelines
Install
pip install reip
More detailed installation instructions for NVIDIA Jetson platform can be found here.
Usage
Chain Interface
Javascript-esque method chaining.
import reip
import reip.blocks as B
import reip.blocks.audio
# record audio and buffer into chunks of 10
audio = B.audio.Mic(block_duration=1)
audio10s = (
audio.to(B.Debug('Audio'))
.to(B.Rebuffer(duration=10)))
# plot a spectrogram
spec_img = (
audio10s.to(B.audio.Stft())
.to(B.Debug('Spec'))
.to(B.Specshow('plots/{time}.png')))
# to wavefile
wav = (
audio10s.to(B.Debug('Audio 222'))
.to(B.audio.AudioFile('audio/{time}.wav')))
print(reip.default_graph())
reip.run()
Function Interface
Mimicking a Keras interface.
import reip.blocks as B
# record audio and buffer into chunks of 10
audio = B.audio.Mic(block_duration=1)
audio10s = B.Rebuffer(duration=10)(audio)
# to spectrogram
stft = B.audio.Stft()(audio)
specshow = B.Specshow('plots/{time}.png')(spec)
# to wavefile
wav10s = B.audio.AudioFile('audio/{time}.wav')(audio10s)
print(reip.default_graph())
reip.run()
Metadata
Release files for reip 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reip-0.0.4.tar.gz | 86.0 kB | Details |
Release files / reip-0.0.4.tar.gz
| Download URL | reip-0.0.4.tar.gz |
|---|---|
| Size | 86.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
719504e11745d58a648620a8c356961afe2b71313bfa8b2a6653f74af725ed89
|
|
BLAKE2b-256 checksum How to use checksums |
4963a3d5a9a45a5dcf66bf2764716bf419c6030245a6c97b57b33b0e3ed262e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
|