OSSUtterance

public class OSSUtterance : AVSpeechUtterance

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.

Variables

  • The speechString can be a constant value or changed as frequently as you wish.

    The Speech String is what will be read out. Default value in an empty string.

    Declaration

    Swift

    override public var speechString: String { get set }
  • The attributedSpeechString can be a constant value or changed as frequently as you wish.

    The Attributed Speech String is what will be read out if no speechString is set. Default value in an empty string.

    Declaration

    Swift

    override public var attributedSpeechString: NSAttributedString { get set }

Lifecycle

  • Undocumented

    Declaration

    Swift

    public override init()
  • Init method which will set the speechString value.

    Declaration

    Swift

    public override init(string: String)
  • Init method which will set the attributedSpeechString value.

    Declaration

    Swift

    public override init(attributedString: NSAttributedString)
  • Required. Do not recommend using.

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)