@@ -25,7 +25,7 @@ namespace Speech {
25
25
26
26
/// <summary>Enumerates the states of a <see cref="T:Speech.SFSpeechRecognitionTask" />.</summary>
27
27
[ Native ]
28
- [ MacCatalyst ( 13 , 1 ) ]
28
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
29
29
public enum SFSpeechRecognitionTaskState : long {
30
30
Starting = 0 ,
31
31
Running = 1 ,
@@ -35,7 +35,7 @@ public enum SFSpeechRecognitionTaskState : long {
35
35
}
36
36
37
37
[ Native ]
38
- [ MacCatalyst ( 13 , 1 ) ]
38
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
39
39
public enum SFSpeechRecognitionTaskHint : long {
40
40
Unspecified = 0 ,
41
41
Dictation = 1 ,
@@ -45,27 +45,28 @@ public enum SFSpeechRecognitionTaskHint : long {
45
45
46
46
/// <include file="../docs/api/Speech/SFSpeechRecognizerAuthorizationStatus.xml" path="/Documentation/Docs[@DocId='T:Speech.SFSpeechRecognizerAuthorizationStatus']/*" />
47
47
[ Native ]
48
- [ MacCatalyst ( 13 , 1 ) ]
48
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
49
49
public enum SFSpeechRecognizerAuthorizationStatus : long {
50
50
NotDetermined ,
51
51
Denied ,
52
52
Restricted ,
53
53
Authorized ,
54
54
}
55
55
56
- [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) ]
56
+ [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) , TV ( 18 , 0 ) ]
57
57
[ Native ]
58
58
[ ErrorDomain ( "SFSpeechErrorDomain" ) ]
59
59
public enum SFSpeechErrorCode : long {
60
60
InternalServiceError = 1 ,
61
+ AudioReadFailed = 2 ,
61
62
UndefinedTemplateClassName = 7 ,
62
63
MalformedSupplementalModel = 8 ,
63
64
}
64
65
65
66
/// <summary>Abstract base class for speech recognition requests (see <see cref="T:Speech.SFSpeechAudioBufferRecognitionRequest" /> and <see cref="T:Speech.SFSpeechUrlRecognitionRequest" />).</summary>
66
67
///
67
68
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechRecognitionRequest">Apple documentation for <c>SFSpeechRecognitionRequest</c></related>
68
- [ MacCatalyst ( 13 , 1 ) ]
69
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
69
70
[ DisableDefaultCtor ]
70
71
[ Abstract ] // no docs (yet) but it has no means (init*) to create it, unlike its subclasses
71
72
[ BaseType ( typeof ( NSObject ) ) ]
@@ -82,6 +83,7 @@ interface SFSpeechRecognitionRequest {
82
83
83
84
[ Deprecated ( PlatformName . iOS , 15 , 0 ) ]
84
85
[ Deprecated ( PlatformName . MacCatalyst , 15 , 0 ) ]
86
+ [ Deprecated ( PlatformName . MacOSX , 12 , 0 ) ]
85
87
[ NullAllowed , Export ( "interactionIdentifier" ) ]
86
88
string InteractionIdentifier { get ; set ; }
87
89
@@ -102,7 +104,7 @@ interface SFSpeechRecognitionRequest {
102
104
/// <summary>A <see cref="T:Speech.SFSpeechRecognitionRequest" /> whose audio source is specified in a URL</summary>
103
105
///
104
106
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechURLRecognitionRequest">Apple documentation for <c>SFSpeechURLRecognitionRequest</c></related>
105
- [ MacCatalyst ( 13 , 1 ) ]
107
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
106
108
[ BaseType ( typeof ( SFSpeechRecognitionRequest ) , Name = "SFSpeechURLRecognitionRequest" ) ]
107
109
[ DisableDefaultCtor ]
108
110
interface SFSpeechUrlRecognitionRequest {
@@ -118,7 +120,7 @@ interface SFSpeechUrlRecognitionRequest {
118
120
/// <summary>An <see cref="T:Speech.SFSpeechRecognitionRequest" /> that takes its input from an audio buffer.</summary>
119
121
///
120
122
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechAudioBufferRecognitionRequest">Apple documentation for <c>SFSpeechAudioBufferRecognitionRequest</c></related>
121
- [ MacCatalyst ( 13 , 1 ) ]
123
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
122
124
[ BaseType ( typeof ( SFSpeechRecognitionRequest ) ) ]
123
125
interface SFSpeechAudioBufferRecognitionRequest {
124
126
@@ -141,7 +143,7 @@ interface SFSpeechAudioBufferRecognitionRequest {
141
143
/// <see cref="T:Speech.SFSpeechRecognitionResult" />contain a <see cref="T:Speech.SFTranscription" /> in<see cref="P:Speech.SFSpeechRecognitionResult.BestTranscription" /> that is the highest-confidence transcription. Additionally, the <see cref="P:Speech.SFSpeechRecognitionResult.Transcriptions" /> may contain additional <see cref="T:Speech.SFTranscription" /> objects that the developer may search for more domain-appropriate results.</para>
142
144
/// </remarks>
143
145
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechRecognitionResult">Apple documentation for <c>SFSpeechRecognitionResult</c></related>
144
- [ MacCatalyst ( 13 , 1 ) ]
146
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
145
147
[ BaseType ( typeof ( NSObject ) ) ]
146
148
interface SFSpeechRecognitionResult : NSCopying , NSSecureCoding {
147
149
@@ -163,7 +165,7 @@ interface SFSpeechRecognitionResult : NSCopying, NSSecureCoding {
163
165
/// <summary>Object that holds state and provides control of an asynchronous speech recognition task.</summary>
164
166
///
165
167
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechRecognitionTask">Apple documentation for <c>SFSpeechRecognitionTask</c></related>
166
- [ MacCatalyst ( 13 , 1 ) ]
168
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
167
169
[ BaseType ( typeof ( NSObject ) ) ]
168
170
interface SFSpeechRecognitionTask {
169
171
@@ -197,7 +199,7 @@ interface ISFSpeechRecognitionTaskDelegate { }
197
199
/// <summary>Delegate object whose members are called in reaction to speech-recognition events.</summary>
198
200
///
199
201
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechRecognitionTaskDelegate">Apple documentation for <c>SFSpeechRecognitionTaskDelegate</c></related>
200
- [ MacCatalyst ( 13 , 1 ) ]
202
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
201
203
[ Protocol , Model ]
202
204
[ BaseType ( typeof ( NSObject ) ) ]
203
205
interface SFSpeechRecognitionTaskDelegate {
@@ -219,6 +221,10 @@ interface SFSpeechRecognitionTaskDelegate {
219
221
220
222
[ Export ( "speechRecognitionTask:didFinishSuccessfully:" ) ]
221
223
void DidFinishSuccessfully ( SFSpeechRecognitionTask task , bool successfully ) ;
224
+
225
+ [ iOS ( 18 , 0 ) , Mac ( 10 , 15 ) , TV ( 18 , 0 ) ]
226
+ [ Export ( "speechRecognitionTask:didProcessAudioDuration:" ) ]
227
+ void DidProcessAudioDuration ( SFSpeechRecognitionTask task , double duration ) ;
222
228
}
223
229
224
230
/// <summary>Interface representing the required methods (if any) of the protocol <see cref="T:Speech.SFSpeechRecognizerDelegate" />.</summary>
@@ -232,7 +238,7 @@ interface ISFSpeechRecognizerDelegate { }
232
238
/// <summary>Delegate object for <see cref="T:Speech.SFSpeechRecognizer" />.</summary>
233
239
///
234
240
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFSpeechRecognizerDelegate">Apple documentation for <c>SFSpeechRecognizerDelegate</c></related>
235
- [ MacCatalyst ( 13 , 1 ) ]
241
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
236
242
[ Protocol , Model ]
237
243
[ BaseType ( typeof ( NSObject ) ) ]
238
244
interface SFSpeechRecognizerDelegate {
@@ -242,7 +248,7 @@ interface SFSpeechRecognizerDelegate {
242
248
}
243
249
244
250
/// <include file="../docs/api/Speech/SFSpeechRecognizer.xml" path="/Documentation/Docs[@DocId='T:Speech.SFSpeechRecognizer']/*" />
245
- [ MacCatalyst ( 13 , 1 ) ]
251
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
246
252
[ BaseType ( typeof ( NSObject ) ) ]
247
253
interface SFSpeechRecognizer {
248
254
@@ -290,7 +296,7 @@ interface SFSpeechRecognizer {
290
296
NSOperationQueue Queue { get ; set ; }
291
297
}
292
298
293
- [ iOS ( 14 , 5 ) , Mac ( 11 , 3 ) ]
299
+ [ iOS ( 14 , 5 ) , Mac ( 11 , 3 ) , TV ( 18 , 0 ) ]
294
300
[ MacCatalyst ( 14 , 5 ) ]
295
301
[ BaseType ( typeof ( NSObject ) ) ]
296
302
[ DisableDefaultCtor ]
@@ -315,7 +321,7 @@ interface SFSpeechRecognitionMetadata : NSCopying, NSSecureCoding {
315
321
/// <summary>A conversion of speech into text.</summary>
316
322
///
317
323
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFTranscription">Apple documentation for <c>SFTranscription</c></related>
318
- [ MacCatalyst ( 13 , 1 ) ]
324
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
319
325
[ BaseType ( typeof ( NSObject ) ) ]
320
326
interface SFTranscription : NSCopying , NSSecureCoding {
321
327
@@ -330,6 +336,7 @@ interface SFTranscription : NSCopying, NSSecureCoding {
330
336
[ Deprecated ( PlatformName . iOS , 14 , 5 ) ]
331
337
[ MacCatalyst ( 13 , 1 ) ]
332
338
[ Deprecated ( PlatformName . MacCatalyst , 14 , 5 ) ]
339
+ [ Deprecated ( PlatformName . TvOS , 14 , 5 ) ]
333
340
[ Advice ( "Use 'SpeakingRate' from 'SFSpeechRecognitionMetadata' instead." ) ]
334
341
double SpeakingRate { get ; }
335
342
@@ -338,12 +345,13 @@ interface SFTranscription : NSCopying, NSSecureCoding {
338
345
[ Deprecated ( PlatformName . iOS , 14 , 5 ) ]
339
346
[ MacCatalyst ( 13 , 1 ) ]
340
347
[ Deprecated ( PlatformName . MacCatalyst , 14 , 5 ) ]
348
+ [ Deprecated ( PlatformName . TvOS , 14 , 5 ) ]
341
349
[ Advice ( "Use 'AveragePauseDuration' from 'SFSpeechRecognitionMetadata' instead." ) ]
342
350
double AveragePauseDuration { get ; }
343
351
}
344
352
345
353
/// <related type="externalDocumentation" href="https://developer.apple.com/reference/Speech/SFTranscriptionSegment">Apple documentation for <c>SFTranscriptionSegment</c></related>
346
- [ MacCatalyst ( 13 , 1 ) ]
354
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
347
355
[ BaseType ( typeof ( NSObject ) ) ]
348
356
interface SFTranscriptionSegment : NSCopying , NSSecureCoding {
349
357
@@ -370,12 +378,13 @@ interface SFTranscriptionSegment : NSCopying, NSSecureCoding {
370
378
[ Deprecated ( PlatformName . iOS , 14 , 5 ) ]
371
379
[ MacCatalyst ( 13 , 1 ) ]
372
380
[ Deprecated ( PlatformName . MacCatalyst , 14 , 5 ) ]
381
+ [ Deprecated ( PlatformName . TvOS , 14 , 5 ) ]
373
382
[ Advice ( "Use 'VoiceAnalytics' from 'SFSpeechRecognitionMetadata' instead." ) ]
374
383
SFVoiceAnalytics VoiceAnalytics { get ; }
375
384
}
376
385
377
386
[ iOS ( 13 , 0 ) ]
378
- [ MacCatalyst ( 13 , 1 ) ]
387
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
379
388
[ BaseType ( typeof ( NSObject ) ) ]
380
389
[ DisableDefaultCtor ]
381
390
interface SFAcousticFeature : NSCopying , NSSecureCoding {
@@ -388,7 +397,7 @@ interface SFAcousticFeature : NSCopying, NSSecureCoding {
388
397
}
389
398
390
399
[ iOS ( 13 , 0 ) ]
391
- [ MacCatalyst ( 13 , 1 ) ]
400
+ [ MacCatalyst ( 13 , 1 ) , TV ( 18 , 0 ) ]
392
401
[ BaseType ( typeof ( NSObject ) ) ]
393
402
[ DisableDefaultCtor ]
394
403
interface SFVoiceAnalytics : NSCopying , NSSecureCoding {
@@ -406,7 +415,7 @@ interface SFVoiceAnalytics : NSCopying, NSSecureCoding {
406
415
SFAcousticFeature Voicing { get ; }
407
416
}
408
417
409
- [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) ]
418
+ [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) , TV ( 18 , 0 ) ]
410
419
[ BaseType ( typeof ( NSObject ) ) ]
411
420
interface SFSpeechLanguageModelConfiguration : NSCopying {
412
421
[ Export ( "initWithLanguageModel:" ) ]
@@ -422,7 +431,7 @@ interface SFSpeechLanguageModelConfiguration : NSCopying {
422
431
NSUrl Vocabulary { get ; }
423
432
}
424
433
425
- [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) ]
434
+ [ Mac ( 14 , 0 ) , iOS ( 17 , 0 ) , MacCatalyst ( 17 , 0 ) , TV ( 18 , 0 ) ]
426
435
[ BaseType ( typeof ( NSObject ) ) ]
427
436
[ DisableDefaultCtor ]
428
437
interface SFSpeechLanguageModel {
0 commit comments