benjamin-paine
commited on
Commit
·
ed37172
1
Parent(s):
2156601
fix bug
Browse files- www/index.js +1 -1
www/index.js
CHANGED
@@ -162,7 +162,7 @@ const setVoiceIndex = (newIndex) => {
|
|
162 |
voiceIndex = newIndex;
|
163 |
}
|
164 |
};
|
165 |
-
setVoiceIndex(Math.
|
166 |
voiceIdWheel.addEventListener("click", () => {
|
167 |
let newVoiceIndex = voiceIndex + parseInt(voiceIdWheel.value);
|
168 |
if (newVoiceIndex < 0) newVoiceIndex = voiceIds.length - 1;
|
|
|
162 |
voiceIndex = newIndex;
|
163 |
}
|
164 |
};
|
165 |
+
setVoiceIndex(Math.floor(Math.random() * voiceIds.length));
|
166 |
voiceIdWheel.addEventListener("click", () => {
|
167 |
let newVoiceIndex = voiceIndex + parseInt(voiceIdWheel.value);
|
168 |
if (newVoiceIndex < 0) newVoiceIndex = voiceIds.length - 1;
|