0
在我的iPhone應用程序中,我錄製了用戶的語音並將其保存在設備中。 我AVAudioRecorder的設置如下:錄製的語音筆記放慢應用程序
NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init];
[recordSetting setValue :[NSNumber numberWithInt:kAudioFormatAppleIMA4] forKey:AVFormatIDKey];
[recordSetting setValue:[NSNumber numberWithFloat:16000.0] forKey:AVSampleRateKey];
[recordSetting setValue:[NSNumber numberWithInt:1] forKey:AVNumberOfChannelsKey];
UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;
AudioSessionSetProperty(kAudioSessionProperty_OverrideAudioRoute,
sizeof(audioRouteOverride), &audioRouteOverride);
如果我救更多的聲音,應用程序變慢和slower.I一直保持採樣率較低,解決了目的,但即使是不woked.What應該怎麼辦?