How to use audio in full duplex?

Hi, I’m trying to play and record in a voice call with FX30 (WP76XX) with R16. I can play file on modem TX, record modem RX but not simultaneously.

I’ve the same behavior using the AT commands:

Record ok:
atdXXX ;
OK
CONNECT
AT!AVAUDIO=4,1,/tmp/recording1.wav
OK
AT!AVAUDIO=4,0
OK

Play ok:
atdXXX ;
OK
CONNECT
AT!AVAUDIO =3,1,/home/root/0-to-9_8k.wav
OK
AT!AVAUDIO=3,0
OK

Try both for full duplex:
atdXXX ;
OK
CONNECT
AT!AVAUDIO =3,1,/home/root/0-to-9_8k.wav
OK
AT!AVAUDIO=4,1,/tmp/recording1.wav
ERROR
If I stop file playing, then record is possible
AT!AVAUDIO=3,0
OK
AT!AVAUDIO=4,1,/tmp/recording1.wav
OK
AT!AVAUDIO=4,0
OK

The audio API documentation says that playing and recording is possible simultaneously. So I don’t know what I’m doing wrong.

Thank you in advance

How about using AT command and legato audio app together?

Hello, thank you for your answer.
Actually, I only want to use audio through the API. As I couldn’t do full duplex with API, I tried with AT commands (my app stopped) to check if full duplex was available …
This is the test I’ve described in my previous post.
Unfortunately, I never succeed doing full duplex, neither using API, nor using AT command.

How about one uses AT command, another one uses legato API?

Thank you, I’ve made the test you’ve suggested: it’s working fine.
I can record with my app while playing with the AT commands.

I don’t undestand why.

I will try with 2 app: one for playing and one for recording and then with 2 threads in the same app.