Skip to main content

Audio File

Audio File

Audio File is an input node which will scan a file and load the Audio Information (codec/bitrate etc) for processing in the flow.

Variables

VariableDescriptionTypeExample
AudioInfoAudioInfo objectobjectSee Below
audio.AlbumThe album for the filestringThe Album
audio.ArtistThe artist for the filestringThe Artist
audio.ArtistTheIf the artist contains the, the will be shifted to the endstringArtist, The
audio.BitrateThe bitrate in bytes per second (bps)number192000
audio.ChannelsThe number of audio channelsnumber2
audio.CodecThe codec of the audio filestringaac
audio.DateThe date the audio file was producedDate1 June 2020
audio.YearThe year from the datenumber2020
audio.DurationThe duration of the audio track in secondsnumber360
audio.EncoderThe encoder that produced this filestringFFmpeg
audio.FrequencyThe frequency of this audionumber44800
audio.GenresThe genres for the audio trackstring[]['Rock', 'Pop']
audio.LanguageThe language of the audio trackstringen
audio.TitleThe title of the trackstringThis is a song
audio.TrackThe track numbernumber12
audio.DiscThe disc this track is onnumber2
audio.TotalDiscsThe total number of discs for this albumnumber2

AudioInfo Object

class AudioInfo
{
Language: string
Track: number
Disc: number
TotalDiscs: number
Artist: string
Title: string
Album: string
Date: DateTime
Genres:: string[]
Encoder: string
Duration: number
Bitrate: number
Codec: string
Channels: number
Frequency: number
}