AsspFileFormat {wrassp}R Documentation

Get and set AsspFileFormat

Description

Function to get or set the file format of an AsspDataObj.

Usage

AsspFileFormat(x)

AsspFileFormat(x)  <- value

Arguments

x

an object of class AsspDataObj

value

an integer or a string indicating the new file format

Details

libassp handles a number of file formats common in speech research. This function enables the user to determine the file format of an object read from file and to set it for subsequent writing. This allows for file format conversion to some degree. Note, that many conversions are not reasonable/possible: conversions are therefore discouraged unless the user knows what they are doing. Format specifiers can be found in AsspFileFormats and exist in two forms: a code name and a code number. Both are suitable for setting the format.

Value

for AsspFileFormat the code name of the object's currently set file format

for AsspFileFormat<-, the updated object

Author(s)

Lasse Bombien

See Also

AsspFileFormats, AsspDataFormat

Examples

## Not run: 
obj  <- read.AsspDataObj('/path/to/file.wav')
AsspFileFormat(obj)
AsspFileFormat(obj) <- 'SSFF' ## or
AsspFileFormat(obj) <- 20

## End(Not run)

[Package wrassp version 1.0.5 Index]