-
-
Notifications
You must be signed in to change notification settings - Fork 309
URLStream Playing audio data is very slow #2121
-
Problem Description
URLStream Playing audio data is very slow
Device Description
esp32-s3
Sketch
URLStream url; EncodedAudioStream dec(&i2s_stream, &decoder); StreamCopy copier(dec, url); copier.copy();
Other Steps to Reproduce
No response
What is your development environment (incl. core version info)
No response
I have checked existing issues, discussions and online documentation
- I confirm I have checked existing issues, discussions and online documentation
Beta Was this translation helpful? Give feedback.
All reactions
This is certenly not a bug in my library:
- check your infrastructure
- make sure you have a proper WiFi connectifity from your microcontroller to your WiFi router
Replies: 1 comment 1 reply
-
This is certenly not a bug in my library:
- check your infrastructure
- make sure you have a proper WiFi connectifity from your microcontroller to your WiFi router
Beta Was this translation helpful? Give feedback.
All reactions
-
打印了日志 [I] URLStream.h : 385 - WiFiClient
[I] HttpRequest.h : 240 - process connecting to host oss.aitoy.top port 80
[I] HttpRequest.h : 367 - is connected true with timeout 60000
[I] HttpRequest.h : 251 - Free heap: 59776
[I] HttpHeader.h : 262 - HttpHeader::write
[I] HttpHeader.h : 417 - -> GET /toy/689109ed1c7a42417b01be89 HTTP/1.1
[I] HttpHeader.h : 196 - -> Host: oss.aitoy.top
[I] HttpHeader.h : 196 - -> Connection: keep-alive
[I] HttpHeader.h : 196 - -> Accept-Encoding: identity
[I] HttpHeader.h : 196 - -> Accept: /
[I] HttpHeader.h : 338 - ->
[I] HttpRequest.h : 316 - Request written ... waiting for reply
[I] HttpHeader.h : 230 - Waiting for data...
[I] HttpHeader.h : 239 - Data available: 5760
[I] HttpHeader.h : 110 - Content-Type: audio/mpeg
[I] URLStream.h : 98 - contentLength: 18720
[I] URLStream.h : 105 - ==> http status: 200
[I] AudioTypes.h : 125 - MP3DecoderHelix sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] AudioPlayer.h : 231 - sample_rate: 16000
[I] AudioPlayer.h : 232 - bits_per_sample: 16
[I] AudioPlayer.h : 233 - channels: 1
[I] AudioTypes.h : 125 - in: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] AudioTypes.h : 125 - out: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] I2SCodecStream.h : 95 - virtual void audio_tools::I2SCodecStream::setAudioInfo(audio_tools::AudioInfo)
[I] AudioTypes.h : 125 - in: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] AudioTypes.h : 125 - out: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] I2SStream.h : 96 - virtual void audio_tools::I2SStream::setAudioInfo(audio_tools::AudioInfo)
[I] AudioTypes.h : 125 - in: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] AudioTypes.h : 125 - out: sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] I2SStream.h : 105 - restarting i2s
[I] AudioTypes.h : 125 - I2SStream sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] AudioTypes.h : 125 - sample_rate: 16000 / channels: 1 / bits_per_sample: 16
[I] I2SConfigESP32.h : 80 - rx/tx mode: RXTX_MODE
[I] I2SConfigESP32.h : 81 - port_no: 0
[I] I2SConfigESP32.h : 82 - is_master: Master
[I] I2SConfigESP32.h : 83 - sample rate: 16000
[I] I2SConfigESP32.h : 84 - bits per sample: 16
[I] I2SConfigESP32.h : 85 - number of channels: 1
[I] I2SConfigESP32.h : 86 - signal_type: Digital
[I] I2SConfigESP32.h : 88 - i2s_format: I2S_STD_FORMAT
[I] I2SConfigESP32.h : 90 - auto_clear: true
[I] I2SConfigESP32.h : 97 - buffer_count:20
[I] I2SConfigESP32.h : 98 - buffer_size:1024
[I] I2SConfigESP32.h : 101 - pin_mck: 7
[I] I2SConfigESP32.h : 103 - pin_bck: 2
[I] I2SConfigESP32.h : 105 - pin_ws: 6
[I] I2SConfigESP32.h : 107 - pin_data: 8
[I] I2SConfigESP32.h : 109 - pin_data_rx: 4
very slow
Beta Was this translation helpful? Give feedback.