mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
SpeechToTest js : autodetect language
This commit is contained in:
parent
323dadfe29
commit
f3bf5b6a6b
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@
|
|||
|
||||
recognition.continuous = false;
|
||||
recognition.interimResults = false;
|
||||
recognition.lang = 'en-US';
|
||||
// Use browser's language or fall back to 'en-US'
|
||||
recognition.lang = navigator.language || 'en-US';
|
||||
console.log('Speech recognition language:', recognition.lang);
|
||||
|
||||
// Setup button click handler
|
||||
button.addEventListener('click', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue