Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Audio driving servo, auto-talk

  1. #1

    Audio driving servo, auto-talk

    Hi All,

    New to TEENSY and generally noob-ish all around. I have the TEENSY 3.1 and the TEENSY3_AUDIO board. I need to have an "auto talk" system where I drive a servo's position based on the magnitude of the audio level. Ideas? Somebody must have done this before...


  2. #2
    Junior Member
    Join Date
    Apr 2015
    Take a look here

  3. #3
    Junior Member
    Join Date
    Sep 2013
    1) I've done it by generating data to put in PROGMEM by precalculating values corresponding to mouth open degree from my audio files on a PC. This worked well for me since I only had to deal with a fixed amount of audio files and I could fit the data into memory (PROGMEM) and maintain a good enough mouth update rate. If you have many or long files or not to do it on live audio input this obviously won't work.

    I even made a tool visualize the output values and for hand-tweaking them but came to conclusion that hand-tweaking was too hard/time consuming and just used the un-edited preprocessing values.

    Tool Screenshot were you can see the audio file waveforms along with the values for the mouths (pruple & red bars):

    2) You can probably do it just fine in on the fly with the AUDIO library by just calculating the RMS of the audio and maybe adding some smoothing to not have the output too sensitive.

    3) Using external circuits like Wade suggested could also work.
    Last edited by beyon; 04-18-2015 at 12:27 PM.

  4. #4
    thanks for all the suggestions! still a WIP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts