With basic programming, now it can output some voice via 3.5mm one. But now don't know how to control the frequency of voice.
Sorry which board specifically, link to it's home page because I'm assuming it is not the STM32L4R9I-DISCO
For tones you'd presumably make a pattern buffer with sine waves in it as a function of the CODEC/DAC sample rate and the lower frequency of the tone. The pattern buffer length being some integer multiple of sine waves so you can loop it and output a continuous signal.
Retrieving data ...