2

I'm working on a project where I have to send voice through mic to a Speech recognition API using esp8266 where the voice is get processed. Is there any possible way I could do this with esp8266?

I found a similar project but it is not written for arduino ide and some of the things in the code are hard to understand like buffer part. please help me to understand the code.

1
  • 2
    that project appears to be written for the Arduino IDE, because it has setup() and loop() blocks
    – jsotola
    Oct 12, 2019 at 21:08

1 Answer 1

2

You should be able to get the project you referenced working in the Arduino IDE. It uses standard cpp files instead of ino files, but the project does use the Arduino framework (#include <Arduino.h>). I believe there are tutorials online on how to import standard C++ code into the Arduino IDE. As long as there aren't any namespace conflicts with global variables between modules, it'll probably work.

The buffer is just a standard way of passing data (usually a byte array) between functions using a variable of a known fixed sized so that memory can be allocated appropriately. In trying to understand the code, just think of it as you would any other variable.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.