diff --git a/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm b/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm index dad81fa3..34ddb2fc 100644 --- a/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm +++ b/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm @@ -80,8 +80,8 @@ - (void)startRecording { } AVAudioSession *session = [AVAudioSession sharedInstance]; - [session setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeMeasurement options:AVAudioSessionCategoryOptionDefaultToSpeaker error:nil]; - [session setActive:TRUE withOptions:AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error:nil]; + [session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionMixWithOthers error:nil]; + [session setActive:TRUE error:nil]; inputNode = audioEngine.inputNode; diff --git a/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm.meta b/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm.meta index bc13a2f2..9d99b0c4 100644 --- a/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm.meta +++ b/SpeechToText_AppleAPI/Assets/Plugins/iOS/SpeechRecorderViewController.mm.meta @@ -1,22 +1,30 @@ fileFormatVersion: 2 guid: e0ef875cf51d23144a083e09c17fdec5 -timeCreated: 1489634854 -licenseType: Free PluginImporter: - serializedVersion: 1 + externalObjects: {} + serializedVersion: 2 iconMap: {} executionOrder: {} + defineConstraints: [] isPreloaded: 0 isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 platformData: - Any: + - first: + Any: + second: enabled: 0 settings: {} - Editor: + - first: + Editor: Editor + second: enabled: 0 settings: DefaultValueInitialized: true - iOS: + - first: + iPhone: iOS + second: enabled: 1 settings: {} userData: