Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b2aiprep-3.0.3.tar.gz (404.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

b2aiprep-3.0.3-py3-none-any.whl (388.6 kB view details)

Uploaded Python 3

File details

Details for the file b2aiprep-3.0.3.tar.gz.

File metadata

  • Download URL: b2aiprep-3.0.3.tar.gz
  • Upload date:
  • Size: 404.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for b2aiprep-3.0.3.tar.gz
Algorithm Hash digest
SHA256 6eb3c2af6f9f339e7d302c0c9573f16a22a44c9ff7b9006868134fb32d2c25fa
MD5 255f8608e08ea943fbbd5f0e5d5763f7
BLAKE2b-256 19f1a7a9014cadb4fc147c63a50e9153c4e06a6bf483db0d33da3c9b68423c9b

See more details on using hashes here.

File details

Details for the file b2aiprep-3.0.3-py3-none-any.whl.

File metadata

  • Download URL: b2aiprep-3.0.3-py3-none-any.whl
  • Upload date:
  • Size: 388.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for b2aiprep-3.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db734e0ad5bfd30fda4c53e85ab3ce91cbeda2c11f5f5161e7974e879056b9e9
MD5 e7311a1881ec25d211b6c4e6aa59c43f
BLAKE2b-256 5211c40597c4688b289f3e67edbe054f6491b453ca9832ca8c398c548509a512

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page