Created
May 3, 2021 21:07
-
-
Save gs/724901095173add6284e1c0ab712b9ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn speak-it | |
"Call the google translate with language and value of the atom" | |
[lang] | |
(let [speech-syn (.-speechSynthesis js/window)] | |
(def msg (js/SpeechSynthesisUtterance. @number)) | |
(aset msg "lang" lang) | |
(.speak speech-syn msg))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment