Humming and whinning noise

Had ac compressor replaced on 2002 Toyota Camry at a shop that works only on imports. New compressor runs and cools well. When inside car and compressor is engaged, there is a humming/whinning noise that speeds up/down when accelerator is pressed/released. If I click compressor off or it disengages, you cannot hear noise. The noise can be heard from outside when compressor is engaged with hood up but it’s not as loud (don’t know if running engine is muffling some of noise)and can’t tell where it’s coming from. I took it back to shop. He could not locate where it was coming from. Said he took serpentine belt loose and checked pulleys. He did not think it was the new compressor but did decide to get another compressor. Second one runs and cools good but there is still the same noise. He let me listen to the new compressor and existing alternator with a mechanic’s stethoscope. Compressor sounded smooth when engaged but the alternator was much louder through the stethoscope when compressor engaged. He now thinks the noise is coming from the alternator. He thinks the new compressor when engaged is putting more of a draw on the alternator which has a 170,000 miles on it. I asked if he was telling me that I needed a new alternator. He said no as far as functioning of it. But if the noise is coming from it, that’s the way to get rid of noise. I was referred to this shop by three different I work with. Has anyone ever ran into such situation and what is opionion.