I need to record an audio from my laptop and transform it from analog to digital then transfer it to another laptop in the same network to transform it from digital to analog and listen to the audio file normally.
I know that I should use the UDP function to connect between 2 laptops:
ipA = '192.168.1.1'; portA = 9090;
ipB = '192.168.1.2'; portB = 9091;
udpA = udp(ipB,portB,'LocalPort',portA);
fopen(udpA)
And the same on computer B. (Code from this post)
The problem now is that I can't use matlab to transform the audio to digital. And as I read here in this post, matlab cannot transform the audio from Analog to digital and we need a hardware to do that.
Is there a tool on matlab to resolve this issue ?
And if not, does this step by step project map correct:
A/D device connected to computer A takes the audio and digitize it
Matlab take the audio and transfer it to computer B using the UDP function
D/A device tranform the audio to analog, and then the audio is ready to be listened on computer B
I don't want someone to do the project on behalf of me. But I need to know how to start and if my project map is correct. Matlab is the only obligatory tool to use in this project, and the other steps may be done by different ways.