Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sound from internal speaker #19

Open
lidense opened this issue Aug 10, 2023 · 7 comments
Open

No sound from internal speaker #19

lidense opened this issue Aug 10, 2023 · 7 comments

Comments

@lidense
Copy link

lidense commented Aug 10, 2023

I compiled from github on my M5stack Core 2 but I get no sound although I see the .ts files being dowloaded.

@Yokohama-Miyazawa
Copy link
Owner

Thank you for your comment!

Please check #15.

@lidense
Copy link
Author

lidense commented Aug 28, 2023

There are 2 URLs that I would like to listen to:
https://as-hls-ww.live.cf.md.bbci.co.uk/pool_904/live/ww/bbc_radio_scotland_fm/bbc_radio_scotland_fm.isml/bbc_radio_scotland_fm-audio%3d96000.norewind.m3u8
AND
https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/master.m3u8
I have a M5stack Core 2 with internal speaker

I used this main.cpp:
examples/M5Core2WebRadio

There is no sound coming out of the speaker.
For the first URL I can see messages from serial indicating that the buffers are being filled but no sound coming out while with the second URL there is nothing at all. I have tried with m5stack/[email protected] but no success.
Thank-you for your help.
Regards

@Yokohama-Miyazawa
Copy link
Owner

Thank you.

These URLs may have different problems.

The first URL causes a problem in conversion from ts to aac.
To solve it, I have to modify AudioGeneratorTS.

The second URL returns URLs which have relative path.
Here is actual playlist which the second URL( https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/master.m3u8 ) returned.

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=98730,CODECS="mp4a.40.29"
../../2093120/RISMI/stream02/streamPlaylist.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=98730,CODECS="mp4a.40.29"
../../2093120-b/RISMI/stream02/streamPlaylist.m3u8

The program should request to
https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/stream02/streamPlaylist.m3u8
or
https://radioitaliasmi.akamaized.net/hls/live/2093120-b/RISMI/stream02/streamPlaylist.m3u8.

However, it does not support relative path, and requests to
https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/stream02/../../2093120/RISMI/stream02/streamPlaylist.m3u8.

So, I have to make the program support relative path.

@lidense
Copy link
Author

lidense commented Aug 30, 2023 via email

@lidense
Copy link
Author

lidense commented Sep 1, 2023 via email

@lidense
Copy link
Author

lidense commented Sep 25, 2023 via email

@lidense
Copy link
Author

lidense commented Oct 11, 2023

I have tried to understand why I do not have sound using this weblink:
https://as-hls-ww.live.cf.md.bbci.co.uk/pool_904/live/ww/bbc_radio_scotland_fm/bbc_radio_scotland_fm.isml/bbc_radio_scotland_fm-audio%3d96000.norewind.m3u8

From what I undersand AudioGeneratorTS does not find the sync byte 0xFFF
What can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants