pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.49k stars 233 forks source link

adc-webserver #685

Closed aqildad-create closed 1 year ago

aqildad-create commented 1 year ago

i just change i2sstream to analog and set channel to one . . . compile success but no audio out ..is this because slow wifi or what ?

include "AudioTools.h"

const uint16_t sample_rate = 44100; AnalogAudioStream in; I2SStream out;
StreamCopy copier(out, in); // copy in to out ConverterAutoCenter converter;

// Arduino Setup void setup(void) { Serial.begin(115200); AudioLogger::instance().begin(Serial, AudioLogger::Info);

// RX automatically uses port 0 with pin GPIO34 auto cfgRx = in.defaultConfig(RX_MODE); cfgRx.sample_rate = sample_rate; in.begin(cfgRx);

// TX on I2S_NUM_1 auto cfgTx = out.defaultConfig(TX_MODE); cfgTx.port_no = 1; cfgTx.sample_rate = sample_rate; out.begin(cfgTx); }

// Arduino loop - copy data void loop() { copier.copy(converter); }

//-------------------- 10:37:30.117 -> IP address: 192.168.2.107 10:37:39.808 -> [I] AudioServer.h : 216 - New Client. 10:37:48.150 -> [I] AudioServer.h : 368 - sendReply - Returning encoded stream... 10:37:48.150 -> [I] CodecWAV.h : 452 - sample_rate: 22050 10:37:48.150 -> [I] CodecWAV.h : 453 - channels: 1 10:37:48.197 -> [I] CodecWAV.h : 457 - is_streamed! because length is 4294967295 10:37:48.197 -> [I] AudioCopy.h : 71 - buffer_size=1024 10:37:48.197 -> [I] CodecWAV.h : 501 - Writing Header 10:37:48.197 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:48.197 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:48.197 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:57.073 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:57.073 -> [I] AudioServer.h : 122 - stop client... 10:37:57.120 -> [I] AudioServer.h : 216 - New Client. 10:37:57.120 -> [I] AudioServer.h : 368 - sendReply - Returning encoded stream... 10:37:57.120 -> [I] CodecWAV.h : 452 - sample_rate: 22050 10:37:57.120 -> [I] CodecWAV.h : 453 - channels: 1 10:37:57.120 -> [I] CodecWAV.h : 457 - is_streamed! because length is 4294967295 10:37:57.120 -> [I] AudioCopy.h : 71 - buffer_size=1024 10:37:57.120 -> [I] CodecWAV.h : 501 - Writing Header 10:37:57.166 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:57.166 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:37:57.166 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:04.309 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:04.356 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:04.356 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:05.856 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:05.856 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:05.856 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:38:25.882 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:38:35.857 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:38:45.895 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:38:55.863 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 10:39:05.879 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 10:39:15.911 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 10:39:25.903 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes) 10:39:35.879 -> [I] AudioCopy.h : 292 - try write - 9 (open 1024 bytes) 10:39:41.115 -> [I] AudioCopy.h : 292 - try write - 10 (open 0 bytes) 10:39:41.115 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 10 hops 10:39:41.115 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.162 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.162 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.162 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.209 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.209 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.254 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.254 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.254 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.254 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.301 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.301 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.348 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:39:41.348 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:40:01.342 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:40:04.371 -> [I] AudioCopy.h : 292 - try write - 3 (open 0 bytes) 10:40:04.421 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 3 hops 10:40:04.421 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:40:06.427 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:40:06.427 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:40:06.427 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:40:26.442 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:40:36.442 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:40:46.458 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:40:56.451 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 10:41:06.447 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 10:41:16.453 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 10:41:26.468 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes) 10:41:36.472 -> [I] AudioCopy.h : 292 - try write - 9 (open 1024 bytes) 10:41:40.211 -> [I] AudioCopy.h : 292 - try write - 10 (open 0 bytes) 10:41:40.211 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 10 hops 10:41:40.257 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:41:40.350 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:42:00.349 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:42:10.350 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:42:20.354 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:42:30.165 -> [I] AudioCopy.h : 292 - try write - 5 (open 0 bytes) 10:42:30.165 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 5 hops 10:42:30.212 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:42:30.306 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:42:50.315 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:43:00.317 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:43:03.403 -> [I] AudioCopy.h : 292 - try write - 4 (open 0 bytes) 10:43:03.403 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 4 hops 10:43:03.403 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:03.403 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:23.421 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:43:33.431 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:43:33.850 -> [I] AudioCopy.h : 292 - try write - 4 (open 0 bytes) 10:43:33.850 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 4 hops 10:43:33.850 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:33.898 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:33.944 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:33.944 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:43:53.952 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:44:03.947 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:44:13.953 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:44:23.959 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 10:44:33.958 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 10:44:43.957 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 10:44:53.958 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes) 10:45:03.960 -> [I] AudioCopy.h : 292 - try write - 9 (open 1024 bytes) 10:45:13.966 -> [I] AudioCopy.h : 292 - try write - 10 (open 1024 bytes) 10:45:23.964 -> [I] AudioCopy.h : 292 - try write - 11 (open 1024 bytes) 10:45:33.959 -> [I] AudioCopy.h : 292 - try write - 12 (open 1024 bytes) 10:45:43.977 -> [I] AudioCopy.h : 292 - try write - 13 (open 1024 bytes)

pschatzmann commented 1 year ago

It's not working! by the way your issue does not make any sense, your log has nothing to do with your sketch...

aqildad-create commented 1 year ago

adc to serial is working and get proper wave . . so what else should need to trouble shoot ?

some time i listen only wrestle in browser ?

10:56:01.689 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:01.969 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:01.969 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:01.969 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.634 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.634 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.681 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.681 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.728 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.728 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.774 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.820 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.820 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.867 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.914 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:09.914 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:10.009 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:10.009 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:10.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:10.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:10.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:56:30.099 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:56:40.100 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:56:50.098 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:57:00.138 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 10:57:10.107 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 10:57:20.153 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 10:57:30.142 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes) 10:57:40.158 -> [I] AudioCopy.h : 292 - try write - 9 (open 1024 bytes) 10:57:50.124 -> [I] AudioCopy.h : 292 - try write - 10 (open 1024 bytes) 10:58:00.134 -> [I] AudioCopy.h : 292 - try write - 11 (open 1024 bytes) 10:58:10.130 -> [I] AudioCopy.h : 292 - try write - 12 (open 1024 bytes) 10:58:20.162 -> [I] AudioCopy.h : 292 - try write - 13 (open 1024 bytes) 10:58:30.161 -> [I] AudioCopy.h : 292 - try write - 14 (open 1024 bytes) 10:58:35.723 -> [I] AudioCopy.h : 292 - try write - 15 (open 0 bytes) 10:58:35.723 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 15 hops 10:58:35.723 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:58:36.332 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 10:58:56.366 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 10:59:06.369 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 10:59:16.374 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 10:59:26.364 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 10:59:36.397 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 10:59:46.390 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 10:59:56.396 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes)

pschatzmann commented 1 year ago

Did you try to decrease the sample rate ? If you used a converter when you tested with the CsvStream, did you use it in the Webserver as well ?

aqildad-create commented 1 year ago

apology : below was my code above I posted wrong code . below is the code i compiled for adc webserver

include "AudioTools.h"

//AudioEncodedServer server(new WAVEncoder(),"ssid","password");
AudioWAVServer server("Boss net (67) 03062689075","36879250"); // the same a above AnalogAudioStream i2sStream;//in; //I2SStream i2sStream; // Access I2S as stream ConverterFillLeftAndRight filler(LeftIsEmpty); // fill both channels - or change to RightIsEmpty

void setup(){ Serial.begin(115200); AudioLogger::instance().begin(Serial, AudioLogger::Info);

// start i2s input with default configuration Serial.println("starting I2S..."); auto config = i2sStream.defaultConfig(RX_MODE); // config.i2s_format = I2S_STD_FORMAT; // if quality is bad change to I2S_LSB_FORMAT https://github.com/pschatzmann/arduino-audio-tools/issues/23 config.sample_rate = 22050; config.channels = 1;//2; config.bits_per_sample = 16; i2sStream.begin(config); Serial.println("I2S started");

// start data sink server.begin(i2sStream, config, &filler); }

// Arduino loop
void loop() { // Handle new connections server.copy();

pschatzmann commented 1 year ago

It seems that you use different converters: Test again and make sure that the signal is centered around zero! Then use the same converter in the webserver! Decrease the sample rate even more until you can consistently write w/o problems... Test the output separatly with a sine wave... Be consistent in your tests !

aqildad-create commented 1 year ago

yes I decrease the sampling rate to 8000 and use ConverterAutoCenter , now Its writing success but i only listen distorted wrestle in browser .

include "AudioTools.h"

//AudioEncodedServer server(new WAVEncoder(),"ssid","password");
AudioWAVServer server("Boss net (67) 03062689075","36879250"); // the same a above AnalogAudioStream i2sStream;//in; //I2SStream i2sStream; // Access I2S as stream ConverterAutoCenter converter;

void setup(){ Serial.begin(115200); AudioLogger::instance().begin(Serial, AudioLogger::Info);

// start i2s input with default configuration Serial.println("starting I2S..."); auto config = i2sStream.defaultConfig(RX_MODE); // config.i2s_format = I2S_STD_FORMAT; // if quality is bad change to I2S_LSB_FORMAT https://github.com/pschatzmann/arduino-audio-tools/issues/23 config.sample_rate = 8000;//22050; config.channels = 1;//2; config.bits_per_sample = 16; i2sStream.begin(config); Serial.println("I2S started");

// start data sink server.begin(i2sStream, config, &converter);// server.begin(i2sStream, config, &filler); }

// Arduino loop
void loop() { // Handle new connections server.copy();
}

11:23:39.789 -> starting I2S... 11:23:39.789 -> [I] AnalogAudioBase.h : 54 - I2S_MODE_ADC_BUILT_IN 11:23:39.789 -> [I] AnalogAudio.h : 57 - bool audio_tools::AnalogAudioStream::begin(audio_tools::AnalogConfig) 11:23:39.789 -> [I] AnalogAudioESP32.h : 48 - virtual bool audio_tools::AnalogDriverESP32::begin(audio_tools::AnalogConfig) 11:23:39.789 -> [I] AudioTypes.h : 63 - sample_rate: 8000 11:23:39.836 -> [I] AudioTypes.h : 64 - channels: 1 11:23:39.836 -> [I] AudioTypes.h : 65 - bits_per_sample: 16 11:23:39.836 -> [I] AnalogAudioBase.h : 75 - input pin1: 34 11:23:39.836 -> [I] AnalogAudioESP32.h : 90 - RX_MODE 11:23:39.836 -> I2S started 11:23:39.836 -> [I] CodecWAV.h : 452 - sample_rate: 8000 11:23:39.836 -> [I] CodecWAV.h : 453 - channels: 1 11:23:39.836 -> [I] CodecWAV.h : 457 - is_streamed! because length is 2147418112 11:23:39.945 -> ..... 11:23:42.461 -> IP address: 192.168.2.107 11:24:14.740 -> [I] AudioServer.h : 216 - New Client. 11:24:14.786 -> [I] AudioServer.h : 368 - sendReply - Returning encoded stream... 11:24:14.786 -> [I] CodecWAV.h : 452 - sample_rate: 8000 11:24:14.786 -> [I] CodecWAV.h : 453 - channels: 1 11:24:14.786 -> [I] CodecWAV.h : 457 - is_streamed! because length is 4294967295 11:24:14.833 -> [I] AudioCopy.h : 71 - buffer_size=1024 11:24:14.833 -> [I] CodecWAV.h : 501 - Writing Header 11:24:14.833 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.833 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.833 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.833 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.833 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.880 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.880 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.880 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.880 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.880 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:14.927 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 11:24:14.927 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 11:24:14.927 -> [I] AudioCopy.h : 292 - try write - 4 (open 1024 bytes) 11:24:14.927 -> [I] AudioCopy.h : 292 - try write - 5 (open 1024 bytes) 11:24:14.927 -> [I] AudioCopy.h : 292 - try write - 6 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 7 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 8 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 9 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 10 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 11 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 12 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 13 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 14 (open 1024 bytes) 11:24:14.975 -> [I] AudioCopy.h : 292 - try write - 15 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 16 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 17 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 18 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 19 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 20 (open 1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 292 - try write - 21 (open 1024 bytes) 11:24:15.022 -> [E] AudioCopy.h : 286 - write to target has failed! (1024 bytes) 11:24:15.022 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 0 bytes - in 22 hops 11:24:15.022 -> [I] AudioServer.h : 122 - stop client... 11:24:15.069 -> [I] AudioServer.h : 216 - New Client. 11:24:15.069 -> [I] AudioServer.h : 368 - sendReply - Returning encoded stream... 11:24:15.069 -> [I] CodecWAV.h : 452 - sample_rate: 8000 11:24:15.069 -> [I] CodecWAV.h : 453 - channels: 1 11:24:15.069 -> [I] CodecWAV.h : 457 - is_streamed! because length is 4294967295 11:24:15.069 -> [I] AudioCopy.h : 71 - buffer_size=1024 11:24:15.116 -> [I] CodecWAV.h : 501 - Writing Header 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.116 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.163 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.163 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.163 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.163 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.210 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.210 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.257 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.257 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.304 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.351 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.397 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.397 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.397 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.397 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.443 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.443 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.443 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.489 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.536 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.536 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:15.582 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.801 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.801 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.848 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.895 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.895 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.895 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.895 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.895 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.941 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:16.987 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.034 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.034 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.034 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.034 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.081 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.081 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.081 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.081 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.081 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.127 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.127 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.127 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.127 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.174 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.174 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.174 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.174 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:17.221 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:18.338 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:38.350 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 11:24:48.382 -> [I] AudioCopy.h : 292 - try write - 3 (open 1024 bytes) 11:24:51.516 -> [I] AudioCopy.h : 292 - try write - 4 (open 0 bytes) 11:24:51.516 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 4 hops 11:24:51.516 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:52.828 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:52.828 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:24:52.828 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:07.850 -> [I] AudioCopy.h : 292 - try write - 2 (open 0 bytes) 11:25:07.850 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 2 hops 11:25:07.850 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:27.876 -> [I] AudioCopy.h : 292 - try write - 2 (open 1024 bytes) 11:25:30.451 -> [I] AudioCopy.h : 292 - try write - 3 (open 0 bytes) 11:25:30.451 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 3 hops 11:25:30.451 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.451 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.451 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.498 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.498 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.544 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.544 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.544 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.730 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.730 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:30.730 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.836 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.836 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.836 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.883 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.883 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.883 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.883 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.929 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.929 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.929 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.929 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.929 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.976 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.976 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:34.976 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:35.023 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:35.023 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.333 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.333 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.333 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.380 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.380 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.380 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.426 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.473 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.473 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.473 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.473 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.520 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.520 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.520 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.567 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.567 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.567 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.614 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.614 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:36.661 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.820 -> [I] AudioCopy.h : 292 - try write - 2 (open 0 bytes) 11:25:46.820 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 2 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.866 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.913 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:46.959 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.006 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.006 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.006 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.006 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.053 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.053 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.053 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.053 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.100 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.146 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.193 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.193 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.193 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.239 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.239 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 11:25:47.239 -> [I] AudioCopy.h : 136 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops

pschatzmann commented 1 year ago

Don't forget to set the logger back to warning after you made sure that you have a proper signal by verifying it with a CsvStream....

aqildad-create commented 1 year ago

sir , adc-seral is working perfectly and signal is oscillating around zero . and i use same autocenterconverter for adc-webserver then why am getting only distortion in browser ?

include "AudioTools.h"

//AudioEncodedServer server(new WAVEncoder(),"ssid","password"); AudioWAVServer server("Boss Fiber(52)","abc"); // the same a above AnalogAudioStream i2sStream;//in; //I2SStream i2sStream; // Access I2S as stream //ConverterAutoCenter converter; ConverterAutoCenter center(2); // set avg to 0

void setup(){ Serial.begin(115200); AudioLogger::instance().begin(Serial, AudioLogger::Info);

// start i2s input with default configuration Serial.println("starting I2S..."); auto config = i2sStream.defaultConfig(RX_MODE); // config.i2s_format = I2S_STD_FORMAT; // if quality is bad change to I2S_LSB_FORMAT #23 config.sample_rate = 8000;//22050; config.channels = 1;//2; config.bits_per_sample = 16; i2sStream.begin(config); Serial.println("I2S started");

// start data sink server.begin(i2sStream, config, &center);// server.begin(i2sStream, config, &filler); }

// Arduino loop void loop() { // Handle new connections server.copy(); }

aqildad-create commented 1 year ago

I test it with CsvStream , and its oscillating around zero ..see the picture ,

then why I get only distortion in adc-webserver if data is center align ?

below is csvstream code and plotter picture .

include "AudioTools.h"

int channels = 1;

AnalogAudioStream in;
CsvStream csvStream(Serial, channels); StreamCopy copier(csvStream, in); // copy in to csvStream ConverterAutoCenter center(2); // set avg to 0

// Arduino Setup void setup(void) { Serial.begin(115200); AudioLogger::instance().begin(Serial, AudioLogger::Warning);

auto config = in.defaultConfig(RX_MODE); // config.i2s_format = I2S_STD_FORMAT; // if quality is bad change to I2S_LSB_FORMAT #23 config.sample_rate = 8000;//22050; config.channels = 1;//2; config.bits_per_sample = 16; in.begin(config);

// make sure that we have the correct channels set up
csvStream.begin();

}

// Arduino loop - copy data void loop() { copier.copy(center); }

image

pschatzmann commented 1 year ago

But this does not look like a sound wave at all! What microphone are you using ?

aqildad-create commented 1 year ago

I use MAX9814 auto gain control . I was very close to it that's why it look like square wave , may be .

image

pschatzmann commented 1 year ago

For my tests I was using a MCP6022 Microphone Sensor. I never tried this one, but I would be surprised if this one wouldn't work as well... How did you connect it ?

aqildad-create commented 1 year ago

connection MAX9814 -ESP32 VDD -3V GND -GND OUT -GPIO34

aqildad-create commented 1 year ago

MAX9814 can you give me idea how to handle this microphone ?

do i need to replace this ConverterAutoCenter center(2);

with some thing like this ConverterScaler scaler(0.1, -26427, 32700 );

?? because it seem the amplitude / gain is very high ?

aqildad-create commented 1 year ago

AFTER 0.01 below is plotter result ..which is not good ConverterScaler scaler(0.01, -26427, 32700 );

image

aqildad-create commented 1 year ago

AFTER 0.01 below is plotter result ConverterScaler scaler(0.01, -26427, 32700 );

image

aqildad-create commented 1 year ago

AFTER 0.001 below is plotter result ..which is not good ConverterScaler scaler(0.001, -26427, 32700 );

image

pschatzmann commented 1 year ago

Try to record a sine tone: e.g. from https://onlinetonegenerator.com/ Then you can verify if you also see a sine on the plotter.

As a result the goal should be that it is oscillating around 0 with an amplitude of 20000 to 30000 if you want to hear the signal properly