Compare commits
2 commits
3d1b39d973
...
1442d93d9f
Author | SHA1 | Date | |
---|---|---|---|
1442d93d9f | |||
c87d411f29 |
48 changed files with 177 additions and 34 deletions
70
src/main.rs
70
src/main.rs
|
@ -153,43 +153,45 @@ async fn main() -> elevenlabs_rs::Result<()> {
|
|||
}
|
||||
text = text.trim_end_matches("You can also ").to_string();
|
||||
}
|
||||
std::fs::write(
|
||||
base_out_dir.join(track.id.clone() + ".mp3"),
|
||||
speak_text(
|
||||
client.clone(),
|
||||
text,
|
||||
track.voice.unwrap_or(game.meta.default_voice.clone()),
|
||||
if !std::fs::exists(base_out_dir.join(track.id.clone() + ".mp3")).unwrap() {
|
||||
std::fs::write(
|
||||
base_out_dir.join(track.id.clone() + ".mp3"),
|
||||
speak_text(
|
||||
client.clone(),
|
||||
text,
|
||||
track.voice.unwrap_or(game.meta.default_voice.clone()),
|
||||
)
|
||||
.await?,
|
||||
)
|
||||
.await?,
|
||||
)
|
||||
.unwrap();
|
||||
std::process::Command::new("ffmpeg")
|
||||
.args(vec![
|
||||
"-f",
|
||||
"lavfi",
|
||||
"-i",
|
||||
"anullsrc=channel_layout=stereo:sample_rate=44100:duration=10",
|
||||
"-i",
|
||||
&base_out_dir
|
||||
.join(track.id.clone() + ".mp3")
|
||||
.to_string_lossy(),
|
||||
"-filter_complex",
|
||||
"[1:a] [0:a] concat=n=2:v=0:a=1",
|
||||
&base_out_dir
|
||||
.join(track.id.clone() + "_slience.mp3")
|
||||
.to_string_lossy(),
|
||||
])
|
||||
.spawn()
|
||||
.unwrap()
|
||||
.wait()
|
||||
.unwrap();
|
||||
std::process::Command::new("ffmpeg")
|
||||
.args(vec![
|
||||
"-f",
|
||||
"lavfi",
|
||||
"-i",
|
||||
"anullsrc=channel_layout=stereo:sample_rate=44100:duration=10",
|
||||
"-i",
|
||||
&base_out_dir
|
||||
.join(track.id.clone() + ".mp3")
|
||||
.to_string_lossy(),
|
||||
"-filter_complex",
|
||||
"[1:a] [0:a] concat=n=2:v=0:a=1",
|
||||
&base_out_dir
|
||||
.join(track.id.clone() + "_slience.mp3")
|
||||
.to_string_lossy(),
|
||||
])
|
||||
.spawn()
|
||||
.unwrap()
|
||||
.wait()
|
||||
.unwrap();
|
||||
|
||||
std::fs::remove_file(base_out_dir.join(track.id.clone() + ".mp3")).unwrap();
|
||||
std::fs::rename(
|
||||
base_out_dir.join(track.id.clone() + "_slience.mp3"),
|
||||
base_out_dir.join(track.id.clone() + ".mp3"),
|
||||
)
|
||||
.unwrap();
|
||||
std::fs::remove_file(base_out_dir.join(track.id.clone() + ".mp3")).unwrap();
|
||||
std::fs::rename(
|
||||
base_out_dir.join(track.id.clone() + "_slience.mp3"),
|
||||
base_out_dir.join(track.id.clone() + ".mp3"),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
out_cue.add_ref(cue::CueItem::File {
|
||||
path: (track.id + ".mp3").into(),
|
||||
|
|
BIN
underground_potions/day2-correct.mp3
Normal file
BIN
underground_potions/day2-correct.mp3
Normal file
Binary file not shown.
BIN
underground_potions/day2-incorrect1.mp3
Normal file
BIN
underground_potions/day2-incorrect1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/day2-incorrect2.mp3
Normal file
BIN
underground_potions/day2-incorrect2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/day3-hide.mp3
Normal file
BIN
underground_potions/day3-hide.mp3
Normal file
Binary file not shown.
BIN
underground_potions/day3-submit.mp3
Normal file
BIN
underground_potions/day3-submit.mp3
Normal file
Binary file not shown.
BIN
underground_potions/day3.mp3
Normal file
BIN
underground_potions/day3.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-accept.mp3
Normal file
BIN
underground_potions/love1-accept.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-counter.mp3
Normal file
BIN
underground_potions/love1-counter.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-counter1700.mp3
Normal file
BIN
underground_potions/love1-counter1700.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-counter1900.mp3
Normal file
BIN
underground_potions/love1-counter1900.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-counter2100.mp3
Normal file
BIN
underground_potions/love1-counter2100.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-decline.mp3
Normal file
BIN
underground_potions/love1-decline.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-gandalf1.mp3
Normal file
BIN
underground_potions/love1-gandalf1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-gandalf2.mp3
Normal file
BIN
underground_potions/love1-gandalf2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct1.mp3
Normal file
BIN
underground_potions/love1-home1-correct1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2-arms.mp3
Normal file
BIN
underground_potions/love1-home1-correct2-arms.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2-forty.mp3
Normal file
BIN
underground_potions/love1-home1-correct2-forty.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2-ten.mp3
Normal file
BIN
underground_potions/love1-home1-correct2-ten.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2-thirty.mp3
Normal file
BIN
underground_potions/love1-home1-correct2-thirty.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2-twenty.mp3
Normal file
BIN
underground_potions/love1-home1-correct2-twenty.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct2.mp3
Normal file
BIN
underground_potions/love1-home1-correct2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct3.mp3
Normal file
BIN
underground_potions/love1-home1-correct3.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-correct4.mp3
Normal file
BIN
underground_potions/love1-home1-correct4.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect1.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect2.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect3.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect3.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect4.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect4.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect5.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect5.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1-incorrect6.mp3
Normal file
BIN
underground_potions/love1-home1-incorrect6.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-home1.mp3
Normal file
BIN
underground_potions/love1-home1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns1-checkout.mp3
Normal file
BIN
underground_potions/love1-johns1-checkout.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns1-checkout2.mp3
Normal file
BIN
underground_potions/love1-johns1-checkout2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns1.mp3
Normal file
BIN
underground_potions/love1-johns1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns2-checkout.mp3
Normal file
BIN
underground_potions/love1-johns2-checkout.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns2-checkout2.mp3
Normal file
BIN
underground_potions/love1-johns2-checkout2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-johns2.mp3
Normal file
BIN
underground_potions/love1-johns2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-sell-correct.mp3
Normal file
BIN
underground_potions/love1-sell-correct.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-sell-incorrect1.mp3
Normal file
BIN
underground_potions/love1-sell-incorrect1.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-sell-incorrect2.mp3
Normal file
BIN
underground_potions/love1-sell-incorrect2.mp3
Normal file
Binary file not shown.
BIN
underground_potions/love1-sell-incorrect3.mp3
Normal file
BIN
underground_potions/love1-sell-incorrect3.mp3
Normal file
Binary file not shown.
BIN
underground_potions/shapeshifting1-counter.mp3
Normal file
BIN
underground_potions/shapeshifting1-counter.mp3
Normal file
Binary file not shown.
BIN
underground_potions/shapeshifting1-counter2000.mp3
Normal file
BIN
underground_potions/shapeshifting1-counter2000.mp3
Normal file
Binary file not shown.
BIN
underground_potions/shapeshifting1-counter2200.mp3
Normal file
BIN
underground_potions/shapeshifting1-counter2200.mp3
Normal file
Binary file not shown.
BIN
underground_potions/shapeshifting1-counter2400.mp3
Normal file
BIN
underground_potions/shapeshifting1-counter2400.mp3
Normal file
Binary file not shown.
BIN
underground_potions/start.mp3
Normal file
BIN
underground_potions/start.mp3
Normal file
Binary file not shown.
BIN
underground_potions/title.mp3
Normal file
BIN
underground_potions/title.mp3
Normal file
Binary file not shown.
141
underground_potions/underground_potions.cue
Normal file
141
underground_potions/underground_potions.cue
Normal file
|
@ -0,0 +1,141 @@
|
|||
REM Created by CompactAdventure2
|
||||
TITLE "Underground Potions"
|
||||
PERFORMER "Arthur Beck"
|
||||
FILE "title.mp3" MP3
|
||||
TRACK 01 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-decline.mp3" MP3
|
||||
TRACK 02 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns1-checkout2.mp3" MP3
|
||||
TRACK 03 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns2-checkout.mp3" MP3
|
||||
TRACK 04 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-counter2100.mp3" MP3
|
||||
TRACK 05 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "start.mp3" MP3
|
||||
TRACK 06 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "shapeshifting1-counter.mp3" MP3
|
||||
TRACK 07 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1.mp3" MP3
|
||||
TRACK 08 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day2-incorrect2.mp3" MP3
|
||||
TRACK 09 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "shapeshifting1-counter2400.mp3" MP3
|
||||
TRACK 10 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect6.mp3" MP3
|
||||
TRACK 11 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-gandalf1.mp3" MP3
|
||||
TRACK 12 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-accept.mp3" MP3
|
||||
TRACK 13 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct3.mp3" MP3
|
||||
TRACK 14 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-counter1900.mp3" MP3
|
||||
TRACK 15 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect3.mp3" MP3
|
||||
TRACK 16 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-sell-incorrect2.mp3" MP3
|
||||
TRACK 17 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct1.mp3" MP3
|
||||
TRACK 18 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2.mp3" MP3
|
||||
TRACK 19 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns1-checkout.mp3" MP3
|
||||
TRACK 20 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-gandalf2.mp3" MP3
|
||||
TRACK 21 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns2-checkout2.mp3" MP3
|
||||
TRACK 22 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2-ten.mp3" MP3
|
||||
TRACK 23 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day3-hide.mp3" MP3
|
||||
TRACK 24 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect1.mp3" MP3
|
||||
TRACK 25 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day3-submit.mp3" MP3
|
||||
TRACK 26 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-counter1700.mp3" MP3
|
||||
TRACK 27 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect5.mp3" MP3
|
||||
TRACK 28 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-sell-incorrect1.mp3" MP3
|
||||
TRACK 29 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day2-incorrect1.mp3" MP3
|
||||
TRACK 30 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns1.mp3" MP3
|
||||
TRACK 31 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "shapeshifting1-counter2000.mp3" MP3
|
||||
TRACK 32 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect2.mp3" MP3
|
||||
TRACK 33 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-johns2.mp3" MP3
|
||||
TRACK 34 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct4.mp3" MP3
|
||||
TRACK 35 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2-thirty.mp3" MP3
|
||||
TRACK 36 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-sell-incorrect3.mp3" MP3
|
||||
TRACK 37 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day3.mp3" MP3
|
||||
TRACK 38 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-counter.mp3" MP3
|
||||
TRACK 39 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-sell-correct.mp3" MP3
|
||||
TRACK 40 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2-forty.mp3" MP3
|
||||
TRACK 41 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "shapeshifting1-counter2200.mp3" MP3
|
||||
TRACK 42 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2-twenty.mp3" MP3
|
||||
TRACK 43 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-correct2-arms.mp3" MP3
|
||||
TRACK 44 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "love1-home1-incorrect4.mp3" MP3
|
||||
TRACK 45 AUDIO
|
||||
INDEX 01 00:00:00
|
||||
FILE "day2-correct.mp3" MP3
|
||||
TRACK 46 AUDIO
|
||||
INDEX 01 00:00:00
|
Loading…
Add table
Add a link
Reference in a new issue