AudioInstanceQ
AudioInstanceQ[audio,obj]
gives True if audio sounds to be an instance of the object obj, and gives False otherwise.
AudioInstanceQ[audio,obj,cat]
assumes that audio is the sound of something in the category cat.
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)
Scope (1)
Options (3)
AcceptanceThreshold (1)
Masking (1)
RecognitionPrior (1)
The default RecognitionPrior is 0.5:
Assign a very low prior probability to the object to be tested for:
Applications (2)
Find all recordings in the ExampleData collection that are recognized as a musical instrument:
Find other sounds that are similar to a recording:
Compute an object identification using AudioIdentify:
Find sounds with the same identification in the ExampleData collection:
Compute a list of more general objects using the broader sound property of Entity objects:
Find sounds within broader categories:
Compute a larger list of related sounds using AudioIdentify:
Find similar sounds among the ExampleData collection:
Properties & Relations (2)
AudioInstanceQ and AudioIdentify offer complementary functionality:
Compute the most probable object identification:
Pass the identification to AudioInstanceQ:
Get the probability associated with the identification:
The minimum acceptable probability corresponds to the confidence in the original identification:
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:
Specify a very low acceptable threshold:
Test whether the recording is a guitar, assuming that it belongs to the category of animal sounds:
Specifying a very low acceptance threshold will not yield a match since a "guitar" sound is not in the "animal" category:
Text
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.
APA
Wolfram Language. (2020). AudioInstanceQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioInstanceQ.html