2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Maixduinoでストリーミングする

Posted at

はじめに

Maixduino はマイク、WiFiが付いているので、マイクで拾った音をストリーミングしてみます。

streaming.png

準備

コード

WebSocketを使用してストリーミングするところは、WebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装する を参考にさせて頂きました。

コードは GitHub をご覧ください。

SiPeed社から提供される標準のArduinoライブラリーに加えて、以下のライブラリーを使用しています。

ESP32 WiFi

PlatformIOで使用するSiPeed社のArduino SDKはM1wに内蔵されているESP8265用のため、Maixduinoで使用しているESP32はそのままで使えない。そのため、ESP32 WiFi を使用する。(MaixduinoでWiFiを使用する 参照)

Base64

Arduino-Base64

SHA1

SHA-1 implementation in C++

最後に

LAN内のPCのFirefoxで表示されるIPアドレスを、 http://192.168.xxx.xxx/ のように開くとマイクで拾った音がPCから聞こえます。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?