Go Down

Topic: Recording and playback with TMRpcm and save it in SD card (Read 554 times) previous topic - next topic

148016sky

I was trying to record voice using TMRpcm. After solving many bugs at last these are showing in error log

Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp: In member function 'void TMRpcm::createWavTemplate(char*, unsigned int)':

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1609:5: error: 'SdVolume' was not declared in this scope

     SdVolume vol;

     ^~~~~~~~

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1609:5: note: suggested alternative: 'volume'

     SdVolume vol;

     ^~~~~~~~

     volume

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1616:13: error: 'class Sd2Card' has no member named 'init'

  if (!card1.init(SPI_FULL_SPEED,CSPin)) {

             ^~~~

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1620:6: error: 'vol' was not declared in this scope

  if(!vol.init(&card1)){}//Serial.println("card failed"); }

      ^~~

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1621:21: error: 'vol' was not declared in this scope

  if (!rut.openRoot(&vol)) {}//Serial.println("openRoot failed"); }

                     ^~~

C:\Users\Miraz Hossen Akash\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:1624:46: error: 'BLOCK_COUNT' was not declared in this scope

  if (!fil.createContiguous(&rut, fNam, 512UL*BLOCK_COUNT)) {

                                              ^~~~~~~~~~~

Multiple libraries were found for "SD.h"
 Used: C:\Program
Multiple libraries were found for "SdFat.h"
 Used: C:\Users\Miraz
Multiple libraries were found for "pcmConfig.h"
 Used: C:\Users\Miraz
Multiple libraries were found for "SPI.h"
 Used: C:\Program
exit status 1
Error compiling for board Arduino/Genuino Uno.

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

pert

Please post your full sketch.

If possible, you should always post code directly in the forum thread as text using code tags:
  • Do an Auto Format (Tools > Auto Format[/b) on your code. This will make it easier for you to spot bugs and make it easier for us to read.
  • Edit > Copy for Forum
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the sketch between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
  • Repeat the above process if your sketch has multiple tabs.


This will make it easy for anyone to look at it, which will increase the likelihood of you getting help.

If the sketch is longer than the 9000 characters maximum allowed by the forum, then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.



Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the SDfat library from. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.


Have you made any changes to pcmConfig.h?

Go Up