Method of operating singing mode and electronic device for performing the same
A wireless audio device includes a memory including instructions; and a processor operatively connected to the memory and configured to execute the instructions to: detect an audio signal, determine, based on an analysis result of the audio signal, an operation mode of the wireless audio device to be one of a singing mode and a dialogue mode, and control an output signal of the wireless audio device according to the determined operation mode, wherein the dialogue mode is configured to output one or more ambient sounds included in the audio signal, and wherein the singing mode is configured to output one or more media sounds and the one or more ambient sounds included in the audio signal.
1 . A wireless audio device comprising:
memory storing instructions; and
a processor including processing circuitry,
wherein the instructions, when executed by the processor, cause the wireless audio device to:
detect an audio signal,
determine, based on an analysis result of the audio signal, an operation mode of the wireless audio device to be one of a singing mode and a dialogue mode, wherein the dialogue mode is configured to output one or more ambient sounds comprised in the audio signal and the singing mode is configured to output one or more media sounds and the one or more ambient sounds comprised in the audio signal, and
control an output signal of the wireless audio device according to the determined operation mode,
wherein the instructions, when executed by the processor, cause the wireless audio device to determine the operation mode of the wireless audio device by:
while a current sensitivity level associated with activation of the singing mode is a first sensitivity level, activating the singing mode based on the analysis result of the audio signal satisfying an activation condition according to the first sensitivity level, wherein the activation condition according to the first sensitivity level includes continuously detecting a singing voice from the one or more ambient sounds for a duration of frames longer than a threshold number of frames adjusted based on a noise level,
while the current sensitivity level associated with determining activation of the singing mode is a second sensitivity level, activating the singing mode based on the analysis result satisfying both the activation condition according to the first sensitivity level and an activation condition according to the second sensitivity level,
while the current sensitivity level associated with determining activation of the singing mode is a third sensitivity level, activating the singing mode based on the analysis result satisfying all of the activation condition according to the first sensitivity level, the activation condition according to the second sensitivity level, and an activation condition according to the third sensitivity level, and
wherein the current sensitivity level is set by a user.
2 . The wireless audio device of claim 1 , wherein the instructions, when executed by the processor, further cause the wireless audio device to execute the instructions to determine the operation mode by entering, based on one or more of information related to an electronic device and whether media is played on the electronic device connecting to the wireless audio device, one of (i) a first mode change phase for determining to change to one of the singing mode and the dialogue mode, and (ii) a second mode change phase for determining to change to the dialogue mode.
3 . The wireless audio device of claim 2 , wherein the one or more of information related to the electronic device comprises one or more of environment information of the electronic device, location information of the electronic device, and information about a device around the electronic device.
4 . The wireless audio device of claim 2 , wherein the instructions, when executed by the processor, further cause the wireless audio device to execute the instructions to determine the operation mode by, in the first mode change phase, determining the operation mode to be the singing mode based on the analysis result satisfying one or more activation conditions of the singing mode.
5 . The wireless audio device of claim 1 , wherein one or more or more activation conditions according to the second sensitivity level comprise one or more conditions corresponding to an acoustic similarity between the singing voice comprised in the one or more ambient sounds and the media.
6 . The wireless audio device of claim 1 , wherein one or more activation conditions according to the third sensitivity level comprise one or more conditions corresponding to a similarity between lyrics comprised in the singing voice comprised in the one or more ambient sounds and lyrics comprised in the media.
7 . The wireless audio device of claim 1 , wherein the instructions, when executed by the processor, further cause the wireless audio device to control the output signal of the wireless audio device by, in the dialogue mode, changing a volume of the one or more ambient sounds to a first gain and outputting the changed volume of the first gain and, in the singing mode, changing the volume of the one or more ambient sounds to a second gain and outputting the changed volume of the second gain.
8 . The wireless audio device of claim 1 , wherein the processor is further configured to perform, in the singing mode, based on a determination one or more activation conditions of the singing mode are not satisfied, deactivating the singing mode.
9 . The wireless audio device of claim 1 , wherein the processor is further configured to execute the instructions to perform tracking the singing voice comprised in the one or more ambient sounds in the singing mode to provide information about the singing voice.
10 . A wireless audio device comprising:
memory storing instructions; and
a processor including processing circuitry,
wherein the instructions, when executed by the processor, cause the wireless audio device to:
detect an audio signal,
determine, based on an analysis result of the audio signal, an operation mode of the wireless audio device for the audio signal to be one of a singing mode and a dialogue mode,
based on a determination that the operation mode is the dialogue mode, output one or more ambient sounds comprised in the audio signal,
based on a determination that the operation mode is the singing mode, output one or more media sounds and the one or more ambient sounds comprised in the audio signal, and
in the singing mode, based on a singing voice not being detected in the one or more ambient sounds for a period of time greater than or equal to a predetermined time period, deactivate the singing mode,
wherein the instructions, when executed by the processor, cause the wireless audio device to determine the operation mode of the wireless audio device by:
while a current sensitivity level associated with activation of the singing mode is a first sensitivity level, activating the singing mode based on the analysis result of the audio signal satisfying an activation condition according to the first sensitivity level, wherein the activation condition according to the first sensitivity level includes continuously detecting the singing voice from the one or more ambient sounds for a duration of frames longer than a threshold number of frames adjusted based on a noise level,
while the current sensitivity level associated with determining activation of the singing mode is a second sensitivity level, activating the singing mode based on the analysis result satisfying both the activation condition according to the first sensitivity level and an activation condition according to the second sensitivity level,
while the current sensitivity level associated with determining activation of the singing mode is a third sensitivity level, activating the singing mode based on the analysis result satisfying all of the activation condition according to the first sensitivity level, the activation condition according to the second sensitivity level, and an activation condition according to the third sensitivity level, and
wherein the current sensitivity level is set by a user.
11 . The wireless audio device of claim 10 , wherein the instructions, when executed by the processor, further cause the wireless audio device to determine the operation mode of the wireless audio device by entering, based on one or more of information related to an electronic device and whether media are played on the electronic device connecting to the wireless audio device, one of (i) a first mode change phase for determining to change to one of the singing mode and the dialogue mode, and (ii) a second mode change phase for determining to change to the dialogue mode.
12 . The wireless audio device of claim 11 , wherein the information related to the electronic device comprises one or more of environment information of the electronic device, location information of the electronic device, and information about a device around the electronic device.
13 . The wireless audio device of claim 11 , wherein the instructions, when executed by the processor, further cause the wireless audio device to determine the operation mode of the wireless audio device by, in the first mode change phase, determining the operation mode to be the one of the singing mode and the dialogue mode based on whether the analysis result satisfies one or more activation conditions of the singing mode.
14 . The wireless audio device of claim 13 , wherein the one or more activation conditions of the singing mode are classified according to the current sensitivity level of the electronic device among the first sensitivity level, the second sensitivity level, and the third sensitivity level.
15 . The wireless audio device of claim 10 , wherein the processor is further configured to execute the instructions to:
in the dialogue mode, change a volume of the one or more ambient sounds to a first gain and output the changed volume of the first gain, and
in the singing mode, change the volume of the one or more ambient sounds to a second gain and output the changed volume of the second gain.
16 . The wireless audio device of claim 10 , wherein the processor is further configured to execute the instructions to perform tracking the singing voice comprised in the one or more ambient sounds in the singing mode to provide information about the singing voice.
17 . A method performed by a wireless audio device, the method comprising:
detecting an audio signal,
determining, based on an analysis result of the audio signal, an operation mode of the wireless audio device to be one of a singing mode and a dialogue mode, wherein the dialogue mode is configured to output one or more ambient sounds comprised in the audio signal and the singing mode is configured to output one or more media sounds and the one or more ambient sounds comprised in the audio signal, wherein the singing mode is activated based on the analysis result satisfying one or more activation conditions of the singing mode corresponding to a current sensitivity level of an electronic device among a plurality of sensitivity levels, and
controlling an output signal of the wireless audio device according to the determined operation mode,
wherein the determining the operation mode of the wireless audio device comprises:
while the current sensitivity level associated with activation of the singing mode is a first sensitivity level, activating the singing mode based on the analysis result of the audio signal satisfying an activation condition according to the first sensitivity level, wherein the activation condition according to the first sensitivity level includes continuously detecting a singing voice from the one or more ambient sounds for a duration of frames longer than a threshold number of frames adjusted based on a noise level,
while the current sensitivity level associated with determining activation of the singing mode is a second sensitivity level, activating the singing mode based on the analysis result satisfying both the activation condition according to the first sensitivity level and an activation condition according to the second sensitivity level,
while the current sensitivity level associated with determining activation of the singing mode is a third sensitivity level, activating the singing mode based on the analysis result satisfying all of the activation condition according to the first sensitivity level, the activation condition according to the second sensitivity level, and an activation condition according to the third sensitivity level, and
wherein the current sensitivity level is set by a user.