Why matlab is not recognizing the audio signal from line-in port?

8 views (last 30 days)
I have connected an AUX cable between phone and laptop, when I record voice from phone in matlab via microphone it is getting recorded but when I use same using line-in from same port it isn't record the voice i.e., coming from that port. and I checked whether the matlab is recognizing the line-in port or not using audiodevinfo command, it is able to show line-in port in matlab? but not able to record voice signal from that port. I have connection of same port for microphone and line-in to my laptop?

Answers (1)

Raghav
Raghav on 4 Aug 2023
Hi Sridhar,
It seems that you are experiencing difficulties recording audio from the line-in port on your laptop using MATLAB. There could be several reasons why this issue is occurring. Here are a few troubleshooting steps you can try:
Check the audio settings on your laptop:
  • Ensure that the line-in port is enabled and set as the default recording device in your laptop's audio settings. You can usually access these settings by right-clicking on the speaker icon in the system tray and selecting "Recording devices" or a similar option.
  • Make sure the volume levels for the line-in port are properly adjusted and not muted.
Verify the physical connection:
  • Double-check that the AUX cable is securely connected to both the phone and the line-in port on your laptop.
  • Test the AUX cable with another device to confirm that it is functioning correctly.
Test the line-in port with other software:
  • Try using other audio recording software to see if you are able to record audio from the line-in port. This will help determine if the issue is specific to MATLAB or if it's a broader system problem.
Update MATLAB and audio drivers:
  • Ensure that you have the latest version of MATLAB installed. Updates may include bug fixes or improvements related to audio recording.
  • Update your laptop's audio drivers to the latest version. You can usually find these on the manufacturer's website or through Windows Update.
Hope it helps,
Best Regards,
Raghav Bansal

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!