[GH-ISSUE #9] [BUG] Speech recognition not starting #6

Open
opened 2026-10-15 13:27:17 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ZhenyaPav on GitHub (Aug 6, 2024).
Original GitHub issue: https://github.com/SillyTavern/Extension-Speech-Recognition/issues/9

When pressing the hotkey or the button in the web ui, nothing is sent to the backend (koboldcpp, haven't tested with anything else). This fork works fine.

I saw this in the browser console:

Uncaught (in promise) DOMException: AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported.
    onSuccess http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:212
    promise callback*loadNavigatorAudioRecording http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:281
    loadSttProvider http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:340
    <anonymous> http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:853
    jQuery 9
        e
        t
        setTimeout handler*Deferred/then/l/<
        c
        add
        then
        Deferred
        then
        ready
    <anonymous> http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:679
Originally created by @ZhenyaPav on GitHub (Aug 6, 2024). Original GitHub issue: https://github.com/SillyTavern/Extension-Speech-Recognition/issues/9 When pressing the hotkey or the button in the web ui, nothing is sent to the backend (koboldcpp, haven't tested with anything else). [This fork](https://github.com/TByte007/Extension-Speech-Recognition) works fine. I saw this in the browser console: ``` Uncaught (in promise) DOMException: AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported. onSuccess http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:212 promise callback*loadNavigatorAudioRecording http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:281 loadSttProvider http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:340 <anonymous> http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:853 jQuery 9 e t setTimeout handler*Deferred/then/l/< c add then Deferred then ready <anonymous> http://localhost:8000/scripts/extensions/third-party/Extension-Speech-Recognition/index.js:679 ```
Author
Owner

@ZhenyaPav commented on GitHub (Aug 6, 2024):

Don't know much about how audio capture works, but I think it may be related to const audioContext = new AudioContext(); being created without the sampleRate in the fork

<!-- gh-comment-id:2271480983 --> @ZhenyaPav commented on GitHub (Aug 6, 2024): Don't know much about how audio capture works, but I think it may be related to `const audioContext = new AudioContext();` being created without the `sampleRate` in the fork
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-Speech-Recognition#6
No description provided.