WO2023231113A1 - 音量调节方法、装置、耳机、电子设备及可读存储介质 - Google Patents

音量调节方法、装置、耳机、电子设备及可读存储介质 Download PDF

Info

Publication number
WO2023231113A1
WO2023231113A1 PCT/CN2022/102138 CN2022102138W WO2023231113A1 WO 2023231113 A1 WO2023231113 A1 WO 2023231113A1 CN 2022102138 W CN2022102138 W CN 2022102138W WO 2023231113 A1 WO2023231113 A1 WO 2023231113A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
audio data
earphone
electronic device
playing
Prior art date
Application number
PCT/CN2022/102138
Other languages
English (en)
French (fr)
Inventor
曾楷
Original Assignee
歌尔股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2023231113A1 publication Critical patent/WO2023231113A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/22Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only 

Definitions

  • the present application relates to the technical field of wireless earphones. More specifically, the present application relates to a volume adjustment method, device, earphones, electronic equipment and readable storage media.
  • Bluetooth headsets are favored by more and more users. Bluetooth headsets can establish wireless connections with electronic devices such as mobile phones, so that they can cooperate with the electronic devices to play music or make/make calls for the user.
  • wireless earphones have an adaptive volume adjustment function, for example, by detecting environmental noise to adjust the volume according to the environmental noise.
  • this method has high requirements on the hardware conditions and algorithm of the headset, and is limited by the performance of the algorithm, which often fails to meet user expectations.
  • the purpose of this application is to provide a volume adjustment method, device, earphones, electronic equipment and readable storage media, which can realize adaptive volume adjustment of earphones to provide users with a more convenient audio experience.
  • a volume adjustment method is provided, applied to the first earphone, and the method includes:
  • the method for playing the first audio data by the at least one second earphone is The second volume adjusts the first volume for playing the first audio data, including:
  • the first volume for playing the first audio data is adjusted to the second volume.
  • the method further includes:
  • the first volume for playing the first audio data is adjusted to the second volume.
  • the first audio data is played according to the at least one second earphone.
  • the second volume, adjusting the first volume for playing the first audio data includes:
  • N is a positive integer greater than 1
  • the first volume for playing the first audio data is adjusted to the third volume.
  • the method further includes:
  • the first volume for playing the first audio data is adjusted to the third volume.
  • a volume adjustment method is provided, which is applied to electronic devices.
  • the method includes:
  • the method before receiving the second volume sent by at least one second earphone to play the first audio data, the method further includes:
  • first audio data is sent to the at least one second earphone, so that the at least one second earphone plays the first audio data.
  • a volume adjustment device applied to the first earphone, and the device includes:
  • An acquisition module configured to acquire the first volume for playing the first audio data when receiving the first audio data sent by the electronic device
  • a receiving module configured to receive a second volume of at least one second earphone sent by the electronic device to play the first audio data
  • An adjustment module configured to adjust the first volume for playing the first audio data according to the second volume for playing the first audio data through the at least one second earphone.
  • a volume adjustment device which is applied to electronic equipment.
  • the device includes:
  • a receiving module configured to receive a second volume sent by at least one second earphone to play the first audio data
  • a first sending module configured to send the second volume of the first audio data played by the at least one second earphone to the first earphone, so that the first earphone plays the first audio data according to the at least one second earphone. the second volume for volume adjustment.
  • a headset including:
  • Memory used to store executable computer instructions
  • a processor configured to execute the volume adjustment method as described in the first aspect of the application according to the control of the executable computer instructions.
  • an electronic device including:
  • Memory used to store executable computer instructions
  • a processor configured to execute the volume adjustment method as described in the second aspect of the application according to the control of the executable computer instructions.
  • a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are run by a processor, the volume adjustment method as described in the first aspect of the present application is executed, or , perform the volume adjustment method as described in the second aspect of the application.
  • the electronic device when the electronic device performs audio sharing with at least one second earphone through the first earphone, obtain the first volume of the first earphone that plays the first audio data sent by the electronic device, and receive at least one audio signal sent by the electronic device.
  • the second earphone plays the second volume of the first audio data to adjust the volume of the first earphone according to the second volume of the at least one second earphone that plays the first audio data.
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, and the earphone volume can be adjusted. Automatic adjustment and high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • Figure 1 is a schematic diagram of the hardware configuration of an audio interactive system that can be used to implement a volume adjustment method according to an embodiment
  • Figure 2 is a schematic flowchart of a volume adjustment method according to one embodiment
  • Figure 3 is a schematic flowchart of a volume adjustment method according to another embodiment
  • Figure 4 is a schematic diagram of the hardware structure of a volume adjustment device according to an embodiment
  • Figure 5 is a schematic diagram of the hardware structure of a volume adjustment device according to another embodiment
  • Figure 6 is a schematic diagram of the hardware structure of an earphone according to an embodiment
  • Figure 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment.
  • any specific values are to be construed as illustrative only and not as limiting. Accordingly, other examples of the exemplary embodiments may have different values.
  • electronic devices provide audio sharing capabilities. Taking electronic devices as an example, when a user listens to music or watches videos through an electronic device, the earphones of the user and other users are connected to the electronic device through Bluetooth. In this way, using the audio sharing function of the electronic device, different users can use their respective earphones to Play audio data transmitted by electronic devices.
  • the electronic device also provides an adaptive volume adjustment function, for example, by detecting environmental noise to adjust the volume according to the environmental noise.
  • the above adaptive volume adjustment method requires high hardware conditions and algorithms for headphones, and is limited by the performance of the algorithm, which often fails to meet user expectations; on the other hand, when multiple users use headphones for audio sharing At this time, each user uses headphones to adjust the volume separately according to the environmental noise, which results in a poor user experience.
  • the present application provides a volume adjustment method, which adjusts the volume of the first audio data played by the first earphone according to the volume of the first audio data played by at least one second earphone, which can realize the audio
  • the shared scene realizes adaptive volume adjustment to bring users a more convenient audio experience.
  • Figure 1 is a schematic diagram of the hardware configuration of an audio interactive system that can be used to implement the volume adjustment method of one embodiment.
  • the audio interaction system 100 may include an electronic device 1000 , a first earphone 2000 and a plurality of second earphones 3000 .
  • the electronic device 1000 establishes a communication connection with the first earphone 2000 .
  • the electronic device 1000 may be, for example, a mobile phone, a portable computer, a tablet computer, a handheld computer, etc., which is not limited in this application.
  • the electronic device 1000 may include a processor 1100 , a memory 1200 , an interface device 1300 , a communication device 1400 , a display device 1500 , an input device 1600 , a microphone 1700 and a speaker 1800 .
  • the processor 1100 may include, but is not limited to, a central processing unit (CPU), a microprocessor (MCU), or the like.
  • the memory 1200 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like.
  • the interface device 1300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, and the like.
  • the communication device 1400 is capable of wired or wireless communication, for example.
  • the display device 1500 is, for example, a liquid crystal display screen, an LED display screen, a touch display screen, etc.
  • the input device 1600 includes, for example, a touch screen, a keyboard, and the like.
  • Microphone 1700 can be used to input voice information.
  • Speaker 1800 may be used to output voice information.
  • the present invention may only relate to some of the devices.
  • the electronic device 1000 only involves the processor 1100 , the memory 1200 and the communication device 1400 .
  • the memory 1200 of the electronic device 1000 is used to store program instructions.
  • the program instructions are used to control the processor 1100 to operate to perform the volume adjustment method.
  • Technical personnel can design the instructions according to the solution applied for in the present invention. How instructions control the processor to operate is well known in the art and will not be described in detail here.
  • the first earphone 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a microphone 2500 and a speaker 2600.
  • the processor 2100 may include, but is not limited to, a central processing unit (CPU), a microprocessor (MCU), and the like.
  • the memory 2200 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like.
  • the interface device 2300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, and the like.
  • the communication device 2400 is capable of wired or wireless communication, for example, a Bluetooth communication device.
  • Microphone 2500 can be used to input voice information.
  • Speaker 2600 may be used to output voice information.
  • the present invention may only relate to some of the devices.
  • the first earphone 2000 may be a TWS earphone or the like.
  • the memory 2200 of the first earphone 2000 is used to store program instructions, which are used to control the processor 2100 to operate to perform the volume adjustment method.
  • program instructions which are used to control the processor 2100 to operate to perform the volume adjustment method.
  • Technical personnel can design the instructions according to the solution applied for in the present invention. How instructions control the processor to operate is well known in the art and will not be described in detail here.
  • the first earphone 2000 shown in Figure 1 is illustrative only and is in no way intended to limit this description, its application or uses.
  • the second earphone 3000 may include a processor 3100, a memory 3200, an interface device 3300, a communication device 3400, a microphone 3500 and a speaker 3600.
  • the processor 3100 may include, but is not limited to, a central processing unit (CPU), a microprocessor (MCU), or the like.
  • the memory 3200 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like.
  • the interface device 3300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, and the like.
  • the communication device 3400 is capable of wired or wireless communication, for example, a Bluetooth communication device.
  • Microphone 3500 can be used to input voice information.
  • Speaker 3600 may be used to output voice information.
  • the present invention may only relate to some of the devices.
  • the second earphone 3000 may be a TWS earphone or the like.
  • the memory 3200 of the second earphone 3000 is used to store program instructions.
  • the program instructions are used to control the processor 3100 to operate to perform the volume adjustment method.
  • Technical personnel can design the instructions according to the solution applied for in the present invention. How instructions control the processor to operate is well known in the art and will not be described in detail here.
  • the second earphone 3000 shown in Figure 1 is illustrative only and is in no way intended to limit this description, its application or uses.
  • the present application provides a volume adjustment method, which can be implemented by the first earphone 2000 shown in Figure 1.
  • the volume adjustment method includes the following steps: step S1100 to step S1300.
  • Step S1100 When receiving the first audio data sent by the electronic device, obtain the first volume for playing the first audio data.
  • the electronic device has an audio sharing function.
  • the audio sharing function When the audio sharing function is turned on, the electronic device can perform audio sharing through the first earphone and at least one second earphone.
  • the electronic device can be used as an output terminal of audio data in an audio sharing scenario.
  • the first earphone can serve as a receiving end of audio data in an audio sharing scenario.
  • the second earphone can serve as another receiver of audio data in an audio sharing scenario.
  • the first audio data may be audio data to be audio shared.
  • the first user when the first user uses the first earphone to play the first audio data transmitted by the electronic device, the first user can turn on the audio sharing function of the electronic device.
  • the electronic device may broadcast the first audio data to transmit the first audio data to at least one second earphone based on the communication connection established with the at least one second earphone, so that the at least one The second user uses the second earphone to play the first audio data, thereby realizing audio sharing.
  • the first volume may be the volume at which the first earphone plays the first audio data.
  • the volume of the first earphone playing the first audio data can be adjusted according to actual needs, so that the current volume of the first earphone playing the first audio data is used as First volume.
  • Step S1200 Receive the second volume of at least one second earphone sent by the electronic device to play the first audio data.
  • the second earphone can serve as another receiving end of audio data in the audio sharing scenario.
  • the second earphone can establish a Bluetooth communication connection with the electronic device.
  • the second earphone may be one or multiple, and may be set according to actual needs, which is not limited in this application.
  • the second volume may be the volume at which the second earphone plays the first audio data.
  • the electronic device when the audio sharing function of the electronic device is turned on, the electronic device can establish a communication connection with the second earphone, and send the first audio data to the second earphone based on the communication connection between the electronic device and the second earphone, so as to The second earphone is caused to play the first audio data. And, based on the communication connection between the electronic device and the second earphone, the second earphone can report the second volume for playing the first audio data to the electronic device. Afterwards, based on the communication connection between the electronic device and the first earphone, the electronic device can send the second volume of the first audio data played by the second earphone to the first earphone.
  • each second earphone in the multiple second earphones needs to report the second volume for playing the first audio data to the electronic device.
  • the second earphone may report the second volume for playing the first audio data at a preset time interval, or may report the second volume when the second volume for playing the first audio data changes.
  • Step S1300 Adjust the first volume at which the first audio data is played according to the second volume at which the at least one second earphone plays the first audio data.
  • the electronic device performs audio sharing through the first earphone and at least one second earphone.
  • the first earphone and the at least one second earphone are in the same application environment. Based on this, the first earphone can be played according to the at least one second earphone.
  • a second volume of audio data is used to adjust the first volume of the first earphone to play the first audio data, thereby realizing adaptive adjustment of the volume of the first earphone.
  • the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data, which may be adjusted to the first volume of the first earphone playing the first audio data and the at least one second earphone playing the second volume.
  • the second volume of audio data is the same.
  • the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data, or the volume adjustment value is determined according to the second volume of the at least one second earphone playing the first audio data, and the volume adjustment is performed according to the second volume of the at least one second earphone playing the first audio data.
  • the value adjusts the first volume of the first earphone for playing the first audio data.
  • the first audio data is played by the at least one second earphone.
  • the second volume of the data, adjusting the first volume for playing the first audio data may further include: steps S2100 to S2200.
  • Step S2100 If the first volume is inconsistent with the second volume, determine a volume offset based on the first volume and the second volume.
  • the situation where the first volume is inconsistent with the second volume may include the situation where the first volume is inconsistent with the second volume received by the first earphone for the first time, or the situation where the first volume is inconsistent with the adjusted second volume.
  • the volume offset may reflect the difference between the first volume and the second volume.
  • the first volume at which the first earphone plays the first audio data is vol 0
  • the second volume at which the second earphone plays the first audio data is vol 1 .
  • the volume offset may be the difference between the first volume and the second volume. The absolute value of the difference and the percentage of the first volume, i.e.,
  • Step S2200 When the volume offset is less than the first threshold and the second volume is less than the second threshold, adjust the first volume for playing the first audio data to the second volume.
  • the first threshold may be a maximum adjustment range for adaptively adjusting the first volume.
  • the first threshold may be 10%. It should be noted here that the first threshold can be set by those skilled in the art based on actual experience, and this application does not limit this.
  • the second threshold may be the maximum volume that allows adaptive adjustment, that is, the second threshold may be the maximum volume that does not damage human hearing.
  • the second threshold is 80% of the maximum volume the headphones can play. It should be noted here that the second threshold can be set by those skilled in the art through actual experience, and this application does not limit this.
  • the volume offset is less than the first threshold and the second volume is less than the second threshold, it means that the difference between the current first volume and the second volume is small, and the second volume does not exceed the threshold that damages hearing, it is considered that the third volume A change in volume will not affect the audio experience of the user of the first earphone.
  • the first volume of the first earphone playing the first audio data can be automatically adjusted to the second volume.
  • the first volume at which the first earphone plays the first audio data is inconsistent with the second volume at which the second earphone plays the first audio data
  • the difference between the first volume and the second volume is obtained.
  • the volume offset is less than the first threshold and the second volume is less than the second threshold
  • the first volume of the first earphone playing the first audio data is adjusted to the second volume.
  • the first earphone can obtain the volume of the first audio data played by the second earphone, and adjust the volume of the first audio data played by the first earphone to the corresponding third earphone.
  • Second volume the volume of the headphones can be adjusted adaptively, and the accuracy of the adjustment can be ensured, thus giving users a more convenient audio experience.
  • the method may further include: when the volume offset is greater than or equal to the first threshold In this case, the first prompt information is issued; when the user's confirmation instruction for the first prompt information is received, the first volume for playing the first audio data is adjusted to the second volume.
  • the user can be reminded to confirm whether to adjust the first volume for playing the first audio data.
  • the first prompt information may be voice prompt information, vibration prompt information, etc.
  • the first prompt message is "Please confirm whether to adjust the current playback volume.”
  • the volume offset is greater than or equal to the first threshold and the second volume is less than the second threshold, it means that the difference between the current first volume and the second volume is large, and the second volume does not exceed the threshold that damages hearing,
  • the first prompt information is sent to the user, so that when receiving the user's confirmation instruction for the first prompt information, the first volume of the first earphone playing the first audio data is adjusted to the second volume.
  • the difference between the first volume and the second volume is obtained.
  • the volume offset is greater than or equal to the first threshold, and the second volume is less than the second threshold, sending the first prompt information to the user, so as to receive the user's confirmation of the first prompt information.
  • the first volume of the first earphone playing the first audio data is adjusted to the second volume. In this way, while adaptively adjusting the volume of the earphones, it is possible to avoid large volume changes that would affect the user's audio experience.
  • the at least one second earphone plays the first audio data according to the at least one second earphone.
  • the second volume of the audio data, adjusting the first volume for playing the first audio data may further include: steps S3100 to S3300.
  • Step S3100 Determine the third volume based on the second volume at which each of the N second earphones plays the first audio data, where N is a positive integer greater than 1.
  • the third volume may reflect the volume level of the N second earphones playing the first audio data.
  • the average of the second volumes of the N second earphones playing the first audio data is determined as the third volume.
  • the second volume of N second earphones playing the first audio data is third volume
  • the median value of the second volume of the N second earphones playing the first audio data is taken as the third volume.
  • the maximum value and the minimum value among the second volumes of the N second earphones playing the first audio data are removed, and the average of the second volumes of the remaining second earphones playing the first audio data is used as the third volume. .
  • multiple ways of determining the third volume are provided. In this way, the user can set the third volume according to actual needs.
  • the volume adjustment method is more flexible and the user experience is better.
  • Step S3200 When the first volume and the third volume are inconsistent, determine a volume offset based on the first volume and the third volume.
  • the situation in which the first volume is inconsistent with the third volume may include the situation in which the first volume is inconsistent with the third volume obtained by the first earphone for the first time, or may include the situation in which the first volume is inconsistent with the adjusted third volume.
  • the third volume determined by the second volume is inconsistent.
  • the volume offset may reflect the difference between the first volume and the third volume.
  • the first volume at which the first earphone plays the first audio data is vol 0
  • the third volume is vol avg .
  • the volume offset may be the absolute value of the difference between the first volume and the third volume and the first volume.
  • Step S3300 When the volume offset is less than the first threshold and the third volume is less than the second threshold, adjust the first volume for playing the first audio data to the third volume.
  • the first threshold may be a maximum adjustment range for adaptively adjusting the first volume.
  • the first threshold may be 10%. It should be noted here that the first threshold can be set by those skilled in the art based on actual experience, and this application does not limit this.
  • the second threshold may be the maximum volume that allows adaptive adjustment, that is, the second threshold may be the maximum volume that does not damage human hearing.
  • the second threshold is 80% of the maximum volume the headphones can play. It should be noted here that the second threshold can be set by those skilled in the art through actual experience, and this application does not limit this.
  • the volume offset is less than the first threshold and the third volume is less than the second threshold, it means that the difference between the current first volume and the third volume is small, and the third volume does not exceed the hearing-impairing threshold, it is considered that the third volume
  • the change of the first volume will not affect the audio experience of the user of the first earphone.
  • the first volume of the first earphone playing the first audio data can be automatically adjusted to the third volume.
  • the third volume is determined based on the second volume of the first audio data played by the multiple second earphones, and then the third volume is determined after the first earphone plays the second audio data.
  • a volume offset reflecting the difference between the first volume and the third volume is obtained.
  • the volume offset is less than the first threshold and the third volume is less than In the case of the second threshold, the first volume of the first earphone playing the first audio data is adjusted to the third volume.
  • the first earphone can adaptively adjust the volume according to the volume of the first audio data played by the multiple second earphones, which can improve the accuracy of the volume adjustment and improve the user's comfort. audio experience. Moreover, users are not required to manually adjust, thus giving users a more convenient audio experience.
  • the method further includes: when the volume offset is greater than or equal to the first threshold, and When the third volume is less than the second threshold, a second prompt message is issued; when a user's confirmation instruction for the second prompt information is received, the first volume adjustment of the first audio data is played. is the third volume.
  • the user can be reminded to confirm whether to adjust the first volume for playing the first audio data.
  • the second prompt information may be voice prompt information, vibration prompt information, etc.
  • the second prompt information is "Please confirm whether to adjust the current playback volume.”
  • the second prompt information is sent to the user, so that when the user's confirmation instruction for the second prompt information is received, the first volume of the first earphone playing the first audio data is adjusted to the third volume.
  • the third volume is determined based on the second volume of the first audio data played by the multiple second earphones, and then the third volume is determined after the first earphone plays the second audio data.
  • a volume offset reflecting the difference between the first volume and the third volume is obtained.
  • the volume offset is greater than or equal to the first threshold and the third
  • a second prompt message is sent to the user, so that after receiving the user's confirmation instruction for the second prompt message, the first volume of the first earphone playing the first audio data is adjusted to a third volume.
  • the electronic device when the electronic device performs audio sharing with at least one second earphone through the first earphone, obtain the first volume of the first earphone that plays the first audio data sent by the electronic device, and receive at least one audio signal sent by the electronic device.
  • the second earphone plays the second volume of the first audio data to adjust the volume of the first earphone according to the second volume of the at least one second earphone that plays the first audio data.
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, and the earphone volume can be adjusted. Automatic adjustment and high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • This application also provides a volume adjustment method, which can be implemented by the electronic device 1000 shown in Figure 1.
  • the volume adjustment method includes the following steps: step S4100 to step S4200.
  • Step S4100 Receive a second volume sent by at least one second earphone for playing the first audio data.
  • the electronic device has an audio sharing function.
  • the audio sharing function When the audio sharing function is turned on, the electronic device can perform audio sharing through the first earphone and at least one second earphone.
  • the electronic device can be used as an output terminal of audio data in an audio sharing scenario.
  • the second earphone can serve as multiple receivers of audio data in an audio sharing scenario.
  • the first audio data may be audio data to be audio shared.
  • the second volume may be the volume at which the second earphone plays the first audio data.
  • the electronic device when the audio sharing function of the electronic device is turned on, the electronic device can establish a communication connection with the second earphone, and send the first audio data to the second earphone based on the communication connection between the electronic device and the second earphone, so as to The second earphone is caused to play the first audio data. And, based on the communication connection between the electronic device and the second earphone, the second earphone can report the second volume for playing the first audio data to the electronic device. Afterwards, based on the communication connection between the electronic device and the first earphone, the electronic device can send the second volume of the first audio data played by the second earphone to the first earphone.
  • each second earphone in the multiple second earphones needs to report the second volume for playing the first audio data to the electronic device.
  • the second earphone may report the second volume for playing the first audio data at a preset time interval, or may report the second volume when the second volume for playing the first audio data changes.
  • Step S4200 Send the second volume of the first audio data played by the at least one second earphone to the first earphone, so that the first earphone plays the second volume of the first audio data according to the at least one second earphone. Make volume adjustments.
  • the electronic device performs audio sharing through the first earphone and at least one second earphone.
  • the first earphone and the at least one second earphone are in the same application environment. Based on this, the electronic device plays the audio to the at least one second earphone.
  • the second volume of the first audio data is sent to the first earphone, so that the first earphone can adjust the first volume of the first earphone to play the first audio data according to the second volume of the at least one second earphone playing the first audio data, This enables adaptive adjustment of headphone volume.
  • the electronic device in the case where the electronic device performs audio sharing with at least one second earphone through the first earphone, the electronic device can receive the second volume of the at least one second earphone playing the first audio data, and play the first audio data on the at least one earphone.
  • a second volume of audio data is sent to the first earphone, so that the first earphone adjusts the volume of the first earphone according to the second volume of the at least one second earphone playing the first audio data.
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, and the earphone volume can be adjusted. Automatic adjustment and high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • the method before receiving the second volume for playing the first audio data sent by the at least one second earphone, the method may further include: establishing communication with the at least one second earphone when the audio sharing function is turned on. Connect; based on the communication connection established with the at least one second earphone, send the first audio data to the at least one second earphone, so that the at least one second earphone plays the first audio data.
  • the step of enabling the audio sharing function may include: receiving a first input from a first user to the electronic device; and in response to the first input, enabling the audio sharing function of the electronic device.
  • the electronic device when the audio sharing function is turned on, the electronic device can perform audio sharing through the first earphone and at least one second earphone.
  • the first input may be used to enable an audio sharing function of the electronic device.
  • the first input may be the user's click input on the target control, or a specific gesture input by the user.
  • the specific input may be determined based on actual usage requirements, which is not limited in this application.
  • the specific gestures in this application can be any one of click gestures, sliding gestures, and dragging gestures; the click input in this application can be single click input, double click input, or any number of click inputs, etc., and can also be long Press Enter or short press Enter.
  • the system settings of the electronic device can be opened for operation.
  • the Bluetooth setting interface of the electronic device may include setting options for turning on Bluetooth and audio sharing, and a device list including settings for pairing with the electronic device (for example, a first earphone, at least one second earphone, a smart speaker, etc.).
  • the first user can turn on the audio sharing function of the electronic device through the audio sharing option on the Bluetooth setting interface.
  • the audio sharing interface is entered.
  • the audio sharing interface contains a device list of devices that have been paired with the electronic device. The first user can select at least one device that has been paired with the electronic device in the device list.
  • the electronic device is connected with at least one second earphone to realize audio sharing through the first earphone and at least one second earphone, so that the first user can use the first earphone to play audio data, and at the same time the second user can use
  • the second headset plays the same audio data.
  • the electronic device has an audio sharing function, and the user can turn on the audio sharing function of the electronic device as needed.
  • audio sharing between the first earphone and multiple second earphones can be realized, so that different users can communicate with each other. Share audio data to provide users with a rich audio experience.
  • Step S501 when the audio sharing function of the electronic device is turned on, the first earphone obtains the first volume for playing the first audio data sent by the electronic device, that is, vol 0 ;
  • Step S502 The first earphone receives the second volume of the N second earphones sent by the electronic device to play the first audio data, that is,
  • Step S503 determine the third volume according to the second volume of the N second earphones playing the first audio data, that is,
  • Step S504 When the first volume and the third volume are inconsistent, determine the volume offset based on the first volume and the third volume, that is,
  • Step S505 When the volume offset is less than the first threshold and the third volume is less than the second threshold, update the volume at which the first earphone plays the first audio data to the third volume vol avg ;
  • Step S506 When the second volume of the second earphone playing the first audio data changes, the first earphone receives the adjusted second volume corresponding to the N second earphones sent by the electronic device, that is,
  • Step S507 Update the third volume according to the adjusted second volume corresponding to the N second earphones to obtain an updated third volume, that is,
  • the third volume is updated according to the corresponding second volume before update, and the updated third volume is obtained.
  • Step S508 Update the volume offset according to the updated third volume to obtain the updated volume offset, that is,
  • Step S509 When the updated volume offset is less than the first threshold and the updated third volume is less than the second threshold, adjust the volume of the first earphone to play the first audio data to the updated third volume. .
  • the volume of the at least one second earphone playing the first audio data can reflect the noise of the application environment
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, which can be achieved
  • the automatic adjustment of headphone volume and the high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • the present application provides a volume adjustment device, which is applied to the first earphone.
  • the volume adjustment device 400 may include an acquisition module 410 , a receiving module 420 and an adjustment module 430 .
  • the acquisition module 410 may be used to acquire the first volume for playing the first audio data when receiving the first audio data sent by the electronic device;
  • the receiving module 420 may be configured to receive a second volume of at least one second earphone sent by the electronic device to play the first audio data;
  • the adjustment module 430 may be used to adjust the first volume for playing the first audio data according to the second volume for playing the first audio data on the at least one second earphone.
  • the adjustment module 430 when receiving a second volume of a second earphone sent by the electronic device to play the first audio data, the adjustment module 430 includes:
  • a first determination unit configured to determine a volume offset based on the first volume and the second volume when the first volume is inconsistent with the second volume
  • a first adjustment unit configured to adjust the first volume for playing the first audio data to the first volume when the volume offset is less than the first threshold and the second volume is less than the second threshold. Two volume.
  • the adjustment module 430 upon receiving a second volume of a second earphone sent by the electronic device to play the first audio data, the adjustment module 430 further includes:
  • a first sending unit configured to send first prompt information when the volume offset is greater than or equal to the first threshold and the second volume is less than the second threshold
  • the second adjustment unit is configured to adjust the first volume for playing the first audio data to the second volume when receiving a user's confirmation instruction for the first prompt information.
  • the adjustment module 430 after receiving the second volume of the N second earphones sent by the electronic device to play the first audio data, the adjustment module 430 includes:
  • a second determination unit configured to determine the third volume based on the second volume at which each of the N second earphones plays the first audio data, where N is a positive integer greater than 1;
  • a third determination unit configured to determine a volume offset based on the first volume and the third volume when the first volume is inconsistent with the third volume
  • a third adjustment unit configured to adjust the first volume for playing the first audio data to the third volume when the volume offset is less than the first threshold and the third volume is less than the second threshold.
  • the adjustment module 430 upon receiving the second volume of the N second earphones sent by the electronic device to play the first audio data, the adjustment module 430 further includes:
  • a second sending unit configured to send second prompt information when the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold.
  • the fourth adjustment unit is configured to adjust the first volume for playing the first audio data to the third volume when receiving a confirmation instruction from the user for the second prompt information.
  • the electronic device when the electronic device performs audio sharing with at least one second earphone through the first earphone, obtain the first volume of the first earphone that plays the first audio data sent by the electronic device, and receive at least one audio signal sent by the electronic device.
  • the second earphone plays the second volume of the first audio data to adjust the volume of the first earphone according to the second volume of the at least one second earphone that plays the first audio data.
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, and the earphone volume can be adjusted. Automatic adjustment and high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • the volume adjustment device 500 may include a receiving module 510 and a first sending module 520 .
  • the receiving module 510 may be configured to receive a second volume sent by at least one second earphone to play the first audio data
  • the first sending module 520 may be used to send the second volume of the first audio data played by the at least one second earphone to the first earphone, so that the first earphone plays the first audio data according to the at least one second earphone.
  • the second volume of the audio data is used for volume adjustment.
  • the volume adjustment device 500 further includes:
  • a second sending module configured to send first audio data to the at least one second earphone based on the communication connection established with the at least one second earphone, so that the at least one second earphone plays the first audio data.
  • the electronic device in the case where the electronic device performs audio sharing with at least one second earphone through the first earphone, the electronic device can receive the second volume of the at least one second earphone playing the first audio data, and play the first audio data on the at least one earphone.
  • a second volume of audio data is sent to the first earphone, so that the first earphone adjusts the volume of the first earphone according to the second volume of the at least one second earphone playing the first audio data.
  • the volume can be adaptively adjusted according to the second volume of the at least one second earphone playing the first audio data, and the earphone volume can be adjusted. Automatic adjustment and high accuracy of volume adjustment can bring users a more convenient audio experience.
  • the audio adjustment method provided by this embodiment has lower hardware conditions and algorithm requirements for headphones, and has wider applicability.
  • Figure 6 is a schematic diagram of the hardware structure of an earphone according to an embodiment.
  • the headset 600 includes a memory 610 and a processor 620 .
  • the memory 610 may be used to store executable computer instructions.
  • the processor 620 may be configured to execute the volume adjustment method according to the method embodiments of the present application under the control of the executable computer instructions.
  • the earphone 600 may include the above volume adjustment device 400 .
  • each module of the above volume adjustment device 400 can run the memory 610 through the processor 620

Abstract

本申请公开了一种音量调节方法、装置、耳机、电子设备及可读存储介质,该方法应用于第一耳机,该方法包括:在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。

Description

音量调节方法、装置、耳机、电子设备及可读存储介质
本申请要求于2022年05月30日提交中国专利局、申请号202210605167.5、申请名称为“音量调节方法、装置、耳机、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及无线耳机技术领域,更具体地,本申请涉及一种音量调节方法、装置、耳机、电子设备及可读存储介质。
背景技术
随着用户对便携性要求的提高,蓝牙耳机得到越来越多的用户的青睐。蓝牙耳机可以与手机等电子设备建立无线连接,从而配合电子设备为用户播放音乐或接/打电话等。
在现有技术中,无线耳机具有自适应音量调节功能,例如,通过检测环境噪声,以根据环境噪声进行音量调节。但是,这种方式对耳机的硬件条件和算法要求较高,并且受限于算法的性能,往往达不到用户的预期。
因此,有必要提供一种新的音量调节方案,可以实现耳机的自适应音量调节,以给用户带来更加便捷的音频体验。
发明内容
本申请的目的在于提供一种音量调节方法、装置、耳机、电子设备及可读存储介质,可以实现耳机的自适应音量调节,以给用户带来更加便捷的音频体验。
根据本申请的第一方面,提供了一种音量调节方法,应用于第一耳机,所述方法包括:
在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;
接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;
根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
可选地,在接收到所述电子设备发送的一个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量,包括:
在所述第一音量与所述第二音量不一致的情况下,根据所述第一音量和所述第二音量,确定音量偏移量;
在所述音量偏移量小于第一阈值、且所述第二音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
可选地,所述根据所述第一音量和所述第二音量,确定音量偏移量之后,所述方法还包括:
在所述音量偏移量大于或等于所述第一阈值、且所述第二音量小于第二阈值的情况下,发出第一提示信息;
在接收到用户对所述第一提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
可选地,在接收到所述电子设备发送的N个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量,包括:
根据N个第二耳机中每个第二耳机播放所述第一音频数据的第二音量,确定第三音量,其中,N为大于1的正整数;
在所述第一音量与所述第三音量不一致的情况下,根据所述第一音量和所述第三音量,确定音量偏移量;
在所述音量偏移量小于第一阈值、且所述第三音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
可选地,所述根据所述第一音量和所述第三音量,确定音量偏移量之后,所述方法还包括:
在所述音量偏移量大于或等于所述第一阈值、且所述第三音量小于第二阈值的情况下,发出第二提示信息;
在接收到用户对所述第二提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
根据本申请的第二方面,提供了一种音量调节方法,应用于电子设备,所述方法包括:
接收至少一个第二耳机发送的播放第一音频数据的第二音量;
将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
可选地,所述接收至少一个第二耳机发送的播放第一音频数据的第二音量之前,所述方法还包括:
在开启音频共享功能的情况下,与至少一个第二耳机建立通信连接;
基于与所述至少一个第二耳机建立的通信连接,向所述至少一个第二耳机发送第一音频数据,以使所述至少一个第二耳机播放所述第一音频数据。
根据本申请的第三方面,提供了一种音量调节装置,应用于第一耳机,所述装置包括:
获取模块,用于在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;
接收模块,用于接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;
调节模块,用于根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
根据本申请的第四方面,提供了一种音量调节装置,应用于电子设备,所述装置包括:
接收模块,用于接收至少一个第二耳机发送的播放第一音频数据的第二音量;
第一发送模块,用于将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
根据本申请的第五方面,提供了一种耳机,包括:
存储器,用于存储可执行的计算机指令;
处理器,用于根据所述可执行的计算机指令的控制,执行如本申请的第一方面所述的音量调节方法。
根据本申请的第六方面,提供了一种电子设备,包括:
存储器,用于存储可执行的计算机指令;
处理器,用于根据所述可执行的计算机指令的控制,执行如本申请的第二方面所述的音量调节方法。
根据本申请的第七方面,提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行如本申请的第一方面所述的音量调节方法,或者,执行如本申请的第二方面所述的音量调节方法。
根据本申请,在电子设备通过第一耳机与至少一个第二耳机进行音频共享的情况下,获取第一耳机播放电子设备发送的第一音频数据的第一音量,并接收电子设备发送的至少一个第二耳机播放第一音频数据的第二音量,以根据至少一个第二耳机播放第一音频数据的第二音量,对第一耳机进行音量调节。这样,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件条件和算法要求较低,适用性更广。
通过以下参照附图对本申请的示例性实施例的详细描述,本申请的其它特征及其优点将会变得清楚。
附图说明
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定。对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1是可用于实现一个实施例的音量调节方法的音频交互系统的硬件配置示意图;
图2是根据一个实施例的音量调节方法的流程示意图;
图3是根据另一个实施例的音量调节方法的流程示意图;
图4是根据一个实施例的音量调节装置的硬件结构示意图;
图5是根据另一个实施例的音量调节装置的硬件结构示意图;
图6是根据一个实施例的耳机的硬件结构示意图;
图7是根据一个实施例的电子设备的硬件结构示意图。
具体实施方式
现在将参照附图来详细描述本申请的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本申请的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本申请及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
目前,电子设备提供了音频共享功能。以电子设备为例,在用户通过电子设备听音乐或者观看视频时,该用户和其他用户的耳机分别通过蓝牙与电子设备连接,这样,利用电子设备的音频共享功能,不同用户可以通过各自的耳机播放电子设备传输的音频数据。
此外,电子设备还提供了自适应音量调节功能,例如,通过检测环境噪声,以根据环境噪声进行音量调节。
上述自适应音量调节方式,一方面,对耳机的硬件条件和算法要求较高,并且受限于算法的性能,往往达不到用户的预期;另一方面,在多个用户使用耳机进行音频共享时,每个用户使用耳机分别根据环境噪声进行音量调节,用户体验较差。
为了解决上述技术问题,本申请提供了一种音量调节方法,该方法根据至少一个第二耳机播放第一音频数据的音量,对第一耳机播放第一音频数据的音量进行调节,可以实现在音频共享场景实现音量自适应调节,以给用户带来更加便捷的音频体验。
下面结合附图,通过具体的实施例及其应用场景对本申请提供的音量调节的方案进行详细地说明。
<硬件配置>
图1是可用于实现一个实施例的音量调节方法的音频交互系统的硬件配置示意图。
如图1所示,该音频交互系统100可以包括电子设备1000、第一耳机2000和多个第二耳机3000。
本实施例中,电子设备1000与第一耳机2000建立通信连接。该电子设备1000例如可以是手机、便携式电脑、平板电脑、掌上电脑等,本申请对此不作限定。
在一个实施例中,如图1所示,电子设备1000可以包括处理器1100、存储器1200、接口装置1300、通信装置1400、显示装置1500、输入装置1600、麦克风1700和扬声器1800。处理器1100可以包括但不限于中央处理器CPU、微处理器MCU等。存储器1200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口装置1300例如包括各种总线接口,例如串行总线接口(包括USB接口)、并行总线接口等。通信装置1400例如能够进行有线或无线通信。显示装置1500例如是液晶显示屏、LED显示屏、触摸显示屏等。输入装置1600例如包括触摸屏、键盘等。麦克风1700可以用于输入语音信息。扬声器1800可以用于输出语音信息。
尽管在图1中示出了电子设备1000的多个装置,但是,本发明可以仅涉及其中的部分装置,例如,电子设备1000只涉及处理器1100、存储器1200和通信装置1400。
本实施例中,电子设备1000的存储器1200用于存储程序指令,该程序指令用于控制处理器1100进行操作以执行音量调节方法,技术人员可以根据本发明所申请方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
在一个实施例中,如图1所示,第一耳机2000可以包括处理器2100、存储器2200、接口装置2300、通信装置2400、麦克风2500和扬声器2600。处理器2100可以包括但不限于中央处理器CPU、微处理器MCU等。存储器2200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口装置2300例如包括各种总线接口,例如串行总线接口(包括USB接口)、并行总线接口等。通信装置2400例如能够进行有线或无线通信,例如,蓝牙通信装置。麦克风2500可以用于输入语音信息。扬声器2600可以用于输出语音信息。
尽管在图1中示出了第一耳机2000的多个装置,但是,本发明可以仅涉及其中的部分装置。
在一个实施例中,该第一耳机2000例如可以是TWS耳机等。
在本实施例中,第一耳机2000的存储器2200用于存储程序指令,该程序指令用于控制处理器2100进行操作以执行音量调节方法,技术人员可以根据本发明所申请方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
图1所示的第一耳机2000仅是解释性的,并且决不是为了要限制本说明书、其应用或用途。
在一个实施例中,如图1所示,第二耳机3000可以包括处理器3100、存储器3200、接口装置3300、通信装置3400、麦克风3500和扬声器3600。处理器3100可以包括但不限于中央处理器CPU、微处理器MCU等。存储器3200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口装置3300例如包括各种总线接口,例如串行总线接口(包括USB接口)、并行总线接口等。通信装置3400例如能够进行有线或无线通信,例如,蓝牙通信装置。麦克风3500可以用于输入语音信息。扬声器3600可以用于输出语音信息。
尽管在图1中示出了第二耳机3000的多个装置,但是,本发明可以仅涉及其中的部分装置。
在一个实施例中,该第二耳机3000例如可以是TWS耳机等。
在本实施例中,第二耳机3000的存储器3200用于存储程序指令,该程序指令用于控制处理器3100进行操作以执行音量调节方法,技术人员可以根据本发明所申请方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
图1所示的第二耳机3000仅是解释性的,并且决不是为了要限制本说明书、其应用或用途。
在上述描述中,技术人员可以根据本申请所提供的方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
<方法实施例>
本申请提供了一种音量调节方法,该音量调节方法可由图1示出的第一耳机2000实施,如图2所示,该音量调节方法包括以下步骤:步骤S1100~步骤S1300。
步骤S1100,在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量。
在本实施例中,电子设备具有音频共享功能,在开启音频共享功能的情况下,电子设 备可以通过第一耳机和至少一个第二耳机进行音频共享。其中,电子设备可以作为音频共享场景中音频数据的输出端。第一耳机可以作为音频共享场景中音频数据的一个接收端。第二耳机可以作为音频共享场景中音频数据的另一个接收端。第一音频数据可以是所要进行音频共享的音频数据。
示例性地,在第一用户使用第一耳机播放电子设备传输的第一音频数据时,第一用户可以开启电子设备的音频共享功能。在开启音频共享功能的情况下,电子设备可以对第一音频数据进行广播,以基于与至少一个第二耳机建立的通信连接,将第一音频数据传输至至少一个第二耳机,以使至少一个第二用户使用第二耳机播放第一音频数据,从而实现音频共享。
第一音量可以是第一耳机播放第一音频数据的音量。在具体实施时,在第一用户使用第一耳机播放第一音频数据时,可以根据实际需要调整第一耳机播放第一音频数据的音量,以将第一耳机播放第一音频数据的当前音量作为第一音量。
步骤S1200,接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量。
在本实施例中,第二耳机可以作为音频共享场景中音频数据的另一个接收端。第二耳机可以与电子设备建立蓝牙通信连接。第二耳机可以是一个,也可以是多个,可以根据实际需要进行设置,本申请对此不做限定。
第二音量可以是第二耳机播放第一音频数据的音量。在具体实施时,在开启电子设备的音频共享功能时,电子设备可以与第二耳机建立通信连接,基于电子设备与第二耳机之间的通信连接,向第二耳机发送第一音频数据,以使第二耳机播放第一音频数据。以及,基于电子设备与第二耳机之间的通信连接,第二耳机可以向电子设备上报播放第一音频数据的第二音量。之后,基于电子设备与第一耳机之间的通信连接,电子设备可以将第二耳机播放第一音频数据的第二音量发送至第一耳机。
这里可以理解的是,以多个第二耳机为例,在开启音频共享功能时,多个第二耳机中每个第二耳机均要向电子设备上报播放第一音频数据的第二音量。
这里还可以理解的是,第二耳机可以以预设的时间间隔上报播放第一音频数据的第二音量,也可以在播放第一音频数据的第二音量发生变化时上报第二音量。
步骤S1300,根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
在本实施例中,电子设备通过第一耳机和至少一个第二耳机进行音频共享,第一耳机和至少一个第二耳机所处的应用环境相同,基于此,可以根据至少一个第二耳机播放第一音频数据的第二音量,调节第一耳机播放第一音频数据的第一音量,从而实现第一耳机的音量的自适应调节。
示例性地,第一耳机根据至少一个第二耳机播放第一音频数据的第二音量进行音量调节,可以是调节至第一耳机播放第一音频数据的第一音量与至少一个第二耳机播放第一音频数据的第二音量相同。第一耳机根据至少一个第二耳机播放第一音频数据的第二音量进行音量调节,也可以是,根据至少一个第二耳机播放第一音频数据的第二音量,确定音量调节值,根据音量调节值对第一耳机播放第一音频数据的第一音量进行调整。
下面以具体的实施例对第一耳机播放第一音频数据的音量的调节步骤进行说明。
在一个实施例中,在接收到所述电子设备发送的一个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量,可以进一步包括:步骤S2100~步骤S2200。
步骤S2100,在所述第一音量与所述第二音量不一致的情况下,根据所述第一音量和所述第二音量,确定音量偏移量。
第一音量与第二音量不一致的情况,可以包括第一音量与第一耳机第一次接收到的第二音量不一致的情况,也可以包括第一音量与调整后的第二音量不一致情况。
音量偏移量可以反映第一音量与第二音量的差异。示例性地,第一耳机播放第一音频数据的第一音量为vol 0,第二耳机播放第一音频数据的第二音量为vol 1,音量偏移量可以是第一音量与第二音量的差值的绝对值和第一音量的百分比,即,
Figure PCTCN2022102138-appb-000001
步骤S2200,在所述音量偏移量小于第一阈值、且所述第二音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
第一阈值可以是自适应调节第一音量的最大调整幅度。第一阈值可以是10%。这里需要说明的是,第一阈值可以由本领域技术人员根据实际经验进行设置,本申请对此不作限定。
第二阈值可以是允许自适应调节的最大音量,也就是说,第二阈值可以是不损坏人耳听力的最大音量。例如,第二阈值为耳机所能播放的最大音量的80%。这里需要说明的是,第二阈值可以由本领域技术人员进行实际经验设置,本申请对此不作限定。
在音量偏移量小于第一阈值、且第二音量小于第二阈值的情况下,说明当前的第一音 量与第二音量的差异较小,且第二音量未超过损害听力的阈值,认为第一音量的变化不会影响第一耳机的用户的音频体验,此时,可以自动将第一耳机播放第一音频数据的第一音量调节为第二音量。
在本实施例中,在第一耳机播放第一音频数据的第一音量与第二耳机播放第一音频数据的第二音量不一致的情况下,获取反映第一音量与第二音量之间的差异的音量偏移量,在音量偏移量小于第一阈值、且第二音量小于第二阈值的情况下,将第一耳机播放第一音频数据的第一音量调节为第二音量。这样,在第二耳机的用户根据应用环境调节音量后,第一耳机可以获取第二耳机播放第一音频数据的音量,并将第一耳机播放第一音频数据的音量调节第二耳机对应的第二音量,可以自适应调节耳机的音量,并且,可以保证调节的准确性,从而给用户带来更加便捷的音频体验。
在一个实施例中,所述根据所述第一音量和所述第二音量,确定音量偏移量之后,该方法还可以包括:在所述音量偏移量大于或等于所述第一阈值的情况下,发出第一提示信息;在接收到用户对所述第一提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
在本实施例中,通过发出第一提示信息,可以提醒用户确认是否调节播放第一音频数据的第一音量。第一提示信息可以是语音提示信息,也可以是振动提示信息等。例如,第一提示信息为“请确定是否调节当前播放音量”。
在音量偏移量大于或等于第一阈值、且第二音量小于第二阈值的情况下,说明当前的第一音量与第二音量的差异较大,且第二音量未超过损害听力的阈值,此时,向用户发出第一提示信息,以在接收到用户对第一提示信息的确认指令时,将第一耳机播放第一音频数据的第一音量调节为第二音量。
在本实施例中,在第一耳机播放第一音频数据的第一音量与第二耳机播放第一音频数据的第二音量不一致的情况下,获取反映第一音量与第二音量之间的差异的音量偏移量,在音量偏移量大于或等于第一阈值、且第二音量小于第二阈值的情况下,向用户发出第一提示信息,以在接收到用户对第一提示信息的确认指令之后,将第一耳机播放第一音频数据的第一音量调节为第二音量。这样,在实现对耳机的音量的自适应调节的同时,可以避免音量变化幅度较大而影响用户的音频体验。
在一个实施例中,在接收到所述电子设备发送的N个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量, 调节播放所述第一音频数据的第一音量,可以进一步包括:步骤S3100~步骤S3300。
步骤S3100,根据N个第二耳机中每个第二耳机播放所述第一音频数据的第二音量,确定第三音量,其中,N为大于1的正整数。
第三音量可以反映N个第二耳机播放第一音频数据的音量水平。
示例性地,将N个第二耳机播放第一音频数据的第二音量的平均值,确定为第三音量。例如,N个第二耳机播放第一音频数据的第二音量为
Figure PCTCN2022102138-appb-000002
第三音量
Figure PCTCN2022102138-appb-000003
示例性地,取N个第二耳机播放第一音频数据的第二音量的中值,作为第三音量。
示例性地,去除N个第二耳机播放第一音频数据的第二音量中的最大值和最小值,将剩余的第二耳机播放第一音频数据的第二音量的平均值,作为第三音量。
在本实施例中,提供了多种确定第三音量的方式,这样,用户可以根据实际需要进行设置,音量调节方式更灵活,用户体验更好。
步骤S3200,在所述第一音量与所述第三音量不一致的情况下,根据所述第一音量和所述第三音量,确定音量偏移量。
在本实施例中,第一音量与第三音量不一致的情况,可以包括第一音量与第一耳机第一次获取的第三音量不一致的情况,也可以包括第一音量与根据调整后的第二音量确定的第三音量不一致情况。
在本实施例中,音量偏移量可以反映第一音量与第三音量的差异。示例性地,第一耳机播放第一音频数据的第一音量为vol 0,第三音量为vol avg,音量偏移量可以是第一音量与第三音量的差值的绝对值和第一音量的百分比,即,
Figure PCTCN2022102138-appb-000004
步骤S3300,在所述音量偏移量小于第一阈值、且所述第三音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
在本实施例中,第一阈值可以是自适应调节第一音量的最大调整幅度。第一阈值可以是10%。这里需要说明的是,第一阈值可以由本领域技术人员根据实际经验进行设置,本申请对此不作限定。
第二阈值可以是允许自适应调节的最大音量,也就是说,第二阈值可以是不损坏人耳听力的最大音量。例如,第二阈值为耳机所能播放的最大音量的80%。这里需要说明的是, 第二阈值可以由本领域技术人员进行实际经验设置,本申请对此不作限定。
在音量偏移量小于第一阈值、且第三音量小于第二阈值的情况下,说明当前的第一音量与第三音量的差异较小,且第三音量未超过损害听力的阈值,认为第一音量的变化不会影响第一耳机的用户的音频体验,此时,可以自动将第一耳机播放第一音频数据的第一音量调节为第三音量。
在本实施例中,在第一耳机与多个第二耳机进行音频共享时,根据多个第二耳机播放第一音频数据的第二音量,确定第三音量,之后,在第一耳机播放第一音频数据的第一音量与第三音量不一致的情况下,获取反映第一音量与第三音量之间的差异的音量偏移量,在音量偏移量小于第一阈值、且第三音量小于第二阈值的情况下,将第一耳机播放第一音频数据的第一音量调节为第三音量。这样,在多个第二耳机的用户根据应用环境调节音量后,第一耳机可以根据多个第二耳机播放第一音频数据的音量自适应调节音量,可以提高音量调节的准确性,提升用户的音频体验。并且,不需要用户手动调节,从而给用户带来更加便捷的音频体验。
在一个实施例中,所述根据所述第一音量和所述第三音量,确定音量偏移量之后,该方法还包括:在所述音量偏移量大于或等于所述第一阈值、且所述第三音量小于第二阈值的情况下,发出第二提示信息;在接收到用户对所述第二提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
在本实施例中,通过发出第二提示信息,可以提醒用户确认是否调节播放第一音频数据的第一音量。第二提示信息可以是语音提示信息,也可以是振动提示信息等。例如,第二提示信息为“请确定是否调节当前播放音量”。
在音量偏移量大于或等于第一阈值、且第三音量小于第二阈值的情况下,说明当前的第一音量与第三音量的差异较大,且第三音量未超过损害听力的阈值,此时,向用户发出第二提示信息,以在接收到用户对第二提示信息的确认指令时,将第一耳机播放第一音频数据的第一音量调节为第三音量。
在本实施例中,在第一耳机与多个第二耳机进行音频共享时,根据多个第二耳机播放第一音频数据的第二音量,确定第三音量,之后,在第一耳机播放第一音频数据的第一音量与第三音量不一致的情况下,获取反映第一音量与第三音量之间的差异的音量偏移量,在音量偏移量大于或等于第一阈值、且第三音量小于第二阈值的情况下,向用户发出第二提示信息,以在接收到用户对第二提示信息的确认指令之后,将第一耳机播放第一音频数 据的第一音量调节为第三音量。这样,在实现对耳机的音量的自适应调节的同时,可以避免音量变化幅度较大而影响用户的音频体验。
根据本申请,在电子设备通过第一耳机与至少一个第二耳机进行音频共享的情况下,获取第一耳机播放电子设备发送的第一音频数据的第一音量,并接收电子设备发送的至少一个第二耳机播放第一音频数据的第二音量,以根据至少一个第二耳机播放第一音频数据的第二音量,对第一耳机进行音量调节。这样,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件条件和算法要求较低,适用性更广。
本申请还提供了一种音量调节方法,该音量调节方法可由图1示出的电子设备1000实施,如图3所示,该音量调节方法包括以下步骤:步骤S4100~步骤S4200。
步骤S4100,接收至少一个第二耳机发送的播放第一音频数据的第二音量。
在本实施例中,电子设备具有音频共享功能,在开启音频共享功能的情况下,电子设备可以通过第一耳机和至少一个第二耳机进行音频共享。其中,电子设备可以作为音频共享场景中音频数据的输出端。第二耳机可以作为音频共享场景中音频数据的多个接收端。第一音频数据可以是所要进行音频共享的音频数据。
第二音量可以是第二耳机播放第一音频数据的音量。在具体实施时,在开启电子设备的音频共享功能时,电子设备可以与第二耳机建立通信连接,基于电子设备与第二耳机之间的通信连接,向第二耳机发送第一音频数据,以使第二耳机播放第一音频数据。以及,基于电子设备与第二耳机之间的通信连接,第二耳机可以向电子设备上报播放第一音频数据的第二音量。之后,基于电子设备与第一耳机之间的通信连接,电子设备可以将第二耳机播放第一音频数据的第二音量发送至第一耳机。
这里可以理解的是,以多个第二耳机为例,在开启音频共享功能时,多个第二耳机中每个第二耳机均要向电子设备上报播放第一音频数据的第二音量。
这里还可以理解的是,第二耳机可以以预设的时间间隔上报播放第一音频数据的第二音量,也可以在播放第一音频数据的第二音量发生变化时上报第二音量。
步骤S4200,将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机, 以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
在本实施例中,电子设备通过第一耳机和至少一个第二耳机进行音频共享,第一耳机和至少一个第二耳机所处的应用环境相同,基于此,电子设备将至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使第一耳机可以根据至少一个第二耳机播放第一音频数据的第二音量,调节第一耳机播放第一音频数据的第一音量,从而实现耳机音量的自适应调节。
根据本申请,在电子设备通过第一耳机与至少一个第二耳机进行音频共享的情况下,电子设备可以接收至少一个第二耳机播放第一音频数据的第二音量,并将至少一个耳机播放第一音频数据的第二音量发送至第一耳机,以使第一耳机根据至少一个第二耳机播放第一音频数据的第二音量,对第一耳机进行音量调节。这样,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件条件和算法要求较低,适用性更广。
在一个实施例中,所述接收至少一个第二耳机发送的播放第一音频数据的第二音量之前,该方法还可以包括:在开启音频共享功能的情况下,与至少一个第二耳机建立通信连接;基于与所述至少一个第二耳机建立的通信连接,向所述至少一个第二耳机发送第一音频数据,以使所述至少一个第二耳机播放所述第一音频数据。
在一个实施例中,开启音频共享功能的步骤可以包括:接收第一用户对电子设备的第一输入;响应于所述第一输入,开启所述电子设备的音频共享功能。
在本实施例中,在开启音频共享功能的情况下,电子设备可以通过第一耳机和至少一个第二耳机进行音频共享。
第一输入可以用于开启电子设备的音频共享功能。示例性地,第一输入可以是用户对目标控件的点击输入,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本申请对此不作限定。本申请中的特定手势可以为单击手势、滑动手势、拖动手势中的任意一种;本申请中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
示例性地,当用户需要通过电子设备进行音频共享时,可以打开电子设备的系统设置 进行操作。具体地,电子设备的蓝牙设置界面可以包括开启蓝牙、音频共享的设置选项,以及包含与电子设备配对的设置(例如,第一耳机、至少一个第二耳机、智能音箱等)的设备列表。第一用户在开启电子设备的蓝牙功能时,可以通过蓝牙设置界面的音频共享选项,开启电子设备的音频共享功能。在开启电子设备的音频共享功能的情况下,进入音频共享界面,该音频共享界面包含已经与电子设备配对的设备的设备列表,第一用户可以在设备列表中选择已经与电子设备配对的至少一个第二耳机,这样,电子设备与至少一个第二耳机连接,以通过第一耳机和至少一个第二耳机实现音频共享,使得第一用户可以使用第一耳机播放音频数据,同时第二用户可以使用第二耳机播放相同的音频数据。
在本实施例中,电子设备具有音频共享功能,用户可以根据需要开启电子设备的音频共享功能,这样,可以实现第一耳机与多个第二耳机的音频共享,以使不同用户之间可以相互分享音频数据,为用户提供了丰富的音频体验。
下面以一个具体的例子说明音量调节方法。
步骤S501,在开启电子设备的音频共享功能的情况下,第一耳机获取播放电子设备发送的第一音频数据的第一音量,即vol 0
步骤S502,第一耳机接收电子设备发送的N个第二耳机播放第一音频数据的第二音量,即
Figure PCTCN2022102138-appb-000005
步骤S503,根据N个第二耳机播放第一音频数据的第二音量,确定第三音量,即
Figure PCTCN2022102138-appb-000006
步骤S504,在第一音量与第三音量不一致的情况下,根据第一音量和第三音量,确定音量偏移量,即,
Figure PCTCN2022102138-appb-000007
步骤S505,在音量偏移量小于第一阈值、且第三音量小于第二阈值的情况下,将第一耳机播放第一音频数据的音量更新为第三音量vol avg
步骤S506,在第二耳机播放第一音频数据的第二音量发生变化时,第一耳机接收电子设备发送的N个第二耳机对应的调节后的第二音量,即,
Figure PCTCN2022102138-appb-000008
Figure PCTCN2022102138-appb-000009
步骤S507,根据N个第二耳机对应的调节后的第二音量,对第三音量进行更新,得到更新后的第三音量,即,
Figure PCTCN2022102138-appb-000010
在该步骤中,如果N个第二耳机中存在调节后的第二音量大于或等于第二阈值的情况,根据对应的更新前的第二音量,对第三音量进行更新,得到更新后的第三音量。
步骤S508,根据更新后的第三音量,对音量偏移量进行更新,得到更新后的音量偏移量,即,
Figure PCTCN2022102138-appb-000011
步骤S509,在更新后的音量偏移量小于第一阈值、且更新后的第三音量小于第二阈值的情况下,将第一耳机播放第一音频数据的音量调整为更新后的第三音量。
在该例子中,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件条件和算法要求较低,适用性更广。
<装置实施例>
本申请提供了一种音量调节装置,应用于第一耳机,如图4所示,该音量调节装置400可以包括获取模块410、接收模块420和调节模块430。
该获取模块410可以用于在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;
该接收模块420可以用于接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;
该调节模块430可以用于根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
在一个实施例中,在接收到所述电子设备发送的一个第二耳机播放所述第一音频数据的第二音量的情况下,该调节模块430,包括:
第一确定单元,用于在所述第一音量与所述第二音量不一致的情况下,根据所述第一音量和所述第二音量,确定音量偏移量;
第一调节单元,用于在所述音量偏移量小于第一阈值、且所述第二音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
在一个实施例中,在接收到所述电子设备发送的一个第二耳机播放所述第一音频数据的第二音量的情况下,该调节模块430,还包括:
第一发送单元,用于在所述音量偏移量大于或等于所述第一阈值、且所述第二音量小于第二阈值的情况下,发出第一提示信息;
第二调节单元,用于在接收到用户对所述第一提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
在一个实施例中,在接收到所述电子设备发送的N个第二耳机播放所述第一音频数据的第二音量的情况下,该调节模块430,包括:
第二确定单元,用于根据N个第二耳机中每个第二耳机播放所述第一音频数据的第二音量,确定第三音量,其中,N为大于1的正整数;
第三确定单元,用于在所述第一音量与所述第三音量不一致的情况下,根据所述第一音量和所述第三音量,确定音量偏移量;
第三调节单元,用于在所述音量偏移量小于第一阈值、且所述第三音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量;
在一个实施例中,在接收到所述电子设备发送的N个第二耳机播放所述第一音频数据的第二音量的情况下,该调节模块430,还包括:
第二发送单元,用于在所述音量偏移量大于或等于所述第一阈值、且所述第三音量小于第二阈值的情况下,发出第二提示信息
第四调节单元,用于在接收到用户对所述第二提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
根据本申请,在电子设备通过第一耳机与至少一个第二耳机进行音频共享的情况下,获取第一耳机播放电子设备发送的第一音频数据的第一音量,并接收电子设备发送的至少一个第二耳机播放第一音频数据的第二音量,以根据至少一个第二耳机播放第一音频数据的第二音量,对第一耳机进行音量调节。这样,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件 条件和算法要求较低,适用性更广。
本申请提供了一种音量调节装置,应用于电子设备,如图5所示,该音量调节装置500可以包括接收模块510和第一发送模块520。
该接收模块510可以用于接收至少一个第二耳机发送的播放第一音频数据的第二音量;
该第一发送模块520可以用于将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
在一个实施例中,该音量调节装置500还包括:
建立模块,用于在开启音频共享功能的情况下,与至少一个第二耳机建立通信连接;
第二发送模块,用于基于与所述至少一个第二耳机建立的通信连接,向所述至少一个第二耳机发送第一音频数据,以使所述至少一个第二耳机播放所述第一音频数据。
根据本申请,在电子设备通过第一耳机与至少一个第二耳机进行音频共享的情况下,电子设备可以接收至少一个第二耳机播放第一音频数据的第二音量,并将至少一个耳机播放第一音频数据的第二音量发送至第一耳机,以使第一耳机根据至少一个第二耳机播放第一音频数据的第二音量,对第一耳机进行音量调节。这样,由于至少一个第二耳机播放第一音频数据的第二音量可以反映应用环境的噪声,可以根据至少一个第二耳机播放第一音频数据的第二音量自适应调节音量,可以实现耳机音量的自动调节,并且音量调节的准确性较高,可以为用户带来更加便捷的音频体验。此外,本实施例提供的音频调节方法,对耳机的硬件条件和算法要求较低,适用性更广。
<耳机实施例>
图6是根据一个实施例的耳机的硬件结构示意图。如图6所示,该耳机600包括存储器610和处理器620。
该存储器610可以用于存储可执行的计算机指令。
该处理器620可以用于根据所述可执行的计算机指令的控制,执行根据本申请方法实施例所述的音量调节方法。
在另外的实施例中,该耳机600可以包括以上音量调节装置400。
在一个实施例中,以上音量调节装置400的各模块可以通过处理器620运行存储器610

Claims (12)

  1. 一种音量调节方法,应用于第一耳机,其特征在于,所述方法包括:
    在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;
    接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;
    根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
  2. 根据权利要求1所述的方法,其特征在于,在接收到所述电子设备发送的一个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量,包括:
    在所述第一音量与所述第二音量不一致的情况下,根据所述第一音量和所述第二音量,确定音量偏移量;
    在所述音量偏移量小于第一阈值、且所述第二音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一音量和所述第二音量,确定音量偏移量之后,所述方法还包括:
    在所述音量偏移量大于或等于所述第一阈值、且所述第二音量小于第二阈值的情况下,发出第一提示信息;
    在接收到用户对所述第一提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第二音量。
  4. 根据权利要求1所述的方法,其特征在于,在接收到所述电子设备发送的N个第二耳机播放所述第一音频数据的第二音量的情况下,所述根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量,包括:
    根据N个第二耳机中每个第二耳机播放所述第一音频数据的第二音量,确定第三音量,其中,N为大于1的正整数;
    在所述第一音量与所述第三音量不一致的情况下,根据所述第一音量和所述第三音量,确定音量偏移量;
    在所述音量偏移量小于第一阈值、且所述第三音量小于第二阈值的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第一音量和所述第三音量,确定音量偏移量之后,所述方法还包括:
    在所述音量偏移量大于或等于所述第一阈值、且所述第三音量小于第二阈值的情况下,发出第二提示信息;
    在接收到用户对所述第二提示信息的确认指令的情况下,将播放所述第一音频数据的第一音量调节为所述第三音量。
  6. 一种音量调节方法,应用于电子设备,其特征在于,所述方法包括:
    接收至少一个第二耳机发送的播放第一音频数据的第二音量;
    将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
  7. 根据权利要求6所述的方法,其特征在于,所述接收至少一个第二耳机发送的播放第一音频数据的第二音量之前,所述方法还包括:
    在开启音频共享功能的情况下,与至少一个第二耳机建立通信连接;
    基于与所述至少一个第二耳机建立的通信连接,向所述至少一个第二耳机发送第一音频数据,以使所述至少一个第二耳机播放所述第一音频数据。
  8. 一种音量调节装置,应用于第一耳机,其特征在于,所述装置包括:
    获取模块,用于在接收到电子设备发送的第一音频数据的情况下,获取播放所述第一音频数据的第一音量;
    接收模块,用于接收所述电子设备发送的至少一个第二耳机播放所述第一音频数据的第二音量;
    调节模块,用于根据所述至少一个第二耳机播放所述第一音频数据的第二音量,调节播放所述第一音频数据的第一音量。
  9. 一种音量调节装置,应用于电子设备,其特征在于,所述装置包括:
    接收模块,用于接收至少一个第二耳机发送的播放第一音频数据的第二音量;
    第一发送模块,用于将所述至少一个第二耳机播放第一音频数据的第二音量发送至第一耳机,以使所述第一耳机根据所述至少一个第二耳机播放第一音频数据的第二音量进行音量调节。
  10. 一种耳机,其特征在于,包括:
    存储器,用于存储可执行的计算机指令;
    处理器,用于根据所述可执行的计算机指令的控制,执行根据权利要求1-5中任一项所述的音量调节方法。
  11. 一种电子设备,其特征在于,包括:
    存储器,用于存储可执行的计算机指令;
    处理器,用于根据所述可执行的计算机指令的控制,执行根据权利要求6或7所述的音量调节方法。
  12. 一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行权利要求1-7中任一项所述的音量调节方法。
PCT/CN2022/102138 2022-05-30 2022-06-29 音量调节方法、装置、耳机、电子设备及可读存储介质 WO2023231113A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210605167.5 2022-05-30
CN202210605167.5A CN115065904A (zh) 2022-05-30 2022-05-30 音量调节方法、装置、耳机、电子设备及可读存储介质

Publications (1)

Publication Number Publication Date
WO2023231113A1 true WO2023231113A1 (zh) 2023-12-07

Family

ID=83197726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102138 WO2023231113A1 (zh) 2022-05-30 2022-06-29 音量调节方法、装置、耳机、电子设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN115065904A (zh)
WO (1) WO2023231113A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686516A (zh) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 一种可共享音频的蓝牙耳机及其控制方法
CN104125527A (zh) * 2014-08-01 2014-10-29 青岛歌尔声学科技有限公司 一种多耳机音量控制电路及控制方法
CN212344034U (zh) * 2020-08-28 2021-01-12 深圳市丽耳科技有限公司 具有自动音量调节功能的tws蓝牙耳机
CN113038337A (zh) * 2021-02-02 2021-06-25 深圳千岸科技股份有限公司 一种音频播放方法、无线耳机和计算机可读存储介质
CN113115179A (zh) * 2021-03-24 2021-07-13 维沃移动通信有限公司 工作状态调节方法和装置
CN113407147A (zh) * 2021-06-02 2021-09-17 维沃移动通信有限公司 音频播放方法、装置、设备及存储介质
WO2021251660A1 (en) * 2020-06-08 2021-12-16 Samsung Electronics Co., Ltd. Method for controlling volume of digital earphone, electronic terminal and digital earphone

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704619A (zh) * 2016-02-02 2016-06-22 深圳市元征科技股份有限公司 音量调节方法及装置
CN113645573B (zh) * 2021-07-22 2023-06-09 深圳市冠旭电子股份有限公司 耳机配置数据共享方法、耳机及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686516A (zh) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 一种可共享音频的蓝牙耳机及其控制方法
CN104125527A (zh) * 2014-08-01 2014-10-29 青岛歌尔声学科技有限公司 一种多耳机音量控制电路及控制方法
WO2021251660A1 (en) * 2020-06-08 2021-12-16 Samsung Electronics Co., Ltd. Method for controlling volume of digital earphone, electronic terminal and digital earphone
CN212344034U (zh) * 2020-08-28 2021-01-12 深圳市丽耳科技有限公司 具有自动音量调节功能的tws蓝牙耳机
CN113038337A (zh) * 2021-02-02 2021-06-25 深圳千岸科技股份有限公司 一种音频播放方法、无线耳机和计算机可读存储介质
CN113115179A (zh) * 2021-03-24 2021-07-13 维沃移动通信有限公司 工作状态调节方法和装置
CN113407147A (zh) * 2021-06-02 2021-09-17 维沃移动通信有限公司 音频播放方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115065904A (zh) 2022-09-16

Similar Documents

Publication Publication Date Title
US10425768B2 (en) Adjusting audio output volume based on a detected presence of another device
US10805708B2 (en) Headset sound channel control method and system, and related device
CN107071648B (zh) 声音播放调节系统、装置及方法
US9344827B2 (en) Method and apparatus for audio output, and electronic device
KR102350498B1 (ko) 외부 장치를 통해 오디오 신호를 재생하기 위한 전자 장치 및 그의 동작 방법
WO2019090726A1 (zh) 选择蓝牙设备的方法、终端和系统
WO2021008430A1 (zh) 传输方法和通信设备
US11284151B2 (en) Loudness adjustment method and apparatus, and electronic device and storage medium
CN110673751A (zh) 用于使音频均衡以便在电子设备上播放的系统和方法
US20140233772A1 (en) Techniques for front and rear speaker audio control in a device
WO2021017948A1 (zh) Dci传输方法和通信设备
CN111654450B (zh) 数据传输方法及装置、存储介质
JP7252259B2 (ja) アクセス制御方法、メッセージ放送方法及び関連装置
US20160056781A1 (en) Volume control
WO2017166598A1 (zh) 一种耳机的声道调节方法及装置、电子设备及存储介质
US20140233771A1 (en) Apparatus for front and rear speaker audio control in a device
WO2024021736A1 (zh) 蓝牙多媒体包的传输方法、装置、设备和系统
KR20210101696A (ko) 버퍼를 제어하기 위한 전자 장치 및 방법
KR20170043319A (ko) 전자 장치 및 전자 장치의 오디오 출력 방법
JP2018503150A (ja) タッチスクリーンのポイント報告を処理するための方法、装置、プログラム、及び記録媒体
WO2023231113A1 (zh) 音量调节方法、装置、耳机、电子设备及可读存储介质
CN104038626B (zh) 移动计算装置与配件装置的通信方法
CN110392878B (zh) 一种控制声音的方法及移动终端
TWI630828B (zh) 供使用者定向交談之智慧型耳機裝置個人化系統及其使用方法
KR20150104128A (ko) 그룹 통신에서 동적 화자 id 기반 미디어 처리를 위한 프레임워크 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22944431

Country of ref document: EP

Kind code of ref document: A1