Classes

The following classes are available globally.

  • Speech is the primary interface. To use, set the voice and then call .speak(string: "your string")

    See more

    Declaration

    Swift

    public class OSSSpeech : 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 volume, rate and pitchMultiplier should you wish to.

    See more

    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.
    See more

    Declaration

    Swift

    @available(iOS 9.0, *)
    public class OSSVoice : AVSpeechSynthesisVoice