Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created December 29, 2024 11:47
Show Gist options
  • Select an option

  • Save KaushikShresth07/9f57e037097516b613c3888c9e36e5f3 to your computer and use it in GitHub Desktop.

Select an option

Save KaushikShresth07/9f57e037097516b613c3888c9e36e5f3 to your computer and use it in GitHub Desktop.
HtmlCode = '''<!DOCTYPE html>
<html lang="en">
<head>
<title>Speech Recognition</title>
</head>
<body>
<button id="start" onclick="startRecognition()">Start Recognition</button>
<button id="end" onclick="stopRecognition()">Stop Recognition</button>
<p id="output"></p>
<script>
const output = document.getElementById('output');
let recognition;
function startRecognition() {
recognition = new webkitSpeechRecognition() || new SpeechRecognition();
recognition.lang = '';
recognition.continuous = true;
recognition.onresult = function(event) {
const transcript = event.results[event.results.length - 1][0].transcript;
output.textContent += transcript;
};
recognition.onend = function() {
recognition.start();
};
recognition.start();
}
function stopRecognition() {
recognition.stop();
output.innerHTML = "";
}
</script>
</body>
</html>'''
@JashanDhiman0
Copy link

DevTools listening on ws://127.0.0.1:55041/devtools/browser/e4e4fb59-8f05-4ca3-9a40-3beaaae7de0b
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
PS D:\ironman> python -u "d:\ironman\Backend\tempCodeRunnerFile.py"

DevTools listening on ws://127.0.0.1:55041/devtools/browser/e4e4fb59-8f05-4ca3-9a40-3beaaae7de0b
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[12108:17588:0712/150342.101:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT

PS D:\ironman> python -u "d:\ironman\Backend\tempCodeRunnerFile.py"

DevTools listening on ws://127.0.0.1:55041/devtools/browser/e4e4fb59-8f05-4ca3-9a40-3beaaae7de0b
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).

DevTools listening on ws://127.0.0.1:55041/devtools/browser/e4e4fb59-8f05-4ca3-9a40-3beaaae7de0b
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
I0000 00:00:1752312801.143418 20720 voice_transcription.cc:58] Registering VoiceTranscriptionCapability
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
[12108:17588:0712/150321.695:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: PHONE_REGISTRATION_ERROR
Created TensorFlow Lite XNNPACK delegate for CPU.
Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#-1 is a dynamic-sized tensor).
[12108:17588:0712/150342.101:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[12108:17588:0712/150429.655:ERROR:goo

@ShantanuGame
Copy link

ShantanuGame commented Sep 5, 2025 via email

@ShantanuGame
Copy link

ShantanuGame commented Sep 5, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment