cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate voice with specific Hz in stm32L4+ disco board?

Tingw Zeng
Associate
Posted on March 25, 2018 at 11:18

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.

#voice
1 REPLY 1
Posted on March 25, 2018 at 15:47

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..