arduino / ArduinoCore-mbed

347 stars 202 forks source link

Nicla Voice Record_and_Stream compile fails #892

Open drmpf opened 5 months ago

drmpf commented 5 months ago

Trying to record audio using Nicla Voice Nicla board support V4.1.3

Compiling Examples -> NDP -> Record_and_Stream fails with errors

Record_and_stream_test:51:19: error: no matching function for call to 'audio_tools::G722Encoder::begin(audio_tools::AudioInfo&)'
   encoder.begin(bi);
Record_and_stream_test:53:11: error: 'class audio_tools::G722Encoder' has no member named 'setOutputStream'; did you mean 'setOutput'?
   encoder.setOutputStream(Serial);

Libraries are arduino-audio-tools-main@0.9.6 and arduino-libg722-master@1.0.2

Also that sketch mentions setting Setup the serial port as raw How do you to do that on a Windows machine?

drmpf commented 5 months ago

Solved this problem with help from ptillisch see https://forum.arduino.cc/t/record-and-stream-compile-fails/1266706/4 but Record_and_Stream example should prehaps be updated to work with latest version of arduino-audio-tools