Voice-Conversion / import_local_tts_models.py
drewThomasson's picture
made move instead of copy
290440b verified
raw
history blame contribute delete
555 Bytes
import os
import shutil
# Define source and destination directories
source_dir = 'tts_models'
destination_dir = '/home/user/.local/share/tts/'
# Create destination directory if it doesn't exist
os.makedirs(destination_dir, exist_ok=True)
# Move all contents from source to destination
for item in os.listdir(source_dir):
source_path = os.path.join(source_dir, item)
destination_path = os.path.join(destination_dir, item)
# Move files or directories
shutil.move(source_path, destination_path)
print("Contents moved successfully.")