Skip to content

This is a script that I did to help my partner analyse over 10000 files generated by PRAAT with SPSS

Notifications You must be signed in to change notification settings

Captnlink/praat-aggregator-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PRAAT file aggregator

This script is used to aggregate the output of algorithms generated with PRAAT into a CSV

Installation

Install dependencies

Macos systems

brew install python

Linux Systems (Debian)

sudo apt get install python

Windows system

Install the script

Clone this repository

git clone git@github.com:Captnlink/praat-aggregator-csv.git

How to use

There is two operation available, aggregate and count. The scrip will find all files in a directory and its sub-directory that match the algorithm and perform the operation on them.

File naming scheme

Each file should be named participantID_sessionName_projectName_SentenceName.algorithm. Each file should be in a subfolder named after the frequency range of the PRAAT analysis

Aggregate function

The aggregate function read all files with an extension equal to algorithm and transform them in a single line of a CSV.

In a terminal

python sources/main.py -d "PATH/TO/DIRECTORY" -a algorithm aggregate
python sources/main.py -d "PATH/TO/DIRECTORY" -a normtimef0 aggregate

Count function

Count the number of occurrence of a certain algorithm and generate a JSON file

In a terminal

python sources/main.py -d "PATH/TO/DIRECTORY" -a wav count

About

This is a script that I did to help my partner analyse over 10000 files generated by PRAAT with SPSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages