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.4.tar.gz (224.2 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.4-py3-none-any.whl (224.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: b2ai_voice_trimkit-0.1.4.tar.gz
  • Upload date:
  • Size: 224.2 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.4.tar.gz
Algorithm Hash digest
SHA256 ad5388f3eeed35f0831afcbf4e4bd86c693a1f78ae3faba873b615525672b639
MD5 0d6ecf37193b7af7aa26e653230be30a
BLAKE2b-256 d1c516d479caa599d469d3b5a475fcfdb5146a9017eadd6c867f7cd3a04f1e42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for b2ai_voice_trimkit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9c70e46e6b0b43088d610dbaaeca46c480f2c51e7703581993bb773ff7a9171c
MD5 1d1b8c2787e14610f47e6363d1b6bc2b
BLAKE2b-256 8e553064d4aa1e28109fc3f2426242b628b2d7ff6135fa961ca17bb7b2ac9960

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