Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
SpeechSynthesisUtterance detect onend when only speaking completes once not on cancel

I am using window.SpeechSynthesisUtterance API and I found out when you call window.speechSynthesis.cancel() it immediately also calls onend event. I want to do something specific only when the speaking ends but not when the utterance is canceled while it is being spoken.

How do I detect if speaking ended due to a cancel method call?

The onend event gives and event object:
onend = event => { }

But in both cases when the speech ends or is canceled the event.type is 'end'.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda