TudbuT / picoAM

A simple but capable AM transmitter for the Raspbery Pi pico!
GNU Affero General Public License v3.0
30 stars 1 forks source link

[Feature Request] USB audio device #1

Closed buldo closed 8 months ago

buldo commented 1 year ago

Is it possible to use usb device mode to receive audio from pc via usb on overclocked rpi zero?

TudbuT commented 1 year ago

Most likely, but I don't know how USB audio works so im not qualified to add it at this moment.

TudbuT commented 1 year ago

I thought a bit: I think one might be able to stream the audio over UART, but I don't think it'll be very good quality, and it might be hard to transmit and receive fast enough.

buldo commented 1 year ago

My original idea was use tinyUSB. So rpi pico will act as usb sound card. BTW, my feature request is more fun idea, than "I really need this and will use every day"

TudbuT commented 1 year ago

My original idea was use tinyUSB. So rpi pico will act as usb sound card.

I guessed as such, but i don't know how to use tinyusb lol

TudbuT commented 8 months ago

Using USB to play audio is now supported by pico_gpio using the following command:

( echo ; echo pwmfreq 1557000 ; echo audiostream 0 ; echo -en "\x80" ; pacat -r -d @DEFAULT_MONITOR@ --rate 111000 --format u8 --channels 1 --raw ) | pv -rK | picocom /dev/ttyACM0 -n