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

Thread: Teensy Audio Recording

  1. #1

    Teensy Audio Recording

    Hi All,
    I am attempting to create a device using the Teensy 3.2 audio kit that will record audio. Very simple. I am hoping to write this audio data to my PC through the microUSB. I am using the audio system design tool and getting the following errors when I run the code. Attached are screenshots. Any help would be appreciated.
    Thanks
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1.PNG 
Views:	27 
Size:	39.2 KB 
ID:	25049   Click image for larger version. 

Name:	Screen Shot 2021-06-16 at 3.28.33 PM.png 
Views:	19 
Size:	25.4 KB 
ID:	25050  


  2. #2
    Senior Member fdaniels's Avatar
    Join Date
    Oct 2020
    Location
    Ostwestfalen, Germany
    Posts
    111
    This doesnt look like a valid sketch, lacking setup() and loop(), maybe you familiarize yourselves on how to write a sketch (and how to read the compiler messages) first?

    Edit: + i think you need some kind of output to make the audio system run. In your case audioOutputUSB() would be the place to start.
    Last edited by fdaniels; 06-17-2021 at 08:35 AM.

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,859
    The Export from the Audio Tool only defines the parts needed for the Audio code to function.

    The actual sketch as noted with setup() and loop() are needed to provide the actual code.

    Look at the provided Audio examples. Perhaps go through the Audio tutorial :: pjrc.com/teensy/td_libs_Audio.html

  4. #4
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,178
    And you have to call AudioMemory() too - look at one of the Audio library recording examples perhaps?

Posting Permissions

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