SwiftAudioPlayer
SwiftAudioPlayer copied to clipboard
Figure out appropriate rate and possible rate limitations for skip silences feature
Copying over discussion:
@tanhakabir: I don't want to use hardcoded 1.5 for speeding up to skip silences as they might have the audio rate set to 4 or something by default.
There's 2 options here:
- We change this to add to the current rate by some appropriate factor. I'm think this rate increase for skipping silences should be less at higher rates so we'd need to determine some sort of ratio.
- We assume that at rates above some number, like 3, the skip silences feature wouldn't be noticeable/helpful and then we could just restrict the rate change to a lower range of original rates. This makes it easy to just add some constant to the current rate.
@jw1540: That's a really good point that I hadn't considered. I like both suggestions and think a mix of the two would be best? Applying some appropriate factor definitely seems the right way to go and if the rate increases beyond to a point where the skip would be negligible it just switches the tap off?
Currently we add a constant of 0.5 to speed up audio but this should probably be a variable factor