Skip to main content

B2AI Voice Trimkit

A Streamlit-based audio trimming tool for acoustic researchers with Praat-Parselmouth integration.

Features

  • Multiple Task Types:

    • Sustained Vowel - Single segment extraction per file
    • Cough - Detect and isolate cough segments
    • Speech - Praat-based trimming to isolate voiced region
    • Breathing - Trim leading and trailing silence
    • Everything Fused - Multi-segment detection (cough, breathing, speech, vowel)
    • General-manual - Manual region selection and trimming
  • Supported Formats: .wav and .mp3 (auto-converted to WAV)

  • Interactive Waveform: Visual selection with Plotly

  • Batch Processing: Process multiple files via CSV upload

Installation

pip install b2ai-voice-trimkit

Usage

Launch the dashboard:

b2ai_voice_trimkit

CSV Format

Upload a CSV file with a column named audio_file_path:

audio_file_path
/path/to/audio1.wav
/path/to/audio2.mp3

Output Location

Trimmed files are saved in a Final_trim folder in the same directory as the original audio file.

Quitting

  • Click Quit Application in the sidebar or
  • Press Ctrl+C in the terminal

Troubleshooting

"Could not find ffmpeg or avconv" - Install ffmpeg:

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

# Windows
choco install ffmpeg

Dependencies

  • numpy, pandas, streamlit
  • praat-parselmouth
  • plotly, soundfile, librosa, pydub

License

MIT

Metadata

Release files for b2ai-voice-trimkit 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b2ai-voice-trimkit 0.1.4
File Size Uploaded Provenance Actions
b2ai_voice_trimkit-0.1.4.tar.gz 224.2 kB Without provenance Details for b2ai_voice_trimkit-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for b2ai-voice-trimkit 0.1.4
File Interpreter ABI Platform Actions
b2ai_voice_trimkit-0.1.4-py3-none-any.whl Python 3 none any Details for b2ai_voice_trimkit-0.1.4-py3-none-any.whl

Total release size: 448.7 kB

Release files / b2ai_voice_trimkit-0.1.4.tar.gz

Download URL b2ai_voice_trimkit-0.1.4.tar.gz
Size 224.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad5388f3eeed35f0831afcbf4e4bd86c693a1f78ae3faba873b615525672b639
BLAKE2b-256 checksum
How to use checksums
d1c516d479caa599d469d3b5a475fcfdb5146a9017eadd6c867f7cd3a04f1e42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / b2ai_voice_trimkit-0.1.4-py3-none-any.whl

Download URL b2ai_voice_trimkit-0.1.4-py3-none-any.whl
Size 224.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c70e46e6b0b43088d610dbaaeca46c480f2c51e7703581993bb773ff7a9171c
BLAKE2b-256 checksum
How to use checksums
8e553064d4aa1e28109fc3f2426242b628b2d7ff6135fa961ca17bb7b2ac9960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for b2ai-voice-trimkit 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page