import and play audio file data in signal labeler
use to
import audio files and labeled signal sets that point to audiodatastore
objects or audio files. create custom labeling functions to perform automated labeling and
sublabeling tasks. you can also play audio files or signals with time information in the
app.
note
importing and playing audio file data in signal labeler requires an
audio toolbox™ license. for an example on how to create an
audiodatastore
object, see (audio toolbox).
supported audio file extensions
when importing audio files, signal labeler supports single and multichannel signals with the following audio file extensions:
.wav
.avi
.aif
.aifc
.aiff
.mp3
.au
.snd
.mp4
.m4a
.flac
.ogg
.mov
.opus
time information
the audio signals you import into signal labeler are automatically labeled in time based on the sample rate information. you cannot import or export audio signals with time information in samples.
import audio signals from files or folder
to import signals into signal labeler from audio files or a folder
containing audio files, on the labeler tab, click
import and select from audio files
or from audio folder
in the members
list. in the dialog box, browse to select the audio files or folder that contains the
audio signals you want to import. each imported audio file is treated as a member of the
labeled signal set. all the signals contained in one audio file belong to a single
member and are labeled together. all members to import must use a file extension listed
in supported audio file extensions.
note
importing labeledsignalset
objects using from
audio files
or from audio folder
is
not supported. to import a labeledsignalset
object, load it
into the matlab® workspace and import it from there.
import labeledsignalset
from matlab workspace
to import a labeledsignalset
object into signal labeler
from the matlab workspace, on the labeler tab, click
import and select from workspace
in the members list. in the dialog box, select the
labeledsignalset
you want to import. each audio signal in the
labeledsignalset
is treated as a member of the labeled signal set
and can be labeled individually.
to be imported successfully, labeled signal sets should follow these guidelines:
if the selection includes two or more
labeledsignalset
objects, each must have unique signal label definitions. if two or more sets share a label definition, the definition must have the same type and data type for all sets. for more information, see .if the selection includes two or more
labeledsignalset
objects, each must have unique member names. you cannot change member names from within signal labeler. to change the name of a member of a labeled signal set, use at the command line.if you select two or more
labeledsignalset
objects for labeling, signal labeler merges them and creates a single labeled signal set containing all the members and label values of the input sets. this action is equivalent to using at the command line.label values in
labeledsignalset
objects must be scalars. signal labeler ignores those labels which do not have scalar values.
note
you cannot modify the time information of a
labeledsignalset
object from within signal labeler.audio labeled signal sets cannot be merged with non-audio labeled signal sets.
play audio signals and regions of interest
you can use the signal labeler app to play audio signals or other signals
with a constant sample rate in the range [1, 384] khz. select the signal you want to
play in the labeled signal set browser. on the
audio tab, select an audio player device from the
playback device
list. click play
in the playback section of the toolstrip to play the entire signal
once. select play in loop and then click
play to play the signal repeatedly. you can also select a
region of interest to play. select the region in the labeled signal set
browser or click on the region directly in the plot, then choose a
playback option to listen to the signal.
note
signal labeler uses (audio toolbox) to play audio. audio playback is not supported in .
see also
apps
functions
- | |
audiodatastore
(audio toolbox)