search_searchandopen_inpraat {act}R Documentation

Search corpus and open first result in Praat

Description

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.

Usage

search_searchandopen_inpraat(x, pattern)

Arguments

x

Corpus object.

pattern

Character string; search pattern as regular expression.

Details

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 = ...)'.

Examples

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)




[Package act version 1.1.9 Index]