JSON Configurations for Audio
Last updated
Last updated
The following options and configurations are available for optimising audio streming and playout.
Basic access
The simplest technique for enforcing access controls.
Token access
Audalaxy supports authentication by using a Token. Token-Based Authentication, relies on a signed JSON Web Token (JWT) that is sent to the server on each request.
The Auto Switch function can be used to replace an audio source that is no longer available - for example, as a fallback for a simulcast.
Create a new additional source for this channel with the right incoming bitrate and select the fallback master server (the naming in the UI is a bit misleading, it’s not only “mid-roll trigger inside source”).
When creating listener mounts transcoding should be “forced”. Otherwise transcoding will be skipped if the source and listener mount have the same spec (e.g. same bitrate/format). The fallback mechanism is part of our transcodings so it needs to be enabled.
A special setting for the channel has to be created in “Advanced Settings”. This is the place for all settings that don’t have an UI and is written in JSON.
Please check if there is a red mark in the sidbar. In this case the JSON is not valid and can not be saved.
parameters silence, noise and threshold are freely configurable
configuration per channel
transcoding feature necessary
fallback
is the Key for the settings
max_silence
is the number of seconds that the stream has to be silent before switching to fallback
min_noise
is the number of seconds without silence before switching back
threshold
is the audio level in dB that is considered silence
In case of sources with integrated bitflips we need a dedicated fallback url for every codec and bitrate as it is not possible to transcode these channels (in order to not loose the bitflips)
In disallowed countries an audio file is played and the stream stopped.
geo_allow_countries
Array specification of which countries are allowed to stream freely, all others are blocked; specify as ISO code
geo_fallback
URL to a file that is played as an announcement
geo_active_hours
Optional array with hours as a number when blocking is active. If it is always to be active, omit this block or specify an empty array
In advanced settings you can specify that the incoming metadata should be delayed (in seconds).
url
is the StreamURL of the fallback stream. You can just copy the URL of the source here. However, we have a special service that redirects to the source if a channelkey (our unique ID for a channel) is given. It auto-selects fallback mounts. The syntax is /<channelkey> Just use the channelkey of the current channel here. You can find it under “Setup”
If the fallback is a Audalaxy cloud playout there is no need to add an additional source. In that case use the special URL /<channelkey>/playout and replace <channelkey> with the channelkey of the playout channel.