Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.04 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.04 KB

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'
}