AudioInstanceQ
gives True if audio sounds to be an instance of the object obj, and gives False otherwise.
Details and Options

- AudioInstanceQ tries to identify whether an audio signal is an instance of a given category.
- Possible forms for both object obj and category cat are:
-
"class" named sound class, as used in "Sound" entities Entity[…] any appropriate entity instance1instance2… any of the instancei - The following options can be given:
-
AcceptanceThreshold Automatic minimum probability to consider acceptable Masking All interval of interest PerformanceGoal Automatic what to optimize in the identification RecognitionPrior 0.5 prior probability for a True result TargetDevice "CPU" the target device on which to compute - AudioInstanceQ uses machine learning. Its methods, training sets and biases included therein may change and yield varied results in different versions of the Wolfram Language.
- AudioInstanceQ may download resources that will be stored in your local object store at $LocalBase, and can be listed using LocalObjects[] and removed using ResourceRemove.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Test whether an audio signal is an instance of a particular object:

https://wolfram.com/xid/0n4qcfpluwz-ud2796


https://wolfram.com/xid/0n4qcfpluwz-j5lmgt


https://wolfram.com/xid/0n4qcfpluwz-g2rbqu

Test whether an audio signal is an instance of either of the given categories:

https://wolfram.com/xid/0n4qcfpluwz-hymp50

Scope (1)Survey of the scope of standard use cases
By default, no assumptions are made about the sound category of the audio signal:

https://wolfram.com/xid/0n4qcfpluwz-6oc8wq

Assume that the audio signal belongs to a specific sound category:

https://wolfram.com/xid/0n4qcfpluwz-hluvfe

Assume that the audio signal belongs to a specific set of sound categories:

https://wolfram.com/xid/0n4qcfpluwz-cda944

Options (3)Common values & functionality for each option
AcceptanceThreshold (1)
Masking (1)
RecognitionPrior (1)
The default RecognitionPrior is 0.5:

https://wolfram.com/xid/0n4qcfpluwz-yc5z3

Assign a very low prior probability to the object to be tested for:

https://wolfram.com/xid/0n4qcfpluwz-ukbbyq

Applications (2)Sample problems that can be solved with this function
Find all recordings in the ExampleData collection that are recognized as a musical instrument:

https://wolfram.com/xid/0n4qcfpluwz-c8gb1e

https://wolfram.com/xid/0n4qcfpluwz-qj9el5

https://wolfram.com/xid/0n4qcfpluwz-hpbwjk

Find other sounds that are similar to a recording:

https://wolfram.com/xid/0n4qcfpluwz-c2fasn
Compute an object identification using AudioIdentify:

https://wolfram.com/xid/0n4qcfpluwz-3abe6

Find sounds with the same identification in the ExampleData collection:

https://wolfram.com/xid/0n4qcfpluwz-fvn5qp

https://wolfram.com/xid/0n4qcfpluwz-dmqhz6

https://wolfram.com/xid/0n4qcfpluwz-fwiues

Compute a list of more general objects using the broader sound property of Entity objects:

https://wolfram.com/xid/0n4qcfpluwz-fbkslt

Find sounds within broader categories:

https://wolfram.com/xid/0n4qcfpluwz-ln9ehd

https://wolfram.com/xid/0n4qcfpluwz-bau4c3

Compute a larger list of related sounds using AudioIdentify:

https://wolfram.com/xid/0n4qcfpluwz-fdt1uh

Find similar sounds among the ExampleData collection:

https://wolfram.com/xid/0n4qcfpluwz-dt80iu

https://wolfram.com/xid/0n4qcfpluwz-fwvb47

Properties & Relations (2)Properties of the function, and connections to other functions
AudioInstanceQ and AudioIdentify offer complementary functionality:

https://wolfram.com/xid/0n4qcfpluwz-mtshc
Compute the most probable object identification:

https://wolfram.com/xid/0n4qcfpluwz-f16j0l

Pass the identification to AudioInstanceQ:

https://wolfram.com/xid/0n4qcfpluwz-gtxdua

Get the probability associated with the identification:

https://wolfram.com/xid/0n4qcfpluwz-c8jaxc


https://wolfram.com/xid/0n4qcfpluwz-19qd8

The minimum acceptable probability corresponds to the confidence in the original identification:

https://wolfram.com/xid/0n4qcfpluwz-d6e6a8

Specifying a minimum acceptable probability for the tested-for object will have no effect if the tested-for object does not belong to one of the assumed categories, if specified.
Test whether a recording of an acoustic guitar is an animal:

https://wolfram.com/xid/0n4qcfpluwz-m5l9xq

Specify a very low acceptable threshold:

https://wolfram.com/xid/0n4qcfpluwz-k5fkr

Test whether the recording is a guitar, assuming that it belongs to the category of animal sounds:

https://wolfram.com/xid/0n4qcfpluwz-q9v9k7

Specifying a very low acceptance threshold will not yield a match since a "guitar" sound is not in the "animal" category:

https://wolfram.com/xid/0n4qcfpluwz-icesek

Wolfram Research (2020), AudioInstanceQ, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioInstanceQ.html.
Text
Wolfram Research (2020), AudioInstanceQ, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioInstanceQ.html.
Wolfram Research (2020), AudioInstanceQ, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioInstanceQ.html.
CMS
Wolfram Language. 2020. "AudioInstanceQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioInstanceQ.html.
Wolfram Language. 2020. "AudioInstanceQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioInstanceQ.html.
APA
Wolfram Language. (2020). AudioInstanceQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioInstanceQ.html
Wolfram Language. (2020). AudioInstanceQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioInstanceQ.html
BibTeX
@misc{reference.wolfram_2025_audioinstanceq, author="Wolfram Research", title="{AudioInstanceQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/AudioInstanceQ.html}", note=[Accessed: 21-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_audioinstanceq, organization={Wolfram Research}, title={AudioInstanceQ}, year={2020}, url={https://reference.wolfram.com/language/ref/AudioInstanceQ.html}, note=[Accessed: 21-April-2025
]}