Toowired commited on
Commit
f181983
·
verified ·
1 Parent(s): 9efb156

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +6 -1
index.html CHANGED
@@ -466,6 +466,11 @@
466
 
467
  // Auto-select appropriate voice based on model
468
  autoSelectVoiceForModel(e.target.value);
 
 
 
 
 
469
  });
470
 
471
  // Update cost estimator when settings change
@@ -1620,7 +1625,7 @@
1620
  // Playback controls
1621
  playBtn.addEventListener('click', async () => {
1622
  if (!selectedVoice) {
1623
- showToast('Please select a voice first', 'error');
1624
  return;
1625
  }
1626
 
 
466
 
467
  // Auto-select appropriate voice based on model
468
  autoSelectVoiceForModel(e.target.value);
469
+
470
+ // Show a toast indicating voice change
471
+ if (selectedVoice) {
472
+ showToast(`Voice changed to ${selectedVoice.name} for ${e.target.value} model`, 'success', 2000);
473
+ }
474
  });
475
 
476
  // Update cost estimator when settings change
 
1625
  // Playback controls
1626
  playBtn.addEventListener('click', async () => {
1627
  if (!selectedVoice) {
1628
+ showToast('No voice available. Please check your API key and internet connection.', 'error');
1629
  return;
1630
  }
1631