1
私はAVAudioRecorderとAVAudioPlayerを使ってオーディオを録音し、再生しています。 AVAudioPlayerにオーディオを挿入するには、マーカーを配置して特定の時間を設定します。誰も私にこれをする方法を助けることができますか?オーディオファイルを分割する
私はAVAudioRecorderとAVAudioPlayerを使ってオーディオを録音し、再生しています。 AVAudioPlayerにオーディオを挿入するには、マーカーを配置して特定の時間を設定します。誰も私にこれをする方法を助けることができますか?オーディオファイルを分割する
ことは、これを試してみてください:
-(void)Play
{
AVAudioPlayer *avPlayer = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:[FileDetailsRec valueForKey:@"Path"]] error:nil];
[avPlayer setCurrentTime:5.01f];
[avPlayer prepareToPlay];
[avPlayer play];
objTimer = [NSTimer scheduledTimerWithTimeInterval:1.07f target:self selector:@selector(stop) userInfo:nil repeats:NO];
}
-(void)stop
{
[objTimer invalidate];
[avPlayer stop];
}
私は主音声を分割し、新しいオーディオを挿入したいことが
..あなたを助け、願っています....一度これを確認してください。 –