CoreELEC / remotes

Repository for AmRemote & Meson IR Remote Controllers
Creative Commons Zero v1.0 Universal
36 stars 25 forks source link

Audio recording from the bluetooth remotes #10

Open phodina opened 1 year ago

phodina commented 1 year ago

Describe the bug The bluetooth remotes offer audio input through embedded microphone on the remote. There's a special button on the remotes that activates the recording. However, this audio recording is not send to the CoreELEC host.

Expected behavior The user presses the recording button and the captured audio is then sent and stored on the CoreELEC. Further processing of the data can happen e.g. just store the recording or send it for processing to Mycroft or other assistant as it happens in the Android OS.

Environment (please complete the following information):

Media station (please complete the following information):

Additional context I expect that the Android OS has to somehow interact with the remote in order to receive the audio recording.

I do have Android TV Box with root access. What would be the best way to intercept the bluetooth communication for further analysis?

Portisch commented 1 year ago

Please follow the Wiki to obtain the IR code for the remote button.

Please update your CoreELEC version as it's already "very" old. Update minimum to CE-20, Kodi Nexus.

I am not sure if Kodi is able to record audio like you want...

phodina commented 1 year ago

Thanks! I've got the codes for the remotes from the bluetooth packets xiaomi and amazon.

The issue is that I haven't seen any data sent after I press the button. So my guess is that the host needs to have some service running and advertise it/request data. Might be wrong as I don't understand Bluetooth protocol that deep.

Will also update Kodi :-)

Does not have to be necessarily paired with Kodi. I'm interested in the protocol how the audio data is passed. Then it will be time to think about how to integrate it.

This ticket is not a bug but a feature request - more like R&D to gather the knowledge how these things work and how to make use of them ;-)

prestonsmartuk commented 8 months ago

Thanks! I've got the codes for the remotes from the bluetooth packets xiaomi and amazon.

The issue is that I haven't seen any data sent after I press the button. So my guess is that the host needs to have some service running and advertise it/request data. Might be wrong as I don't understand Bluetooth protocol that deep.

Will also update Kodi :-)

Does not have to be necessarily paired with Kodi. I'm interested in the protocol how the audio data is passed. Then it will be time to think about how to integrate it.

This ticket is not a bug but a feature request - more like R&D to gather the knowledge how these things work and how to make use of them ;-)

Did you every resolve this?