88 lines
3.1 KiB
HTML
88 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Chatterbox TTS Frontend</title>
|
|
<link rel="stylesheet" href="css/style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Chatterbox TTS</h1>
|
|
</header>
|
|
|
|
<main>
|
|
<section id="speaker-management">
|
|
<h2>Speaker Management</h2>
|
|
<div id="speaker-list-container">
|
|
<h3>Available Speakers</h3>
|
|
<ul id="speaker-list">
|
|
<!-- Speakers will be populated here by JavaScript -->
|
|
</ul>
|
|
</div>
|
|
<div id="add-speaker-container">
|
|
<h3>Add New Speaker</h3>
|
|
<form id="add-speaker-form">
|
|
<div>
|
|
<label for="speaker-name">Speaker Name:</label>
|
|
<input type="text" id="speaker-name" name="name" required>
|
|
</div>
|
|
<div>
|
|
<label for="speaker-sample">Audio Sample (WAV or MP3):</label>
|
|
<input type="file" id="speaker-sample" name="audio_file" accept=".wav,.mp3" required>
|
|
</div>
|
|
<button type="submit">Add Speaker</button>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<hr>
|
|
|
|
<section id="dialog-editor">
|
|
<h2>Dialog Editor</h2>
|
|
<div id="dialog-items-container">
|
|
<!-- Dialog items will be added here by JavaScript -->
|
|
</div>
|
|
<div id="temp-input-area">
|
|
<!-- Temporary inputs for speech/silence will go here -->
|
|
</div>
|
|
<div class="dialog-controls">
|
|
<button id="add-speech-line-btn">Add Speech Line</button>
|
|
<button id="add-silence-line-btn">Add Silence Line</button>
|
|
</div>
|
|
<div class="dialog-controls">
|
|
<label for="output-base-name">Output Base Name:</label>
|
|
<input type="text" id="output-base-name" name="output-base-name" value="dialog_output" required>
|
|
</div>
|
|
<button id="generate-dialog-btn">Generate Dialog</button>
|
|
</section>
|
|
|
|
<hr>
|
|
|
|
<section id="results-display">
|
|
<h2>Results</h2>
|
|
<div>
|
|
<h3>Log:</h3>
|
|
<pre id="generation-log-content">(Generation log will appear here)</pre>
|
|
</div>
|
|
<div>
|
|
<h3>Concatenated Audio:</h3>
|
|
<audio id="concatenated-audio-player" controls src=""></audio>
|
|
</div>
|
|
<div>
|
|
<h3>Download Archive:</h3>
|
|
<a id="zip-archive-link" href="#" download style="display: none;">Download ZIP</a>
|
|
<p id="zip-archive-placeholder">(ZIP download link will appear here)</p>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<p>© 2024 Chatterbox TTS</p>
|
|
</footer>
|
|
|
|
<script src="js/api.js" type="module"></script>
|
|
<script src="js/app.js" type="module" defer></script>
|
|
</body>
|
|
</html>
|