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.
Metadata
Release files for b2aiprep 4.0.0
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 | Actions |
|---|---|---|---|---|
| b2aiprep-4.0.0.tar.gz | 1.0 MB | Without provenance | Details for b2aiprep-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| b2aiprep-4.0.0-py3-none-any.whl | Python 3 | none | any | Details for b2aiprep-4.0.0-py3-none-any.whl |
Total release size: 3.3 MB
Release files / b2aiprep-4.0.0.tar.gz
| Download URL | b2aiprep-4.0.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55487c56f1896936c64d576c32e9afe44d6f457f8513a4369b74a42761b3b0cd
|
|
BLAKE2b-256 checksum How to use checksums |
4284c0b3a91eef78cfdd846f36598abead0f69878295e12cf1db53d2de4d3e26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / b2aiprep-4.0.0-py3-none-any.whl
| Download URL | b2aiprep-4.0.0-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36579ac825182006ef3856c021cb72d016a484f122f97fd527fa24eb688a2895
|
|
BLAKE2b-256 checksum How to use checksums |
d3d5aac5ff9f0d3073ce588220efced8cce7f08a7742978e5f202e5349b79f82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for b2aiprep 4.0.0
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.