# This file is generated by objective.metadata
#
# Last update: Sun Jul 23 11:00:24 2023
#
# flake8: noqa

import objc, sys
from typing import NewType

if sys.maxsize > 2**32:

    def sel32or64(a, b):
        return b

else:

    def sel32or64(a, b):
        return a


if objc.arch == "arm64":

    def selAorI(a, b):
        return a

else:

    def selAorI(a, b):
        return b


misc = {}
constants = """$SFAnalysisContextTagLeftContext$SFAnalysisContextTagRightContext$SFAnalysisContextTagSelectedText$SFSpeechErrorDomain$_SFAnalysisContextTagContextualNamedEntities$_SFAnalysisContextTagGeoLMRegionID$_SFAnalysisContextTagLeftContext$_SFAnalysisContextTagRightContext$_SFAnalysisContextTagSelectedText$"""
enums = """$SFCommandRecognizerArgumentPresenceMissing@3$SFCommandRecognizerArgumentPresenceMissingMaybeExpected@2$SFCommandRecognizerArgumentPresencePresentAndDelimited@0$SFCommandRecognizerArgumentPresencePresentMaybeIncomplete@1$SFSpeechErrorCodeInternalServiceError@1$SFSpeechErrorCodeMalformedSupplementalModel@8$SFSpeechErrorCodeUndefinedTemplateClassName@7$SFSpeechRecognitionTaskHintConfirmation@3$SFSpeechRecognitionTaskHintDictation@1$SFSpeechRecognitionTaskHintSearch@2$SFSpeechRecognitionTaskHintUnspecified@0$SFSpeechRecognitionTaskStateCanceling@3$SFSpeechRecognitionTaskStateCompleted@4$SFSpeechRecognitionTaskStateFinishing@2$SFSpeechRecognitionTaskStateRunning@1$SFSpeechRecognitionTaskStateStarting@0$SFSpeechRecognizerAuthorizationStatusAuthorized@3$SFSpeechRecognizerAuthorizationStatusDenied@1$SFSpeechRecognizerAuthorizationStatusNotDetermined@0$SFSpeechRecognizerAuthorizationStatusRestricted@2$_SFCommandRecognizerArgumentPresenceMissing@3$_SFCommandRecognizerArgumentPresenceMissingMaybeExpected@2$_SFCommandRecognizerArgumentPresencePresentAndDelimited@0$_SFCommandRecognizerArgumentPresencePresentMaybeIncomplete@1$_SFEARResultTypeCandidate@1$_SFEARResultTypeFinal@2$_SFEARResultTypeFinalAndTerminal@3$_SFEARResultTypePartial@0$_SFEARResultTypePauseConfirmation@4$_SFTranscriptionOptionsContextualizedTranscription@2$_SFTranscriptionOptionsEmoji@8$_SFTranscriptionOptionsEtiquetteReplacements@16$_SFTranscriptionOptionsNormalizedTranscription@1$_SFTranscriptionOptionsPunctuation@4$_SFTranscriptionResultAttributeOptionsCmTime@2$_SFTranscriptionResultAttributeOptionsConfidence@1$"""
misc.update(
    {
        "SFSpeechRecognitionTaskHint": NewType("SFSpeechRecognitionTaskHint", int),
        "SFSpeechErrorCode": NewType("SFSpeechErrorCode", int),
        "_SFCommandRecognizerArgumentPresence": NewType(
            "_SFCommandRecognizerArgumentPresence", int
        ),
        "_SFTranscriptionResultAttributeOptions": NewType(
            "_SFTranscriptionResultAttributeOptions", int
        ),
        "SFSpeechRecognizerAuthorizationStatus": NewType(
            "SFSpeechRecognizerAuthorizationStatus", int
        ),
        "SFSpeechRecognitionTaskState": NewType("SFSpeechRecognitionTaskState", int),
        "_SFTranscriptionOptions": NewType("_SFTranscriptionOptions", int),
        "_SFEARResultType": NewType("_SFEARResultType", int),
    }
)
misc.update({})
misc.update({})
r = objc.registerMetaDataForSelector
objc._updatingMetadata(True)
try:
    r(
        b"NSObject",
        b"speechAnalyzer:didProduceEndpointingResult:",
        {
            "required": True,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechAnalyzer:didProduceTranscriberResult:",
        {
            "required": True,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechAnalyzer:didStopEndpointingWithError:",
        {
            "required": True,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechAnalyzer:didStopTranscriptionWithError:",
        {
            "required": True,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechAnalyzerDidProduceAllTranscriberResults:",
        {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
    )
    r(
        b"NSObject",
        b"speechRecognitionDidDetectSpeech:",
        {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
    )
    r(
        b"NSObject",
        b"speechRecognitionTask:didFinishRecognition:",
        {
            "required": False,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechRecognitionTask:didFinishSuccessfully:",
        {
            "required": False,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
        },
    )
    r(
        b"NSObject",
        b"speechRecognitionTask:didHypothesizeTranscription:",
        {
            "required": False,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
        },
    )
    r(
        b"NSObject",
        b"speechRecognitionTaskFinishedReadingAudio:",
        {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
    )
    r(
        b"NSObject",
        b"speechRecognitionTaskWasCancelled:",
        {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
    )
    r(
        b"NSObject",
        b"speechRecognizer:availabilityDidChange:",
        {
            "required": False,
            "retval": {"type": b"v"},
            "arguments": {2: {"type": b"@"}, 3: {"type": b"Z"}},
        },
    )
    r(
        b"SFSpeechLanguageModel",
        b"prepareCustomLanguageModelForUrl:clientIdentifier:configuration:completion:",
        {
            "arguments": {
                5: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"SFSpeechLanguageModel",
        b"prepareCustomLanguageModelForUrl:clientIdentifier:configuration:ignoresCache:completion:",
        {
            "arguments": {
                5: {"type": b"Z"},
                6: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                },
            }
        },
    )
    r(b"SFSpeechRecognitionRequest", b"addsPunctuation", {"retval": {"type": b"Z"}})
    r(
        b"SFSpeechRecognitionRequest",
        b"requiresOnDeviceRecognition",
        {"retval": {"type": b"Z"}},
    )
    r(
        b"SFSpeechRecognitionRequest",
        b"setAddsPunctuation:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(
        b"SFSpeechRecognitionRequest",
        b"setRequiresOnDeviceRecognition:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(
        b"SFSpeechRecognitionRequest",
        b"setShouldReportPartialResults:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(
        b"SFSpeechRecognitionRequest",
        b"shouldReportPartialResults",
        {"retval": {"type": b"Z"}},
    )
    r(b"SFSpeechRecognitionResult", b"isFinal", {"retval": {"type": b"Z"}})
    r(b"SFSpeechRecognitionTask", b"isCancelled", {"retval": {"type": b"Z"}})
    r(b"SFSpeechRecognitionTask", b"isFinishing", {"retval": {"type": b"Z"}})
    r(b"SFSpeechRecognizer", b"isAvailable", {"retval": {"type": b"Z"}})
    r(
        b"SFSpeechRecognizer",
        b"recognitionTaskWithRequest:resultHandler:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"@"},
                            2: {"type": b"@"},
                        },
                    }
                }
            }
        },
    )
    r(
        b"SFSpeechRecognizer",
        b"requestAuthorization:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"q"}},
                    }
                }
            }
        },
    )
    r(
        b"SFSpeechRecognizer",
        b"setSupportsOnDeviceRecognition:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(b"SFSpeechRecognizer", b"supportsOnDeviceRecognition", {"retval": {"type": b"Z"}})
    r(
        b"_SFModelDownloadRequest",
        b"downloadWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"cancelPendingResultsAndPauseWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"finalizeAndFinishThrough:completion:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"finalizeAndFinishThroughEndOfInputWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"finalizeAndFinishWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"finalizeThrough:completion:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"finalizeWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getContextWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getModelInfoLanguageWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getModelInfoTasksWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getNextBufferStartTimeWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"{CMTime=qiIq}"},
                        },
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getRecognitionStatisticsWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"getRecognitionUtterenceStatisticsWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"initWithClientIdentifier:inputSequence:audioFormat:transcriberResultDelegate:endpointingResultDelegate:queue:transcriberOptions:commandRecognizerOptions:options:restrictedLogging:geoLMRegionID:contextualNamedEntities:didChangeVolatileRange:",
        {
            "arguments": {
                11: {"type": b"Z"},
                14: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"},
                            2: {"type": b"Z"},
                            3: {"type": b"Z"},
                        },
                    }
                },
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"prepareToAnalyzeReportingInto:completion:",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"resumeWithCompletion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    )
    r(
        b"_SFSpeechAnalyzer",
        b"setDidChangeVolatileRange:completion:",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"},
                            2: {"type": b"Z"},
                            3: {"type": b"Z"},
                        },
                    }
                },
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}},
                    }
                },
            }
        },
    )
    r(b"_SFSpeechAnalyzerOptions", b"highPriority", {"retval": {"type": b"Z"}})
    r(
        b"_SFSpeechAnalyzerOptions",
        b"initWithHighPriority:loggingInfo:powerContext:",
        {"arguments": {2: {"type": b"Z"}}},
    )
    r(b"_SFTranscriberModelOptions", b"farField", {"retval": {"type": b"Z"}})
    r(
        b"_SFTranscriberModelOptions",
        b"initWithSupplementalModelURL:farField:modelOverrideURL:speechProfileURLs:taskForMemoryLock:",
        {"arguments": {3: {"type": b"Z"}}},
    )
finally:
    objc._updatingMetadata(False)
expressions = {}

# END OF FILE
