ESP32 Webradio

BuddyCasino
Posts: 214
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP32 Webradio

Postby BuddyCasino » Wed Feb 08, 2017 9:07 pm

^_^
In the spirit of full disclosure, I'm currently working on a fork of the project to make an Amazon Alexa client, and have progressed to a stage where SSL via mbedtls and HTTP/2 via nghttp2 works. TODOs are I2S microphone input (via InvenSense ICS-43434) and communication with the Amazon Alexa backend, which I'm currently protoyping in Java.
Not sure if that warrants one of your boards...

User avatar
rudi ;-)
Posts: 1083
Joined: Fri Nov 13, 2015 3:25 pm
Contact:

Re: ESP32 Webradio

Postby rudi ;-) » Thu Feb 09, 2017 9:46 pm

BuddyCasino wrote:^_^
In the spirit of full disclosure......

:lol:
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

JimmyPedersen
Posts: 9
Joined: Sun Nov 15, 2015 4:14 am

Re: ESP32 Webradio

Postby JimmyPedersen » Thu Feb 09, 2017 9:56 pm

Jakobsen wrote:Hi Buddy
O yes - need more coffee - i did commit - as I use to on SVN but i see there is more to it then that.
I will try to follow you description tonight and have added git to my bucket list.
Thanks /j


Any progress on this? Thinking about building myself a little MP3 streamer/player :)

User avatar
Jakobsen
Posts: 49
Joined: Mon Jan 16, 2017 8:12 am

Re: ESP32 Webradio

Postby Jakobsen » Thu Feb 09, 2017 10:32 pm

Hi Jimmy
No sorry - was hit by work. But just get going - the code works out the box - mono. There is still room for improvement on the UX part of the code. /j
Analog Digital IC designer / DevOps @ Merus Audio, Copenhagen, Denmark.
We do novel and best in class Audio amplifiers for consumer products.
Programmed assembler for C-64 back in 1980's, learned some electronics - hacking since then

dotthree
Posts: 33
Joined: Wed Oct 12, 2016 7:12 pm

Re: ESP32 Webradio

Postby dotthree » Mon Feb 13, 2017 6:10 pm

BuddyCasino wrote:^_^
In the spirit of full disclosure, I'm currently working on a fork of the project to make an Amazon Alexa client, and have progressed to a stage where SSL via mbedtls and HTTP/2 via nghttp2 works. TODOs are I2S microphone input (via InvenSense ICS-43434) and communication with the Amazon Alexa backend, which I'm currently protoyping in Java.
Not sure if that warrants one of your boards...


Hows the I2S mic? I've been working on a audio VoIP project myself. I'm using a MAX98357 for I2S output, and have been testing a SPH0645LM4H (knowles) for I2S input. I've got I2S interface working on the ESP32 but the mic seems to be output only noise at the moment.

Out of curiosity why did you chose mbedtls for the SSL?

BuddyCasino
Posts: 214
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP32 Webradio

Postby BuddyCasino » Mon Feb 13, 2017 7:36 pm

Haven't gotten to that part yet, I'm just realizing that C pointers can be tougher than I thought and kinda stuck in a refactoring.

I chose mbedtls because its the native API for the ESP32 (OpenSSL is just wrapping it and nt completely implemented), and using nghttp I had to implement the I/O parts all by myself anyway. Its actually not that hard.

dotthree
Posts: 33
Joined: Wed Oct 12, 2016 7:12 pm

Re: ESP32 Webradio

Postby dotthree » Wed Feb 15, 2017 5:07 pm

Refactoring can be nightmare sometimes :lol:

Does mbedTLS require a .pem locally stored? I'm a bit new to these libraries. All of the implementations I've seen of it require one while the openssl examples did not. Also curious as to why you went with HTTP/2

BuddyCasino
Posts: 214
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP32 Webradio

Postby BuddyCasino » Wed Feb 15, 2017 5:21 pm

If you want to verify the server certificate, then yes you need to have the appropriate root cert in memory somewhere. If not, you can simply ignore it. I haven't seen a generic lib that comes with all of the common CAs and automatically picks the right one, but if it exists I'd be happy to learn about it.

I need HTTP2 because I'm building an Amazon Alexa client, and thats all they offer.

dotthree
Posts: 33
Joined: Wed Oct 12, 2016 7:12 pm

Re: ESP32 Webradio

Postby dotthree » Thu Feb 23, 2017 4:47 am

Nah you're right actually, I wasn't verifying the certificates. Whoops. :lol:

I'm writing a OTA program which is a little bit more suitable for production use thanks to use of TLS, Checksums, and so on. I'm going share it as soon as I get MbedTLS playing nicely as for now it's really not liking me refactoring it.

I've been looking at a few different cognitive services myself, I just didn't realize that Alexa required HTTP2. You wouldn't be interested in sharing the Alexa code would you?

BuddyCasino
Posts: 214
Joined: Sun Jun 19, 2016 12:00 am

Re: ESP32 Webradio

Postby BuddyCasino » Thu Feb 23, 2017 8:39 am

Its going to be on Github as soon as I got it to work.

Who is online

Users browsing this forum: No registered users and 1 guest