Use OfflineAudioContext if available.
Use OfflineAudioContext if available, change sample rate to 48 kHz.