@class NSMutableDictionary, NSMutableData, NSObject, AFInstanceContext, NSString, NSSet, AFCallSiteInfo, AFAnalyticsTurnBasedInstrumentationContext, NSArray, AFAnalyticsEvent, NSXPCConnection, AFAudioPowerUpdater, AFSpeechRequestOptions; @protocol OS_dispatch_group, AFDictationDelegate, OS_dispatch_source, OS_dispatch_queue; @interface AFDictationConnection : NSObject { NSXPCConnection *_connection; NSString *_lastUsedLanguage; NSSet *_knownOfflineInstalledLanguages; AFCallSiteInfo *_initiationCallSiteInfo; AFAudioPowerUpdater *_inputAudioPowerUpdater; BOOL _isCapturingSpeech; BOOL _hasActiveRequest; BOOL _isWaitingForAudioFile; BOOL _recognizingIncrementally; BOOL _shouldClassifyIntent; BOOL _shouldRecognizeCommands; NSObject *_speechCallbackGroup; NSObject *_internalQueue; NSObject *_timeoutTimer; NSObject *_bufferTimer; BOOL _forceOfflineRecognition; AFSpeechRequestOptions *_stopOptions; NSMutableData *_buffer; double _audioStartTime; double _amountDataSent; BOOL _narrowband; NSString *_requestIdString; NSArray *_previouslyRecognizedPhrases; NSString *_onDeviceDictationUIInteractionIdentifier; AFInstanceContext *_instanceContext; AFAnalyticsEvent *_preheatEvent; AFAnalyticsTurnBasedInstrumentationContext *_intstrumentationContext; BOOL _isDetectingUtterances; NSMutableDictionary *_languagesLoggingInfo; } @property (weak, nonatomic) id delegate; @property (retain, nonatomic) NSObject *delegateQueue; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; + (void)getForcedOfflineDictationSupportedLanguagesWithCompletion:(id /* block */)a0; + (BOOL)dictationIsSupportedForLanguageCode:(id)a0 error:(id *)a1; + (BOOL)languageDetectorIsEnabled; + (BOOL)dictationIsEnabled; + (void)fetchSupportedLanguageCodes:(id /* block */)a0; - (void)sendSpeechCorrection:(id)a0 interactionIdentifier:(id)a1; - (id)initWithInstanceContext:(id)a0; - (id)_connection; - (void)_availabilityChanged; - (void)_tellSpeechDelegateRecordingDidEnd; - (id)init; - (void)startDictationWithSpeechFileAtURL:(id)a0 options:(id)a1 forLanguage:(id)a2; - (void)dealloc; - (void)_startInputAudioPowerUpdatesWithXPCWrapper:(id)a0; - (void)sendSpeechCorrection:(id)a0 forIdentifier:(id)a1; - (void)resumeRecognitionWithPrefixText:(id)a0 postfixText:(id)a1 selectedText:(id)a2; - (void)preheat; - (void)_scheduleRequestTimeout; - (id)_dictationServiceWithErrorHandler:(id /* block */)a0; - (void)_tellSpeechDelegateDidRecognizeVoiceCommandCandidatePackage:(id)a0 nluResult:(id)a1; - (void)startRecordedAudioDictationWithOptions:(id)a0 forLanguage:(id)a1 narrowband:(BOOL)a2 forceSampling:(BOOL)a3; - (void)_tellSpeechDelegateDidRecognizeFinalResultCandidatePackage:(id)a0; - (void)_registerInvalidationHandlerForXPCConnection:(id)a0; - (void)stopSpeech; - (void)_logRequestCompetionStatusWithEventType:(long long)a0 error:(id)a1; - (void)pauseRecognition; - (void)_tellSpeechDelegateRecordingWillBegin; - (void)requestOfflineAssistantSupportForLanguage:(id)a0 completion:(id /* block */)a1; - (void)_tellSpeechDelegateAudioFileFinished:(id)a0 error:(id)a1; - (void)_tellSpeechDelegateAvailabilityChanged; - (id)_dequeueAudioWithLength:(unsigned long long)a0; - (void)requestOfflineDictationSupportForLanguage:(id)a0 completion:(id /* block */)a1; - (void)_tellSpeechDelegateDidBeginLocalRecognitionWithModelInfo:(id)a0; - (void)sendEngagementFeedback:(long long)a0 voiceQueryIdentifier:(id)a1; - (float)averagePower; - (BOOL)dictationIsAvailableForLanguage:(id)a0; - (void)addRecordedSpeechSampleData:(id)a0; - (void)endSession; - (void)_willStartDictationWithLanguageCode:(id)a0 options:(id)a1 speechOptions:(id)a2 machAbsoluteTime:(unsigned long long)a3; - (void)_tellSpeechDelegateRecordingDidCancel; - (void)networkAvailability:(id)a0 isAvailable:(BOOL)a1; - (void)_willFailDictationWithError:(id)a0; - (void)_extendRequestTimeout; - (void)updateSpeechOptions:(id)a0; - (BOOL)forcedOfflineDictationIsAvailableForLanguage:(id)a0; - (void)_tellSpeechDelegateRecordingDidBeginWithOptions:(id)a0; - (void)_tellSpeechDelegateLanguageDetected:(id)a0 confidenceScores:(id)a1 isConfident:(BOOL)a2; - (void)_willCancelDictation; - (void)_tellSpeechDelegateSearchResultsReceived:(id)a0 recognitionText:(id)a1 stable:(BOOL)a2 final:(BOOL)a3; - (void)startDictationWithLanguageCode:(id)a0 options:(id)a1; - (void)_tellSpeechDelegateDidRecognizePartialSpeechPackage:(id)a0 nluResult:(id)a1 languageModel:(id)a2; - (void)reportIssueForError:(id)a0 eventType:(long long)a1 context:(id)a2; - (void)_tellSpeechDelegateSpeechRecognitionDidSucceed; - (void)_updateBufferFlushTimerWithDelay:(double)a0; - (void)_willCompleteDictation; - (void)_tellSpeechDelegateDidRecognizeSpeechPhrases:(id)a0 rawPhrases:(id)a1 utterances:(id)a2 rawUtterances:(id)a3 nluResult:(id)a4 languageModel:(id)a5 correctionIdentifier:(id)a6 audioAnalytics:(id)a7; - (void)_tellSpeechDelegateDidRecognizePartialResult:(id)a0; - (void)_tellSpeechDelegateDidRecognizePackage:(id)a0; - (void)startDictationWithSpeechFileAtURL:(id)a0 isNarrowBand:(BOOL)a1 options:(id)a2 forLanguage:(id)a3; - (void)_cancelRequestTimeout; - (void)startDictationWithLanguageCode:(id)a0 options:(id)a1 speechOptions:(id)a2; - (void)_clearConnection; - (void)_dispatchCallbackGroupBlock:(id /* block */)a0; - (void)_tellSpeechDelegateDidRecognizeTranscriptionObjects:(id)a0 languageModel:(id)a1; - (void)_cancelBufferFlushTimer; - (void)startRecordedAudioDictationWithOptions:(id)a0 forLanguage:(id)a1; - (void)_dispatchAsync:(id /* block */)a0; - (BOOL)dictationIsAvailableForLanguage:(id)a0 synchronous:(BOOL)a1; - (void)_delayedStopSpeechWithOptions:(id)a0; - (void)beginAvailabilityMonitoring; - (void).cxx_destruct; - (void)_connectionClearedForInterruption:(BOOL)a0; - (void)_delegateDidRecognizeSpeechTokens:(id)a0 nluResult:(id)a1 languageModel:(id)a2 delegate:(id)a3; - (void)preheatForLanguageCode:(id)a0; - (void)_setActivationTimeOnOptionsIfNecessary:(id)a0; - (void)_tellSpeechDelegateLanguageDetectorDidFail:(id)a0; - (void)_addPreheatAnalyticsEvent; - (id /* block */)startRecordingForPendingDictationWithLanguageCode:(id)a0 options:(id)a1 speechOptions:(id)a2; - (void)stopSpeechWithOptions:(id)a0; - (void)_tellSpeechDelegateDidRecognizeSpeechTokens:(id)a0 nluResult:(id)a1 languageModel:(id)a2; - (void)cancelSpeech; - (id)_dictationService; - (void)_delegateDidRecognizePartialSpeechPackage:(id)a0 nluResult:(id)a1 languageModel:(id)a2 delegate:(id)a3; - (void)_tellSpeechDelegateDidProcessAudioDuration:(double)a0; - (BOOL)forcedOfflineDictationIsAvailableForLanguage:(id)a0 synchronous:(BOOL)a1; - (void)preheatWithRecordDeviceIdentifier:(id)a0; - (void)_tellSpeechDelegateRecognitionDidFail:(id)a0; - (void)cancelAvailabilityMonitoring; - (void)reportIssueForError:(id)a0 eventType:(long long)a1 subtype:(id)a2 context:(id)a3; - (void)_stopInputAudioPowerUpdates; - (void)_checkAndSetIsCapturingSpeech:(BOOL)a0; - (void)suppressLowStorageNotificationForLanguage:(id)a0 suppress:(BOOL)a1; - (void)_cancelTimerClearBuffer; - (void)_sendDataIfNeeded; - (void)startRecordedAudioDictationWithOptions:(id)a0 forLanguage:(id)a1 narrowband:(BOOL)a2; - (void)_sendPendingAnalyticsEvents; - (void)_tellSpeechDelegateMultilingualSpeechRecognized:(id)a0; - (void)_invokeRequestTimeout; - (void)_tellSpeechDelegateRecordingDidFail:(id)a0; - (void)_tellSpeechDelegateDidPauseRecognition; - (void)preheatTestWithLanguage:(id)a0 options:(id)a1; - (float)peakPower; - (void)_LogUEIRequestCategorization:(int)a0; - (void)sendUserSelectedAlternativeDictationLanguageCode:(id)a0; @end