1. A method comprising: determining, by a computing device, a representation of text that includes a first linguistic term associated with a first set of speech sounds that include pronunciations of the first linguistic term, and a second linguistic term associated with a second set of speech sounds that include pronunciations of the second linguistic term; determining, by the computing device, a plurality of joins between the first set and the second set, wherein a given join is indicative of concatenating a first speech sound from the first set with a second speech sound from the second set, wherein a given local cost of the given join corresponds to a weighted sum of individual costs, wherein a given individual cost is weighted based on a variability of the given individual cost in the plurality of joins; and providing, by the computing device, a sequence of speech sounds indicative of a pronunciation of the text based on a minimization of a sum of local costs of adjacent speech sounds in the sequence, wherein the first speech sound and the second speech sound are included in the sequence based on the given local cost of the given join minimizing the sum.