objc2_speech/generated/
SFVoiceAnalytics.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/speech/sfacousticfeature?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct SFAcousticFeature;
14);
15
16unsafe impl NSCoding for SFAcousticFeature {}
17
18unsafe impl NSCopying for SFAcousticFeature {}
19
20unsafe impl CopyingHelper for SFAcousticFeature {
21    type Result = Self;
22}
23
24unsafe impl NSObjectProtocol for SFAcousticFeature {}
25
26unsafe impl NSSecureCoding for SFAcousticFeature {}
27
28impl SFAcousticFeature {
29    extern_methods!(
30        #[unsafe(method(acousticFeatureValuePerFrame))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn acousticFeatureValuePerFrame(&self) -> Retained<NSArray<NSNumber>>;
33
34        #[unsafe(method(frameDuration))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn frameDuration(&self) -> NSTimeInterval;
37    );
38}
39
40/// Methods declared on superclass `NSObject`.
41impl SFAcousticFeature {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}
52
53extern_class!(
54    /// [Apple's documentation](https://developer.apple.com/documentation/speech/sfvoiceanalytics?language=objc)
55    #[unsafe(super(NSObject))]
56    #[derive(Debug, PartialEq, Eq, Hash)]
57    pub struct SFVoiceAnalytics;
58);
59
60unsafe impl NSCoding for SFVoiceAnalytics {}
61
62unsafe impl NSCopying for SFVoiceAnalytics {}
63
64unsafe impl CopyingHelper for SFVoiceAnalytics {
65    type Result = Self;
66}
67
68unsafe impl NSObjectProtocol for SFVoiceAnalytics {}
69
70unsafe impl NSSecureCoding for SFVoiceAnalytics {}
71
72impl SFVoiceAnalytics {
73    extern_methods!(
74        #[unsafe(method(jitter))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn jitter(&self) -> Retained<SFAcousticFeature>;
77
78        #[unsafe(method(shimmer))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn shimmer(&self) -> Retained<SFAcousticFeature>;
81
82        #[unsafe(method(pitch))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn pitch(&self) -> Retained<SFAcousticFeature>;
85
86        #[unsafe(method(voicing))]
87        #[unsafe(method_family = none)]
88        pub unsafe fn voicing(&self) -> Retained<SFAcousticFeature>;
89    );
90}
91
92/// Methods declared on superclass `NSObject`.
93impl SFVoiceAnalytics {
94    extern_methods!(
95        #[unsafe(method(init))]
96        #[unsafe(method_family = init)]
97        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
98
99        #[unsafe(method(new))]
100        #[unsafe(method_family = new)]
101        pub unsafe fn new() -> Retained<Self>;
102    );
103}