Volume adjustment method, device, earphone, electronic device and readable storage medium
By receiving volume information from the second earphone and automatically adjusting it, the problem of inaccurate volume adjustment of wireless earphones in multi-user scenarios is solved, improving user experience and reducing hardware and algorithm requirements.
Patent Information
- Application Number
- CN202210605167.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-05-30
AI Technical Summary
The adaptive volume adjustment function of existing wireless headsets has high requirements on hardware conditions and algorithms, and the user experience is poor in multi-user audio sharing scenarios, making it difficult to achieve accurate volume adjustment.
By receiving the volume of the audio data played by at least one second earphone, the volume of the audio data played by the first earphone is adjusted, the volume offset and the threshold are used for automatic adjustment, and when necessary, a prompt message is sent to the user to obtain a confirmation instruction.
It realizes adaptive adjustment of headphone volume, improves the accuracy of volume adjustment and user experience, reduces the requirements for hardware and algorithms, and has wider applicability.
Smart Images

Figure CN115065904B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of wireless earphones. More specifically, the embodiments of the present disclosure relate to a volume adjustment method, an apparatus, an earphone, an electronic device, and a readable storage medium. Background Art
[0002] As users' requirements for portability increase, Bluetooth headsets are favored by more and more users. Bluetooth headsets can establish wireless connections with electronic devices such as mobile phones, so as to cooperate with electronic devices to play music or make / receive calls for users.
[0003] In the prior art, wireless headphones have an adaptive volume adjustment function, for example, by detecting ambient noise to adjust the volume according to the ambient noise. However, this method has high requirements on the hardware conditions and algorithms of the headphones, and is limited by the performance of the algorithm, and often fails to meet the user's expectations.
[0004] Therefore, it is necessary to provide a new volume adjustment solution that can realize adaptive volume adjustment of headphones to bring users a more convenient audio experience. Summary of the invention
[0005] The purpose of the embodiments of the present disclosure is to provide a volume adjustment method, device, earphone, electronic device and readable storage medium, which can realize adaptive volume adjustment of earphones to bring a more convenient audio experience to users.
[0006] According to a first aspect of an embodiment of the present disclosure, a volume adjustment method is provided, which is applied to a first earphone, and the method includes:
[0007] When first audio data sent by an electronic device is received, obtaining a first volume for playing the first audio data;
[0008] Receive a second volume of at least one second earphone playing the first audio data sent by the electronic device;
[0009] The first volume of playing the first audio data is adjusted according to the second volume of playing the first audio data by the at least one second earphone.
[0010] Optionally, in a case where a second volume of a second earphone playing the first audio data sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the at least one second earphone playing the first audio data includes:
[0011] When the first volume is inconsistent with the second volume, determining a volume offset according to the first volume and the second volume;
[0012] When the volume offset is smaller than a first threshold value and the second volume is smaller than a second threshold value, the first volume of playing the first audio data is adjusted to the second volume.
[0013] Optionally, after determining the volume offset according to the first volume and the second volume, the method further includes:
[0014] When the volume offset is greater than or equal to the first threshold and the second volume is less than a second threshold, issuing a first prompt message;
[0015] When a confirmation instruction of the user to the first prompt information is received, the first volume of playing the first audio data is adjusted to the second volume.
[0016] Optionally, in a case where a second volume of the first audio data played by N second earphones sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the first audio data played by the at least one second earphone includes:
[0017] Determine a third volume according to a second volume of each of the N second headphones playing the first audio data, where N is a positive integer greater than 1;
[0018] When the first volume is inconsistent with the third volume, determining a volume offset according to the first volume and the third volume;
[0019] When the volume offset is smaller than the first threshold and the third volume is smaller than the second threshold, the first volume of playing the first audio data is adjusted to the third volume.
[0020] Optionally, after determining the volume offset according to the first volume and the third volume, the method further includes:
[0021] When the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold, issuing a second prompt message;
[0022] When a confirmation instruction of the user to the second prompt information is received, the first volume of playing the first audio data is adjusted to the third volume.
[0023] According to a second aspect of an embodiment of the present disclosure, a volume adjustment method is provided, which is applied to an electronic device, and the method includes:
[0024] receiving a second volume for playing the first audio data sent by at least one second headset;
[0025] The second volume of the at least one second earphone playing the first audio data is sent to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
[0026] Optionally, before receiving a second volume for playing the first audio data sent by at least one second headset, the method further includes:
[0027] When the audio sharing function is enabled, establishing a communication connection with at least one second headset;
[0028] Based on the communication connection established with the at least one second headset, first audio data is sent to the at least one second headset, so that the at least one second headset plays the first audio data.
[0029] According to a third aspect of an embodiment of the present disclosure, a volume adjustment device is provided, which is applied to a first earphone, and the device includes:
[0030] An acquisition module, configured to acquire a first volume for playing the first audio data when receiving the first audio data sent by the electronic device;
[0031] A receiving module, configured to receive a second volume of at least one second earphone playing the first audio data sent by the electronic device;
[0032] The adjustment module is used to adjust a first volume of playing the first audio data according to a second volume of playing the first audio data by the at least one second earphone.
[0033] According to a fourth aspect of an embodiment of the present disclosure, a volume adjustment device is provided, which is applied to an electronic device, and the device includes:
[0034] A receiving module, configured to receive a second volume for playing the first audio data sent by at least one second earphone;
[0035] The first sending module is used to send a second volume of the at least one second earphone playing the first audio data to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
[0036] According to a fifth aspect of an embodiment of the present disclosure, there is provided an earphone, comprising:
[0037] Memory for storing executable computer instructions;
[0038] The processor is used to execute the volume adjustment method as described in the first aspect of the embodiment of the present disclosure according to the control of the executable computer instruction.
[0039] According to a sixth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0040] Memory for storing executable computer instructions;
[0041] The processor is used to execute the volume adjustment method as described in the second aspect of the embodiment of the present disclosure according to the control of the executable computer instructions.
[0042] According to a seventh aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the volume adjustment method as described in the first aspect of the embodiment of the present disclosure is executed, or the volume adjustment method as described in the second aspect of the embodiment of the present disclosure is executed.
[0043] According to an embodiment of the present disclosure, when an electronic device shares audio with at least one second earphone through a first earphone, a first volume of first audio data sent by the first earphone playing the electronic device is obtained, and a second volume of the first audio data played by at least one second earphone sent by the electronic device is received, so that the volume of the first earphone is adjusted according to the second volume of the first audio data played by at least one second earphone. In this way, since the second volume of the first audio data played by at least one second earphone can reflect the noise of the application environment, the volume can be adaptively adjusted according to the second volume of the first audio data played by at least one second earphone, and automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0044] Other features and advantages of embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.
[0046] Figure 1 is a schematic diagram of the hardware configuration of an audio interaction system that can be used to implement a volume adjustment method of an embodiment;
[0047] Figure 2 is a flow chart of a volume adjustment method according to an embodiment;
[0048] Figure 3 is a flow chart of a volume adjustment method according to another embodiment;
[0049] Figure 4 is a schematic diagram of the hardware structure of a volume adjustment device according to an embodiment;
[0050] Figure 5 is a schematic diagram of the hardware structure of a volume adjustment device according to another embodiment;
[0051] Figure 6 is a schematic diagram of the hardware structure of a headset according to an embodiment;
[0052] Figure 7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0053] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.
[0054] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0055] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0056] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0057] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0058] At present, electronic devices provide an audio sharing function. Taking an electronic device as an example, when a user listens to music or watches a video through an electronic device, the earphones of the user and other users are respectively connected to the electronic device via Bluetooth, so that different users can play the audio data transmitted by the electronic device through their respective earphones by using the audio sharing function of the electronic device.
[0059] In addition, the electronic device also provides an adaptive volume adjustment function, for example, by detecting ambient noise to adjust the volume according to the ambient noise.
[0060] The above-mentioned adaptive volume adjustment method, on the one hand, has high requirements on the hardware conditions and algorithms of the headphones, and is often unable to meet the user's expectations due to the performance limitations of the algorithms; on the other hand, when multiple users use headphones to share audio, each user uses the headphones to adjust the volume according to the ambient noise, resulting in a poor user experience.
[0061] In order to solve the above technical problems, an embodiment of 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, and can realize adaptive volume adjustment in the audio sharing scenario to bring a more convenient audio experience to the user.
[0062] The volume adjustment solution provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0063] <Hardware Configuration>
[0064] Figure 1 The figure is a schematic diagram of the hardware configuration of an audio interaction system that can be used to implement the volume adjustment method of an embodiment.
[0065] like Figure 1 As shown, the audio interaction system 100 may include an electronic device 1000 , a first earphone 2000 , and a plurality of second earphones 3000 .
[0066] In this embodiment, the electronic device 1000 establishes a communication connection with the first headset 2000. The electronic device 1000 may be, for example, a mobile phone, a portable computer, a tablet computer, a palm computer, etc., which is not limited in the embodiment of the present disclosure.
[0067] In one embodiment, Figure 1 As shown, 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, etc. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 may include, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 may be capable of wired or wireless communication, for example. The display device 1500 may be, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 may include, for example, a touch screen, a keyboard, etc. The microphone 1700 may be used to input voice information. The speaker 1800 may be used to output voice information.
[0068] Despite Figure 1 , multiple devices of the electronic device 1000 are shown; however, the present invention may only involve some of the devices, for example, the electronic device 1000 only involves the processor 1100 , the memory 1200 and the communication device 1400 .
[0069] In this embodiment, the memory 1200 of the electronic device 1000 is used to store program instructions, and the program instructions are used to control the processor 1100 to operate to execute the volume adjustment method. The technician can design instructions according to the scheme disclosed in the present invention. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0070] In one embodiment, Figure 1 As shown, the first headset 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, etc. The memory 2200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 2300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 2400 is capable of wired or wireless communication, for example, a Bluetooth communication device. The microphone 2500 can be used to input voice information. The speaker 2600 can be used to output voice information.
[0071] Despite Figure 1 2 shows multiple devices of the first headset 2000, but the present invention may only relate to some of the devices.
[0072] In one embodiment, the first earphone 2000 may be, for example, a TWS earphone.
[0073] In this embodiment, the memory 2200 of the first headset 2000 is used to store program instructions, and the program instructions are used to control the processor 2100 to operate to execute the volume adjustment method. The technician can design instructions according to the scheme disclosed in the present invention. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0074] Figure 1 The first earphone 2000 shown is for illustrative purposes only and is in no way intended to limit the present description, its application, or uses.
[0075] In one embodiment, Figure 1As shown, the second headset 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, etc. The memory 3200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 3300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 3400 is capable of wired or wireless communication, for example, a Bluetooth communication device. The microphone 3500 can be used to input voice information. The speaker 3600 can be used to output voice information.
[0076] Despite Figure 1 2 shows multiple components of the second headset 3000, but the present invention may only relate to some of the components.
[0077] In one embodiment, the second earphone 3000 may be, for example, a TWS earphone.
[0078] In this embodiment, the memory 3200 of the second headset 3000 is used to store program instructions, and the program instructions are used to control the processor 3100 to operate to execute the volume adjustment method. The technician can design instructions according to the scheme disclosed in the present invention. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0079] Figure 1 The second earphone 3000 shown is for illustrative purposes only and is in no way intended to limit the present description, its application, or uses.
[0080] In the above description, the technician can design instructions according to the solution provided by the present disclosure. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0081] <Method Example>
[0082] The present disclosure provides a volume adjustment method. Figure 1 The first earphone 2000 is shown as an embodiment of Figure 2 As shown, the volume adjustment method includes the following steps: step S1100 to step S1300.
[0083] Step S1100: upon receiving first audio data sent by an electronic device, obtaining a first volume for playing the first audio data.
[0084] In this embodiment, the electronic device has an audio sharing function. When the audio sharing function is turned on, the electronic device can share audio through a first earphone and at least one second earphone. Among them, the electronic device can serve as an output end 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 receiving end of audio data in an audio sharing scenario. The first audio data can be the audio data to be audio-shared.
[0085] Exemplarily, when the first user uses the first headset 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. When the audio sharing function is turned on, the electronic device can broadcast the first audio data to transmit the first audio data to at least one second headset based on the communication connection established with at least one second headset, so that at least one second user uses the second headset to play the first audio data, thereby realizing audio sharing.
[0086] The first volume may be the volume of the first earphone playing the first audio data. In a specific implementation, when the first user uses the first earphone to play the first audio data, the volume of the first earphone playing the first audio data may be adjusted according to actual needs, so that the current volume of the first earphone playing the first audio data is used as the first volume.
[0087] Step S1200: receiving a second volume of at least one second earphone playing the first audio data sent by the electronic device.
[0088] In this embodiment, the second earphone can be used as another receiving end of the audio data in the audio sharing scenario. The second earphone can establish a Bluetooth communication connection with the electronic device. The second earphone can be one or more, and can be set according to actual needs, which is not limited in this embodiment of the present disclosure.
[0089] The second volume can be the volume of the second earphone playing the first audio data. In a specific implementation, 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 based on the communication connection between the electronic device and the second earphone, send the first audio data to the second earphone so that the second earphone plays 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 of 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 second earphone playing the first audio data to the first earphone.
[0090] It can be understood here that, taking multiple second earphones as an example, when the audio sharing function is turned on, each of the multiple second earphones must report the second volume of playing the first audio data to the electronic device.
[0091] It can also be understood here that the second earphone can report the second volume of playing the first audio data at a preset time interval, and can also report the second volume when the second volume of playing the first audio data changes.
[0092] Step S1300: adjusting a first volume of playing the first audio data according to a second volume of playing the first audio data by the at least one second earphone.
[0093] In this embodiment, the electronic device shares audio through a 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 volume of the first audio data played by the first earphone can be adjusted according to the second volume of the first audio data played by the at least one second earphone, thereby realizing adaptive adjustment of the volume of the first earphone.
[0094] Exemplarily, the first earphone adjusts the volume according to the second volume of the first audio data played by at least one second earphone, and the first volume of the first audio data played by the first earphone is adjusted to be the same as the second volume of the first audio data played by at least one second earphone. The first earphone adjusts the volume according to the second volume of the first audio data played by at least one second earphone, and the volume adjustment value is determined according to the second volume of the first audio data played by at least one second earphone, and the first volume of the first audio data played by the first earphone is adjusted according to the volume adjustment value.
[0095] The following describes the steps of adjusting the volume of the first audio data played by the first earphone with a specific embodiment.
[0096] In one embodiment, when a second volume of a second earphone playing the first audio data sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the at least one second earphone playing the first audio data may further include: steps S2100 to S2200.
[0097] Step S2100: When the first volume is inconsistent with the second volume, a volume offset is determined according to the first volume and the second volume.
[0098] The situation where the first volume is inconsistent with the second volume may include a situation where the first volume is inconsistent with the second volume received by the first headset for the first time, and may also include a situation where the first volume is inconsistent with the adjusted second volume.
[0099] The volume offset can reflect the difference between the first volume and the second volume. For example, the first volume of the first earphone playing the first audio data is vol0, and the second volume of the second earphone playing the first audio data is vol1. The volume offset can be the absolute value of the difference between the first volume and the second volume and the percentage of the first volume, that is,
[0100] Step S2200: When the volume offset is less than a first threshold value and the second volume is less than a second threshold value, the first volume of playing the first audio data is adjusted to the second volume.
[0101] The first threshold may be a maximum adjustment range of the first volume for adaptively adjusting the first volume. The first threshold may be 10%. It should be noted that the first threshold may be set by those skilled in the art based on actual experience, and the embodiments of the present disclosure do not limit this.
[0102] 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. For example, the second threshold is 80% of the maximum volume that the headset can play. It should be noted that the second threshold can be set by those skilled in the art based on actual experience, and the embodiments of the present disclosure are not limited to this.
[0103] When 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 of hearing damage. It is considered that the change of the first volume will not affect the audio experience of the user of the first earphone. At this time, the first volume of the first earphone playing the first audio data can be automatically adjusted to the second volume.
[0104] In this embodiment, when the first volume of the first audio data played by the first earphone is inconsistent with the second volume of the first audio data played by the second earphone, a volume offset reflecting the difference between the first volume and the second volume is obtained, and when the volume offset is less than the first threshold value and the second volume is less than the second threshold value, the first volume of the first audio data played by the first earphone is adjusted to the second volume. In this way, after the user of the second earphone adjusts the volume according to the application environment, 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 second volume corresponding to the second earphone, so that the volume of the earphone can be adjusted adaptively, and the accuracy of the adjustment can be guaranteed, thereby bringing a more convenient audio experience to the user.
[0105] In one embodiment, after determining the volume offset based on the first volume and the second volume, the method may also include: issuing a first prompt message when the volume offset is greater than or equal to the first threshold; and adjusting the first volume of playing the first audio data to the second volume when receiving a user confirmation instruction for the first prompt message.
[0106] In this embodiment, by sending a first prompt message, the user can be reminded to confirm whether to adjust the first volume of the first audio data. The first prompt message can be a voice prompt message, or a vibration prompt message, etc. For example, the first prompt message is "Please confirm whether to adjust the current playback volume."
[0107] When 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 current first volume and second volume are significantly different and the second volume does not exceed the threshold for damaging hearing. At this time, a first prompt message is sent to the user, so that upon receiving a confirmation instruction from the user for the first prompt message, the first volume of the first audio data played by the first earphone is adjusted to the second volume.
[0108] In this embodiment, when the first volume of the first audio data played by the first earphone is inconsistent with the second volume of the first audio data played by the second earphone, a volume offset reflecting the difference between the first volume and the second volume is obtained, and when the volume offset is greater than or equal to the first threshold and the second volume is less than the second threshold, a first prompt message is sent to the user, so that after receiving the user's confirmation instruction for the first prompt message, the first volume of the first audio data played by the first earphone is adjusted to the second volume. In this way, while realizing adaptive adjustment of the volume of the earphone, it is possible to avoid a large volume change that affects the user's audio experience.
[0109] In one embodiment, when the second volume of the first audio data played by N second earphones sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the first audio data played by at least one second earphone may further include: steps S3100 to S3300.
[0110] Step S3100: determining a third volume according to a second volume at which each of N second earphones plays the first audio data, where N is a positive integer greater than 1.
[0111] The third volume may reflect the volume levels of the N second headphones playing the first audio data.
[0112] Exemplarily, the average of the second volume of the N second headphones playing the first audio data is determined as the third volume. Third volume
[0113] Exemplarily, a median value of the second volumes of the N second headphones playing the first audio data is taken as the third volume.
[0114] Exemplarily, the maximum and minimum values of the second volumes of the N second headphones playing the first audio data are removed, and the average value of the second volumes of the remaining second headphones playing the first audio data is used as the third volume.
[0115] In this embodiment, multiple ways of determining the third volume are provided, so that the user can set it according to actual needs, the volume adjustment method is more flexible, and the user experience is better.
[0116] Step S3200: When the first volume is inconsistent with the third volume, a volume offset is determined according to the first volume and the third volume.
[0117] In this embodiment, the situation where the first volume is inconsistent with the third volume may include the situation where the first volume is inconsistent with the third volume first obtained by the first headset, and may also include the situation where the first volume is inconsistent with the third volume determined according to the adjusted second volume.
[0118] In this embodiment, the volume offset may reflect the difference between the first volume and the third volume. For example, the first volume of the first earphone playing the first audio data is vol0, and the third volume is vol avg , the volume offset can be the absolute value of the difference between the first volume and the third volume and the percentage of the first volume, that is,
[0119] Step S3300: When the volume offset is less than the first threshold and the third volume is less than the second threshold, the first volume of playing the first audio data is adjusted to the third volume.
[0120] In this embodiment, the first threshold value may be a maximum adjustment range of the first volume for adaptively adjusting the first volume. The first threshold value may be 10%. It should be noted that the first threshold value may be set by those skilled in the art based on actual experience, and the embodiment of the present disclosure does not limit this.
[0121] 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. For example, the second threshold is 80% of the maximum volume that the headset can play. It should be noted that the second threshold can be set by those skilled in the art based on actual experience, and the embodiments of the present disclosure are not limited to this.
[0122] When 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 threshold of hearing damage. It is considered that the change of the first volume will not affect the audio experience of the user of the first earphone. At this time, the first volume of the first earphone playing the first audio data can be automatically adjusted to the third volume.
[0123] In this embodiment, when the first earphone shares audio with multiple second earphones, the third volume is determined according to the second volume of the first audio data played by the multiple second earphones. Afterwards, when the first volume of the first audio data played by the first earphone is inconsistent with the third volume, the volume offset reflecting the difference between the first volume and the third volume is obtained. When the volume offset is less than the first threshold and the third volume is less than the second threshold, the first volume of the first audio data played by the first earphone is adjusted to the third volume. In this way, after the users of the multiple second earphones adjust the volume according to the application environment, 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 volume adjustment and enhance the user's audio experience. In addition, the user does not need to adjust manually, thereby bringing a more convenient audio experience to the user.
[0124] In one embodiment, after determining the volume offset based on the first volume and the third volume, the method further includes: issuing a second prompt message when the volume offset is greater than or equal to the first threshold and the third volume is less than a second threshold; and adjusting the first volume of playing the first audio data to the third volume when receiving a user confirmation instruction for the second prompt message.
[0125] In this embodiment, by sending the second prompt information, the user can be reminded to confirm whether to adjust the first volume of the first audio data. The second prompt information can be a voice prompt information, or a vibration prompt information, etc. For example, the second prompt information is "Please confirm whether to adjust the current playback volume."
[0126] When the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold, it means that the current first volume and third volume are significantly different and the third volume does not exceed the threshold for damaging hearing. At this time, a second prompt message is sent to the user, so that upon receiving a confirmation instruction from the user for the second prompt message, the first volume of the first audio data played by the first earphone is adjusted to the third volume.
[0127] In this embodiment, when the first earphone shares audio with multiple second earphones, the third volume is determined according to the second volume of the first audio data played by the multiple second earphones. Afterwards, when the first volume of the first audio data played by the first earphone is inconsistent with the third volume, a volume offset reflecting the difference between the first volume and the third volume is obtained. When the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold, 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 audio data played by the first earphone is adjusted to the third volume. In this way, while realizing the adaptive adjustment of the volume of the earphone, it is possible to avoid a large volume change that affects the user's audio experience.
[0128] According to an embodiment of the present disclosure, when an electronic device shares audio with at least one second earphone through a first earphone, a first volume of first audio data sent by the first earphone playing the electronic device is obtained, and a second volume of the first audio data played by at least one second earphone sent by the electronic device is received, so that the volume of the first earphone is adjusted according to the second volume of the first audio data played by at least one second earphone. In this way, since the second volume of the first audio data played by at least one second earphone can reflect the noise of the application environment, the volume can be adaptively adjusted according to the second volume of the first audio data played by at least one second earphone, and automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0129] The present disclosure also provides a volume adjustment method. The volume adjustment method can be Figure 1 The electronic device 1000 shown is implemented as Figure 3 As shown, the volume adjustment method includes the following steps: step S4100 to step S4200.
[0130] Step S4100: receiving a second volume for playing first audio data sent by at least one second earphone.
[0131] In this embodiment, the electronic device has an audio sharing function. When the audio sharing function is turned on, the electronic device can share audio through a first earphone and at least one second earphone. The electronic device can serve as an output end of audio data in an audio sharing scenario. The second earphone can serve as multiple receiving ends of audio data in an audio sharing scenario. The first audio data can be the audio data to be audio-shared.
[0132] The second volume can be the volume of the second earphone playing the first audio data. In a specific implementation, 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 based on the communication connection between the electronic device and the second earphone, send the first audio data to the second earphone so that the second earphone plays 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 of 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 second earphone playing the first audio data to the first earphone.
[0133] It can be understood here that, taking multiple second earphones as an example, when the audio sharing function is turned on, each of the multiple second earphones must report the second volume of playing the first audio data to the electronic device.
[0134] It can also be understood here that the second earphone can report the second volume of playing the first audio data at a preset time interval, and can also report the second volume when the second volume of playing the first audio data changes.
[0135] Step S4200: Send the second volume of the at least one second earphone playing the first audio data to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
[0136] In this embodiment, the electronic device shares audio through a 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 sends a second volume of the first audio data played by the at least one second earphone to the first earphone, so that the first earphone can adjust the first volume of the first audio data played by the first earphone according to the second volume of the first audio data played by the at least one second earphone, thereby realizing adaptive adjustment of the earphone volume.
[0137] According to an embodiment of the present disclosure, when an electronic device shares audio with at least one second earphone through a first earphone, the electronic device can receive the second volume of the first audio data played by at least one second earphone, and send the second volume of the first audio data played by at least one earphone to the first earphone, so that the first earphone adjusts the volume of the first earphone according to the second volume of the first audio data played by at least one second earphone. In this way, since the second volume of the first audio data played by at least one second earphone can reflect the noise of the application environment, the volume can be adaptively adjusted according to the second volume of the first audio data played by at least one second earphone, and automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0138] In one embodiment, before receiving the second volume of playing the first audio data sent by at least one second earphone, the method may also include: establishing a communication connection with at least one second earphone when the audio sharing function is turned on; and sending the 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.
[0139] In one embodiment, the step of enabling the audio sharing function may include: receiving a first input from a first user to the electronic device; and enabling the audio sharing function of the electronic device in response to the first input.
[0140] In this embodiment, when the audio sharing function is enabled, the electronic device can share audio through the first earphone and at least one second earphone.
[0141] The first input can be used to enable the audio sharing function of the electronic device. Exemplarily, the first input can be a click input of the user to the target control, or a specific gesture input by the user, which can be determined according to actual usage requirements, and the embodiment of the present application does not limit this. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, and a drag gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
[0142] Exemplarily, when a user needs to share audio through an electronic device, the system settings of the electronic device can be opened to operate. Specifically, the Bluetooth setting interface of the electronic device may include setting options for turning on Bluetooth and audio sharing, and a device list containing settings for pairing with the electronic device (for example, a first headset, at least one second headset, a smart speaker, etc.). When the first user turns on the Bluetooth function of the electronic device, the audio sharing function of the electronic device can be turned on through the audio sharing option of the Bluetooth setting interface. When the audio sharing function of the electronic device is turned on, the audio sharing interface is entered, which contains a device list of devices that have been paired with the electronic device. The first user can select at least one second headset that has been paired with the electronic device in the device list. In this way, the electronic device is connected to at least one second headset to achieve audio sharing through the first headset and at least one second headset, so that the first user can use the first headset to play audio data, and the second user can use the second headset to play the same audio data.
[0143] In this embodiment, the electronic device has an audio sharing function, and the user can turn on the audio sharing function of the electronic device as needed. In this way, audio sharing between a first earphone and multiple second earphones can be achieved, so that different users can share audio data with each other, providing users with a rich audio experience.
[0144] The volume adjustment method is described below with a specific example.
[0145] Step S501, when the audio sharing function of the electronic device is turned on, the first earphone obtains a first volume, that is, vol0, of the first audio data sent by the playing electronic device;
[0146] Step S502: The first earphone receives the second volume of the first audio data played by the N second earphones sent by the electronic device, that is,
[0147] Step S503: Determine a third volume according to the second volume of the first audio data played by the N second headphones.
[0148] Step S504: when the first volume is inconsistent with the third volume, determine the volume offset according to the first volume and the third volume, that is,
[0149] Step S505: when the volume offset is less than the first threshold value and the third volume is less than the second threshold value, the volume of the first audio data played by the first earphone is updated to the third volume vol. avg ;
[0150] Step S506, when the second volume of the first audio data played by the second earphone changes, the first earphone receives the adjusted second volumes corresponding to the N second earphones sent by the electronic device, that is,
[0151] Step S507: updating the third volume according to the adjusted second volumes corresponding to the N second headphones to obtain an updated third volume, that is,
[0152] In this step, if the adjusted second volume of any of the N second headphones is greater than or equal to the second threshold, the third volume is updated according to the corresponding second volume before updating to obtain an updated third volume.
[0153] Step S508: Update the volume offset according to the updated third volume to obtain an updated volume offset, that is,
[0154] Step S509: When the updated volume offset is less than the first threshold and the updated third volume is less than the second threshold, the volume of the first audio data played by the first earphone is adjusted to the updated third volume.
[0155] In this example, since the second 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, and the automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0156] <Device Example>
[0157] The present disclosure provides a volume adjustment device, which is applied to a first earphone, such as Figure 4 As shown, the volume adjustment device 400 may include an acquisition module 410 , a receiving module 420 and an adjustment module 430 .
[0158] The acquisition module 410 may be configured to, upon receiving first audio data sent by an electronic device, acquire a first volume for playing the first audio data;
[0159] The receiving module 420 may be configured to receive a second volume of at least one second earphone playing the first audio data sent by the electronic device;
[0160] The adjustment module 430 may be configured to adjust a first volume of playing the first audio data according to a second volume of playing the first audio data by the at least one second earphone.
[0161] In one embodiment, when receiving a second volume of a second earphone playing the first audio data sent by the electronic device, the adjustment module 430 includes:
[0162] a first determining unit, configured to determine a volume offset according to the first volume and the second volume when the first volume is inconsistent with the second volume;
[0163] The first adjusting unit is used to adjust the first volume of playing the first audio data to the second volume when the volume offset is less than a first threshold and the second volume is less than a second threshold.
[0164] In one embodiment, when receiving a second volume of a second earphone playing the first audio data sent by the electronic device, the adjusting module 430 further includes:
[0165] A first sending unit, configured to send a first prompt message when the volume offset is greater than or equal to the first threshold and the second volume is less than a second threshold;
[0166] The second adjusting unit is configured to adjust the first volume of playing the first audio data to the second volume upon receiving a confirmation instruction from the user for the first prompt information.
[0167] In one embodiment, when receiving the second volume of the N second headphones playing the first audio data sent by the electronic device, the adjustment module 430 includes:
[0168] A second determining unit, configured to determine a third volume according to a second volume at which each of the N second earphones plays the first audio data, where N is a positive integer greater than 1;
[0169] a third determining unit, configured to determine a volume offset according to the first volume and the third volume when the first volume is inconsistent with the third volume;
[0170] A third adjusting unit, configured to adjust the first volume of 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;
[0171] In one embodiment, when receiving the second volume of the N second headphones playing the first audio data sent by the electronic device, the adjusting module 430 further includes:
[0172] The second sending unit is configured to send a second prompt message when the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold.
[0173] The fourth adjusting unit is used to adjust the first volume of playing the first audio data to the third volume when receiving a confirmation instruction from the user for the second prompt information.
[0174] According to an embodiment of the present disclosure, when an electronic device shares audio with at least one second earphone through a first earphone, a first volume of first audio data sent by the first earphone playing the electronic device is obtained, and a second volume of the first audio data played by at least one second earphone sent by the electronic device is received, so that the volume of the first earphone is adjusted according to the second volume of the first audio data played by at least one second earphone. In this way, since the second volume of the first audio data played by at least one second earphone can reflect the noise of the application environment, the volume can be adaptively adjusted according to the second volume of the first audio data played by at least one second earphone, and automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0175] The present disclosure provides a volume adjustment device, which is applied to electronic devices such as Figure 5 As shown, the volume adjustment device 500 may include a receiving module 510 and a first sending module 520 .
[0176] The receiving module 510 may be configured to receive a second volume for playing the first audio data sent by at least one second earphone;
[0177] The first sending module 520 can be used to send the second volume of the at least one second earphone playing the first audio data to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
[0178] In one embodiment, the volume adjustment device 500 further includes:
[0179] An establishing module, configured to establish a communication connection with at least one second headset when the audio sharing function is enabled;
[0180] The second sending module is used to send the 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.
[0181] According to an embodiment of the present disclosure, when an electronic device shares audio with at least one second earphone through a first earphone, the electronic device can receive the second volume of the first audio data played by at least one second earphone, and send the second volume of the first audio data played by at least one earphone to the first earphone, so that the first earphone adjusts the volume of the first earphone according to the second volume of the first audio data played by at least one second earphone. In this way, since the second volume of the first audio data played by at least one second earphone can reflect the noise of the application environment, the volume can be adaptively adjusted according to the second volume of the first audio data played by at least one second earphone, and automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0182] <Headphone Embodiment>
[0183] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a headset according to an embodiment. Figure 6 As shown, the headset 600 includes a memory 610 and a processor 620 .
[0184] The memory 610 may be used to store executable computer instructions.
[0185] The processor 620 can be used to execute the volume adjustment method according to the method embodiment of the present disclosure under the control of the executable computer instructions.
[0186] In another embodiment, the earphone 600 may include the above volume adjustment device 400 .
[0187] In one embodiment, each module of the above volume adjustment device 400 can be implemented by the processor 620 running computer instructions stored in the memory 610 .
[0188] According to the embodiment of the present disclosure, since the second 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, and the automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0189] <Equipment Embodiment>
[0190] Figure 7 FIG. 1 is a schematic diagram of the hardware structure of an electronic device according to an embodiment. Figure 7 As shown, the electronic device 700 includes a memory 710 and a processor 720 .
[0191] The memory 710 may be used to store executable computer instructions.
[0192] The processor 720 can be used to execute the volume adjustment method according to the method embodiment of the present disclosure under the control of the executable computer instructions.
[0193] In another embodiment, the electronic device 700 may include the above volume adjustment device 500 .
[0194] In one embodiment, each module of the above volume adjustment device 500 can be implemented by the processor 720 running computer instructions stored in the memory 710 .
[0195] According to the embodiment of the present disclosure, since the second 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, and the automatic adjustment of the earphone volume can be achieved, and the accuracy of the volume adjustment is high, which can bring a more convenient audio experience to the user. In addition, the audio adjustment method provided in this embodiment has lower requirements on the hardware conditions and algorithms of the earphone and is more widely applicable.
[0196] <Computer Readable Storage Medium>
[0197] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the volume adjustment method provided by the embodiment of the present disclosure is executed.
[0198] The embodiments of the present disclosure may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0199] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0200] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0201] The computer program instructions for performing the operation of the disclosed embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize and customize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the disclosed embodiment.
[0202] Various aspects of the disclosed embodiments are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the disclosed embodiments. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0203] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0204] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0205] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0206] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.
Claims
1. A volume adjustment method, applied to a first earphone, characterized in that: The method comprises: When first audio data sent by an electronic device is received, obtaining a first volume for playing the first audio data; Receive a second volume of at least one second earphone playing the first audio data sent by the electronic device; adjusting a first volume of playing the first audio data according to a second volume of playing the first audio data by the at least one second earphone; When the first earphone plays the first audio data sent by the electronic device, the electronic device establishes a communication connection with the at least one second earphone when the audio sharing function is turned on, and the electronic device sends the 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.
2. The method according to claim 1, characterized in that In a case where a second volume of the first audio data played by a second earphone sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the first audio data played by the at least one second earphone includes: When the first volume is inconsistent with the second volume, determining a volume offset according to the first volume and the second volume; When the volume offset is smaller than a first threshold value and the second volume is smaller than a second threshold value, the first volume of playing the first audio data is adjusted to the second volume.
3. The method according to claim 2, characterized in that After determining the volume offset according to the first volume and the second volume, the method further includes: When the volume offset is greater than or equal to the first threshold and the second volume is less than a second threshold, issuing a first prompt message; When a confirmation instruction of the user to the first prompt information is received, the first volume of playing the first audio data is adjusted to the second volume.
4. The method according to claim 1, characterized in that: In a case where the second volume of the first audio data played by the N second earphones sent by the electronic device is received, adjusting the first volume of playing the first audio data according to the second volume of the first audio data played by the at least one second earphone includes: Determine a third volume according to a second volume of each of the N second headphones playing the first audio data, where N is a positive integer greater than 1; When the first volume is inconsistent with the third volume, determining a volume offset according to the first volume and the third volume; When the volume offset is smaller than the first threshold and the third volume is smaller than the second threshold, the first volume of playing the first audio data is adjusted to the third volume.
5. The method according to claim 4, characterized in that After determining the volume offset according to the first volume and the third volume, the method further includes: When the volume offset is greater than or equal to the first threshold and the third volume is less than the second threshold, issuing a second prompt message; When a confirmation instruction of the user to the second prompt information is received, the first volume of playing the first audio data is adjusted to the third volume.
6. A volume adjustment method, applied to an electronic device, characterized in that: The method comprises: When the audio sharing function is enabled, establishing a communication connection with at least one second headset; Based on the communication connection established with the at least one second headset, sending the first audio data to the at least one second headset so that the at least one second headset plays the first audio data; receiving a second volume for playing the first audio data sent by the at least one second earphone; The second volume of the at least one second earphone playing the first audio data is sent to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
7. A volume adjustment device, applied to a first earphone, characterized in that: The device comprises: An acquisition module, configured to acquire a 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 playing the first audio data sent by the electronic device; An adjusting module, configured to adjust a first volume of playing the first audio data according to a second volume of playing the first audio data by the at least one second earphone; When the first earphone plays the first audio data sent by the electronic device, the electronic device establishes a communication connection with the at least one second earphone when the audio sharing function is turned on, and the electronic device sends the 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.
8. A volume adjustment device, applied to electronic equipment, characterized in that: The device comprises: A connection module, configured to establish a communication connection with at least one second headset when the audio sharing function is enabled; A second sending module, configured to send first audio data to the at least one second headset based on the communication connection established with the at least one second headset, so that the at least one second headset plays the first audio data; A receiving module, configured to receive a second volume for playing the first audio data sent by the at least one second earphone; The first sending module is used to send a second volume of the at least one second earphone playing the first audio data to the first earphone, so that the first earphone adjusts the volume according to the second volume of the at least one second earphone playing the first audio data.
9. A headset, characterized in that: include: Memory for storing executable computer instructions; A processor, configured to execute the volume adjustment method according to any one of claims 1 to 5 under the control of the executable computer instructions.
10. An electronic device, characterized in that: include: Memory for storing executable computer instructions; A processor is used to execute the volume adjustment method according to claim 6 under the control of the executable computer instructions.
11. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are executed by a processor to execute the volume adjustment method according to any one of claims 1 to 6.
