AudioType

AudioType[audio]

returns the data type used to represent samples in the Audio object audio.

Details

  • Possible types returned by AudioType are:
  • "SignedInteger8"signed 8-bit integers from through
    "SignedInteger16"signed 16-bit integers from through
    "SignedInteger32"signed 32-bit integers from through
    "Real32"single-precision real (32-bit)
    "Real64"double-precision real (64-bit)

Examples

open allclose all

Basic Examples  (3)

Extract the type of an audio object:

A real audio object:

An out-of-core audio object always assumes a "Real32" type:

Scope  (6)

Generate an audio object of type "SignedInteger8":

Extract the type:

A 16-bit audio object:

A "Real32" audio object:

Use the Audio construct to convert an audio object to a different type:

Compare the byte counts of different data types:

The byte count of an out-of-core audio object does not increase for larger data types:

The byte counts of the stored files are different:

The byte counts of out-of-core audio objects are the same:

Possible Issues  (1)

An out-of-core audio object supports only a "Real32" type:

The type of the imported audio is the same as what is stored in the file:

Wolfram Research (2016), AudioType, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioType.html (updated 2019).

Text

Wolfram Research (2016), AudioType, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioType.html (updated 2019).

CMS

Wolfram Language. 2016. "AudioType." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/AudioType.html.

APA

Wolfram Language. (2016). AudioType. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioType.html

BibTeX

@misc{reference.wolfram_2024_audiotype, author="Wolfram Research", title="{AudioType}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/AudioType.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_audiotype, organization={Wolfram Research}, title={AudioType}, year={2019}, url={https://reference.wolfram.com/language/ref/AudioType.html}, note=[Accessed: 21-December-2024 ]}