Pre-Selecting the default Voice error

I’m on the Kindle version of the book so I’m not sure of page numbers, but Kindle does say I’m at location 3851. The text has us type in:

This gives me an error:[quote] ‘find’ is unavailable: call the ‘indexOf()’ method on the collection[/quote]

So, use:

This section of code was deprecated with the release of Swift 3.0.1.
The old code was found on page 133.

    let defaultVoice = NSSpeechSynthesizer.defaultVoice()
    if let defaultRow = voices.index(of: defaultVoice) {
        let indices = NSIndexSet( index: defaultRow)
        tableView.selectRowIndexes(indices as IndexSet, byExtendingSelection: true)
        tableView.scrollRowToVisible(defaultRow)
    }