Parselmouth is a Python library that provides a Pythonic interface to Praat, a widely used program for phonetic analysis. It wraps Praat's C++ core, allowing direct access to its functionalities for speech processing, acoustic analysis, and manipulation. The current version is 0.4.7, with minor releases and bug fixes occurring frequently.
pip install praat-parselmouthVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to create a simple sound object from a NumPy array, perform a common acoustic analysis (pitch extraction), and use `parselmouth.praat.call` for direct Praat commands.
Ensure you have a C++ compiler and CMake installed. Check the official Parselmouth documentation for platform-specific build instructions. Installing `scikit-build-core` might also help: `pip install scikit-build-core`.
Upgrade Parselmouth to version 0.4.4 or newer: `pip install --upgrade praat-parselmouth`.
Upgrade Parselmouth to version 0.3.3 or newer to avoid these specific crash scenarios: `pip install --upgrade praat-parselmouth`.
Always use the latest stable version of Parselmouth for optimal compatibility with recent Python interpreters: `pip install --upgrade praat-parselmouth`.
Install a C++ compiler (e.g., Visual Studio Build Tools on Windows, Xcode Command Line Tools on macOS, `build-essential` on Debian/Ubuntu, or `cmake` for all platforms) and try `pip install praat-parselmouth` again.
Upgrade Parselmouth to version 0.4.4 or higher: `pip install --upgrade praat-parselmouth`.
Install the library using `pip install praat-parselmouth`. If using virtual environments, ensure the correct environment is activated before running your script.
Review the Parselmouth documentation for the correct way to interact with objects. Use methods like `sound.to_pitch()` or pass objects to `parselmouth.praat.call(object, 'PraatCommand')`.