question

Arturo5005-9409 avatar image
0 Votes"
Arturo5005-9409 asked DSPatrick answered

de JavaScript a C#

hola buenas estoy intentando hacer un programa de escritorio y me surgio una duda, como puedo recuperar una variable desde Js a C#, digamos que tengo este codigo:


let rec;
if (!("webkitSpeechRecognition" in window)) {
alert("disculpas, no puedes usar la API");
} else {
rec = new webkitSpeechRecognition();
rec.lang = "es-AR";
rec.continuous = true;
rec.interim = true;
rec.addEventListener("result",iniciar);
}
function iniciar(event){
for (let i = event.resultIndex; i < event.results.length; i++){
document.getElementById('texto').innerHTML = event.results[i][0].transcript;
}
}


rec.start();



como podria recuperar los datos en visual con c#

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered

Q&A forums are currently English only. I'd try asking for help over here in dedicated forums.
https://social.msdn.microsoft.com/Forums/es-es/home
https://social.technet.microsoft.com/Forums/es-es/home
https://answers.microsoft.com/es-es

--please don't forget to upvote and Accept as answer if the reply is helpful--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.