The current structure of bgm.json
is straightforward, containing only 6 keys: title
, size
, duration
, bitrate
, sample_rate
, and link
. The information for size
, duration
, bitrate
, and sample_rate
is extracted using the python
TinyTag
package. Additionally, bgm_link.json
is provided for those who are only interested in the audio file.
Tip
The file itself is extracted using the ffmpeg
library with the libvorbis -q:a 5
(ogg) format to achieve a smaller file size compared to other formats, while preserving the sound quality as much as possible from the source.
type Link = string;
type BackgroundMusic = {
title: string;
size: number;
duration: number; // float64
bitrate: number; // float64
sample_rate: number; // float64
link: Link;
}
// bgm.json
type BackgroundMusicData = {
[key: string]: BackgroundMusic;
};
// bgm_link.json
type BackgroundMusicLinkData = {
[key: string]: Link;
};
https://github.com/raw/Fernando2603/AzurLane/main/bgm.json
https://github.com/raw/Fernando2603/AzurLane/main/bgm_link.json