seb
seb

Reputation: 429

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.

Upvotes: 5

Views: 1624

Answers (2)

Denis Nek
Denis Nek

Reputation: 1884

After DP2 release Anddroid Things now supports USB audio You can use USB microphone or USB speaker

Upvotes: 0

proppy
proppy

Reputation: 10504

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!

Upvotes: 3

Related Questions