 The Elvish language lines spoken in the film are not just quotes  from the book, they were derived from J.R.R. Tolkien (qv)s own  limited dictionary of that language. Dialect coach  Andrew Jack (I) (qv) used actual recordings of Tolkien reading his  books to guide the actors pronunciation.