Record Speaker Line Out on a PC/Laptop/RaspberryPi or ESP32

Hello diyAudio family,

I am looking for a readily available circuit or a DIY solution where I have a speaker, I want to remove the speaker and convert this speaker into a audio line input so that any PC, laptop, Raspberry Pi or a ESP32 can consider it as a audio input and I can record the audio signal. Any help or starting point for this project would be appreciated.
 
Thankyou for pointing it out, I am looking to convert the output from a speaker (so there are these two wires SPKR+ and SPKR- that connects to it), I need a readily available circuit or a DIY circuit that takes these two inputs (SPKR+ and SPKR-) and converts them to a line-level acceptable as microphone input that any laptop or a raspberryPi can then record.
 
Possible, but there could be a ground loop and noise.
Will the component with the speaker operate from battery or the AC line?
Also, will the receiving equipment operate from battery or the AC line?

Many computers do have an audio output mini jack, for connecting to headphones or an amplifier.
That would be a preferable method.
 
Its a normal 24v adapter supply. The setup I have is a HME EOS|HD Drive Thru base station setup I have at my store. It uses a phantom powered microphone (+18v, +18v, GND) at the outdoor post where the client speaks and places the order. This microphone output can be played on a wireless headset that the order taker has and a speaker output (grill speaker) so all employees can hear the order.
 
Sounds like the kind of input some subwoofer units have to take a signal from an amp or receiver that has speaker outputs but no line outputs. I think this is a voltage divider circuit -- basically 2 resistors. Values & rating depends on your particulars.
 
@mikessi: In my case the speaker is not connected physically to the output. So lets say if we connect a 8-10 Ohm dummy load so that the circuit thinks a speaker is connected. But then our attenuator circuit comes in parallel with the speaker load (10 Ohm resistor) this will make the overall resistance less than the 10 Ohm resistance. How about any opamp based approach?


@dptucunduva: yes you got it right. Will have to try this because not sure the output of these devices are compatible to a PC microphone line input.
 
@dptucunduva: yes you got it right. Will have to try this because not sure the output of these devices are compatible to a PC microphone line input.

About 25 years ago, I used one of these to connect a car head unit to the line-in of a Dell latitude laptop. It wasn’t the mic-in, but the line-in (though I’m honestly not sure if there’s a difference). The sound quality was, let’s say, questionable, but it worked.

I’m not sure which country you’re in, but these devices are quite common in cheap gadget e-shops and marketplaces.