Learn R Programming

wrassp (version 0.1.3)

AsspFileFormat: 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

Value

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

    for AsspFileFormat<-, the updated object

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.

See Also

AsspFileFormats, AsspDataFormat

Examples

Run this code
obj  <- read.AsspDataObj('/path/to/file.wav')
AsspFileFormat(obj)
AsspFileFormat(obj) <- 'SSFF' ## or
AsspFileFormat(obj) <- 20

Run the code above in your browser using DataLab