No project description provided
Project description
REIP - data processing pipelines
Install
# while we're still private:
git clone https://github.com/reip-project/reip-pipelines.git
pip install -e ./reip-pipelines
# eventually:
pip install reip
More detailed installation instruction for NVIDIA Jeton 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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reip-0.0.1.tar.gz
(86.4 kB
view details)
File details
Details for the file reip-0.0.1.tar.gz
.
File metadata
- Download URL: reip-0.0.1.tar.gz
- Upload date:
- Size: 86.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66b56c1633dd251429aab9eff99d5a4061d020afc86f0271e4ba4136af66b32 |
|
MD5 | 1d993561798c627c41f06c4008f75cd5 |
|
BLAKE2b-256 | 9f748dcf7d9a90f2c0f561e60ba4dea55add0477b31667c6f6a19375e3c5e10d |