Classes
The following classes are available globally.
-
Speech is the primary interface. To use, set the voice and then call
See more.speak(string: "your string")
Declaration
Swift
public class OSSSpeech : NSObject
extension OSSSpeech: SFSpeechRecognitionTaskDelegate, SFSpeechRecognizerDelegate
-
Undocumented
See moreDeclaration
Swift
public class OSSSpeechUtility : NSObject
-
OSSUtterance is a wrapper of the AVSpeechUtterance class.
The OSSUtterance offers special overrides for strings which are usually set once objects.
As the developer, you can override the
See morevolume
,rate
andpitchMultiplier
should you wish to.Declaration
Swift
public class OSSUtterance : AVSpeechUtterance
-
OSSVoice overides some of the properties provided to enable setting as well as getting.
The purpose of this class is so that a single voice object can be set and reused through the Speech instance. Properties have been overriden for this very purpose.
Setting the voice quality to be
.enhanced
instead of.default
and the resetting of language after creation is not enabled in the AV provided API instance of AVSpeechSynthesisVoice.Note
If init() is called, the default quality of OSSVoice will us “default” and the language will be “OSSVoiceEnum.UnitedStatesEnglish”.Declaration
Swift
@available(iOS 9.0, *) public class OSSVoice : AVSpeechSynthesisVoice