Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

Examples

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

## End(Not run)

wrassp

Interface to the 'ASSP' Library

v1.0.0
GPL (>= 3)
Authors
Raphael Winkelmann [aut, cre], Lasse Bombien [aut], Michel Scheffers [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.