Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get current speed of VoiceOver on iOS

Is there any way to get the current speed of the VoiceOver speech on an iOS app? Sometimes I use my own AVSpeechUtterance strings and I'd like to use the same rate that's is configured on VoiceOver settings. Thanks in advance.

like image 617
VíctorVarLed Avatar asked Aug 15 '15 23:08

VíctorVarLed


1 Answers

Is the announcement specifically for VoiceOver users? Then it might be better to post announcement notification from UIAccessibility. VoiceOver will announce the notification, so users will hear with the same voice and speed from their VoiceOver setting.

UIAccessibility.post(notification:.announcement, argument:"Hello World!")

Read more information from the documentation.

UIAccessibility.post: https://developer.apple.com/documentation/uikit/uiaccessibility/1615194-post

UIAccessibility.Notification: https://developer.apple.com/documentation/uikit/uiaccessibility/notification

announcement: https://developer.apple.com/documentation/uikit/uiaccessibility/notification/1620176-announcement

like image 181
jl303 Avatar answered Oct 16 '22 03:10

jl303