[Webkit-unassigned] [Bug 278598] New: speechSynthesis has aggressive ducking on iOS Safari
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 23 20:12:14 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=278598
Bug ID: 278598
Summary: speechSynthesis has aggressive ducking on iOS Safari
Product: WebKit
Version: Safari 17
Hardware: iPhone / iPad
OS: iOS 17
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: webkit at awe.media
Created attachment 472284
--> https://bugs.webkit.org/attachment.cgi?id=472284&action=review
.zip file with html/js demo and mp3 file
On iOS17 Safari the speechSynthesis always ducks other audio and this persists for about a second after it finishes speaking.
This does not happen on OSX Safari or Chrome on other platforms.
navigator.audioSession.type does not fix this either.
Attached is a simple demo that shows this issue. Here's how to use this demo.
- load the demo.html page
- tap on the "Tap to start" screen to enable any permission required
- tap on the "Tap to play" to hear the mp3 audio sample play (you can do this as often as you want and it resets currentTime to 0)
- tap on the "Tap to speak" to hear speechSynthesis say something
What is expected?
At least with navigator.audioSession.type='ambient' or navigator.audioSession.type='record-and-play' the 2 different audio streams (speech and mp3) should be played over the top of each other, both at their full volume. This is what happens on OSX Safari and Chrome on other platforms.
What does happen?
On iOS Safari the speechSynthesis ducks the mp3 while it's speaking, and keeps it's volume low for about 1 second after it finished speaking.
NOTE: Wasn't sure what component to put this under as speechSynthesis and audioSession didn't have obvious homes, so put it under "Media".
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240824/10daf4f4/attachment-0001.htm>
More information about the webkit-unassigned
mailing list