Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- index.html +450 -381
index.html
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
-
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8">
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
@@ -24,6 +23,7 @@
|
|
| 24 |
--error: #ef4444;
|
| 25 |
--success: #10b981;
|
| 26 |
--warning: #f59e0b;
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
body {
|
|
@@ -251,13 +251,8 @@
|
|
| 251 |
}
|
| 252 |
|
| 253 |
@keyframes spin {
|
| 254 |
-
0% {
|
| 255 |
-
|
| 256 |
-
}
|
| 257 |
-
|
| 258 |
-
100% {
|
| 259 |
-
transform: rotate(360deg);
|
| 260 |
-
}
|
| 261 |
}
|
| 262 |
|
| 263 |
.processing-text {
|
|
@@ -331,6 +326,14 @@
|
|
| 331 |
background: #e5950c;
|
| 332 |
}
|
| 333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
.btn-large {
|
| 335 |
padding: 1rem 2rem;
|
| 336 |
font-size: 1.1rem;
|
|
@@ -508,11 +511,11 @@
|
|
| 508 |
border-radius: 50%;
|
| 509 |
}
|
| 510 |
|
| 511 |
-
input:checked+.toggle-slider {
|
| 512 |
background-color: var(--primary);
|
| 513 |
}
|
| 514 |
|
| 515 |
-
input:checked+.toggle-slider:before {
|
| 516 |
transform: translateX(26px);
|
| 517 |
}
|
| 518 |
|
|
@@ -836,9 +839,304 @@
|
|
| 836 |
.effects-preview-container.active {
|
| 837 |
display: block;
|
| 838 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 839 |
</style>
|
| 840 |
</head>
|
| 841 |
-
|
| 842 |
<body>
|
| 843 |
<div class="container">
|
| 844 |
<header>
|
|
@@ -846,13 +1144,11 @@
|
|
| 846 |
<i class="fas fa-microphone-alt"></i>
|
| 847 |
<span>VoiceSwap Pro</span>
|
| 848 |
</div>
|
| 849 |
-
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with
|
| 850 |
-
anycoder</a>
|
| 851 |
</header>
|
| 852 |
|
| 853 |
-
<h1>
|
| 854 |
-
<p class="subtitle">
|
| 855 |
-
</p>
|
| 856 |
|
| 857 |
<div class="status-bar">
|
| 858 |
<div class="status-item">
|
|
@@ -869,6 +1165,11 @@
|
|
| 869 |
<span>Storage:</span>
|
| 870 |
<span id="storageStatus">Available</span>
|
| 871 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 872 |
</div>
|
| 873 |
|
| 874 |
<div class="app-container">
|
|
@@ -933,10 +1234,124 @@
|
|
| 933 |
</div>
|
| 934 |
</div>
|
| 935 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 936 |
<div class="card">
|
| 937 |
<div class="card-header">
|
| 938 |
<i class="fas fa-sliders-h"></i>
|
| 939 |
-
<div class="card-title">Voice Swap Settings</div>
|
| 940 |
</div>
|
| 941 |
<div class="toggle-container">
|
| 942 |
<div class="toggle-label">
|
|
@@ -1009,10 +1424,25 @@
|
|
| 1009 |
</label>
|
| 1010 |
</div>
|
| 1011 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1012 |
<div class="action-buttons">
|
| 1013 |
-
<button class="btn btn-large btn-full" id="swapButton">
|
| 1014 |
<i class="fas fa-exchange-alt"></i>
|
| 1015 |
-
|
| 1016 |
</button>
|
| 1017 |
</div>
|
| 1018 |
</div>
|
|
@@ -1023,365 +1453,4 @@
|
|
| 1023 |
<i class="fas fa-magic"></i>
|
| 1024 |
<span>TikTok Effects</span>
|
| 1025 |
<span class="trending-badge">
|
| 1026 |
-
<i class="fas fa-fire"></i>
|
| 1027 |
-
Trending
|
| 1028 |
-
</span>
|
| 1029 |
-
</div>
|
| 1030 |
-
<div class="effects-grid">
|
| 1031 |
-
<div class="effect-item" data-effect="autotune">
|
| 1032 |
-
<div class="effect-preview">
|
| 1033 |
-
<i class="fas fa-music"></i>
|
| 1034 |
-
</div>
|
| 1035 |
-
<div class="effect-name">Auto-Tune</div>
|
| 1036 |
-
<div class="effect-badge">Pro</div>
|
| 1037 |
-
</div>
|
| 1038 |
-
<div class="effect-item" data-effect="reverb">
|
| 1039 |
-
<div class="effect-preview">
|
| 1040 |
-
<i class="fas fa-wave-square"></i>
|
| 1041 |
-
</div>
|
| 1042 |
-
<div class="effect-name">Reverb</div>
|
| 1043 |
-
</div>
|
| 1044 |
-
<div class="effect-item" data-effect="chorus">
|
| 1045 |
-
<div class="effect-preview">
|
| 1046 |
-
<i class="fas fa-users"></i>
|
| 1047 |
-
</div>
|
| 1048 |
-
<div class="effect-name">Chorus</div>
|
| 1049 |
-
</div>
|
| 1050 |
-
<div class="effect-item" data-effect="echo">
|
| 1051 |
-
<div class="effect-preview">
|
| 1052 |
-
<i class="fas fa-redo"></i>
|
| 1053 |
-
</div>
|
| 1054 |
-
<div class="effect-name">Echo</div>
|
| 1055 |
-
<div class="effect-badge">New</div>
|
| 1056 |
-
</div>
|
| 1057 |
-
<div class="effect-item" data-effect="pitch">
|
| 1058 |
-
<div class="effect-preview">
|
| 1059 |
-
<i class="fas fa-sliders-h"></i>
|
| 1060 |
-
</div>
|
| 1061 |
-
<div class="effect-name">Pitch Shift</div>
|
| 1062 |
-
</div>
|
| 1063 |
-
<div class="effect-item selected" data-effect="none">
|
| 1064 |
-
<div class="effect-preview">
|
| 1065 |
-
<i class="fas fa-times"></i>
|
| 1066 |
-
</div>
|
| 1067 |
-
<div class="effect-name">No Effect</div>
|
| 1068 |
-
</div>
|
| 1069 |
-
<div class="effect-item" data-effect="vibrato">
|
| 1070 |
-
<div class="effect-preview">
|
| 1071 |
-
<i class="fas fa-waveform"></i>
|
| 1072 |
-
</div>
|
| 1073 |
-
<div class="effect-name">Vibrato</div>
|
| 1074 |
-
</div>
|
| 1075 |
-
<div class="effect-item" data-effect="distortion">
|
| 1076 |
-
<div class="effect-preview">
|
| 1077 |
-
<i class="fas fa-volume-up"></i>
|
| 1078 |
-
</div>
|
| 1079 |
-
<div class="effect-name">Distortion</div>
|
| 1080 |
-
<div class="effect-badge">Hot</div>
|
| 1081 |
-
</div>
|
| 1082 |
-
</div>
|
| 1083 |
-
<div class="effect-controls" id="effectControls">
|
| 1084 |
-
</div>
|
| 1085 |
-
</div>
|
| 1086 |
-
</div>
|
| 1087 |
-
|
| 1088 |
-
<div class="effects-preview-container" id="effectsPreviewContainer">
|
| 1089 |
-
<div class="preview-title">
|
| 1090 |
-
<i class="fas fa-headphones"></i>
|
| 1091 |
-
<span>Effect Preview</span>
|
| 1092 |
-
</div>
|
| 1093 |
-
<audio controls class="preview-audio" id="effectPreview"></audio>
|
| 1094 |
-
</div>
|
| 1095 |
-
|
| 1096 |
-
<div class="audio-mixer" id="audioMixer">
|
| 1097 |
-
<div class="mixer-title">
|
| 1098 |
-
<i class="fas fa-sliders-h"></i>
|
| 1099 |
-
<span>Audio Mixer</span>
|
| 1100 |
-
<span class="feature-badge">
|
| 1101 |
-
<i class="fas fa-star"></i>
|
| 1102 |
-
New
|
| 1103 |
-
</span>
|
| 1104 |
-
</div>
|
| 1105 |
-
<div class="mixer-controls">
|
| 1106 |
-
<div class="mixer-control">
|
| 1107 |
-
<div class="mixer-label">Original Vocals</div>
|
| 1108 |
-
<input type="range" min="0" max="100" value="0" class="mixer-slider" id="originalSlider">
|
| 1109 |
-
<div class="mixer-value" id="originalValue">0%</div>
|
| 1110 |
-
</div>
|
| 1111 |
-
<div class="mixer-control">
|
| 1112 |
-
<div class="mixer-label">Your Voice</div>
|
| 1113 |
-
<input type="range" min="0" max="100" value="100" class="mixer-slider" id="voiceSlider">
|
| 1114 |
-
<div class="mixer-value" id="voiceValue">100%</div>
|
| 1115 |
-
</div>
|
| 1116 |
-
<div class="mixer-control">
|
| 1117 |
-
<div class="mixer-label">Background Audio</div>
|
| 1118 |
-
<input type="range" min="0" max="100" value="0" class="mixer-slider" id="backgroundSlider">
|
| 1119 |
-
<div class="mixer-value" id="backgroundValue">0%</div>
|
| 1120 |
-
</div>
|
| 1121 |
-
</div>
|
| 1122 |
-
</div>
|
| 1123 |
-
|
| 1124 |
-
<div class="progress-container" id="progressContainer">
|
| 1125 |
-
<div class="progress-bar">
|
| 1126 |
-
<div class="progress-fill" id="progressFill"></div>
|
| 1127 |
-
</div>
|
| 1128 |
-
<div class="progress-text">
|
| 1129 |
-
<span>Processing...</span>
|
| 1130 |
-
<span id="progressPercent">0%</span>
|
| 1131 |
-
</div>
|
| 1132 |
-
</div>
|
| 1133 |
-
|
| 1134 |
-
<div class="processing-container" id="processingContainer">
|
| 1135 |
-
<div class="spinner"></div>
|
| 1136 |
-
<div class="processing-text">Analyzing and replacing vocals...</div>
|
| 1137 |
-
<p>This may take a few minutes depending on the length of the audio files.</p>
|
| 1138 |
-
</div>
|
| 1139 |
-
|
| 1140 |
-
<div class="result-container" id="resultContainer">
|
| 1141 |
-
<div class="result-icon">
|
| 1142 |
-
<i class="fas fa-check-circle"></i>
|
| 1143 |
-
</div>
|
| 1144 |
-
<div class="result-text">Your voice has been successfully swapped into the song!</div>
|
| 1145 |
-
<div class="preview-container">
|
| 1146 |
-
<div class="preview-title">
|
| 1147 |
-
<i class="fas fa-headphones"></i>
|
| 1148 |
-
<span>Your Custom Song</span>
|
| 1149 |
-
</div>
|
| 1150 |
-
<audio controls class="preview-audio" id="resultPreview"></audio>
|
| 1151 |
-
</div>
|
| 1152 |
-
<div class="action-buttons">
|
| 1153 |
-
<button class="btn btn-success" id="downloadButton">
|
| 1154 |
-
<i class="fas fa-download"></i>
|
| 1155 |
-
Download
|
| 1156 |
-
</button>
|
| 1157 |
-
<button class="btn btn-secondary" id="newSwapButton">
|
| 1158 |
-
<i class="fas fa-redo"></i>
|
| 1159 |
-
Create Another
|
| 1160 |
-
</button>
|
| 1161 |
-
</div>
|
| 1162 |
-
</div>
|
| 1163 |
-
|
| 1164 |
-
<div class="instructions">
|
| 1165 |
-
<div class="instructions-title">
|
| 1166 |
-
<i class="fas fa-lightbulb"></i>
|
| 1167 |
-
<span>How to Get the Best Results</span>
|
| 1168 |
-
</div>
|
| 1169 |
-
<ul class="instructions-list">
|
| 1170 |
-
<li>Use a clean recording of your voice with minimal background noise</li>
|
| 1171 |
-
<li>Ensure your voice recording matches the tempo and key of the original song</li>
|
| 1172 |
-
<li>For best results, record your voice in a quiet environment with a good microphone</li>
|
| 1173 |
-
<li>The original song should have clear, isolated vocals for optimal voice replacement</li>
|
| 1174 |
-
<li>Add background audio to create richer, more professional-sounding mixes</li>
|
| 1175 |
-
<li>Use offline mode when internet connection is unstable or for privacy concerns</li>
|
| 1176 |
-
<li>Experiment with TikTok effects to make your track stand out</li>
|
| 1177 |
-
<li>Try different effect combinations to find your unique sound</li>
|
| 1178 |
-
</ul>
|
| 1179 |
-
</div>
|
| 1180 |
-
|
| 1181 |
-
<footer>
|
| 1182 |
-
<p>VoiceSwap Pro - Transform any song with your own voice</p>
|
| 1183 |
-
<div class="footer-links">
|
| 1184 |
-
<a href="#">Privacy Policy</a>
|
| 1185 |
-
<a href="#">Terms of Service</a>
|
| 1186 |
-
<a href="#">Support</a>
|
| 1187 |
-
</div>
|
| 1188 |
-
</footer>
|
| 1189 |
-
</div>
|
| 1190 |
-
|
| 1191 |
-
<script>
|
| 1192 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 1193 |
-
// DOM Elements
|
| 1194 |
-
const songUploadArea = document.getElementById('songUploadArea');
|
| 1195 |
-
const songInput = document.getElementById('songInput');
|
| 1196 |
-
const songFileInfo = document.getElementById('songFileInfo');
|
| 1197 |
-
const songFileName = document.getElementById('songFileName');
|
| 1198 |
-
const songFileSize = document.getElementById('songFileSize');
|
| 1199 |
-
const songFileType = document.getElementById('songFileType');
|
| 1200 |
-
const songPreviewContainer = document.getElementById('songPreviewContainer');
|
| 1201 |
-
const songPreview = document.getElementById('songPreview');
|
| 1202 |
-
|
| 1203 |
-
const voiceUploadArea = document.getElementById('voiceUploadArea');
|
| 1204 |
-
const voiceInput = document.getElementById('voiceInput');
|
| 1205 |
-
const voiceFileInfo = document.getElementById('voiceFileInfo');
|
| 1206 |
-
const voiceFileName = document.getElementById('voiceFileName');
|
| 1207 |
-
const voiceFileSize = document.getElementById('voiceFileSize');
|
| 1208 |
-
const voiceFileType = document.getElementById('voiceFileType');
|
| 1209 |
-
const voicePreviewContainer = document.getElementById('voicePreviewContainer');
|
| 1210 |
-
const voicePreview = document.getElementById('voicePreview');
|
| 1211 |
-
|
| 1212 |
-
const backgroundToggle = document.getElementById('backgroundToggle');
|
| 1213 |
-
const backgroundAudioContainer = document.getElementById('backgroundAudioContainer');
|
| 1214 |
-
const backgroundUploadArea = document.getElementById('backgroundUploadArea');
|
| 1215 |
-
const backgroundInput = document.getElementById('backgroundInput');
|
| 1216 |
-
const backgroundFileInfo = document.getElementById('backgroundFileInfo');
|
| 1217 |
-
const backgroundFileName = document.getElementById('backgroundFileName');
|
| 1218 |
-
const backgroundFileSize = document.getElementById('backgroundFileSize');
|
| 1219 |
-
const backgroundFileType = document.getElementById('backgroundFileType');
|
| 1220 |
-
const backgroundPreviewContainer = document.getElementById('backgroundPreviewContainer');
|
| 1221 |
-
const backgroundPreview = document.getElementById('backgroundPreview');
|
| 1222 |
-
|
| 1223 |
-
const offlineToggle = document.getElementById('offlineToggle');
|
| 1224 |
-
const modeStatus = document.getElementById('modeStatus');
|
| 1225 |
-
const onlineIndicator = document.getElementById('onlineIndicator');
|
| 1226 |
-
const storageStatus = document.getElementById('storageStatus');
|
| 1227 |
-
|
| 1228 |
-
const swapButton = document.getElementById('swapButton');
|
| 1229 |
-
const newSwapButton = document.getElementById('newSwapButton');
|
| 1230 |
-
const downloadButton = document.getElementById('downloadButton');
|
| 1231 |
-
const progressContainer = document.getElementById('progressContainer');
|
| 1232 |
-
const progressFill = document.getElementById('progressFill');
|
| 1233 |
-
const progressPercent = document.getElementById('progressPercent');
|
| 1234 |
-
const processingContainer = document.getElementById('processingContainer');
|
| 1235 |
-
const resultContainer = document.getElementById('resultContainer');
|
| 1236 |
-
const resultPreview = document.getElementById('resultPreview');
|
| 1237 |
-
|
| 1238 |
-
const qualityOptions = document.querySelectorAll('.quality-option');
|
| 1239 |
-
let selectedQuality = 'standard';
|
| 1240 |
-
|
| 1241 |
-
// TikTok Effects Elements
|
| 1242 |
-
const effectItems = document.querySelectorAll('.effect-item');
|
| 1243 |
-
let selectedEffect = 'none';
|
| 1244 |
-
const effectControls = document.getElementById('effectControls');
|
| 1245 |
-
const effectsPreviewContainer = document.getElementById('effectsPreviewContainer');
|
| 1246 |
-
const effectPreview = document.getElementById('effectPreview');
|
| 1247 |
-
|
| 1248 |
-
// Mixer elements
|
| 1249 |
-
const audioMixer = document.getElementById('audioMixer');
|
| 1250 |
-
const originalSlider = document.getElementById('originalSlider');
|
| 1251 |
-
const voiceSlider = document.getElementById('voiceSlider');
|
| 1252 |
-
const backgroundSlider = document.getElementById('backgroundSlider');
|
| 1253 |
-
const originalValue = document.getElementById('originalValue');
|
| 1254 |
-
const voiceValue = document.getElementById('voiceValue');
|
| 1255 |
-
const backgroundValue = document.getElementById('backgroundValue');
|
| 1256 |
-
|
| 1257 |
-
// Visualizer elements
|
| 1258 |
-
const songVisualizer = document.getElementById('songVisualizer');
|
| 1259 |
-
const voiceVisualizer = document.getElementById('voiceVisualizer');
|
| 1260 |
-
const backgroundVisualizer = document.getElementById('backgroundVisualizer');
|
| 1261 |
-
|
| 1262 |
-
// Event Listeners for Upload Areas
|
| 1263 |
-
songUploadArea.addEventListener('click', () => songInput.click());
|
| 1264 |
-
voiceUploadArea.addEventListener('click', () => voiceInput.click());
|
| 1265 |
-
backgroundUploadArea.addEventListener('click', () => backgroundInput.click());
|
| 1266 |
-
|
| 1267 |
-
songInput.addEventListener('change', handleFileUpload);
|
| 1268 |
-
voiceInput.addEventListener('change', handleFileUpload);
|
| 1269 |
-
backgroundInput.addEventListener('change', handleFileUpload);
|
| 1270 |
-
|
| 1271 |
-
// Background audio toggle
|
| 1272 |
-
backgroundToggle.addEventListener('change', function() {
|
| 1273 |
-
if (this.checked) {
|
| 1274 |
-
backgroundAudioContainer.classList.add('active');
|
| 1275 |
-
} else {
|
| 1276 |
-
backgroundAudioContainer.classList.remove('active');
|
| 1277 |
-
backgroundFileInfo.classList.remove('active');
|
| 1278 |
-
backgroundPreviewContainer.style.display = 'none';
|
| 1279 |
-
backgroundInput.value = '';
|
| 1280 |
-
}
|
| 1281 |
-
checkReadyToSwap();
|
| 1282 |
-
});
|
| 1283 |
-
|
| 1284 |
-
// Offline mode toggle
|
| 1285 |
-
offlineToggle.addEventListener('change', function() {
|
| 1286 |
-
if (this.checked) {
|
| 1287 |
-
modeStatus.textContent = 'Offline';
|
| 1288 |
-
onlineIndicator.innerHTML = '<i class="fas fa-wifi-slash"></i> Offline';
|
| 1289 |
-
onlineIndicator.className = 'offline-indicator';
|
| 1290 |
-
checkStorage();
|
| 1291 |
-
} else {
|
| 1292 |
-
modeStatus.textContent = 'Online';
|
| 1293 |
-
onlineIndicator.innerHTML = '<i class="fas fa-wifi"></i> Online';
|
| 1294 |
-
onlineIndicator.className = 'online-indicator';
|
| 1295 |
-
storageStatus.textContent = 'Available';
|
| 1296 |
-
}
|
| 1297 |
-
});
|
| 1298 |
-
|
| 1299 |
-
// Quality Selection
|
| 1300 |
-
qualityOptions.forEach(option => {
|
| 1301 |
-
option.addEventListener('click', function() {
|
| 1302 |
-
qualityOptions.forEach(opt => opt.classList.remove('selected'));
|
| 1303 |
-
this.classList.add('selected');
|
| 1304 |
-
selectedQuality = this.getAttribute('data-quality');
|
| 1305 |
-
});
|
| 1306 |
-
});
|
| 1307 |
-
|
| 1308 |
-
// Effect Selection
|
| 1309 |
-
effectItems.forEach(item => {
|
| 1310 |
-
item.addEventListener('click', function() {
|
| 1311 |
-
effectItems.forEach(effect => effect.classList.remove('selected'));
|
| 1312 |
-
this.classList.add('selected');
|
| 1313 |
-
selectedEffect = this.getAttribute('data-effect');
|
| 1314 |
-
|
| 1315 |
-
updateEffectControls();
|
| 1316 |
-
if (selectedEffect !== 'none') {
|
| 1317 |
-
effectsPreviewContainer.classList.add('active');
|
| 1318 |
-
// In a real app, you would apply the effect to the preview
|
| 1319 |
-
// For this demo, we'll just show a message
|
| 1320 |
-
effectPreview.src = '';
|
| 1321 |
-
} else {
|
| 1322 |
-
effectsPreviewContainer.classList.remove('active');
|
| 1323 |
-
}
|
| 1324 |
-
});
|
| 1325 |
-
});
|
| 1326 |
-
|
| 1327 |
-
// Swap Button
|
| 1328 |
-
swapButton.addEventListener('click', startVoiceSwap);
|
| 1329 |
-
|
| 1330 |
-
// New Swap Button
|
| 1331 |
-
newSwapButton.addEventListener('click', resetApp);
|
| 1332 |
-
|
| 1333 |
-
// Download Button
|
| 1334 |
-
downloadButton.addEventListener('click', function() {
|
| 1335 |
-
alert('Downloading your custom song! In a real application, this would trigger the actual download.');
|
| 1336 |
-
// In a real app, you would trigger the download of the processed audio file
|
| 1337 |
-
});
|
| 1338 |
-
|
| 1339 |
-
// Mixer sliders
|
| 1340 |
-
originalSlider.addEventListener('input', function() {
|
| 1341 |
-
originalValue.textContent = this.value + '%';
|
| 1342 |
-
});
|
| 1343 |
-
|
| 1344 |
-
voiceSlider.addEventListener('input', function() {
|
| 1345 |
-
voiceValue.textContent = this.value + '%';
|
| 1346 |
-
});
|
| 1347 |
-
|
| 1348 |
-
backgroundSlider.addEventListener('input', function() {
|
| 1349 |
-
backgroundValue.textContent = this.value + '%';
|
| 1350 |
-
});
|
| 1351 |
-
|
| 1352 |
-
// Drag and Drop functionality
|
| 1353 |
-
[songUploadArea, voiceUploadArea, backgroundUploadArea].forEach(area => {
|
| 1354 |
-
area.addEventListener('dragover', function(e) {
|
| 1355 |
-
e.preventDefault();
|
| 1356 |
-
this.classList.add('active');
|
| 1357 |
-
});
|
| 1358 |
-
|
| 1359 |
-
area.addEventListener('dragleave', function() {
|
| 1360 |
-
this.classList.remove('active');
|
| 1361 |
-
});
|
| 1362 |
-
|
| 1363 |
-
area.addEventListener('drop', function(e) {
|
| 1364 |
-
e.preventDefault();
|
| 1365 |
-
this.classList.remove('active');
|
| 1366 |
-
|
| 1367 |
-
const files = e.dataTransfer.files;
|
| 1368 |
-
if (files.length > 0) {
|
| 1369 |
-
let type;
|
| 1370 |
-
if (this.id === 'songUploadArea') {
|
| 1371 |
-
type = 'song';
|
| 1372 |
-
} else if (this.id === 'voiceUploadArea') {
|
| 1373 |
-
type = 'voice';
|
| 1374 |
-
} else {
|
| 1375 |
-
type = 'background';
|
| 1376 |
-
}
|
| 1377 |
-
handleFileSelect(files[0], type);
|
| 1378 |
-
}
|
| 1379 |
-
});
|
| 1380 |
-
});
|
| 1381 |
-
|
| 1382 |
-
// File Upload Handler
|
| 1383 |
-
function handleFileUpload(e) {
|
| 1384 |
-
const file = e.target.files[0];
|
| 1385 |
-
let type;
|
| 1386 |
-
if (e.target.id === 'songInput') {
|
| 1387 |
-
type =
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
| 23 |
--error: #ef4444;
|
| 24 |
--success: #10b981;
|
| 25 |
--warning: #f59e0b;
|
| 26 |
+
--mutation: #8b5cf6;
|
| 27 |
}
|
| 28 |
|
| 29 |
body {
|
|
|
|
| 251 |
}
|
| 252 |
|
| 253 |
@keyframes spin {
|
| 254 |
+
0% { transform: rotate(0deg); }
|
| 255 |
+
100% { transform: rotate(360deg); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
}
|
| 257 |
|
| 258 |
.processing-text {
|
|
|
|
| 326 |
background: #e5950c;
|
| 327 |
}
|
| 328 |
|
| 329 |
+
.btn-mutation {
|
| 330 |
+
background: var(--mutation);
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
.btn-mutation:hover {
|
| 334 |
+
background: #7c3aed;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
.btn-large {
|
| 338 |
padding: 1rem 2rem;
|
| 339 |
font-size: 1.1rem;
|
|
|
|
| 511 |
border-radius: 50%;
|
| 512 |
}
|
| 513 |
|
| 514 |
+
input:checked + .toggle-slider {
|
| 515 |
background-color: var(--primary);
|
| 516 |
}
|
| 517 |
|
| 518 |
+
input:checked + .toggle-slider:before {
|
| 519 |
transform: translateX(26px);
|
| 520 |
}
|
| 521 |
|
|
|
|
| 839 |
.effects-preview-container.active {
|
| 840 |
display: block;
|
| 841 |
}
|
| 842 |
+
|
| 843 |
+
/* New Mutation Features */
|
| 844 |
+
.mutation-container {
|
| 845 |
+
margin-top: 2rem;
|
| 846 |
+
padding: 1.5rem;
|
| 847 |
+
background: rgba(30, 41, 59, 0.5);
|
| 848 |
+
border-radius: 0.75rem;
|
| 849 |
+
}
|
| 850 |
+
|
| 851 |
+
.mutation-title {
|
| 852 |
+
font-size: 1.2rem;
|
| 853 |
+
margin-bottom: 1.5rem;
|
| 854 |
+
display: flex;
|
| 855 |
+
align-items: center;
|
| 856 |
+
gap: 0.5rem;
|
| 857 |
+
}
|
| 858 |
+
|
| 859 |
+
.mutation-title i {
|
| 860 |
+
color: var(--mutation);
|
| 861 |
+
}
|
| 862 |
+
|
| 863 |
+
.mutation-options {
|
| 864 |
+
display: grid;
|
| 865 |
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
| 866 |
+
gap: 1rem;
|
| 867 |
+
}
|
| 868 |
+
|
| 869 |
+
.mutation-option {
|
| 870 |
+
background: rgba(30, 41, 59, 0.8);
|
| 871 |
+
border-radius: 0.75rem;
|
| 872 |
+
padding: 1.5rem;
|
| 873 |
+
text-align: center;
|
| 874 |
+
cursor: pointer;
|
| 875 |
+
transition: all 0.3s;
|
| 876 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 877 |
+
}
|
| 878 |
+
|
| 879 |
+
.mutation-option:hover {
|
| 880 |
+
transform: translateY(-5px);
|
| 881 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
| 882 |
+
border-color: var(--mutation);
|
| 883 |
+
}
|
| 884 |
+
|
| 885 |
+
.mutation-option.selected {
|
| 886 |
+
border-color: var(--mutation);
|
| 887 |
+
background: rgba(139, 92, 246, 0.1);
|
| 888 |
+
}
|
| 889 |
+
|
| 890 |
+
.mutation-icon {
|
| 891 |
+
font-size: 2.5rem;
|
| 892 |
+
margin-bottom: 1rem;
|
| 893 |
+
color: var(--mutation);
|
| 894 |
+
}
|
| 895 |
+
|
| 896 |
+
.mutation-name {
|
| 897 |
+
font-weight: 600;
|
| 898 |
+
font-size: 1.1rem;
|
| 899 |
+
margin-bottom: 0.5rem;
|
| 900 |
+
}
|
| 901 |
+
|
| 902 |
+
.mutation-desc {
|
| 903 |
+
color: var(--gray);
|
| 904 |
+
font-size: 0.9rem;
|
| 905 |
+
}
|
| 906 |
+
|
| 907 |
+
.mutation-controls {
|
| 908 |
+
display: flex;
|
| 909 |
+
flex-direction: column;
|
| 910 |
+
gap: 1rem;
|
| 911 |
+
margin-top: 1.5rem;
|
| 912 |
+
padding: 1rem;
|
| 913 |
+
background: rgba(30, 41, 59, 0.5);
|
| 914 |
+
border-radius: 0.5rem;
|
| 915 |
+
}
|
| 916 |
+
|
| 917 |
+
.mutation-control {
|
| 918 |
+
display: flex;
|
| 919 |
+
align-items: center;
|
| 920 |
+
justify-content: space-between;
|
| 921 |
+
}
|
| 922 |
+
|
| 923 |
+
.mutation-label {
|
| 924 |
+
font-weight: 600;
|
| 925 |
+
}
|
| 926 |
+
|
| 927 |
+
.mutation-slider {
|
| 928 |
+
width: 60%;
|
| 929 |
+
height: 8px;
|
| 930 |
+
border-radius: 4px;
|
| 931 |
+
background: rgba(255, 255, 255, 0.1);
|
| 932 |
+
outline: none;
|
| 933 |
+
-webkit-appearance: none;
|
| 934 |
+
}
|
| 935 |
+
|
| 936 |
+
.mutation-slider::-webkit-slider-thumb {
|
| 937 |
+
-webkit-appearance: none;
|
| 938 |
+
width: 20px;
|
| 939 |
+
height: 20px;
|
| 940 |
+
border-radius: 50%;
|
| 941 |
+
background: var(--mutation);
|
| 942 |
+
cursor: pointer;
|
| 943 |
+
}
|
| 944 |
+
|
| 945 |
+
.mutation-value {
|
| 946 |
+
width: 40px;
|
| 947 |
+
text-align: center;
|
| 948 |
+
font-weight: 600;
|
| 949 |
+
}
|
| 950 |
+
|
| 951 |
+
.mutation-badge {
|
| 952 |
+
display: inline-flex;
|
| 953 |
+
align-items: center;
|
| 954 |
+
gap: 0.5rem;
|
| 955 |
+
background: rgba(139, 92, 246, 0.2);
|
| 956 |
+
color: var(--mutation);
|
| 957 |
+
padding: 0.25rem 0.75rem;
|
| 958 |
+
border-radius: 9999px;
|
| 959 |
+
font-size: 0.75rem;
|
| 960 |
+
font-weight: 600;
|
| 961 |
+
margin-left: 0.5rem;
|
| 962 |
+
}
|
| 963 |
+
|
| 964 |
+
.voice-presets {
|
| 965 |
+
margin-top: 1.5rem;
|
| 966 |
+
padding: 1rem;
|
| 967 |
+
background: rgba(30, 41, 59, 0.5);
|
| 968 |
+
border-radius: 0.5rem;
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
.presets-title {
|
| 972 |
+
font-size: 1.1rem;
|
| 973 |
+
margin-bottom: 1rem;
|
| 974 |
+
display: flex;
|
| 975 |
+
align-items: center;
|
| 976 |
+
gap: 0.5rem;
|
| 977 |
+
}
|
| 978 |
+
|
| 979 |
+
.presets-title i {
|
| 980 |
+
color: var(--mutation);
|
| 981 |
+
}
|
| 982 |
+
|
| 983 |
+
.presets-grid {
|
| 984 |
+
display: grid;
|
| 985 |
+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
| 986 |
+
gap: 1rem;
|
| 987 |
+
}
|
| 988 |
+
|
| 989 |
+
.preset-item {
|
| 990 |
+
background: rgba(30, 41, 59, 0.8);
|
| 991 |
+
border-radius: 0.5rem;
|
| 992 |
+
padding: 1rem;
|
| 993 |
+
text-align: center;
|
| 994 |
+
cursor: pointer;
|
| 995 |
+
transition: all 0.3s;
|
| 996 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 997 |
+
}
|
| 998 |
+
|
| 999 |
+
.preset-item:hover {
|
| 1000 |
+
transform: translateY(-3px);
|
| 1001 |
+
border-color: var(--mutation);
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
.preset-item.selected {
|
| 1005 |
+
border-color: var(--mutation);
|
| 1006 |
+
background: rgba(139, 92, 246, 0.1);
|
| 1007 |
+
}
|
| 1008 |
+
|
| 1009 |
+
.preset-icon {
|
| 1010 |
+
font-size: 1.5rem;
|
| 1011 |
+
margin-bottom: 0.5rem;
|
| 1012 |
+
color: var(--mutation);
|
| 1013 |
+
}
|
| 1014 |
+
|
| 1015 |
+
.preset-name {
|
| 1016 |
+
font-weight: 600;
|
| 1017 |
+
font-size: 0.8rem;
|
| 1018 |
+
}
|
| 1019 |
+
|
| 1020 |
+
.ai-suggestions {
|
| 1021 |
+
margin-top: 2rem;
|
| 1022 |
+
padding: 1.5rem;
|
| 1023 |
+
background: rgba(30, 41, 59, 0.5);
|
| 1024 |
+
border-radius: 0.75rem;
|
| 1025 |
+
}
|
| 1026 |
+
|
| 1027 |
+
.suggestions-title {
|
| 1028 |
+
font-size: 1.2rem;
|
| 1029 |
+
margin-bottom: 1.5rem;
|
| 1030 |
+
display: flex;
|
| 1031 |
+
align-items: center;
|
| 1032 |
+
gap: 0.5rem;
|
| 1033 |
+
}
|
| 1034 |
+
|
| 1035 |
+
.suggestions-title i {
|
| 1036 |
+
color: var(--mutation);
|
| 1037 |
+
}
|
| 1038 |
+
|
| 1039 |
+
.suggestions-list {
|
| 1040 |
+
display: flex;
|
| 1041 |
+
flex-direction: column;
|
| 1042 |
+
gap: 1rem;
|
| 1043 |
+
}
|
| 1044 |
+
|
| 1045 |
+
.suggestion-item {
|
| 1046 |
+
display: flex;
|
| 1047 |
+
align-items: center;
|
| 1048 |
+
gap: 1rem;
|
| 1049 |
+
padding: 1rem;
|
| 1050 |
+
background: rgba(30, 41, 59, 0.8);
|
| 1051 |
+
border-radius: 0.5rem;
|
| 1052 |
+
cursor: pointer;
|
| 1053 |
+
transition: all 0.3s;
|
| 1054 |
+
}
|
| 1055 |
+
|
| 1056 |
+
.suggestion-item:hover {
|
| 1057 |
+
background: rgba(139, 92, 246, 0.1);
|
| 1058 |
+
}
|
| 1059 |
+
|
| 1060 |
+
.suggestion-icon {
|
| 1061 |
+
font-size: 1.5rem;
|
| 1062 |
+
color: var(--mutation);
|
| 1063 |
+
}
|
| 1064 |
+
|
| 1065 |
+
.suggestion-text {
|
| 1066 |
+
flex: 1;
|
| 1067 |
+
}
|
| 1068 |
+
|
| 1069 |
+
.suggestion-action {
|
| 1070 |
+
color: var(--primary);
|
| 1071 |
+
cursor: pointer;
|
| 1072 |
+
}
|
| 1073 |
+
|
| 1074 |
+
.suggestion-action:hover {
|
| 1075 |
+
color: var(--secondary);
|
| 1076 |
+
}
|
| 1077 |
+
|
| 1078 |
+
.collaboration-panel {
|
| 1079 |
+
margin-top: 2rem;
|
| 1080 |
+
padding: 1.5rem;
|
| 1081 |
+
background: rgba(30, 41, 59, 0.5);
|
| 1082 |
+
border-radius: 0.75rem;
|
| 1083 |
+
display: none;
|
| 1084 |
+
}
|
| 1085 |
+
|
| 1086 |
+
.collaboration-panel.active {
|
| 1087 |
+
display: block;
|
| 1088 |
+
}
|
| 1089 |
+
|
| 1090 |
+
.collaboration-title {
|
| 1091 |
+
font-size: 1.2rem;
|
| 1092 |
+
margin-bottom: 1.5rem;
|
| 1093 |
+
display: flex;
|
| 1094 |
+
align-items: center;
|
| 1095 |
+
gap: 0.5rem;
|
| 1096 |
+
}
|
| 1097 |
+
|
| 1098 |
+
.collaboration-title i {
|
| 1099 |
+
color: var(--mutation);
|
| 1100 |
+
}
|
| 1101 |
+
|
| 1102 |
+
.collaboration-users {
|
| 1103 |
+
display: flex;
|
| 1104 |
+
flex-wrap: wrap;
|
| 1105 |
+
gap: 1rem;
|
| 1106 |
+
margin-bottom: 1.5rem;
|
| 1107 |
+
}
|
| 1108 |
+
|
| 1109 |
+
.user-item {
|
| 1110 |
+
display: flex;
|
| 1111 |
+
align-items: center;
|
| 1112 |
+
gap: 0.5rem;
|
| 1113 |
+
padding: 0.5rem 1rem;
|
| 1114 |
+
background: rgba(30, 41, 59, 0.8);
|
| 1115 |
+
border-radius: 0.5rem;
|
| 1116 |
+
}
|
| 1117 |
+
|
| 1118 |
+
.user-avatar {
|
| 1119 |
+
width: 40px;
|
| 1120 |
+
height: 40px;
|
| 1121 |
+
border-radius: 50%;
|
| 1122 |
+
background: var(--mutation);
|
| 1123 |
+
display: flex;
|
| 1124 |
+
align-items: center;
|
| 1125 |
+
justify-content: center;
|
| 1126 |
+
color: white;
|
| 1127 |
+
font-weight: 600;
|
| 1128 |
+
}
|
| 1129 |
+
|
| 1130 |
+
.user-name {
|
| 1131 |
+
font-weight: 600;
|
| 1132 |
+
}
|
| 1133 |
+
|
| 1134 |
+
.collaboration-controls {
|
| 1135 |
+
display: flex;
|
| 1136 |
+
gap: 1rem;
|
| 1137 |
+
}
|
| 1138 |
</style>
|
| 1139 |
</head>
|
|
|
|
| 1140 |
<body>
|
| 1141 |
<div class="container">
|
| 1142 |
<header>
|
|
|
|
| 1144 |
<i class="fas fa-microphone-alt"></i>
|
| 1145 |
<span>VoiceSwap Pro</span>
|
| 1146 |
</div>
|
| 1147 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a>
|
|
|
|
| 1148 |
</header>
|
| 1149 |
|
| 1150 |
+
<h1>VoiceSwap Pro - Advanced Vocal Mutation</h1>
|
| 1151 |
+
<p class="subtitle">Transform any song with your voice using AI-powered mutation effects and TikTok-style enhancements</p>
|
|
|
|
| 1152 |
|
| 1153 |
<div class="status-bar">
|
| 1154 |
<div class="status-item">
|
|
|
|
| 1165 |
<span>Storage:</span>
|
| 1166 |
<span id="storageStatus">Available</span>
|
| 1167 |
</div>
|
| 1168 |
+
<div class="status-item">
|
| 1169 |
+
<i class="fas fa-brain status-icon"></i>
|
| 1170 |
+
<span>AI:</span>
|
| 1171 |
+
<span id="aiStatus">Active</span>
|
| 1172 |
+
</div>
|
| 1173 |
</div>
|
| 1174 |
|
| 1175 |
<div class="app-container">
|
|
|
|
| 1234 |
</div>
|
| 1235 |
</div>
|
| 1236 |
|
| 1237 |
+
<!-- Voice Mutation Section -->
|
| 1238 |
+
<div class="mutation-container">
|
| 1239 |
+
<div class="mutation-title">
|
| 1240 |
+
<i class="fas fa-dna"></i>
|
| 1241 |
+
<span>Voice Mutation Engine</span>
|
| 1242 |
+
<span class="mutation-badge">
|
| 1243 |
+
<i class="fas fa-rocket"></i>
|
| 1244 |
+
AI-Powered
|
| 1245 |
+
</span>
|
| 1246 |
+
</div>
|
| 1247 |
+
<div class="mutation-options">
|
| 1248 |
+
<div class="mutation-option selected" data-mutation="realistic">
|
| 1249 |
+
<div class="mutation-icon">
|
| 1250 |
+
<i class="fas fa-user-check"></i>
|
| 1251 |
+
</div>
|
| 1252 |
+
<div class="mutation-name">Realistic Blend</div>
|
| 1253 |
+
<div class="mutation-desc">Natural voice integration</div>
|
| 1254 |
+
</div>
|
| 1255 |
+
<div class="mutation-option" data-mutation="ai-enhanced">
|
| 1256 |
+
<div class="mutation-icon">
|
| 1257 |
+
<i class="fas fa-robot"></i>
|
| 1258 |
+
</div>
|
| 1259 |
+
<div class="mutation-name">AI-Enhanced</div>
|
| 1260 |
+
<div class="mutation-desc">Smart vocal enhancement</div>
|
| 1261 |
+
</div>
|
| 1262 |
+
<div class="mutation-option" data-mutation="character">
|
| 1263 |
+
<div class="mutation-icon">
|
| 1264 |
+
<i class="fas fa-theater-masks"></i>
|
| 1265 |
+
</div>
|
| 1266 |
+
<div class="mutation-name">Character Voice</div>
|
| 1267 |
+
<div class="mutation-desc">Transform into characters</div>
|
| 1268 |
+
</div>
|
| 1269 |
+
<div class="mutation-option" data-mutation="hybrid">
|
| 1270 |
+
<div class="mutation-icon">
|
| 1271 |
+
<i class="fas fa-merge"></i>
|
| 1272 |
+
</div>
|
| 1273 |
+
<div class="mutation-name">Hybrid Voice</div>
|
| 1274 |
+
<div class="mutation-desc">Combine multiple voices</div>
|
| 1275 |
+
</div>
|
| 1276 |
+
</div>
|
| 1277 |
+
<div class="mutation-controls" id="mutationControls">
|
| 1278 |
+
<div class="mutation-control">
|
| 1279 |
+
<div class="mutation-label">Mutation Intensity</div>
|
| 1280 |
+
<input type="range" min="0" max="100" value="25" class="mutation-slider" id="intensitySlider">
|
| 1281 |
+
<div class="mutation-value" id="intensityValue">25%</div>
|
| 1282 |
+
</div>
|
| 1283 |
+
<div class="mutation-control">
|
| 1284 |
+
<div class="mutation-label">Pitch Variation</div>
|
| 1285 |
+
<input type="range" min="-12" max="12" value="0" class="mutation-slider" id="pitchSlider">
|
| 1286 |
+
<div class="mutation-value" id="pitchValue">0</div>
|
| 1287 |
+
</div>
|
| 1288 |
+
</div>
|
| 1289 |
+
</div>
|
| 1290 |
+
|
| 1291 |
+
<!-- Voice Presets -->
|
| 1292 |
+
<div class="voice-presets">
|
| 1293 |
+
<div class="presets-title">
|
| 1294 |
+
<i class="fas fa-sliders-h"></i>
|
| 1295 |
+
<span>Voice Presets</span>
|
| 1296 |
+
<span class="feature-badge">
|
| 1297 |
+
<i class="fas fa-bolt"></i>
|
| 1298 |
+
Quick Apply
|
| 1299 |
+
</span>
|
| 1300 |
+
</div>
|
| 1301 |
+
<div class="presets-grid">
|
| 1302 |
+
<div class="preset-item" data-preset="male-deep">
|
| 1303 |
+
<div class="preset-icon">
|
| 1304 |
+
<i class="fas fa-user-tie"></i>
|
| 1305 |
+
</div>
|
| 1306 |
+
<div class="preset-name">Deep Male</div>
|
| 1307 |
+
</div>
|
| 1308 |
+
<div class="preset-item" data-preset="female-soprano">
|
| 1309 |
+
<div class="preset-icon">
|
| 1310 |
+
<i class="fas fa-user-crown"></i>
|
| 1311 |
+
</div>
|
| 1312 |
+
<div class="preset-name">Soprano</div>
|
| 1313 |
+
</div>
|
| 1314 |
+
<div class="preset-item" data-preset="robot">
|
| 1315 |
+
<div class="preset-icon">
|
| 1316 |
+
<i class="fas fa-robot"></i>
|
| 1317 |
+
</div>
|
| 1318 |
+
<div class="preset-name">Robot</div>
|
| 1319 |
+
</div>
|
| 1320 |
+
<div class="preset-item" data-preset="chipmunk">
|
| 1321 |
+
<div class="preset-icon">
|
| 1322 |
+
<i class="fas fa-squirrel"></i>
|
| 1323 |
+
</div>
|
| 1324 |
+
<div class="preset-item" data-preset="demon">
|
| 1325 |
+
<div class="preset-icon">
|
| 1326 |
+
<i class="fas fa-fire"></i>
|
| 1327 |
+
</div>
|
| 1328 |
+
<div class="preset-name">Demon</div>
|
| 1329 |
+
</div>
|
| 1330 |
+
<div class="preset-item selected" data-preset="natural">
|
| 1331 |
+
<div class="preset-icon">
|
| 1332 |
+
<i class="fas fa-user"></i>
|
| 1333 |
+
</div>
|
| 1334 |
+
<div class="preset-name">Natural</div>
|
| 1335 |
+
</div>
|
| 1336 |
+
<div class="preset-item" data-preset="alien">
|
| 1337 |
+
<div class="preset-icon">
|
| 1338 |
+
<i class="fas fa-user-astronaut"></i>
|
| 1339 |
+
</div>
|
| 1340 |
+
<div class="preset-name">Alien</div>
|
| 1341 |
+
</div>
|
| 1342 |
+
<div class="preset-item" data-preset="child">
|
| 1343 |
+
<div class="preset-icon">
|
| 1344 |
+
<i class="fas fa-child"></i>
|
| 1345 |
+
</div>
|
| 1346 |
+
<div class="preset-name">Child</div>
|
| 1347 |
+
</div>
|
| 1348 |
+
</div>
|
| 1349 |
+
</div>
|
| 1350 |
+
|
| 1351 |
<div class="card">
|
| 1352 |
<div class="card-header">
|
| 1353 |
<i class="fas fa-sliders-h"></i>
|
| 1354 |
+
<div class="card-title">Advanced Voice Swap Settings</div>
|
| 1355 |
</div>
|
| 1356 |
<div class="toggle-container">
|
| 1357 |
<div class="toggle-label">
|
|
|
|
| 1424 |
</label>
|
| 1425 |
</div>
|
| 1426 |
|
| 1427 |
+
<div class="toggle-container">
|
| 1428 |
+
<div class="toggle-label">
|
| 1429 |
+
<i class="fas fa-brain"></i>
|
| 1430 |
+
Enable AI Suggestions
|
| 1431 |
+
<span class="mutation-badge">
|
| 1432 |
+
<i class="fas fa-magic"></i>
|
| 1433 |
+
Smart
|
| 1434 |
+
</span>
|
| 1435 |
+
</div>
|
| 1436 |
+
<label class="toggle-switch">
|
| 1437 |
+
<input type="checkbox" id="aiToggle" checked>
|
| 1438 |
+
<span class="toggle-slider"></span>
|
| 1439 |
+
</label>
|
| 1440 |
+
</div>
|
| 1441 |
+
|
| 1442 |
<div class="action-buttons">
|
| 1443 |
+
<button class="btn btn-large btn-full btn-mutation" id="swapButton">
|
| 1444 |
<i class="fas fa-exchange-alt"></i>
|
| 1445 |
+
Advanced Voice Swap
|
| 1446 |
</button>
|
| 1447 |
</div>
|
| 1448 |
</div>
|
|
|
|
| 1453 |
<i class="fas fa-magic"></i>
|
| 1454 |
<span>TikTok Effects</span>
|
| 1455 |
<span class="trending-badge">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