de JavaScript a C#

Arturo5005 1 Reputation point
2022-05-29T22:11:21.607+00:00

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#

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-29T22:17:31.24+00:00

    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--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.