Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5dad0170279988a68369b9bd12f9f64be0fbb21b
https://github.com/WebKit/WebKit/commit/5dad0170279988a68369b9bd12f9f64be0fbb21b
Author: Sihui Liu <[email protected]>
Date: 2023-08-23 (Wed, 23 Aug 2023)
Changed paths:
M Source/WTF/wtf/PlatformHave.h
M Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h
M Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.mm
M Source/WebCore/platform/PlatformSpeechSynthesizer.cpp
M Source/WebCore/platform/PlatformSpeechSynthesizer.h
M Source/WebCore/platform/cocoa/PlatformSpeechSynthesizerCocoa.mm
Log Message:
-----------
[Cocoa] Add implementation for voiceschanged event of SpeechSynthesis API
https://bugs.webkit.org/show_bug.cgi?id=260228
rdar://113933356
Reviewed by Chris Fleizach.
Adopt new AVSpeechSynthesis API to receive notification about changes in
available voices list, and fire voiceschanged
event based on that.
* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h:
* Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.mm:
* Source/WebCore/platform/PlatformSpeechSynthesizer.cpp:
(WebCore::PlatformSpeechSynthesizer::resetVoiceList):
(WebCore::PlatformSpeechSynthesizer::voicesDidChange):
* Source/WebCore/platform/PlatformSpeechSynthesizer.h:
* Source/WebCore/platform/cocoa/PlatformSpeechSynthesizerCocoa.mm:
(-[WebSpeechSynthesisWrapper initWithSpeechSynthesizer:]):
(-[WebSpeechSynthesisWrapper availableVoicesDidChange]):
Canonical link: https://commits.webkit.org/267210@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes