Browser source SpeechSynthesis audio is not recorded when "Control audio via OBS" is selected #404

Open
opened 2023-03-08 03:13:42 -06:00 by Edrem · 8 comments
Edrem commented 2023-03-08 03:13:42 -06:00 (Migrated from github.com)

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

29.0.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/OXxpPl8wZ7n4t9ts

OBS Studio Crash Log URL

No response

Expected Behavior

SpeechSynthesis done inside a browser when set to "Control Audio via OBS" should be recorded on it's own audio channel in OBS, as well as be monitored if the monitor setting is enabled in Advanced Audio

Current Behavior

OBS should be able to both record and monitor the speechsynthesis audio generated by a browser source when "Control Audio via OBS" is enabled, instead it simply records nothing.

The browser source is capable of generating speechsynthesis audio when the option is off, that however goes through Desktop Audio/Default Output and is not ideal for my recording setup.

Steps to Reproduce

  1. Add a new browser source pointing to Mozilla SpeechSynthesis demo page (https://mdn.github.io/dom-examples/web-speech-api/speak-easy-synthesis/)
  2. Set the source property "Control Audio via OBS" to true
  3. In Advanced Audio properties for the browser sauce, set Audio Monitoring to Monitor Only/Monitor and Output
  4. Using the Interact tool with the browser sauce, type in some text and click Play.

Anything else we should know?

Thank you whoever made the Analyzer of OBS log files. It's most likely unrelated to this issue but I can see now some other performance settings in OBS I was never aware of.

### Operating System Info Windows 10 ### Other OS _No response_ ### OBS Studio Version 29.0.2 ### OBS Studio Version (Other) _No response_ ### OBS Studio Log URL https://obsproject.com/logs/OXxpPl8wZ7n4t9ts ### OBS Studio Crash Log URL _No response_ ### Expected Behavior SpeechSynthesis done inside a browser when set to "Control Audio via OBS" should be recorded on it's own audio channel in OBS, as well as be monitored if the monitor setting is enabled in Advanced Audio ### Current Behavior OBS should be able to both record and monitor the speechsynthesis audio generated by a browser source when "Control Audio via OBS" is enabled, instead it simply records nothing. The browser source is capable of generating speechsynthesis audio when the option is off, that however goes through Desktop Audio/Default Output and is not ideal for my recording setup. ### Steps to Reproduce 1. Add a new browser source pointing to Mozilla SpeechSynthesis demo page (https://mdn.github.io/dom-examples/web-speech-api/speak-easy-synthesis/) 2. Set the source property "Control Audio via OBS" to true 3. In Advanced Audio properties for the browser sauce, set Audio Monitoring to Monitor Only/Monitor and Output 4. Using the Interact tool with the browser sauce, type in some text and click Play. ### Anything else we should know? Thank you whoever made the Analyzer of OBS log files. It's most likely unrelated to this issue but I can see now some other performance settings in OBS I was never aware of.
pkviet commented 2023-03-08 04:25:24 -06:00 (Migrated from github.com)

I can indeed repro the issue. It's unfortunately probably not fixable on our side. The audio capture functions are never called. This points to cef (chromium embedded framework) which we rely on for obs-browser.
Could you try a speech synthesis which auto starts as soon as the page is open ? Maybe this would work.

I can indeed repro the issue. It's unfortunately probably not fixable on our side. The audio capture functions are never called. This points to cef (chromium embedded framework) which we rely on for obs-browser. Could you try a speech synthesis which auto starts as soon as the page is open ? Maybe this would work.
nofuture2077 commented 2023-04-05 04:04:31 -05:00 (Migrated from github.com)

I can reproduce the error on Mac OS. One thing to add: The SpeechSynthesis doesn't even start when audio is controlled by obs.

const audio = new SpeechSynthesisUtterance("Test Message");
audio.addEventListener('start', () => {
    //...
});
speechSynthesis.speak(audio);

So the audio starts and start event is fired when "Control audio via OBS" is disabled, but doesn't if it is checked.

I can reproduce the error on Mac OS. One thing to add: The SpeechSynthesis doesn't even start when audio is controlled by obs. ``` const audio = new SpeechSynthesisUtterance("Test Message"); audio.addEventListener('start', () => { //... }); speechSynthesis.speak(audio); ``` So the audio starts and start event is fired when "Control audio via OBS" is disabled, but doesn't if it is checked.
Dizziness17 commented 2024-09-02 04:07:54 -05:00 (Migrated from github.com)

I have same issue with this. I used Web Speech API and it works on chrome but not obs. Did anyone solved this?

I have same issue with this. I used Web Speech API and it works on chrome but not obs. Did anyone solved this?
Ransomwave commented 2025-10-03 16:16:45 -05:00 (Migrated from github.com)

Experiencing the same issue here. This needs to be fixed!

Experiencing the same issue here. This needs to be fixed!
FairithmVT commented 2025-10-06 14:06:18 -05:00 (Migrated from github.com)

No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it.

No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it.
Ransomwave commented 2025-10-06 14:47:54 -05:00 (Migrated from github.com)

No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it.

Any ETA on when this could happen?

> No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it. Any ETA on when this could happen?
FairithmVT commented 2025-10-07 12:56:43 -05:00 (Migrated from github.com)

No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it.

Any ETA on when this could happen?

You would have to bug CEF.

https://github.com/chromiumembedded

> > No fix sadly... this is a CEF issue that needs to be updated. So we're waiting on CEF to update so OBS can update with it. > > Any ETA on when this could happen? You would have to bug CEF. https://github.com/chromiumembedded
FairithmVT commented 2025-10-07 13:03:49 -05:00 (Migrated from github.com)

You can also read this and track it down to the post origin https://github.com/obsproject/obs-browser/issues/435

You can also read this and track it down to the post origin https://github.com/obsproject/obs-browser/issues/435
Sign in to join this conversation.
No milestone
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
gh-obsproject/obs-browser#404
No description provided.