istediğinizi tam olarak anlamadım fakat 24 saatte bir çalıştırmak için bu fonksiyonu kullanabilirsiniz:

<script>
  // Bu fonksiyon, butonun otomatik olarak aktif olmasını sağlar
  function activateButton() {
    // Butonun durumunu kontrol et (günlük bir kere)
    if (!localStorage.getItem('buttonActivated')) {
      // Butonu aktif et
      document.getElementById('speakButton').click();

      // Butonun tekrar açılmasını 24 saat sonra sağlamak için bilgiyi localStorage'a kaydet
      localStorage.setItem('buttonActivated', 'true');
      setTimeout(function () {
        localStorage.removeItem('buttonActivated');
      }, 24 * 60 * 60 * 1000); // 24 saat milisaniye cinsinden
    }
  }

  // Sayfa yüklendiğinde activateButton fonksiyonunu çağır
  window.onload = function () {
    setTimeout(activateButton, 3000); // 3 saniye sonra çağır
  };
</script>