-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jason-kane/beta
Beta
- Loading branch information
Showing
15 changed files
with
2,208 additions
and
1,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"PsychicClockwork": "Clockwork", | ||
"5thColumn": "Random Any", | ||
"5thColumnEndgame": "Random Any", | ||
"ArachnosEndgame": "Arachnos", | ||
"TsooEndgame": "Random Any", | ||
"BanishedPantheon": "Random Any", | ||
"Behavioral Adjustees": "Random Any", | ||
"CircleOfThorns": "Circle of Thorns", | ||
"Civilian": "Random Any", | ||
"Council Member": "Random Any", | ||
"Council": "Random Any", | ||
"Crey": "Random Any", | ||
"DecayingEidolons": "Vahzilok", | ||
"Outcasts": "Random Any", | ||
"Warriors": "Random Any", | ||
"TheDestroyers": "Random Any", | ||
"Freakshow": "Random Any", | ||
"Tsoo": "Random Any", | ||
"Council": "Random Any", | ||
"The Lost": "Random Any", | ||
"Civilian": "Random Any", | ||
"5thColumn": "Random Any", | ||
"Hellions": "Random Any", | ||
"5thColumnEndgame": "Random Any", | ||
"Council Member": "Random Any", | ||
"TheFamily": "Random Any", | ||
"Hero": "Random Any", | ||
"MAGI": "Random Any", | ||
"Nemesis": "Random Any", | ||
"BanishedPantheon": "Random Any", | ||
"Outcasts": "Random Any", | ||
"ParagonPolice": "Random Any", | ||
"Prisoners": "Random Any", | ||
"Behavioral Adjustees": "Random Any", | ||
"Crey": "Random Any", | ||
"Hero": "Random Any", | ||
"PracticeRobots": "Random Any", | ||
"PraetorianDUSTIDFEndgame": "Random Any", | ||
"MAGI": "Random Any", | ||
"PracticeRobots": "Random Any" | ||
"Prisoners": "Random Any", | ||
"PsychicClockwork": "Clockwork", | ||
"The Lost": "Random Any", | ||
"TheDestroyers": "Random Any", | ||
"TheFamily": "Random Any", | ||
"Tsoo": "Random Any", | ||
"TsooEndgame": "Random Any", | ||
"Warriors": "Random Any" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rmdir /s /q venv | ||
rename venv_backup venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,60 @@ | ||
{ | ||
"Random Any": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"any" | ||
], | ||
"rate": "1" | ||
} | ||
}, | ||
"Random Any": {}, | ||
"Random Female": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"female" | ||
], | ||
"rate": "1" | ||
} | ||
"gender": "Female" | ||
}, | ||
"Random Male": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"male" | ||
], | ||
"rate": "1" | ||
} | ||
"gender": "Male" | ||
}, | ||
"Clockwork": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"any" | ||
], | ||
"rate": "1" | ||
}, | ||
"Effects": { | ||
"Vocoder": { | ||
"carrier_freq": "160", | ||
"min_freq": "80", | ||
"max_freq": "8000", | ||
"Effects": [ | ||
{ | ||
"name": "Vocoder", | ||
"carrier_freq": "100", | ||
"min_freq": "135", | ||
"max_freq": "6100", | ||
"bands": "40", | ||
"bandwidth": "0.5", | ||
"bandpass_filter_order": "3" | ||
}, | ||
"RingMod": { | ||
"carrier_freq": "160", | ||
"blend": "0.5", | ||
}, { | ||
"name": "RingMod", | ||
"carrier_freq": "86", | ||
"blend": "0.3", | ||
"carrier_wave": "sin" | ||
}, | ||
"Normalize": { | ||
}, { | ||
"name": "Normalize", | ||
"max_amplitude": "1.0", | ||
"remove_dc_offset": true | ||
} | ||
} | ||
] | ||
}, | ||
"Vahzilok": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"any" | ||
], | ||
"rate": "2" | ||
}, | ||
"Effects": { | ||
"Chorus": { | ||
"Effects": [ | ||
{ | ||
"name": "Chorus", | ||
"rate_hz": "10.0", | ||
"mix": "0.5", | ||
"depth": "0.25", | ||
"feedback": "0.0" | ||
} | ||
} | ||
] | ||
}, | ||
"Circle of Thorns": { | ||
"engine": "any", | ||
"BaseTTSConfig": { | ||
"voice_name": [ | ||
"random", | ||
"any" | ||
], | ||
"rate": "1.25" | ||
}, | ||
"Effects": { | ||
"Delay": { | ||
"Effects": [ | ||
{ | ||
"name": "Delay", | ||
"delay_seconds": "0.1", | ||
"feedback": "0.1", | ||
"mix": "0.1" | ||
} | ||
} | ||
] | ||
}, | ||
"Trolls": { | ||
"Effects": [ | ||
{ | ||
"name": "PitchShift", | ||
"semitones": "-3.0" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
""" | ||
These are high level manipulations of audio files. | ||
""" | ||
from pedalboard.io import AudioFile | ||
from voicebox.tts.utils import get_audio_from_wav_file | ||
import logging | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
def mp3file_to_wavfile(mp3filename, wavfilename=None): | ||
""" | ||
Pedelboard can convert mp3 to wav pretty quickly/easily. | ||
This is more or less straight from the README.md for pedalboard. | ||
Spotify - Props for pedalboard open source. | ||
""" | ||
log.info('Converting from mp3 to wav...') | ||
if wavfilename is None: | ||
wavfilename = mp3filename + ".wav" | ||
|
||
with AudioFile(mp3filename) as input: | ||
with AudioFile( | ||
filename=wavfilename, | ||
samplerate=input.samplerate, | ||
num_channels=input.num_channels | ||
) as output: | ||
while input.tell() < input.frames: | ||
output.write(input.read(1024)) | ||
log.info(f'Wrote {wavfilename}') | ||
|
||
return wavfilename | ||
|
||
|
||
def mp3file_to_Audio(mp3filename): | ||
""" | ||
We want this mp3 as a voicebox Voice() object. | ||
""" | ||
wavfilename = mp3file_to_wavfile(mp3filename) | ||
return get_audio_from_wav_file( | ||
wavfilename | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.