({{, (RefLink[WebAudioSearch, paclet:ref/WebAudioSearch])["string"] 
gives a dataset of the top web audio search results for the specified literal string.}, {, (RefLink[WebAudioSearch, paclet:ref/WebAudioSearch])[query]
performs a web audio search using the specified query.}, {, (RefLink[WebAudioSearch, paclet:ref/WebAudioSearch])[query,format]
gives the elements of the web audio search specified by format.}, {, (RefLink[WebAudioSearch, paclet:ref/WebAudioSearch])[query,format,crit]
returns only audio results that satisfy crit.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[WebAudioSearch, paclet:ref/WebAudioSearch]) requires internet connectivity and may use external services that require (WebLink[Service Credits, http://www.wolfram.com/service-credits/]).

Possible search forms that can be specified by query include:

Possible elements that can be specified by format include:

The default format with front end running is "Dataset" when a front end is available. Otherwise "TitleHyperlinks" is returned.

The following properties prop are available:

When using a criterion crit, arguments of crit can access element values using #prop. An audio track is returned if crit returns (RefLink[True, paclet:ref/True]).

The criterion crit can take one of the following forms:

A criterion crit including the "Tag" properties is applied independently to all tags and returns (RefLink[True, paclet:ref/True]) if there is at least one match.

The following arguments can be used in crit:

(RefLink[WebAudioSearch, paclet:ref/WebAudioSearch]) can take a (RefLink[MaxItems, paclet:ref/MaxItems]) option that specifies the maximum number of audio samples to return with each search. By default, (RefLink[MaxItems, paclet:ref/MaxItems])->10 is used.

OpenersPrimaryExamplesSection(Spacer1)Examples  (15)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Search for audio recordings related to a query:

WebAudioSearch["dog"]

Return the result as a list of (RefLink[Audio, paclet:ref/Audio]) objects:

WebAudioSearch["dog", "Samples", MaxItems->3]

OpenersExampleSection1(Spacer1)Scope  (10)

OpenersExampleSubsection0(Spacer1)Query  (3)

Search for any audio recording:

WebAudioSearch[""]

Search for a given keyword:

WebAudioSearch["cat"]

Use multiple keywords:

WebAudioSearch[{"cat","dog"}]

OpenersExampleSubsection1(Spacer1)Format  (5)

By default, a dataset of results is returned:

WebAudioSearch["dog",MaxItems->3]

Get the result in a minimal interactive gallery:

WebAudioSearch["dog","GalleryMinimal",MaxItems->3]

Get a list of audio samples:

WebAudioSearch["dog","Samples",MaxItems->3]

Construct (RefLink[Audio, paclet:ref/Audio]) objects from the sample links provided in the resulting dataset:

data=WebAudioSearch["tiger roar",MaxItems->3]

Audio/@Normal[data[All, "SampleLink",1]]

Get a list of properties for each result item:

WebAudioSearch["rooster", {"Duration", "Tags"}, MaxItems->3]

OpenersExampleSubsection2(Spacer1)Criteria  (2)

Specify a criterion to get only audio recordings shorter than 5 seconds:

WebAudioSearch["dog",#Duration<5&]

Filter using a combination of search criteria:

WebAudioSearch["dog",#Duration<5 &&#Tag =="cat"&]

OpenersExampleSection2(Spacer1)Options  (2)

OpenersExampleSubsection3(Spacer1)MaxItems  (2)

By default, 10 items are displayed for each search:

WebAudioSearch["dog"]

Specify a different max item:

WebAudioSearch["dog",MaxItems->3]

The number of available tracks with a search query may be smaller than the specified number:

WebAudioSearch["cat dog rooster",MaxItems->10]

OpenersExampleSection3(Spacer1)Possible Issues  (1)

The "Sample" property returns sample audio with conformed properties, such as audio channels.

This is a six-channel audio sample:

WebAudioSearch["dog","RandomSample",#Channels==6&]

The provided sample, however, has only two channels:

AudioChannels[%]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[WebSearch, paclet:ref/WebSearch])  ▪  (RefLink[WikipediaSearch, paclet:ref/WikipediaSearch])  ▪  (RefLink[WebImageSearch, paclet:ref/WebImageSearch])  ▪  (RefLink[Audio, paclet:ref/Audio])  ▪  (RefLink[AudioGenerator, paclet:ref/AudioGenerator])  ▪  (RefLink[Import, paclet:ref/Import])  ▪  (RefLink[ResourceData, paclet:ref/ResourceData])  ▪  (RefLink[ServiceExecute, paclet:ref/ServiceExecute])  ▪  (RefLink[$ServiceCreditsAvailable, paclet:ref/$ServiceCreditsAvailable])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Audio Representation, paclet:guide/AudioRepresentation])}, {▪(RefLinkPlain[Audio Processing, paclet:guide/AudioProcessing])}})}})