Method of outputting audio signal and electronic device for performing the same
An audio providing method is provided. The audio providing method includes receiving a first signal strength of a first signal including information on a first audio source device from a first audio output device establishing a wireless link with an electronic device, outputting the first signal strength in association with the information on the first audio source device, and controlling, when the first audio source device is selected, the first audio output device to receive a first audio broadcast stream transmitted by the first audio source device.
1 . An electronic device comprising:
a display;
a communication circuit;
one or more processors; and
memory,
wherein the memory stores instructions that, when executed by the one or more processors, cause the electronic device to:
receive a first signal comprising information on a first audio source device through the communication circuit,
determine a first signal strength of the first signal,
output, through the display, the first signal strength in association with the information on the first audio source device,
transmit, when the first audio source device is selected, an add source command to a first audio output device establishing a wireless link with the electronic device based on the information on the first audio source device,
receive, from the first audio output device, a second signal strength of a second signal comprising the information on the first audio source device received by the first audio output device,
output, through the display, the first signal strength and the second signal strength in association with the information on the first audio source device and the first signal strength.
2 . The electronic device of claim 1 , wherein the add source command is transmitted to the first audio output device to control the first audio output device to output a first audio signal of a first audio broadcast stream from the first audio source device.
3 . The electronic device of claim 1 , wherein the information on the first audio source device comprises at least one of identification information of the first audio source device, account information, address information, clock information, information on a first audio broadcast stream, timing information, transmission power information, or audio channel map information.
4 . The electronic device of claim 1 ,
wherein the first audio output device comprises a first external device and a second external device,
wherein a first wireless link is established between the electronic device and the first external device, and
wherein a second wireless link is established between the electronic device and the second external device.
5 . The electronic device of claim 1 , wherein the electronic device transmits the add source command to the first audio output device through a Bluetooth or Bluetooth low energy (BLE) wireless link.
6 . The electronic device of claim 1 ,
wherein the first audio output device comprises a first external device and a second external device,
wherein a first wireless link is established between the electronic device and the first external device,
wherein a second wireless link is established between the electronic device and the second external device, and
wherein when executed by the one or more processors, the instructions cause the electronic device to further:
receive a second-first signal strength of a second-first signal comprising the information on the first audio source device received by the first external device from the first external device through the first wireless link,
receive a second-second signal strength of a second-second signal comprising the information on the first audio source device received by the second external device from the second external device through the second wireless link, and
determine the second signal strength based on at least one of the second-first signal strength and the second-second signal strength.
7 . The electronic device of claim 1 , wherein when executed by the one or more processors, the instructions cause the electronic device to further:
determine an integrated signal strength based on the first signal strength and the second signal strength, and
output, through the display, the integrated signal strength as the second signal strength in association with the information on the first audio source device.
8 . The electronic device of claim 1 , wherein when executed by the one or more processors, the instructions cause the electronic device to further:
receive, from the first audio output device, a third signal strength of a first audio broadcast stream of the first audio source device received by the first audio output device, and
output, through the display, the third signal strength in association with the information on the first audio source device.
9 . The electronic device of claim 8 , wherein the third signal strength is determined by the first audio output device based on a receiver signal strength indicator (RSSI) of the first audio broadcast stream.
10 . The electronic device of claim 8 , wherein the third signal strength is determined by the first audio output device based on a packet reception rate for a plurality of packets of the first audio broadcast stream.
11 . The electronic device of claim 10 , wherein the third signal strength is determined by the first audio output device further based on reception continuity of the plurality of packets of the first audio broadcast stream.
12 . The electronic device of claim 1 , wherein when executed by the one or more processors, the instructions cause the electronic device to further:
generate, when receiving pieces of information on a plurality of audio source devices, a list in which the pieces of information on the plurality of audio source devices are arranged in order of a preset priority, and
output, through the display, the generated list through the display.
13 . An electronic device comprising:
a display;
a communication circuit;
one or more processors; and
memory,
wherein the memory stores instructions that, when executed by the one or more processors, cause the electronic device to:
receive a first signal strength of a first signal comprising information on a first audio source device from a first audio output device establishing a wireless link with the electronic device through the communication circuit,
output, through the display, the first signal strength in association with the information on the first audio source device,
control, when the first audio source device is selected, the first audio output device to receive a first audio broadcast stream transmitted by the first audio source device,
receive, from the first audio output device, a second signal strength of a second signal comprising the information on the first audio source device received by the first audio output device, and
output, through the display, the first signal strength and the second signal strength in association with the information on the first audio source device.
14 . The electronic device of claim 13 , wherein a first audio signal of the first audio broadcast stream is output through the first audio output device based on address information of the first audio broadcast stream included in the first signal.
15 . An audio providing method, performed by an electronic device, the audio providing method comprising:
receiving a first signal strength of a first signal comprising information on a first audio source device from a first audio output device establishing a wireless link with the electronic device;
outputting, through a display of the electronic device, the first signal strength in association with the information on the first audio source device;
controlling, when the first audio source device is selected, the first audio output device to receive a first audio broadcast stream transmitted by the first audio source device;
receiving, from the first audio output device, a second signal strength of a second signal comprising the information on the first audio source device received by the first audio output device; and
outputting, through the display, the first signal strength and the second signal strength in association with the information on the first audio source device.