Text-to-Speech for Our iOS Viewer
The iOS PDF text-to-speech feature uses Apple APIs to guess the language of the document. This works for many documents but is sometimes incorrect. If you know the language of the document, we suggest setting it manually using the selectedLanguage
(opens in a new tab) property of the SpeechController
(opens in a new tab), which can be accessed via the shared PSPDFKit.SDK
configuration instance(opens in a new tab):
PSPDFKit.SDK.shared.speechController.selectedLanguage = documentLanguage
PSPDFKitGlobal.sharedInstance.speechController.selectedLanguage = documentLanguage;
The SpeechController
(opens in a new tab) has additional properties to control speed rate and pitch.