Class AVSpeechSynthesisVoice

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class AVSpeechSynthesisVoice
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • AVSpeechSynthesisVoice

      public AVSpeechSynthesisVoice()
    • AVSpeechSynthesisVoice

      protected AVSpeechSynthesisVoice​(NSObject.Handle h, long handle)
    • AVSpeechSynthesisVoice

      protected AVSpeechSynthesisVoice​(NSObject.SkipInit skipInit)
    • AVSpeechSynthesisVoice

      public AVSpeechSynthesisVoice​(String languageCode)
    • AVSpeechSynthesisVoice

      public AVSpeechSynthesisVoice​(AVSpeechSynthesisVoiceIdentifier identifier)
      Since:
      Available in iOS 9.0 and later.
    • AVSpeechSynthesisVoice

      public AVSpeechSynthesisVoice​(NSCoder coder)
  • Method Details

    • getLanguage

      public String getLanguage()
    • getIdentifier

      public String getIdentifier()
      Since:
      Available in iOS 9.0 and later.
    • getName

      public String getName()
      Since:
      Available in iOS 9.0 and later.
    • getQuality

      public AVSpeechSynthesisVoiceQuality getQuality()
      Since:
      Available in iOS 9.0 and later.
    • getGender

      public AVSpeechSynthesisVoiceGender getGender()
      Since:
      Available in iOS 13.0 and later.
    • getAudioFileSettings

      public NSDictionary<NSString,​?> getAudioFileSettings()
      Since:
      Available in iOS 13.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getSpeechVoices

      public static NSArray<AVSpeechSynthesisVoice> getSpeechVoices()
    • getCurrentLanguageCode

      public static String getCurrentLanguageCode()
    • create

      protected static long create​(String languageCode)
    • create

      protected static long create​(AVSpeechSynthesisVoiceIdentifier identifier)
      Since:
      Available in iOS 9.0 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)