0

Can I change pitch of embedded sound on page with JavaScript?

I have simple embed tag:

<embed src="tone.wav" autostart="true" />

Any help?

Termininja
  • 6,620
  • 12
  • 48
  • 49
PDKnight
  • 712
  • 6
  • 25

1 Answers1

1

You can't.

<embed> uses whatever player the user has on their system, and there is not a consistent API nor feature set.

What you can do is use the Web Audio API.

Community
  • 1
  • 1
Brad
  • 159,648
  • 54
  • 349
  • 530