Skip to main content

Audio trimming tool for acoustic researchers with Praat/parselmouth integration

Project description

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

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

b2ai_voice_trimkit-0.1.3.tar.gz (224.0 kB view details)

Uploaded Source

Built Distribution

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

b2ai_voice_trimkit-0.1.3-py3-none-any.whl (224.2 kB view details)

Uploaded Python 3

File details

Details for the file b2ai_voice_trimkit-0.1.3.tar.gz.

File metadata

  • Download URL: b2ai_voice_trimkit-0.1.3.tar.gz
  • Upload date:
  • Size: 224.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for b2ai_voice_trimkit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a412b8930466946e125a1ae83c92665571e6899e145821fd8b6a5703a2b4d13f
MD5 a9350ff17d48c4ac25de7eb352302e6e
BLAKE2b-256 0efdde67a970fe5d1d5f706b967e9e5e8b99e92c626b3e8caf813cef703b0bf7

See more details on using hashes here.

File details

Details for the file b2ai_voice_trimkit-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for b2ai_voice_trimkit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1bd286260a826d16ffe5e9d91c780313cf32ee0278baa9eada798c937e59e6d
MD5 08aa2391edc036e1c60f64f31f3be66d
BLAKE2b-256 41e72c0ab1b8920fb0607934001f0f42a66b5a685db999c59eeb59c625b5ad2a

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