objc2_speech/generated/
SFVoiceAnalytics.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct SFAcousticFeature;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for SFAcousticFeature {}
20);
21
22extern_conformance!(
23 unsafe impl NSCopying for SFAcousticFeature {}
24);
25
26unsafe impl CopyingHelper for SFAcousticFeature {
27 type Result = Self;
28}
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for SFAcousticFeature {}
32);
33
34extern_conformance!(
35 unsafe impl NSSecureCoding for SFAcousticFeature {}
36);
37
38impl SFAcousticFeature {
39 extern_methods!(
40 #[unsafe(method(acousticFeatureValuePerFrame))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn acousticFeatureValuePerFrame(&self) -> Retained<NSArray<NSNumber>>;
44
45 #[unsafe(method(frameDuration))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn frameDuration(&self) -> NSTimeInterval;
49 );
50}
51
52impl SFAcousticFeature {
54 extern_methods!(
55 #[unsafe(method(init))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59 #[unsafe(method(new))]
60 #[unsafe(method_family = new)]
61 pub unsafe fn new() -> Retained<Self>;
62 );
63}
64
65extern_class!(
66 #[unsafe(super(NSObject))]
79 #[derive(Debug, PartialEq, Eq, Hash)]
80 pub struct SFVoiceAnalytics;
81);
82
83extern_conformance!(
84 unsafe impl NSCoding for SFVoiceAnalytics {}
85);
86
87extern_conformance!(
88 unsafe impl NSCopying for SFVoiceAnalytics {}
89);
90
91unsafe impl CopyingHelper for SFVoiceAnalytics {
92 type Result = Self;
93}
94
95extern_conformance!(
96 unsafe impl NSObjectProtocol for SFVoiceAnalytics {}
97);
98
99extern_conformance!(
100 unsafe impl NSSecureCoding for SFVoiceAnalytics {}
101);
102
103impl SFVoiceAnalytics {
104 extern_methods!(
105 #[unsafe(method(jitter))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn jitter(&self) -> Retained<SFAcousticFeature>;
109
110 #[unsafe(method(shimmer))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn shimmer(&self) -> Retained<SFAcousticFeature>;
114
115 #[unsafe(method(pitch))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn pitch(&self) -> Retained<SFAcousticFeature>;
121
122 #[unsafe(method(voicing))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn voicing(&self) -> Retained<SFAcousticFeature>;
128 );
129}
130
131impl SFVoiceAnalytics {
133 extern_methods!(
134 #[unsafe(method(init))]
135 #[unsafe(method_family = init)]
136 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
137
138 #[unsafe(method(new))]
139 #[unsafe(method_family = new)]
140 pub unsafe fn new() -> Retained<Self>;
141 );
142}