use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechBoundary(pub NSInteger);
impl AVSpeechBoundary {
#[doc(alias = "AVSpeechBoundaryImmediate")]
pub const Immediate: Self = Self(0);
#[doc(alias = "AVSpeechBoundaryWord")]
pub const Word: Self = Self(1);
}
unsafe impl Encode for AVSpeechBoundary {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechBoundary {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechSynthesisVoiceQuality(pub NSInteger);
impl AVSpeechSynthesisVoiceQuality {
#[doc(alias = "AVSpeechSynthesisVoiceQualityDefault")]
pub const Default: Self = Self(1);
#[doc(alias = "AVSpeechSynthesisVoiceQualityEnhanced")]
pub const Enhanced: Self = Self(2);
#[doc(alias = "AVSpeechSynthesisVoiceQualityPremium")]
pub const Premium: Self = Self(3);
}
unsafe impl Encode for AVSpeechSynthesisVoiceQuality {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechSynthesisVoiceQuality {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechSynthesisVoiceGender(pub NSInteger);
impl AVSpeechSynthesisVoiceGender {
#[doc(alias = "AVSpeechSynthesisVoiceGenderUnspecified")]
pub const Unspecified: Self = Self(0);
#[doc(alias = "AVSpeechSynthesisVoiceGenderMale")]
pub const Male: Self = Self(1);
#[doc(alias = "AVSpeechSynthesisVoiceGenderFemale")]
pub const Female: Self = Self(2);
}
unsafe impl Encode for AVSpeechSynthesisVoiceGender {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechSynthesisVoiceGender {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechSynthesisMarkerMark(pub NSInteger);
impl AVSpeechSynthesisMarkerMark {
#[doc(alias = "AVSpeechSynthesisMarkerMarkPhoneme")]
pub const Phoneme: Self = Self(0);
#[doc(alias = "AVSpeechSynthesisMarkerMarkWord")]
pub const Word: Self = Self(1);
#[doc(alias = "AVSpeechSynthesisMarkerMarkSentence")]
pub const Sentence: Self = Self(2);
#[doc(alias = "AVSpeechSynthesisMarkerMarkParagraph")]
pub const Paragraph: Self = Self(3);
#[doc(alias = "AVSpeechSynthesisMarkerMarkBookmark")]
pub const Bookmark: Self = Self(4);
}
unsafe impl Encode for AVSpeechSynthesisMarkerMark {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechSynthesisMarkerMark {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
pub static AVSpeechUtteranceMinimumSpeechRate: c_float;
}
extern "C" {
pub static AVSpeechUtteranceMaximumSpeechRate: c_float;
}
extern "C" {
pub static AVSpeechUtteranceDefaultSpeechRate: c_float;
}
extern "C" {
pub static AVSpeechSynthesisVoiceIdentifierAlex: &'static NSString;
}
extern "C" {
pub static AVSpeechSynthesisIPANotationAttribute: &'static NSString;
}
#[cfg(all(feature = "AVAudioBuffer", feature = "block2"))]
pub type AVSpeechSynthesizerBufferCallback = *mut block2::DynBlock<dyn Fn(NonNull<AVAudioBuffer>)>;
#[cfg(feature = "block2")]
pub type AVSpeechSynthesizerMarkerCallback =
*mut block2::DynBlock<dyn Fn(NonNull<NSArray<AVSpeechSynthesisMarker>>)>;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechSynthesisPersonalVoiceAuthorizationStatus(pub NSUInteger);
impl AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
#[doc(alias = "AVSpeechSynthesisPersonalVoiceAuthorizationStatusNotDetermined")]
pub const NotDetermined: Self = Self(0);
#[doc(alias = "AVSpeechSynthesisPersonalVoiceAuthorizationStatusDenied")]
pub const Denied: Self = Self(1);
#[doc(alias = "AVSpeechSynthesisPersonalVoiceAuthorizationStatusUnsupported")]
pub const Unsupported: Self = Self(2);
#[doc(alias = "AVSpeechSynthesisPersonalVoiceAuthorizationStatusAuthorized")]
pub const Authorized: Self = Self(3);
}
unsafe impl Encode for AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AVSpeechSynthesisVoiceTraits(pub NSUInteger);
bitflags::bitflags! {
impl AVSpeechSynthesisVoiceTraits: NSUInteger {
#[doc(alias = "AVSpeechSynthesisVoiceTraitNone")]
const None = 0;
#[doc(alias = "AVSpeechSynthesisVoiceTraitIsNoveltyVoice")]
const IsNoveltyVoice = 1<<0;
#[doc(alias = "AVSpeechSynthesisVoiceTraitIsPersonalVoice")]
const IsPersonalVoice = 1<<1;
}
}
unsafe impl Encode for AVSpeechSynthesisVoiceTraits {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for AVSpeechSynthesisVoiceTraits {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
pub static AVSpeechSynthesisAvailableVoicesDidChangeNotification: &'static NSNotificationName;
}
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AVSpeechSynthesisVoice;
);
unsafe impl Send for AVSpeechSynthesisVoice {}
unsafe impl Sync for AVSpeechSynthesisVoice {}
extern_conformance!(
unsafe impl NSCoding for AVSpeechSynthesisVoice {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for AVSpeechSynthesisVoice {}
);
extern_conformance!(
unsafe impl NSSecureCoding for AVSpeechSynthesisVoice {}
);
impl AVSpeechSynthesisVoice {
extern_methods!(
#[unsafe(method(speechVoices))]
#[unsafe(method_family = none)]
pub unsafe fn speechVoices() -> Retained<NSArray<AVSpeechSynthesisVoice>>;
#[unsafe(method(currentLanguageCode))]
#[unsafe(method_family = none)]
pub unsafe fn currentLanguageCode() -> Retained<NSString>;
#[unsafe(method(voiceWithLanguage:))]
#[unsafe(method_family = none)]
pub unsafe fn voiceWithLanguage(
language_code: Option<&NSString>,
) -> Option<Retained<AVSpeechSynthesisVoice>>;
#[unsafe(method(voiceWithIdentifier:))]
#[unsafe(method_family = none)]
pub unsafe fn voiceWithIdentifier(
identifier: &NSString,
) -> Option<Retained<AVSpeechSynthesisVoice>>;
#[unsafe(method(language))]
#[unsafe(method_family = none)]
pub unsafe fn language(&self) -> Retained<NSString>;
#[unsafe(method(identifier))]
#[unsafe(method_family = none)]
pub unsafe fn identifier(&self) -> Retained<NSString>;
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[unsafe(method(quality))]
#[unsafe(method_family = none)]
pub unsafe fn quality(&self) -> AVSpeechSynthesisVoiceQuality;
#[unsafe(method(gender))]
#[unsafe(method_family = none)]
pub unsafe fn gender(&self) -> AVSpeechSynthesisVoiceGender;
#[unsafe(method(audioFileSettings))]
#[unsafe(method_family = none)]
pub unsafe fn audioFileSettings(&self) -> Retained<NSDictionary<NSString, AnyObject>>;
#[unsafe(method(voiceTraits))]
#[unsafe(method_family = none)]
pub unsafe fn voiceTraits(&self) -> AVSpeechSynthesisVoiceTraits;
);
}
impl AVSpeechSynthesisVoice {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AVSpeechUtterance;
);
extern_conformance!(
unsafe impl NSCoding for AVSpeechUtterance {}
);
extern_conformance!(
unsafe impl NSCopying for AVSpeechUtterance {}
);
unsafe impl CopyingHelper for AVSpeechUtterance {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for AVSpeechUtterance {}
);
extern_conformance!(
unsafe impl NSSecureCoding for AVSpeechUtterance {}
);
impl AVSpeechUtterance {
extern_methods!(
#[unsafe(method(speechUtteranceWithString:))]
#[unsafe(method_family = none)]
pub unsafe fn speechUtteranceWithString(string: &NSString) -> Retained<Self>;
#[unsafe(method(speechUtteranceWithAttributedString:))]
#[unsafe(method_family = none)]
pub unsafe fn speechUtteranceWithAttributedString(
string: &NSAttributedString,
) -> Retained<Self>;
#[unsafe(method(speechUtteranceWithSSMLRepresentation:))]
#[unsafe(method_family = none)]
pub unsafe fn speechUtteranceWithSSMLRepresentation(
string: &NSString,
) -> Option<Retained<Self>>;
#[unsafe(method(initWithString:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithString(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
#[unsafe(method(initWithAttributedString:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithAttributedString(
this: Allocated<Self>,
string: &NSAttributedString,
) -> Retained<Self>;
#[unsafe(method(initWithSSMLRepresentation:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSSMLRepresentation(
this: Allocated<Self>,
string: &NSString,
) -> Option<Retained<Self>>;
#[unsafe(method(voice))]
#[unsafe(method_family = none)]
pub unsafe fn voice(&self) -> Option<Retained<AVSpeechSynthesisVoice>>;
#[unsafe(method(setVoice:))]
#[unsafe(method_family = none)]
pub unsafe fn setVoice(&self, voice: Option<&AVSpeechSynthesisVoice>);
#[unsafe(method(speechString))]
#[unsafe(method_family = none)]
pub unsafe fn speechString(&self) -> Retained<NSString>;
#[unsafe(method(attributedSpeechString))]
#[unsafe(method_family = none)]
pub unsafe fn attributedSpeechString(&self) -> Retained<NSAttributedString>;
#[unsafe(method(rate))]
#[unsafe(method_family = none)]
pub unsafe fn rate(&self) -> c_float;
#[unsafe(method(setRate:))]
#[unsafe(method_family = none)]
pub unsafe fn setRate(&self, rate: c_float);
#[unsafe(method(pitchMultiplier))]
#[unsafe(method_family = none)]
pub unsafe fn pitchMultiplier(&self) -> c_float;
#[unsafe(method(setPitchMultiplier:))]
#[unsafe(method_family = none)]
pub unsafe fn setPitchMultiplier(&self, pitch_multiplier: c_float);
#[unsafe(method(volume))]
#[unsafe(method_family = none)]
pub unsafe fn volume(&self) -> c_float;
#[unsafe(method(setVolume:))]
#[unsafe(method_family = none)]
pub unsafe fn setVolume(&self, volume: c_float);
#[unsafe(method(prefersAssistiveTechnologySettings))]
#[unsafe(method_family = none)]
pub unsafe fn prefersAssistiveTechnologySettings(&self) -> bool;
#[unsafe(method(setPrefersAssistiveTechnologySettings:))]
#[unsafe(method_family = none)]
pub unsafe fn setPrefersAssistiveTechnologySettings(
&self,
prefers_assistive_technology_settings: bool,
);
#[unsafe(method(preUtteranceDelay))]
#[unsafe(method_family = none)]
pub unsafe fn preUtteranceDelay(&self) -> NSTimeInterval;
#[unsafe(method(setPreUtteranceDelay:))]
#[unsafe(method_family = none)]
pub unsafe fn setPreUtteranceDelay(&self, pre_utterance_delay: NSTimeInterval);
#[unsafe(method(postUtteranceDelay))]
#[unsafe(method_family = none)]
pub unsafe fn postUtteranceDelay(&self) -> NSTimeInterval;
#[unsafe(method(setPostUtteranceDelay:))]
#[unsafe(method_family = none)]
pub unsafe fn setPostUtteranceDelay(&self, post_utterance_delay: NSTimeInterval);
);
}
impl AVSpeechUtterance {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AVSpeechSynthesizer;
);
extern_conformance!(
unsafe impl NSObjectProtocol for AVSpeechSynthesizer {}
);
impl AVSpeechSynthesizer {
extern_methods!(
#[unsafe(method(delegate))]
#[unsafe(method_family = none)]
pub unsafe fn delegate(
&self,
) -> Option<Retained<ProtocolObject<dyn AVSpeechSynthesizerDelegate>>>;
#[unsafe(method(setDelegate:))]
#[unsafe(method_family = none)]
pub unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn AVSpeechSynthesizerDelegate>>,
);
#[unsafe(method(isSpeaking))]
#[unsafe(method_family = none)]
pub unsafe fn isSpeaking(&self) -> bool;
#[unsafe(method(isPaused))]
#[unsafe(method_family = none)]
pub unsafe fn isPaused(&self) -> bool;
#[unsafe(method(speakUtterance:))]
#[unsafe(method_family = none)]
pub unsafe fn speakUtterance(&self, utterance: &AVSpeechUtterance);
#[cfg(all(feature = "AVAudioBuffer", feature = "block2"))]
#[unsafe(method(writeUtterance:toBufferCallback:))]
#[unsafe(method_family = none)]
pub unsafe fn writeUtterance_toBufferCallback(
&self,
utterance: &AVSpeechUtterance,
buffer_callback: AVSpeechSynthesizerBufferCallback,
);
#[cfg(all(feature = "AVAudioBuffer", feature = "block2"))]
#[unsafe(method(writeUtterance:toBufferCallback:toMarkerCallback:))]
#[unsafe(method_family = none)]
pub unsafe fn writeUtterance_toBufferCallback_toMarkerCallback(
&self,
utterance: &AVSpeechUtterance,
buffer_callback: AVSpeechSynthesizerBufferCallback,
marker_callback: AVSpeechSynthesizerMarkerCallback,
);
#[unsafe(method(stopSpeakingAtBoundary:))]
#[unsafe(method_family = none)]
pub unsafe fn stopSpeakingAtBoundary(&self, boundary: AVSpeechBoundary) -> bool;
#[unsafe(method(pauseSpeakingAtBoundary:))]
#[unsafe(method_family = none)]
pub unsafe fn pauseSpeakingAtBoundary(&self, boundary: AVSpeechBoundary) -> bool;
#[unsafe(method(continueSpeaking))]
#[unsafe(method_family = none)]
pub unsafe fn continueSpeaking(&self) -> bool;
#[cfg(feature = "AVAudioSessionRoute")]
#[unsafe(method(outputChannels))]
#[unsafe(method_family = none)]
pub unsafe fn outputChannels(
&self,
) -> Option<Retained<NSArray<AVAudioSessionChannelDescription>>>;
#[cfg(feature = "AVAudioSessionRoute")]
#[unsafe(method(setOutputChannels:))]
#[unsafe(method_family = none)]
pub unsafe fn setOutputChannels(
&self,
output_channels: Option<&NSArray<AVAudioSessionChannelDescription>>,
);
#[unsafe(method(usesApplicationAudioSession))]
#[unsafe(method_family = none)]
pub unsafe fn usesApplicationAudioSession(&self) -> bool;
#[unsafe(method(setUsesApplicationAudioSession:))]
#[unsafe(method_family = none)]
pub unsafe fn setUsesApplicationAudioSession(&self, uses_application_audio_session: bool);
#[unsafe(method(mixToTelephonyUplink))]
#[unsafe(method_family = none)]
pub unsafe fn mixToTelephonyUplink(&self) -> bool;
#[unsafe(method(setMixToTelephonyUplink:))]
#[unsafe(method_family = none)]
pub unsafe fn setMixToTelephonyUplink(&self, mix_to_telephony_uplink: bool);
#[cfg(feature = "block2")]
#[unsafe(method(requestPersonalVoiceAuthorizationWithCompletionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn requestPersonalVoiceAuthorizationWithCompletionHandler(
handler: &block2::DynBlock<dyn Fn(AVSpeechSynthesisPersonalVoiceAuthorizationStatus)>,
);
#[unsafe(method(personalVoiceAuthorizationStatus))]
#[unsafe(method_family = none)]
pub unsafe fn personalVoiceAuthorizationStatus(
) -> AVSpeechSynthesisPersonalVoiceAuthorizationStatus;
);
}
impl AVSpeechSynthesizer {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
pub unsafe trait AVSpeechSynthesizerDelegate: NSObjectProtocol + Send + Sync {
#[optional]
#[unsafe(method(speechSynthesizer:didStartSpeechUtterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_didStartSpeechUtterance(
&self,
synthesizer: &AVSpeechSynthesizer,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:didFinishSpeechUtterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_didFinishSpeechUtterance(
&self,
synthesizer: &AVSpeechSynthesizer,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:didPauseSpeechUtterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_didPauseSpeechUtterance(
&self,
synthesizer: &AVSpeechSynthesizer,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:didContinueSpeechUtterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_didContinueSpeechUtterance(
&self,
synthesizer: &AVSpeechSynthesizer,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:didCancelSpeechUtterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_didCancelSpeechUtterance(
&self,
synthesizer: &AVSpeechSynthesizer,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:willSpeakRangeOfSpeechString:utterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_willSpeakRangeOfSpeechString_utterance(
&self,
synthesizer: &AVSpeechSynthesizer,
character_range: NSRange,
utterance: &AVSpeechUtterance,
);
#[optional]
#[unsafe(method(speechSynthesizer:willSpeakMarker:utterance:))]
#[unsafe(method_family = none)]
unsafe fn speechSynthesizer_willSpeakMarker_utterance(
&self,
synthesizer: &AVSpeechSynthesizer,
marker: &AVSpeechSynthesisMarker,
utterance: &AVSpeechUtterance,
);
}
);
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct AVSpeechSynthesisMarker;
);
unsafe impl Send for AVSpeechSynthesisMarker {}
unsafe impl Sync for AVSpeechSynthesisMarker {}
extern_conformance!(
unsafe impl NSCoding for AVSpeechSynthesisMarker {}
);
extern_conformance!(
unsafe impl NSCopying for AVSpeechSynthesisMarker {}
);
unsafe impl CopyingHelper for AVSpeechSynthesisMarker {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for AVSpeechSynthesisMarker {}
);
extern_conformance!(
unsafe impl NSSecureCoding for AVSpeechSynthesisMarker {}
);
impl AVSpeechSynthesisMarker {
extern_methods!(
#[unsafe(method(mark))]
#[unsafe(method_family = none)]
pub unsafe fn mark(&self) -> AVSpeechSynthesisMarkerMark;
#[unsafe(method(setMark:))]
#[unsafe(method_family = none)]
pub unsafe fn setMark(&self, mark: AVSpeechSynthesisMarkerMark);
#[unsafe(method(byteSampleOffset))]
#[unsafe(method_family = none)]
pub unsafe fn byteSampleOffset(&self) -> NSUInteger;
#[unsafe(method(setByteSampleOffset:))]
#[unsafe(method_family = none)]
pub unsafe fn setByteSampleOffset(&self, byte_sample_offset: NSUInteger);
#[unsafe(method(textRange))]
#[unsafe(method_family = none)]
pub unsafe fn textRange(&self) -> NSRange;
#[unsafe(method(setTextRange:))]
#[unsafe(method_family = none)]
pub unsafe fn setTextRange(&self, text_range: NSRange);
#[unsafe(method(bookmarkName))]
#[unsafe(method_family = none)]
pub unsafe fn bookmarkName(&self) -> Retained<NSString>;
#[unsafe(method(setBookmarkName:))]
#[unsafe(method_family = none)]
pub unsafe fn setBookmarkName(&self, bookmark_name: &NSString);
#[unsafe(method(phoneme))]
#[unsafe(method_family = none)]
pub unsafe fn phoneme(&self) -> Retained<NSString>;
#[unsafe(method(setPhoneme:))]
#[unsafe(method_family = none)]
pub unsafe fn setPhoneme(&self, phoneme: &NSString);
#[unsafe(method(initWithMarkerType:forTextRange:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithMarkerType_forTextRange_atByteSampleOffset(
this: Allocated<Self>,
r#type: AVSpeechSynthesisMarkerMark,
range: NSRange,
byte_sample_offset: NSUInteger,
) -> Retained<Self>;
#[unsafe(method(initWithWordRange:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithWordRange_atByteSampleOffset(
this: Allocated<Self>,
range: NSRange,
byte_sample_offset: NSInteger,
) -> Retained<Self>;
#[unsafe(method(initWithSentenceRange:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSentenceRange_atByteSampleOffset(
this: Allocated<Self>,
range: NSRange,
byte_sample_offset: NSInteger,
) -> Retained<Self>;
#[unsafe(method(initWithParagraphRange:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithParagraphRange_atByteSampleOffset(
this: Allocated<Self>,
range: NSRange,
byte_sample_offset: NSInteger,
) -> Retained<Self>;
#[unsafe(method(initWithPhonemeString:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithPhonemeString_atByteSampleOffset(
this: Allocated<Self>,
phoneme: &NSString,
byte_sample_offset: NSInteger,
) -> Retained<Self>;
#[unsafe(method(initWithBookmarkName:atByteSampleOffset:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBookmarkName_atByteSampleOffset(
this: Allocated<Self>,
mark: &NSString,
byte_sample_offset: NSInteger,
) -> Retained<Self>;
);
}
impl AVSpeechSynthesisMarker {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}