Issue with particualr stream from streamtheworld.com #780
djurasovic
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am encountering an issue with a particular stream from streamtheworld.com. The player can play all other streams except this one. Streams are like fast-forward. All the information in the serial monitor is fine.
I am using the MakePython Audio Expansion Board from Makerfabs.
This URL is the only one using a low BitRate of 48000.
Would you happen to have any ideas on how I can resolve this issue?
URL: http://19813.live.streamtheworld.com:80/CFRBAM_SC
Code
#include "Arduino.h"
#include "WiFi.h"
#include "Audio.h"
#include <Adafruit_NeoPixel.h>
#include <Adafruit_SSD1306.h>
// Digital I/O used
#define I2S_DOUT 27 // DIN connection
#define I2S_BCLK 26 // Bit clock
#define I2S_LRC 25 // Left Right Clock
Audio audio;
String ssid = "XXX";
String password = "XXX";
void setup() {
Serial.begin(115200);
WiFi.disconnect();
WiFi.mode(WIFI_STA);
WiFi.begin(ssid.c_str(), password.c_str());
while (WiFi.status() != WL_CONNECTED) delay(1500);
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(15); // 0...21
audio.connecttohost("http://19813.live.streamtheworld.com:80/CFRBAM_SC");
Serial.printf("Connecting to %s ", ssid);
Serial.println(" CONNECTED");
}
void loop()
{
audio.loop();
}
Serial Monitor Info
info Connect to new host: "http://19813.live.streamtheworld.com:80/CFRBAM_SC"
info PSRAM found, inputBufferSize: 638965 bytes
info buffers freed, free Heap: 202952 bytes
info Connection has been established in 96 ms, free Heap: 201728 bytes
Connecting to Tesla-2G CONNECTED
station EN_Newstalk 1010 Toronto - CFRBAM
icyurl http://www.iheartradio.ca/newstalk-1010
bitrate 48000
info MP3Decoder has been initialized, free Heap: 172212 bytes , free stack 6336 DWORDs
lasthost http://19813.live.streamtheworld.com:80/CFRBAM_SC
info stream ready
info syncword found at pos 0
info Channels: 2
info SampleRate: 22050
info BitsPerSample: 16
info BitRate: 48000
Beta Was this translation helpful? Give feedback.
All reactions