Class AVSpeechSynthesisProviderVoice

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class AVSpeechSynthesisProviderVoice
    extends NSObject
    implements NSSecureCoding, NSCopying
    The representation of a provided voice that is available for speech synthesis. [@c] AVSpeechSynthesisProviderVoice is distinct from @c AVSpeechSynthesisVoice, in that it is a voice provided to the system by an @c AVSpeechSynthesisProviderAudioUnit. An @c AVSpeechSynthesisProviderVoice will surface as an @c AVSpeechSynthesisVoice when using @c AVSpeechSynthesisVoice.speechVoices(). The quality will always be listed as @c .enhanced API-Since: 16.0
    • Constructor Detail

      • AVSpeechSynthesisProviderVoice

        protected AVSpeechSynthesisProviderVoice​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • age

        public long age()
        The age of the voice in years (optional) This is an optional property that indicates the age of this voice, to be treated as a personality trait. Defaults to 0.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • gender

        public long gender()
        The gender of the voice (optional)
      • hash_static

        public static long hash_static()
      • identifier

        @NotNull
        public @NotNull java.lang.String identifier()
        A unique identifier for the voice The recommended format is reverse domain notation. Behavior is undefined if identifiers are not unique for all voices within a given extension.
      • initWithNameIdentifierPrimaryLanguagesSupportedLanguages

        public AVSpeechSynthesisProviderVoice initWithNameIdentifierPrimaryLanguagesSupportedLanguages​(@NotNull
                                                                                                       @NotNull java.lang.String name,
                                                                                                       @NotNull
                                                                                                       @NotNull java.lang.String identifier,
                                                                                                       @NotNull
                                                                                                       @NotNull NSArray<java.lang.String> primaryLanguages,
                                                                                                       @NotNull
                                                                                                       @NotNull NSArray<java.lang.String> supportedLanguages)
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • name

        @NotNull
        public @NotNull java.lang.String name()
        The localized name of the voice
      • primaryLanguages

        @NotNull
        public @NotNull NSArray<java.lang.String> primaryLanguages()
        A set of BCP 47 codes identifying the languages this synthesizer is primarily used for. These languages are what a user would expect a synthesizer to fully support and be primarily used for.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAge

        public void setAge​(long value)
        The age of the voice in years (optional) This is an optional property that indicates the age of this voice, to be treated as a personality trait. Defaults to 0.
      • setGender

        public void setGender​(long value)
        The gender of the voice (optional)
      • setVersion

        public void setVersion​(@NotNull
                               @NotNull java.lang.String value)
        The voice version (optional) This is an optional property for bookkeeping. This value does not affect system behavior.
      • setVoiceSize

        public void setVoiceSize​(long value)
        The size of the voice (optional) This reported size of the voice package on disk, in bytes. Defaults to 0.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportedLanguages

        @NotNull
        public @NotNull NSArray<java.lang.String> supportedLanguages()
        A superset of BCP 47 codes identifying the voice’s supported languages. These languages are what a user would expect a voice to be able to speak such that if the voice is given a multi-lingual phrase, it would be able to speak the entire phrase without a need to to switch voices. For example, a zh-CN voice could have @c ["zh-CN"] as its @c primaryLanguages, but in @c supportedLanguages have @c ["zh-CN","en-US"] indicating if it received "你好 means Hello", it would be able to speak the entire phrase.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • updateSpeechVoices

        public static void updateSpeechVoices()
        A call that indicates that a new voice or set of voices is available, or no longer available, for system use. Call this method to indicate to the system that there has been change in the availability of the voices your application is providing to the system.
      • version

        @NotNull
        public @NotNull java.lang.String version()
        The voice version (optional) This is an optional property for bookkeeping. This value does not affect system behavior.
      • voiceSize

        public long voiceSize()
        The size of the voice (optional) This reported size of the voice package on disk, in bytes. Defaults to 0.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.