View source: R/search_searchandopen_inpraat.R
search_searchandopen_inpraat | R Documentation |
The function remote controls 'Praat' by using 'sendpraat' and a 'Praat' script. It first searches your corpus object and uses the first search hit. The corresponding TextGrid will be opened in the 'Praat' TextGrid Editor and the search hit will be displayed.
search_searchandopen_inpraat(x, pattern)
x |
Corpus object. |
pattern |
Character string; search pattern as regular expression. |
To make this function work you need to do two things first:
Install 'sendpraat' on your computer. To do so follow the instructions in the vignette 'installation-sendpraat'. Show the vignette with vignette("installation-sendpraat")
.
Set the path to the 'sendpraat' executable correctly by using 'options(act.path.sendpraat = ...)'.
library(act)
# You can only use this functions if you have installed
# and located the 'sendpraat' executable properly in the package options.
## Not run:
act::search_searchandopen_inpraat(x=examplecorpus, "pero")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.