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:

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.3.1 Index]