Now we need to get the definitions that are specific to Linux for our makefiles. We need to be in our new praat directory and save the ones that are relevant to us to a new file, makefiles.defs.
The package speakr allows the user to run a Praat script from withinR, optionally passing parameters to the script if a form is used. Incombination with rmarkdown::render(), it is possible to generate dynamicreports which include phonetic analyses.
If the script logs text (like a set of acoustic measurements) to afile (with writeFile[Line] andappendFile[Line]), the file is created in the directoryspecified in the script, and nothing is returned in R. To load theresults file in R, just read it in as you would with any otherdataset.
It is possible to pass arguments to the script from R, using Praatforms in the script. The following example runs the scriptget-formants-args.praat, which requires two arguments: unit(a string, either "Hertz" or "Bark") andwindow size (a number). Multiple arguments can be specified inpraat_run(), in the order in which they appear in theform. These arguments will be passed to theform in the script.
You can include annotation from a TextGrid file. You can specify thepath to the TextGrid with the tg argument. Iftg is set to NULL (the default) the functionwill search for a TextGrid file with the same base name as the wav file,and if it finds one it will add it to the plot.
If you would like to customise the plot further, you can runuse_praat_plot_script("plot.praat") which will copy thePraat plotting script used in praat_plot() on disk (in thepath you specify in the function), so that you can make any changes tothe script and then run it with praat_run() as you wouldwith any other Praat script.
This is as a Lab Notebook which describes how to solve a specific problem at a specific time.Please keep this in mind as you read and use the content. Please pay close attention to the date, versioninformation and other details.
I got Praat working on the system. It requires a newer version of CentOS and a few tricks but it is working. To start we need to make a folder with a singularity overlay in it and add conda (for dependencies):
That should be it. We now connect to the HPCC using an X11 connection. The easiest way to do that is to start an interactive desktop form OnDemand. Once the desktop is running, open a terminal, change to the praat directory and run the following command:
This overview of singularity was initially written by Dirk Colbry and is just intended of an example of how to install and run things on the HPCC. Please contact the ICER User Support Team if you need any help getting your workflow up and running.
7fc3f7cf58