Created
June 16, 2020 20:51
-
-
Save Kreijstal/2fb6b9aadba92416ee3341ce4d186617 to your computer and use it in GitHub Desktop.
change audio device tts
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
//This is to use here https://tts.cyzon.us/files/playground.html | |
//you have to use https | |
navigator.mediaDevices.getUserMedia({audio:{deviceId:undefined}}).then(()=>{navigator.mediaDevices.enumerateDevices().then(a=>console.log(a[9])); | |
var b=document.getElementById("result-audio"); | |
b.setSinkId("communications"); | |
b.play() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment