Using in HTML:
Using in .ts file:
var myinput = document.getElementById(“myinput”).innerHTML;
this.tts.speak(myinput).then(() => console.log(‘Success’)).catch((reason: any) => console.log(reason));
when I click the speak button a weird - definitely not what it should be saying - output is given, i’m not entirely sure how to reference the id of the input to be used. Any insight is greatly appreciated!