Skip to content

m2ci-msp/gradle-praat-plugin

Repository files navigation

Gradle Praat Plugin

Build Status

Provides Praat (v5.4.17) to Gradle projects via native wrapper plugin.

Configuration

See https://plugins.gradle.org/plugin/org.m2ci.msp.praat

Usage

Execute provided Praat script

Assuming you have a Praat script like myscript.praat:

for i to 3
  printline Iteration 'i'
endfor

You can add a PraatExec task like this:

import org.m2ci.msp.praat.PraatExec

task helloPraat(type: PraatExec) {
  script 'myscript.praat'
}

Run the task:

$ ./gradlew -q helloPraat
Iteration 1
Iteration 2
Iteration 3

Execute inline Praat script

You can also execute Praat scripts defined inline in the task:

task helloPraat(type: org.m2ci.msp.praat.PraatExec) {
  script 'for i to 3',
         "printline Iteration 'i'",
         'endfor'
}