|
|
from dreamvoice import DreamVoice |
|
|
|
|
|
|
|
|
|
|
|
dreamvoice = DreamVoice(mode='plugin', device='cuda') |
|
|
|
|
|
prompt = 'young female voice, sounds young and cute' |
|
|
|
|
|
gen_audio, sr = dreamvoice.genvc('examples/test1.wav', prompt) |
|
|
|
|
|
dreamvoice.save_audio('gen1.wav', gen_audio, sr) |
|
|
|
|
|
|
|
|
dreamvoice.save_spk_embed('voice_stash1.pt') |
|
|
|
|
|
dreamvoice.load_spk_embed('voice_stash1.pt') |
|
|
|
|
|
gen_audio2, sr = dreamvoice.simplevc('examples/test2.wav', use_spk_cache=True) |
|
|
dreamvoice.save_audio('gen2.wav', gen_audio2, sr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dreamvoice = DreamVoice(mode='end2end', device='cuda') |
|
|
|
|
|
gen_end2end, sr = dreamvoice.genvc('examples/test1.wav', prompt) |
|
|
|
|
|
dreamvoice.save_audio('gen_end2end.wav', gen_end2end, sr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dreamvoice = DreamVoice(mode='plugin', device='cuda') |
|
|
|
|
|
gen_end2end2, sr = dreamvoice.simplevc('examples/test2.wav', speaker_audio='gen_end2end.wav') |
|
|
|
|
|
dreamvoice.save_audio('gen_end2end2.wav', gen_end2end2, sr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dreamvoice = DreamVoice(mode='plugin', device='cuda') |
|
|
|
|
|
gen_tradition, sr = dreamvoice.simplevc('examples/test1.wav', speaker_audio='examples/speaker.wav') |
|
|
|
|
|
dreamvoice.save_audio('gen_tradition.wav', gen_tradition, sr) |
|
|
|