Compare commits
2 Commits
99efd89abc
...
c8942af595
| Author | SHA1 | Date | |
|---|---|---|---|
| c8942af595 | |||
| 0f3831275e |
9
.gitattributes
vendored
Normal file
9
.gitattributes
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
* text=auto eol=lf
|
||||
|
||||
/.gitignore export-ignore
|
||||
/.gitattributes export-ignore
|
||||
|
||||
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
||||
assets/bin/** filter=lfs diff=lfs merge=lfs -text
|
||||
assets/bin/**/*.env -filter -diff -merge
|
||||
assets/bin/**/*.txt -filter -diff -merge
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
||||
|
||||
debug/
|
||||
target/
|
||||
assets/.cache
|
||||
|
||||
Cargo.lock
|
||||
|
||||
|
||||
76
README.md
76
README.md
@@ -6,17 +6,38 @@
|
||||
|
||||
```terminaloutput
|
||||
assets/
|
||||
config.(json|toml)
|
||||
songs/
|
||||
my_song/
|
||||
my_song.mp3
|
||||
descriptor.(json|toml)
|
||||
intro/
|
||||
MrNewVegas_N.mp3 (optional)
|
||||
outro/
|
||||
MrNewVegas_N.mp3 (optional)
|
||||
generic/
|
||||
MrNewVegas_N.mp3
|
||||
config.(json|toml)
|
||||
bin/
|
||||
x86_64/
|
||||
aarch64/
|
||||
songs/
|
||||
my_song/
|
||||
my_song.mp3
|
||||
descriptor.(json|toml)
|
||||
intro/
|
||||
Intro_MrNewVegas_my_song.mp3 (optional)
|
||||
generic/
|
||||
intro/
|
||||
Intro_MrNewVegas_N.mp3
|
||||
news/
|
||||
story_N/
|
||||
story.toml (ignored, metadata)
|
||||
Story_MrNewVegas_N.mp3
|
||||
Story_Guest_N.mp3
|
||||
.cache/ (automatically generated)
|
||||
songs/
|
||||
my_song/
|
||||
song.pcm (f32 pcm)
|
||||
intro.pcm (f32 pcm)
|
||||
cache.json
|
||||
generic/
|
||||
intro/
|
||||
Intro_MrNewVegas_N.pcm (f32 pcm)
|
||||
Intro_MrNewVegas_N.cache.json
|
||||
news/
|
||||
story_N/
|
||||
part_N.pcm (f32 pcm)
|
||||
cache.json
|
||||
```
|
||||
|
||||
---
|
||||
@@ -33,11 +54,23 @@ assets/
|
||||
"settings": {
|
||||
"weight": 1.0,
|
||||
"volume": 1.0,
|
||||
"crossfade": 2.0 // in seconds
|
||||
"crossfade": 2.0, // in seconds
|
||||
"weights": {
|
||||
"news": {
|
||||
"chance": 0.2
|
||||
},
|
||||
"genre": {
|
||||
"floor": 0.55,
|
||||
"recover_after": 3.0
|
||||
},
|
||||
"composite": {
|
||||
"floor": 0.05,
|
||||
"recover_after": 5.0
|
||||
}
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"shuffle_mode": "weighted", // options: "weighted", "strict_random"
|
||||
"max_same_genre_in_row": 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,10 +88,17 @@ temp_directory = "temp"
|
||||
weight = 1.0
|
||||
volume = 1.0
|
||||
crossfade = 2.0 # in seconds
|
||||
[settings.weights.news]
|
||||
chance = 0.2
|
||||
[settings.weights.genre]
|
||||
floor = 0.55
|
||||
recover_after = 3.0
|
||||
[settings.weights.composite]
|
||||
floor = 0.05
|
||||
recover_after = 5.0
|
||||
|
||||
[rules]
|
||||
shuffle_mode = "weighted" # "weighted", "strict_random"
|
||||
max_same_genre_in_row = 2
|
||||
shuffle_mode = "weighted" # "weighted", "strict_random"
|
||||
```
|
||||
|
||||
---
|
||||
@@ -70,8 +110,7 @@ max_same_genre_in_row = 2
|
||||
"artist": "Kay Kyser",
|
||||
"tags": ["orchestra", "swing", "jazz"],
|
||||
"genre": ["swing", "jazz"],
|
||||
"intro": false,
|
||||
"outro": false,
|
||||
"intro": true,
|
||||
"weight": 1.0, // optional
|
||||
"volume": 1.0, // optional
|
||||
}
|
||||
@@ -83,8 +122,7 @@ title = "[I Got Spurs That] Jingle, Jangle, Jingle"
|
||||
artist = "Kay Kyser"
|
||||
tags = ["orchestra", "swing", "jazz"]
|
||||
genre = ["swing", "jazz"]
|
||||
intro = false
|
||||
outro = false
|
||||
intro = true
|
||||
weight = 1.0 # optional
|
||||
volume = 1.0 # optional
|
||||
```
|
||||
|
||||
4
assets/bin/aarch64/.env
Normal file
4
assets/bin/aarch64/.env
Normal file
@@ -0,0 +1,4 @@
|
||||
LOCAL_SONGS_DIR=../../../songs
|
||||
LOCAL_BIN_DIR=..
|
||||
ARCH_AWARE=true
|
||||
ARCH_MAP=amd:x84_64,amd64:x86_64,arm64:aarch64
|
||||
BIN
assets/bin/aarch64/add_song
(Stored with Git LFS)
Executable file
BIN
assets/bin/aarch64/add_song
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/aarch64/ffmpeg
(Stored with Git LFS)
Executable file
BIN
assets/bin/aarch64/ffmpeg
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/aarch64/ffplay
(Stored with Git LFS)
Executable file
BIN
assets/bin/aarch64/ffplay
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/aarch64/ffprobe
(Stored with Git LFS)
Executable file
BIN
assets/bin/aarch64/ffprobe
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/aarch64/ogg_to_mp3
(Stored with Git LFS)
Executable file
BIN
assets/bin/aarch64/ogg_to_mp3
(Stored with Git LFS)
Executable file
Binary file not shown.
11
assets/bin/aarch64/sources.txt
Normal file
11
assets/bin/aarch64/sources.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
LGPL-3.0
|
||||
ffmpeg, ffplay, ffprobe
|
||||
https://github.com/BtbN/FFmpeg-Builds/releases/tag/autobuild-2026-02-18-13-03
|
||||
https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-linux64-lgpl-7.1.tar.xz
|
||||
sha256:5ec371abbf6da81fa0a7dfe013035754fadf77f8206b93cb784ec582b0870607
|
||||
|
||||
LGPL-3.0
|
||||
add_song
|
||||
locally compiled (arm64), golang
|
||||
sha256:ed6b00a4e353410ab01658a2c976a6420f2e0a8cc03a6e3e03f6eddf0d3faf0a
|
||||
4
assets/bin/x86_64/.env
Normal file
4
assets/bin/x86_64/.env
Normal file
@@ -0,0 +1,4 @@
|
||||
LOCAL_SONGS_DIR=../../../songs
|
||||
LOCAL_BIN_DIR=..
|
||||
ARCH_AWARE=true
|
||||
ARCH_MAP=amd:x84_64,amd64:x86_64,arm64:aarch64
|
||||
BIN
assets/bin/x86_64/add_song
(Stored with Git LFS)
Executable file
BIN
assets/bin/x86_64/add_song
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/x86_64/ffmpeg
(Stored with Git LFS)
Executable file
BIN
assets/bin/x86_64/ffmpeg
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/x86_64/ffplay
(Stored with Git LFS)
Executable file
BIN
assets/bin/x86_64/ffplay
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/x86_64/ffprobe
(Stored with Git LFS)
Executable file
BIN
assets/bin/x86_64/ffprobe
(Stored with Git LFS)
Executable file
Binary file not shown.
BIN
assets/bin/x86_64/ogg_to_mp3
(Stored with Git LFS)
Executable file
BIN
assets/bin/x86_64/ogg_to_mp3
(Stored with Git LFS)
Executable file
Binary file not shown.
11
assets/bin/x86_64/sources.txt
Normal file
11
assets/bin/x86_64/sources.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
LGPL-3.0
|
||||
ffmpeg, ffplay, ffprobe
|
||||
https://github.com/BtbN/FFmpeg-Builds/releases/tag/autobuild-2026-02-18-13-03
|
||||
https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-linux64-lgpl-7.1.tar.xz
|
||||
sha256:5ec371abbf6da81fa0a7dfe013035754fadf77f8206b93cb784ec582b0870607
|
||||
|
||||
LGPL-3.0
|
||||
add_song
|
||||
locally compiled (amd64), golang
|
||||
sha256:c732e55bc0869b9b2ed43db16ef951322c63288b4f63b29367d8b309a1cb6837
|
||||
Reference in New Issue
Block a user