An electronic device comprising: a communicator configured to perform a communication via two-way communication; an audio output interface configured to transmit an audio signal of a predetermined data format to an audio output device via one-way communication; a memory configured to store one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: process an audio data to generate the audio signal of the predetermined data format; process connection information which is used for connection of two-way communication between the electronic device and the audio output device, such that the connection information is included in the audio signal of the predetermined data format; control the audio output interface to transmit, to the audio output device the audio signal of the predetermined data format including the connection information; control the communicator to receive, from the audio output device via the two-way communication, authentication information determined based on the connection information; establish the connection of the two-way communication between the electronic device and the audio output device based on the authentication information received from the audio output device; and based on a user input for controlling an audio output function of the electronic device being received, control the communicator to transmit to the audio output device a control signal corresponding to the user input while the audio signal of the predetermined data format is being transmitted to the audio output device through the audio output interface via the one-way communication. a communicator configured to perform a communication via two-way communication; an audio output interface configured to transmit an audio signal of a predetermined data format to an audio output device via one-way communication; a memory configured to store one or more instructions; and a processor configured to execute the one or more instructions stored in the memory to: process an audio data to generate the audio signal of the predetermined data format; process connection information which is used for connection of two-way communication between the electronic device and the audio output device, such that the connection information is included in the audio signal of the predetermined data format; control the audio output interface to transmit, to the audio output device the audio signal of the predetermined data format including the connection information; control the communicator to receive, from the audio output device via the two-way communication, authentication information determined based on the connection information; establish the connection of the two-way communication between the electronic device and the audio output device based on the authentication information received from the audio output device; and based on a user input for controlling an audio output function of the electronic device being received, control the communicator to transmit to the audio output device a control signal corresponding to the user input while the audio signal of the predetermined data format is being transmitted to the audio output device through the audio output interface via the one-way communication. process an audio data to generate the audio signal of the predetermined data format; process connection information which is used for connection of two-way communication between the electronic device and the audio output device, such that the connection information is included in the audio signal of the predetermined data format; control the audio output interface to transmit, to the audio output device the audio signal of the predetermined data format including the connection information; control the communicator to receive, from the audio output device via the two-way communication, authentication information determined based on the connection information; establish the connection of the two-way communication between the electronic device and the audio output device based on the authentication information received from the audio output device; and based on a user input for controlling an audio output function of the electronic device being received, control the communicator to transmit to the audio output device a control signal corresponding to the user input while the audio signal of the predetermined data format is being transmitted to the audio output device through the audio output interface via the one-way communication.