Skip to main content
Tingw Zeng
Visitor II
March 25, 2018
Question

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

  • March 25, 2018
  • 1 reply
  • 509 views
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
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    March 25, 2018
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..