gpt4 book ai didi

ios - 为 AVFoundationAudioSettings 设置 AVAudioTimePitchAlgorithmVarispeed

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:43:04 25 4
gpt4 key购买 nike

根据这些docs ,我可以更改 AVAudioPlayer 的某些设置,包括 AVAudioTimePitchAlgorithmVarispeed 设置。我将如何设置这个值?我需要继承 AVAudioSetting.h 吗?

最佳答案

如果不需要使用AVAudioPlayer,可以使用AVPlayer

AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url];
playerItem.audioTimePitchAlgorithm = AVAudioTimePitchAlgorithmTimeDomain;
AVPlayer *player = [AVPlayer playerWithPlayerItem:playerItem];
[player play];

关于ios - 为 AVFoundationAudioSettings 设置 AVAudioTimePitchAlgorithmVarispeed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23879194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com