Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

URLStream Playing audio data is very slow #2121

Answered by pschatzmann
weirdorr asked this question in Q&A
Discussion options

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
You must be logged in to vote

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

Comment options

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
You must be logged in to vote
1 reply
Comment options

打印了日志 [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

Answer selected by pschatzmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #2120 on August 04, 2025 15:11.

AltStyle によって変換されたページ (->オリジナル) /