Swift 4 - Cannot convert value of type '()' to expected argument type 'URL'

I'm trying to add a metronome to my app, and after the conversion to Swift 4 I have an error I can't seem to fix. i get the following error: Cannot convert value of type '()' to expected argument type 'URL'

Here's the line I get the error:

let getBufferAccent = try AVAudioFile(forReading: audioFileAccentedClick.read(into: bufferAccentedClick!))

And Here's the entire block.

 private func generateBuffer(bpm: Double) -> AVAudioPCMBuffer {


    var accentBufferPrep: AVAudioFile?

    audioFileAccentedClick.framePosition = 0

    let beatLength = AVAudioFrameCount(audioFileAccentedClick.processingFormat.sampleRate * 60 / bpm)
    let bufferAccentedClick = AVAudioPCMBuffer(pcmFormat: audioFileAccentedClick.processingFormat, frameCapacity: beatLength)

    do{
        let getBufferAccent = try AVAudioFile(forReading: audioFileAccentedClick.read(into: bufferAccentedClick!))
        accentBufferPrep = getBufferAccent

    }catch{
        print("An error occurred")
    }
    accentBufferStart = accentBufferPrep

    bufferAccentedClick?.frameLength = beatLength