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 SFAcousticFeature;
);
extern_conformance!(
unsafe impl NSCoding for SFAcousticFeature {}
);
extern_conformance!(
unsafe impl NSCopying for SFAcousticFeature {}
);
unsafe impl CopyingHelper for SFAcousticFeature {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for SFAcousticFeature {}
);
extern_conformance!(
unsafe impl NSSecureCoding for SFAcousticFeature {}
);
impl SFAcousticFeature {
extern_methods!(
#[unsafe(method(acousticFeatureValuePerFrame))]
#[unsafe(method_family = none)]
pub unsafe fn acousticFeatureValuePerFrame(&self) -> Retained<NSArray<NSNumber>>;
#[unsafe(method(frameDuration))]
#[unsafe(method_family = none)]
pub unsafe fn frameDuration(&self) -> NSTimeInterval;
);
}
impl SFAcousticFeature {
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 SFVoiceAnalytics;
);
extern_conformance!(
unsafe impl NSCoding for SFVoiceAnalytics {}
);
extern_conformance!(
unsafe impl NSCopying for SFVoiceAnalytics {}
);
unsafe impl CopyingHelper for SFVoiceAnalytics {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for SFVoiceAnalytics {}
);
extern_conformance!(
unsafe impl NSSecureCoding for SFVoiceAnalytics {}
);
impl SFVoiceAnalytics {
extern_methods!(
#[unsafe(method(jitter))]
#[unsafe(method_family = none)]
pub unsafe fn jitter(&self) -> Retained<SFAcousticFeature>;
#[unsafe(method(shimmer))]
#[unsafe(method_family = none)]
pub unsafe fn shimmer(&self) -> Retained<SFAcousticFeature>;
#[unsafe(method(pitch))]
#[unsafe(method_family = none)]
pub unsafe fn pitch(&self) -> Retained<SFAcousticFeature>;
#[unsafe(method(voicing))]
#[unsafe(method_family = none)]
pub unsafe fn voicing(&self) -> Retained<SFAcousticFeature>;
);
}
impl SFVoiceAnalytics {
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>;
);
}