1. A method comprising: receiving target acoustic features output from a neural network that has been trained to predict acoustic features given linguistic features; determining a distance between the target acoustic features and acoustic features of a stored acoustic sample; selecting the acoustic sample to be used in speech synthesis based at least on the determined distance; and synthesizing speech based on the selected acoustic sample.