Sunday, November 21, 2021
The Talking Map
This is likely completely pointless but I've simply used the Web Speech API to exercise a Speaking Map. If you lot click anywhere on this map the address volition last spoken out loud.
To become the map to speak solely required i trouble of code (where the address is the contrary geo-coded address from clicking on the map). Here's the magic trouble of code:
var msg=new SpeechSynthesisUtterance(address);window.speechSynthesis.speak(msg);
The Web Speech API isn't widely supported nonetheless - then to remove heed the map verbalize you lot volition accept to role a compliant browser. In this representative you lot volition likely involve to persuasion the Speaking Map inwards Chrome. This map plainly isn't that useful but it would last tardily to add together speech communication to directions in addition to exercise your ain navigation system.
Labels:
lainnya
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment