GitXplorerGitXplorer
m

praat_formants_python

public
23 stars
9 forks
1 issues

Commits

List of commits on branch master.
Verified
84e96e03d022e4131a97e3fff583086b5a64cec3

Merge pull request #3 from b-schnell/master

mmwv committed 5 years ago
Unverified
dc8b5482a1c35daeaabe80ffff2b37860449984f

Python3 fix.

bb-schnell committed 5 years ago
Unverified
523ea61c4dbdf693ce0c48991df077a7a516bf81

fixed bug in location of praat script.

mmwv committed 10 years ago
Unverified
4f17a4dad6712d28f42b6c16a0f642e840c241e8

prettier readme

mmwv committed 10 years ago
Unverified
0e525b02510b4382149581b73135f815e8c3d92c

fixed bug in setup.py with wrong reference to README.org

mmwv committed 10 years ago
Unverified
be1e4a5a763a06ec63bdfce36c8150f48c023d15

initial commit

mmwv committed 10 years ago

README

The README file for this repository.

#+AUTHOR: Maarten Versteegh

  • Praat Formants Python Reading formants from audio files into Python by wrapping calls to [[http://www.fon.hum.uva.nl/praat/][Praat]]. To reduce overhead, calls to Praat are memoized. This can be disabled by setting memoize_call=False in the function parameters.

** Usage Extract formants at time point 0.5s from wavfile: : import praat_formants_python as pfp : pfp.formants_at_time('/path/to/wavfile/', 0.5)

Extract formants at time interval [0.5, 0.7] from wavfile: : import praat_formants_python as pfp : pfp.formants_at_interval('/path/to/wavfile/', 0.5, 0.7)

Maximum formant, window length and preemphasis can be passed in as keyword arguments. By default, these are set as maxformant=5500, winlen=0.025, preemph=50 : import praat_formants_python as pfp : pfp.formants_at_interval('/path/to/wavfile/', 0.5, 0.7, : maxformant=5000, winlen=0.50, preemph=99)

** Installation This package requires [[http://www.numpy.org][numpy]]. See installation instructions there.

Run setup.py: : python setup.py install

To be able to find Praat, the praat executable should be in your PATH. For OSX: the Praat program installs to /Applications/Audio/Praat.app/Contents/MacOS/Praat, which is not in the PATH by default. Easiest way to solve that is to put a symlink in /usr/bin to there, i.e. open a Terminal and do : $ sudo ln -s /Applications/Audio/Praat.app/Contents/MacOS/Praat /usr/bin/praat For Linux: Praat installs to /usr/bin by default, so you don't have to do anything.