nabaztag2018/pynab

2022 NFC cards versus ASR

Closed this issue · 3 comments

The (some?) 2022 NFC cards appear to make ASR virtually unusable, since they interfere with voice recording by generating a huge continuous 'ploc-ploc' on the left microphone/channel, that obfuscates the voice recorded on the right channel.
See: Mon lapin est sourd ?

Would a software workaround be feasible, by disabling the left mic/recording channel?

  • either directly in the tagtagtag-sound driver
  • or in the calls to alsa routines that trigger recording for ASR in nabd.

This probably is related to enabling/disabling of the NFC field. We can simply stop polling for nfc tags when we start recording, and resume afterwards.

If this is the case, this is good news.
A fix implementing this (to be released as part of a v1.0.1?) would be welcome.
It might also be useful to give users some control by allowing them to enable/disable NFC polling from the NFC web page.

Pending a clean resolution of this problem, a possible workaround (thanks to user Tazmaniac on the tag:tag:tag user forum for the tip) is to:
change the value of the ADC Data Ouput Select setting in the ALSA configuration, from 'Left Data = Left ADC; Right Data = Right ADC' to 'Left Data = Right ADC; Right Data = Right ADC', in order to map the input from the right mic to both channels.

This allows to neutralise the 'ploc-ploc' from the NFC card on the left mic, and makes ASR usable again with the 2022 NFC card.