Provides Praat (v5.4.17) to Gradle projects via native wrapper plugin.
See https://plugins.gradle.org/plugin/org.m2ci.msp.praat
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
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'
}