recordFormat

Specifies the file format for sound files recorded with the record sound command.

# Metadata

Platforms: desktop OS: mac Introduced: 2.0 Security:

# Syntax

set the recordFormat to fileFormat

# Examples

set the recordFormat to "wave"

set the recordFormat to the storedSoundFormat of me

# Description

Use the recordFormat property to specify what kind of file to create when recording a sound, depending on how the file will be used.

The recordFormat property determines what kind of file is created when you use the record sound command to record sound. The recordFormats function returns a list of supported recordFormat values.

Not all sound file formats are compatible with all supported codecs. If you try to record sound using a recordCompression that is not compatible with the recordFormat, the compress type will be changed automatically to a codec that is compatible with the specified recordFormat.

# Tags

# See

- **keyword:** player - **property:** filename, recordCompression - **command:** record sound, play - **function:** recordFormats - **glossary:** function, property, compress, audio clip, file path, command, codec