We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec1dd54 + d35a9ce commit 717c4e0Copy full SHA for 717c4e0
1 file changed
ButtonHandler.js
@@ -159,7 +159,10 @@ export class ButtonHandler {
159
// Set estimated chunks based on text length
160
this.audioDiskSaver.setTotalChunks(text.length / 100); // rough estimate based on chunk size
161
updateProgress(0, "Processing audio for saving...");
162
- this.worker.postMessage({ type: "generate", text: text, voice: "af" });
+
163
+ // Get the selected voice
164
+ const selectedVoice = document.getElementById("voiceSelector").value;
165
+ this.worker.postMessage({ type: "generate", text: text, voice: selectedVoice });
166
} catch (error) {
167
console.error("Error initializing disk save:", error);
168
updateProgress(100, "Error initializing file save!");
0 commit comments