Strings

One of the types of objects in Praat. Represents an ordered list of strings.

Creation

The difficult way is to create a Strings object from a generic Praat text file (if there are non-ASCII symbols, use UTF-8 or UTF-16 format):

"ooTextFile"
"Strings"
5 ! number of strings
"Hello"
"Goodbye"
"Auf wiedersehen"
"Tschüss"
"Arrivederci"

In this example, we see that a double quote within a string should be written twice; the fourth string will therefore be read as Tschüss. This file can be read simply with the generic Read from file... command from the Open menu.

An easier way is to use the special command Read Strings from raw text file.... The file can then simply look like this:

Hello
Goodbye
Auf wiedersehen
Tschüss
Arrivederci

You can also create a Strings object from a folder listing or from some other objects:

Create Strings as file list...
Distributions: To Strings...
OTGrammar: Generate inputs...
OTGrammar & Strings: Inputs to outputs...

Links to this page


© ppgb 20201226