US-20260128923-A1 - ELECTRONIC DEVICE, METHOD, AND NON-TRANSITORY COMPUTER-READABLE STORAGE MEDIUM FOR CONTROLLING OUTPUT OF AUDIO IN WIRELESS ENVIRONMENT
Abstract
An electronic device is provided. The electronic device includes communication circuitry for Bluetooth low energy (BLE). The electronic device includes a speaker, memory, including one or more storage media, storing instructions, and at least one processor, including processing circuitry, communicatively coupled to the speaker and the memory, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to receive information on a first periodic advertisement of a second external electronic device from a first external electronic device by means of the communication circuitry, and, based on the information, receive, by means of the communication circuitry, at least one first packet advertised from the second external electronic device according to the first periodic advertisement.
Inventors
- Juyeon JIN
- Youngsin Moon
- Gupil CHEONG
Assignees
- SAMSUNG ELECTRONICS CO., LTD.
Dates
- Publication Date
- 20260507
- Application Date
- 20260105
- Priority Date
- 20230724
Claims (20)
- 1 . An electronic device comprising: communication circuitry for Bluetooth low energy (BLE); a speaker; at least one processor comprising processing circuitry; and memory comprising one or more storage media storing instructions, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to: receive information for a first periodic advertisement of a second external electronic device, through the communication circuitry from a first external electronic device, receive, based on the information, at least one first packet advertised from the second external electronic device according to the first periodic advertisement, through the communication circuitry, after synchronizing to broadcast isochronous stream (BIS) from the second external electronic device based on the at least one first packet, defer to output audio of the BIS with a reference volume until start of rendering of data for the BIS that is indicated by at least one second packet advertised from the second external electronic device according to a second periodic advertisement of the second external electronic device, and control the speaker to output the audio with the reference volume based on the rendering of the data received from the second external electronic device.
- 2 . The electronic device of claim 1 , wherein the second periodic advertisement includes a periodic advertisement of the second external electronic device before occurrence of timeout of the synchronization to the BIS.
- 3 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: receive, through the communication circuitry, data for the BIS that is indicated by the at least one first packet from the second external electronic device, and control the speaker to fade into the reference volume in the audio during time interval from a start timing of rendering of the data for the BIS indicated by the at least one first packet to a start timing of the rendering of the data for the BIS indicated by the at least one second packet.
- 4 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to control the speaker to continuously fade into the reference volume in the audio.
- 5 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to control the speaker to discontinuously fade into the reference volume in the audio.
- 6 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to defer to output the audio, before outputting the audio with the reference volume based on the data.
- 7 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to defer to output the audio with the reference volume until the start of the rendering of the data to synchronize with a volume of audio of BIS from the second external electronic device, outputted from another electronic device that is paired with the electronic device.
- 8 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: set timing at which the audio is to be outputted with the reference volume, in response to the reception of the information, and defer to output the audio with the reference volume, based on the set timing.
- 9 . The electronic device of claim 8 , wherein the setting of the timing is executed based on at least one of quality of communication between the electronic device and the second external electronic device or quality of communication between the electronic device and the first external electronic device.
- 10 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: set timing at which the audio is to be outputted with the reference volume in response to the information, before the at least one first packet is received, and defer to output the audio with the reference volume until the state of the rendering of the data, according to the set timing.
- 11 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: transmit first information on success of the synchronization to the BIS, to the first external electronic device through the communication circuitry, in response to synchronizing to the BIS based on the at least one first packet, receive second information on timing at which the audio is to be outputted with the reference volume through the communication circuitry from the first external electronic device; and defer to output the audio with the reference volume until the start of the rendering of the data, based on the second information.
- 12 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: establish connection with another electronic device paired with the electronic device by using the communication circuitry, receive first information informing that the other electronic device is successful in synchronization to BIS from the second external electronic device, by using the communication circuitry through the connection from the other electronic device, transmit, in response to synchronizing to the BIS based on the at least one first packet, second information on success of the synchronization to the BIS, to the other electronic device through the connection, by using the communication circuitry, set timing at which the audio is to be outputted with the reference volume, based on the synchronization to the BIS and the reception of the first information, and defer to output the audio with the reference volume until the start of the rendering of the data, according to the set timing.
- 13 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: establish connection with another electronic device paired with the electronic device by using the communication circuitry, transmit, in response to synchronizing to the BIS based on the at least one first packet, first information on success of the synchronization to the BIS to the other electronic device through the connection, after the first information is transmitted, defer to output the audio with the reference volume until second information informing that the other electronic device is successful in synchronization to BIS from the second external electronic device is received from the other electronic device, receive the second information through the connection from the other electronic device by using the communication circuitry, set timing at which the audio is to be outputted with the reference volume, based on the reception of the second information, and defer to output the audio with the reference volume until the start of the rendering of the data, according to the set timing.
- 14 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to defer, after the synchronization to the BIS, to output the audio with the reference volume until the start of the rendering of the data for the BIS that is indicated by the least one second packet, by discarding data for the BIS received from the second external electronic device until the data for the BIS indicated by the at least one second packet is received.
- 15 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to defer, after the synchronization to the BIS, to output the audio with the reference volume until the start of the rendering of the data for the BIS that is indicated by the least one second packet, by bypassing or deferring synchronization to the BIS from the second external electronic device until the data for the BIS indicated by the at least one second packet is received.
- 16 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: receive through the communication circuit from the first external electronic device a first request to cease synchronization to the BIS, cease synchronization to the BIS, in response to the first request, receive through the communication circuit from the first external electronic device a second request to resume synchronization to the BIS, after synchronization to the BIS is ceased, receive through the communication circuit at least one third packet advertised from the second external electronic device according to a third periodic advertisement, in response to the second request, and control the speaker to output the audio with the reference volume in response to second timing after defined time from first timing of rendering according to synchronization to the BIS executed based on the at least third packet.
- 17 . The electronic device of claim 16 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to control the speaker to fade to the reference volume in the audio during time interval from the first timing to the second timing.
- 18 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, further cause the electronic device to: receive through the communication circuit a request to terminate synchronization to the BIS, from the first external electronic device, and control the speaker to fade to another reference volume lower than the reference volume in the audio during time interval from first timing of rendering of data for the BIS executed immediately after the reception of the request to second timing terminating synchronization to the BIS according to the request, and wherein the second timing is timing after defined time from the first timing.
- 19 . A method executed in an electronic device with communication circuitry for Bluetooth low energy (BLE) and a speaker, the method comprising: receiving information for a first periodic advertisement of a second external electronic device, through the communication circuitry from a first external electronic device; receiving, based on the information, at least one first packet advertised according to the first periodic advertisement, through the communication circuitry; after synchronizing to broadcast isochronous stream (BIS) from the second external electronic device based on the at least one first packet, deferring to output audio of the BIS with a reference volume until start of rendering of data for the BIS that is indicated by at least one second packet advertised according to a second periodic advertisement of the second external electronic device; and controlling the speaker to output the audio with the reference volume based on the rendering of the data received from the second external electronic device.
- 20 . One or more non-transitory computer readable storage media storing one or more computer programs including computer-executable instructions that, when executed by one or more processors of an electronic device with communication circuitry for Bluetooth low energy (BLE) and a speaker individually or collectively, cause the electronic device to perform operations, the operations comprising: receiving information for a first periodic advertisement of a second external electronic device, through the communication circuitry from a first external electronic device; receiving, based on the information, at least one first packet advertised from the second external electronic device according to the first periodic advertisement, through the communication circuitry; after synchronizing to broadcast isochronous stream (BIS) from the second external electronic device based on the at least one first packet, deferring to output audio of the BIS with a reference volume until start of rendering of data for the BIS that is indicated by at least one second packet advertised from the second external electronic device according to a second periodic advertisement of the second external electronic device; and controlling the speaker to output the audio with the reference volume based on the rendering of the data received from the second external electronic device.
Description
CROSS-REFERENCE TO RELATED APPLICATION(S) This application is a continuation application, claiming priority under 35 U.S.C. § 365(c), of an International application No. PCT/KR2024/008061, filed on Jun. 12, 2024, which is based on and claims the benefit of a Korean patent application number 10-2023-0095921, filed on Jul. 24, 2023, in the Korean Intellectual Property Office, and of a Korean patent application number 10-2023-0099808, filed on Jul. 31, 2023, in the Korean Intellectual Property Office, the disclosure of each of which is incorporated by reference herein in its entirety. BACKGROUND 1. Field The disclosure relates to an electronic device, a method, and one or more non-transitory computer-readable storage media for controlling output of audio in a wireless environment. 2. Description of Related Art Compared to legacy Bluetooth® (or classic Bluetooth), Bluetooth® low energy (BLE) may provide reduced power consumption and may provide at least a similar or often greater communication range between connected devices. BLE may be provided on an industrial, scientific, and medical (ISM) radio band. The above information is presented as background information only to assist with an understanding the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure. SUMMARY Aspects of the disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the disclosure is to provide an electronic device, a method, and one or more non-transitory computer-readable storage media for controlling output of audio in a wireless environment. Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments. In accordance with an aspect of the disclosure, an electronic device is provided. The electronic device includes communication circuitry for Bluetooth low energy (BLE). The electronic device includes a speaker, memory, including one or more storage media, storing instructions, and at least one processor, including processing circuitry, communicatively coupled to the speaker and the memory, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to receive information for a first periodic advertisement of a second external electronic device, through the communication circuitry from a first external electronic device, receive, based on the information, at least one first packet advertised from the second external electronic device according to the first periodic advertisement, through the communication circuitry, after synchronizing to broadcast isochronous stream (BIS) from the second external electronic device based on the at least one first packet, defer to output audio of the BIS with a reference volume until start of rendering of data for the BIS that is indicated by at least one second packet advertised from the second external electronic device according to a second periodic advertisement of the second external electronic device, and control the speaker to output the audio with the reference volume based on the rendering of the data received from the second external electronic device. In accordance with another aspect of the disclosure, a method executed in an electronic device with communication circuitry for Bluetooth low energy (BLE) and a speaker is provided. The method includes receiving information for a first periodic advertisement of a second external electronic device, through the communication circuitry from a first external electronic device, receiving, based on the information, at least one first packet advertised according to the first periodic advertisement, through the communication circuitry, after synchronizing to broadcast isochronous stream (BIS) from the second external electronic device based on the at least one first packet, deferring to output audio of the BIS with a reference volume until start of rendering of data for the BIS that is indicated by at least one second packet advertised according to a second periodic advertisement of the second external electronic device, and controlling the speaker to output the audio with the reference volume based on the rendering of the data received from the second external electronic device. In accordance with another aspect of the disclosure, one or more non-transitory computer-readable storage media storing one or more computer programs including computer-executable instructions that, when executed by one or more processors of an electronic device with communication circuitry for Bluetooth low energy (BLE) and a speaker individually or collectively, cause the electronic device to perform operations are provided. The operations include receiving information f