Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement FreeVC #2451

Merged
merged 10 commits into from
Mar 25, 2023
Merged

Implement FreeVC #2451

merged 10 commits into from
Mar 25, 2023

Conversation

erogol
Copy link
Member

@erogol erogol commented Mar 23, 2023

FreeVC implementation only with inference

#2438

From the original implementation -> https://github.com/OlaWod/FreeVC 👑@OlaWod

This PR allows voice cloning with any TTS model

from TTS.api import TTS
from TTS.utils.generic_utils import get_user_data_dir

print(get_user_data_dir("TTS"))

tts = TTS("tts_models/de/thorsten/tacotron2-DDC")

# regular TTS
wav = tts.tts_to_file("Wie sage ich auf Italienisch, dass ich dich liebe?", file_path="output_org.wav")

# the same model with voice cloning
wav = tts.tts_with_vc_to_file(
    "Wie sage ich auf Italienisch, dass ich dich liebe?",
    speaker_wav="target/speaker.wav",
    file_path="ouptut.wav"
)

You can also do voice conversion with the ```tts`` command. It will convert the voice of the source_wav to the speaker in the `target_wav`

tts --souce_wav original/audio/file.wav --target_wav target/audio/file.wav

@erogol erogol merged commit d309f50 into dev Mar 25, 2023
@erogol erogol deleted the freevc branch March 25, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant