benjamin-paine commited on
Commit
ed37172
·
1 Parent(s): 2156601
Files changed (1) hide show
  1. www/index.js +1 -1
www/index.js CHANGED
@@ -162,7 +162,7 @@ const setVoiceIndex = (newIndex) => {
162
  voiceIndex = newIndex;
163
  }
164
  };
165
- setVoiceIndex(Math.round(Math.random() * voiceIds.length));
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;