A small package to generate features from acoustic
Project description
B2AI Prep
A simple Python package to prepare acoustic data for the Bridge2AI voice project.
Caution: this package is under active development and interfaces may change rapidly.
Installation
Requires a Python >= 3.10; < 3.14 environment.
pip install b2aiprep
Common Issues
If you get the following error which has been observed on only some OSes:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
A likely fix is to run pip uninstall torbi.
Usage
See commands available through the CLI:
b2aiprep-cli --help
BIDS data
This package provides conversion from a RedCap/file-based custom structure into BIDS for downstream analysis. In addition, utilities are provided for working with the BIDS-like structured data and to support data analysis of voice and questionnaire data.
See RELEASE.md for details on releasing a dataset using this package.
See the tutorial.ipynb for a few use examples of data in the BIDS format.
Output formats
The primary output structure is BIDS: nested sessions within individual specific folders.
/bids_dataset
├── README.md
├── dataset_description.json
├── sub-01/
│ ├── session-01/
│ │ └── audio/
│ │ ├── sub-01_session_task-audio.json
│ │ ├── sub-01_session_task-audio.wav
│ │ └── sub-01_session_task-audio.pt
├── sub-02/
│ ├── session-01/
│ │ └── audio/
│ │ ├── sub-02_session_task-audio.json
│ │ ├── sub-02_session_task-audio.wav
│ │ └── sub-02_session_task-audio.pt
│ ...
A bundled version of the data is published from BIDS. The bundled version of the dataset contains parquet files with features derived from the audio.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file b2aiprep-3.0.2.tar.gz.
File metadata
- Download URL: b2aiprep-3.0.2.tar.gz
- Upload date:
- Size: 398.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
491fcd7ccf3178c5f7c459f818b3ed7dd04fe35c62f2a3f9e9406e84efe92fab
|
|
| MD5 |
649a2897e8883cac2d24cfbee33d70bc
|
|
| BLAKE2b-256 |
8e04190fb06d8b1c34c6ceda622ba374dc07d5c746215841c87871e49aa3a78f
|
File details
Details for the file b2aiprep-3.0.2-py3-none-any.whl.
File metadata
- Download URL: b2aiprep-3.0.2-py3-none-any.whl
- Upload date:
- Size: 382.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134826cb170bd7c6f87c9f3f1b7caaccd9c94a427c56fbd1b04295d7958ff756
|
|
| MD5 |
e431dfafa3836695d60da1b3d3d5b20b
|
|
| BLAKE2b-256 |
276ca7efdb32055592296e1a2897356ae5206f2fea70a0da32d987899cc3b526
|