Hearing aid using teensy audio board


#1

Hi,
I am trying to replicate the hearing aid you designed using teensy audio board. I found the codes in the github link available in the blog. When i tried running then these were the errors shown.

AudioEffectGain:

Arduino: 1.8.2 (Windows 10), TD: 1.41, Board: “Teensy 3.6, Serial, 96 MHz, Faster, US English”

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:2:1: error: expected class-name before ‘{’ token

{

^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:25:5: error: ‘audio_block_t’ does not name a type

 audio_block_t *inputQueueArray[1];

 ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino: In constructor ‘AudioEffectGain::AudioEffectGain()’:

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:4:29: error: class ‘AudioEffectGain’ does not have any field named ‘AudioStream’

 AudioEffectGain(void) : AudioStream(1, inputQueueArray) {}

                         ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:4:44: error: ‘inputQueueArray’ was not declared in this scope

 AudioEffectGain(void) : AudioStream(1, inputQueueArray) {}

                                        ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino: In member function ‘void AudioEffectGain::update()’:

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:6:7: error: ‘audio_block_t’ was not declared in this scope

   audio_block_t *block;

   ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:6:22: error: ‘block’ was not declared in this scope

   audio_block_t *block;

                  ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:7:31: error: ‘receiveWritable’ was not declared in this scope

   block = receiveWritable();

                           ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:11:27: error: ‘AUDIO_BLOCK_SAMPLES’ was not declared in this scope

   for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) block->data[i] = gain * (block->data[i]);

                       ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:13:21: error: ‘transmit’ was not declared in this scope

   transmit(block);

                 ^

C:\Users\Karthik\Documents\Arduino\AudioEffectGain.h\AudioEffectGain.h.ino:14:20: error: ‘release’ was not declared in this scope

   release(block);

                ^

Error compiling for board Teensy 3.6.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

BasicGain:

C:\Users\Karthik\Documents\Arduino\gain_1\gain_1.ino:16:92: fatal error: AudioEffectGain.h: No such file or directory

compilation terminated.

Multiple libraries were found for "SD.h"
Used: C:\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Arduino\libraries\SD
Error compiling for board Teensy 3.6.

How do I get past this?


#2

Maybe you’ve overcome this problem by now…but if not:

Are you starting with one of the Example programs that come with the Tympan_Library? If so, which one are you trying to compile?

Also, it looks like you’ve configured the Arduino IDE (under the “Tools” menu) to compile for the Teensy 3.6 using a Teensy speed of only 96 MHz. I’d recommend that you increase the setting to 180 MHz.

Also, in the Arduino IDE settings for the Teensy (still under the “Tools” menu), you’ll want to set the “USB Type” to “Serial+MIDI+Audio”, as discussed in this forum post: Installation Notes - New user

Chip


#3

Yes, I was able to overcome that issue.

Now I am trying to run the BasicCompressor_ float program. But i get error stating “#include nested too deeply”. How do i get past this?


#4

Hi,

It sounds like you’re trying to use the “BasicCompressor_float” program that is part of my OpenAudio_ArduinoLibrary rather than the Tympan_Library. If so, I’m sorry! Ever since I created the Tympan_Library, I haven’t spent any time trying to keep the OpenAudio library running. It doesn’t surprise me that you’re having trouble compiling.

Instead of using “BasicCompressor_float”, you should go into the Tympan_Library examples and use the program “01-Basic\TrebleBoost_wComp”. By comparing it to the TrebleBoost example just before it, you can see how I plugged in the dynamic compression.

Chip


#5

Hi,
I tried running TrebleBoost_wComp with the required libraries. This is the error that showed up.

Arduino: 1.8.2 (Windows 10), TD: 1.41, Board: “Teensy 3.6, Serial + MIDI + Audio, 180 MHz, Faster, US English”

In file included from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:1:0,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,


             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\AppData\Local\Temp\arduino_build_150013\sketch\AudioEffecyCompWDRC_F32.h:7,

             from C:\Users\Karthik\Documents\Arduino\Teensy_all\Teensy_all.ino:6:

C:\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:3:22: error: #include nested too deeply

C:\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:4:26: error: #include nested too deeply

In file included from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3:0,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

     
           from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

            
             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

         
             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,
            
            from 

C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\AppData\Local\Temp\arduino_build_150013\sketch\AudioEffecyCompWDRC_F32.h:7,

             from C:\Users\Karthik\Documents\Arduino\Teensy_all\Teensy_all.ino:6:

C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:1:21: error: #include nested too deeply

C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3:29: error: #include nested too deeply

In file included from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:1:0,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

      
             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,



             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

      

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,


             from C:\Users\Karthik\Documents\Arduino\libraries\AudioCalcEnvelope_F32/AudioCalcEnvelope_F32.h:5,

             from C:\Users\Karthik\AppData\Local\Temp\arduino_build_150013\sketch\AudioEffecyCompWDRC_F32.h:9,

             from C:\Users\Karthik\Documents\Arduino\Teensy_all\Teensy_all.ino:6:

C:\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:3:22: error: #include nested too deeply

C:\Arduino\hardware\teensy\avr\cores\teensy3/Arduino.h:4:26: error: #include nested too deeply

In file included from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3:0,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,


  

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,



             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

        

      
             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

                 from C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3,

             from C:\Users\Karthik\Documents\Arduino\libraries\AudioCalcGainWDRC_F32/AudioCalcGainWDRC_F32.h:5,

             from C:\Users\Karthik\AppData\Local\Temp\arduino_build_150013\sketch\AudioEffecyCompWDRC_F32.h:10,

             from C:\Users\Karthik\Documents\Arduino\Teensy_all\Teensy_all.ino:6:

C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:1:21: error: #include nested too deeply

C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32/AudioStream_F32.h:3:29: error: #include nested too deeply

Multiple libraries were found for "SD.h"
Used: C:\Arduino\hardware\teensy\avr\libraries\SD
Not used: C:\Arduino\libraries\SD
Error compiling for board Teensy 3.6.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

What do I do?

Thank you.


#6

I’m sorry that this hasn’t been easy.

The error message that you’re getting is helpful. Right at the beginning of he errors, I’m surprised to see that you have AudioStream_F32.h within a directory named AudioStream_F32. I’m very surprised about that. AudioStream_F32.h should live within a folder named “Tympan_Library”. (And, if you have the very latest Tympan_Library, it actually lives within a directory Tympan_Library\src).

On your computer, do you also have a directory named “Tympan_Library”? If so, do you have AudioStream_F32.h there? it should be. If it’s not, you should re-install your Tympan_Library.

Also, after confirming that AudioStream_F32.h is in TympanLibrary, you should remove this problematic directory named: “C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32” as your system will definitely get confused by having multiple copies of AudioStream_F32.h in your Arduino\libraries.

Could you share what other directories are at “C:\Users\Karthik\Documents\Arduino\libraries”. I’m fearful that whatever caused the creation of “C:\Users\Karthik\Documents\Arduino\libraries\AudioStream_F32” caused other problem directories to get made.

Chip


#7

Okay. I’ll look into that.

I have come across another problem. The hearing aid circuit and gain code was working perfectly till yesterday. But today when I plug in the usb from laptop to the microcontroller, the led indicating that the microcontroller is powered does not glow. I checked voltage at the Vin and 3.3V pin. It gives the required output. But the system doesn’t work, even though the gain program is successfully uploaded. I tried changing the usb cord as well. The audio transmission program using just a usb works perfectly.
What do I do next?

Thank you.

Anagha


#8

Since I am using Teensy audio board, should AudioStream_F32 be within “Audio” folder instead of “Tympan_library”?


#9

Regarding the not-glowing LED, which LED doesn’t glow? The bright yellow/amber light that’s on the top next to the SD card? Or the small red and green LEDs that are near the USB connector that indicate whether the battery is charging?

As for “AudioStream_F32”, there should be no folder (anywhere) that is named “AudioStream_F32”. There should be a file named “AudioStream_F32.h” and “AudioStream_F32.cpp” that live in the Tympan_Library directory. If you have recently updated your Typman_Library, these two files will actually be in Tympan_Library/src.

Chip


#10

Hi,
I tried to replicate the hearing aid you designed using teensy audio board. I got the output earlier with the little noise which i believe is due to the electronics. But now all I hear is noise. I checked the connectivity of the pins and the working of the board, everything seems to be alright. Can you help me out?


#11

I have sorted out the library issue. What changes should i make to “01-Basic\TrebleBoost_wComp” to make it work for teensy audio board (sgtl5000) ?


#12

Have you seen this article about reducing noise when using the Teensy Audio Board? https://tympan.org/2017-03-12-teensy-audio-board-self-noise/

Also, could you share a picture of your hardware setup?

-AJ


#13

Is the hardware issue resolved? Could you share a picture of your hardware setup?


#14

Yes, it has been resolved.


#15

Hi,
Can “01-Basic\TrebleBoost_wComp” program be run using teensy audio board (sgtl5000)? If yes, what are the changes that need to made?

Thank you.
Anagha


#16

Hi…Just in case using Teensy is a fixed requirement.In spite of recent revelation of a serious screw up I made in a very very related object/function I think I can be heaps of help with this sort of thing - certainly would like to be in any case.You could probably do just as well using Teensy 3.1 with or without Audio Adapter.

pcb assembly india