g729 file

Hello, i want to translate an audio file wich is in wav to g729, to be used in asterisk, how can do this? wich format i have to use?

Thanks in advance

use the linux command “sox.”