Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Things microphone support

Does Android Things on the raspberry pi 3 support a usb microphone already? If not I could attach a microphone to the RPi3 via an ADC (and talk to it via SPI) but can I get Android to see it as a microphone by registering it as a user driver? - I need to record it with MediaRecorder.

like image 636
seb Avatar asked Oct 18 '22 20:10

seb


1 Answers

As @devunwired commented in the Google's IoT Developers Community: USB accessory support is not currently enabled is the RC1 preview.

While it is possible to talk to an ADC over SPI using the SpiDevice class, sampling at 44.1khz sounds very challenging with the preview-RC1 implementation of the Peripheral I/O API that doesn't currently expose APIs for DMA/I2S controllers.

Additionally the preview-RC1 implementations of the User-space Driver API currently only support those 3 framework peripheral types:

  • HID
  • Sensors
  • GPS

I would suggest filing feature requests on b.android.com using this template for all those!

like image 192
proppy Avatar answered Oct 21 '22 06:10

proppy