use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct SFSpeechRecognitionMetadata;
);
extern_conformance!(
unsafe impl NSCoding for SFSpeechRecognitionMetadata {}
);
extern_conformance!(
unsafe impl NSCopying for SFSpeechRecognitionMetadata {}
);
unsafe impl CopyingHelper for SFSpeechRecognitionMetadata {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for SFSpeechRecognitionMetadata {}
);
extern_conformance!(
unsafe impl NSSecureCoding for SFSpeechRecognitionMetadata {}
);
impl SFSpeechRecognitionMetadata {
extern_methods!(
#[unsafe(method(speakingRate))]
#[unsafe(method_family = none)]
pub unsafe fn speakingRate(&self) -> c_double;
#[unsafe(method(averagePauseDuration))]
#[unsafe(method_family = none)]
pub unsafe fn averagePauseDuration(&self) -> NSTimeInterval;
#[unsafe(method(speechStartTimestamp))]
#[unsafe(method_family = none)]
pub unsafe fn speechStartTimestamp(&self) -> NSTimeInterval;
#[unsafe(method(speechDuration))]
#[unsafe(method_family = none)]
pub unsafe fn speechDuration(&self) -> NSTimeInterval;
#[cfg(feature = "SFVoiceAnalytics")]
#[unsafe(method(voiceAnalytics))]
#[unsafe(method_family = none)]
pub unsafe fn voiceAnalytics(&self) -> Option<Retained<SFVoiceAnalytics>>;
);
}
impl SFSpeechRecognitionMetadata {
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>;
);
}