AndroidMic icon indicating copy to clipboard operation
AndroidMic copied to clipboard

Assume mono audio on android side

Open teamclouday opened this issue 6 months ago • 1 comments

I've played with the rust server and modified a few things. My opinion is that there are too many choices:

  • The audio player has channel, format, sample rate options
  • The server has channel, format, sample rate options
  • The app has channel, format, sample rate options

I'd suggest we use mono, 16000, i16 for the app and do not offer options to change them. And on rust server we can always resample up to 48000 stereo.

Btw this pull request is just a fix for my device. I'm using 48000, mono, i16 on the app, and 48000, stereo, i16 for the rust server, and my audio device is 48000, stereo, f32.

Didn't see any issue with data order or formats. And yes UDP is super fast.

@wiiznokes

teamclouday avatar Jan 02 '24 21:01 teamclouday