CN111666061A - Method for controlling volume of digital earphone, electronic terminal and digital earphone - Google Patents

Method for controlling volume of digital earphone, electronic terminal and digital earphone Download PDF

Info

Publication number
CN111666061A
CN111666061A CN202010512600.1A CN202010512600A CN111666061A CN 111666061 A CN111666061 A CN 111666061A CN 202010512600 A CN202010512600 A CN 202010512600A CN 111666061 A CN111666061 A CN 111666061A
Authority
CN
China
Prior art keywords
electronic terminal
gain
audio
audio data
digital
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010512600.1A
Other languages
Chinese (zh)
Inventor
肖博武
金贤默
罗孝錫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
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 Samsung Guangzhou Mobile R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Guangzhou Mobile R&D Center
Priority to CN202010512600.1A priority Critical patent/CN111666061A/en
Publication of CN111666061A publication Critical patent/CN111666061A/en
Priority to PCT/KR2021/006614 priority patent/WO2021251660A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention provides a method for controlling the volume of a digital earphone, an electronic terminal and the digital earphone, comprising the following steps: sending a control instruction and test audio data to a digital earphone in a connection state with the electronic terminal; obtaining the returned audio data fed back by the digital earphone in response to the control instruction aiming at the test audio data; and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone. By adopting the method for controlling the volume of the digital earphone, the electronic terminal and the digital earphone, which are disclosed by the exemplary embodiment of the invention, the problem of abnormal volume when the electronic terminal uses different digital earphones can be effectively solved.

Description

Method for controlling volume of digital earphone, electronic terminal and digital earphone
Technical Field
The present invention relates generally to the field of electronic technology, and more particularly, to a method for controlling volume of a digital headset, and an electronic terminal and a digital headset supporting the volume control method.
Background
The traditional analog 3.5 mm earphone interface or analog Universal Serial Bus (USB) earphone interface on the electronic terminal is being replaced by the digital USB earphone interface, and the audio interface on the electronic terminal is currently developing towards the digital USB interface.
In various digital earphones in the market at present, due to the fact that different digital audio codec chip schemes are used, gain designs inside chips are different, and when various digital earphones are used on the same electronic terminal, the problem that output volumes of the digital earphones are inconsistent occurs, namely, the output volumes of some digital earphones are normal values, and the output volumes of some digital earphones are very large or very small (as shown in fig. 1), user experience is affected, and even ears of a user may be injured.
Disclosure of Invention
An object of an exemplary embodiment of the present invention is to provide a method for controlling volume of a digital headset, an electronic terminal and a digital headset, which overcome at least one of the above-mentioned disadvantages.
According to an aspect of an exemplary embodiment of the present invention, there is provided a method of controlling a volume of a digital headset, including: sending a control instruction and test audio data to a digital earphone in a connection state with the electronic terminal; obtaining the returned audio data fed back by the digital earphone in response to the control instruction aiming at the test audio data; and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone.
Optionally, the control instructions and the test audio data may be sent in response to one of the following conditions: detecting that the electronic terminal is connected with the digital earphone; and receiving a volume calibration control instruction.
Optionally, the control instruction may include a listen-back instruction and an audio playing instruction, where the listen-back instruction may be used to control the digital earphone to play the test audio data in the listen-back mode to feed back the audio data, and the audio playing instruction may be used to control the digital earphone to play the test audio data.
Optionally, the returned audio data fed back by the digital headset for the test audio data in response to the control instruction may be obtained by one of the following ways: receiving back-listening audio data from the digital headset over the established connection; the method comprises the steps of collecting test audio data played by a digital earphone through a microphone of an electronic terminal, and determining the collected test audio data as the echo audio data.
Optionally, the step of adjusting the audio gain of the electronic terminal based on the obtained volume value of the audible back audio data may include: and adjusting the audio gain of the electronic terminal based on the comparison result of the volume value of the audible data and the preset volume value so as to change the output volume of the digital earphone.
Optionally, the step of adjusting the audio gain of the electronic terminal may comprise: determining the difference value between the volume value of the echo audio data and the preset volume value; determining a gain adjustment value corresponding to the difference value; the audio gain of the electronic terminal is changed based on the determined gain adjustment value.
Optionally, the step of changing the audio gain of the electronic terminal based on the determined gain adjustment value may comprise: determining whether the difference is greater than zero; if the difference value is larger than zero, controlling the audio gain of the electronic terminal to reduce the gain adjustment value so as to reduce the output volume of the digital earphone; and if the difference is smaller than zero, controlling the audio gain of the electronic terminal to increase the gain adjustment value so as to increase the output volume of the digital earphone.
Optionally, the step of adjusting the audio gain of the electronic terminal may comprise: and cyclically comparing the volume value of the audioback audio data with the preset volume value, and adjusting the audio gain of the electronic terminal based on the comparison result, wherein in each cycle, when the difference value between the volume value of the audioback audio data and the preset volume value meets the adjustment condition, the audio gain of the electronic terminal is controlled to change the preset variable quantity, and when the difference value between the volume value of the audioback audio data and the preset volume value does not meet the adjustment condition, the cycle is exited.
Optionally, the adjusting condition may include a first adjusting condition and a second adjusting condition, the first adjusting condition may indicate that a difference between a volume value of the audio data to be listened back and the preset volume value is greater than a first preset value, the second adjusting condition may indicate that a difference between the volume value of the audio data to be listened back and the preset volume value is less than a second preset value, the preset variation may include a first preset variation and a second preset variation, and the step of controlling the audio gain of the electronic terminal to change the preset variation may include: and if the difference value meets the first adjusting condition, controlling the audio gain of the electronic terminal to reduce a first preset variable quantity so as to reduce the output volume of the digital earphone, and if the difference value meets the second adjusting condition, controlling the audio gain of the electronic terminal to increase a second preset variable quantity so as to increase the output volume of the digital earphone.
Optionally, a gain table corresponding to the digital headset may be stored in the electronic terminal, the gain table may include a gain identifier and a plurality of audio gains, the gain identifier may indicate an audio gain currently used by the electronic terminal, wherein the method may further include: after the audio gain of the electronic terminal is adjusted, the gain identification is updated to indicate the adjusted audio gain, so that the electronic terminal transmits audio data to the digital headset based on the updated gain table.
According to another aspect of exemplary embodiments of the present invention, there is provided an electronic terminal including: the first communication interface sends a control instruction and test audio data to the digital earphone in a state of being connected with the digital earphone; a processor configured to: obtaining the returned audio data fed back by the digital earphone in response to the control instruction aiming at the test audio data; and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone.
Optionally, the processor may control the first communication interface to send the control instruction and the test audio data in response to one of the following conditions: detecting that the electronic terminal is connected with the digital earphone; and receiving a volume calibration control instruction.
Optionally, the control instruction may include a listen-back instruction and an audio playing instruction, where the listen-back instruction may be used to control the digital earphone to play the test audio data in the listen-back mode to feed back the audio data, and the audio playing instruction may be used to control the digital earphone to play the test audio data.
Optionally, the electronic terminal may further comprise a microphone, wherein the processor may be configured to obtain the returned audio data fed back by the digital headset for the test audio data in response to the control instruction by one of: receiving back-listening audio data from the digital headset over the established connection based on the first communication interface; the method comprises the steps of collecting test audio data played by a digital earphone through a microphone of an electronic terminal, and determining the collected test audio data as the echo audio data.
Optionally, the processor may be configured to adjust an audio gain of the electronic terminal to change an output volume of the digital headset based on a comparison of the volume value of the returned audio data with a preset volume value.
Optionally, the process of adjusting the audio gain of the electronic terminal may include: determining the difference value between the volume value of the echo audio data and the preset volume value; determining a gain adjustment value corresponding to the difference value; the audio gain of the electronic terminal is changed based on the determined gain adjustment value.
Optionally, the process of changing the audio gain of the electronic terminal based on the determined gain adjustment value may include: determining whether the difference is greater than zero; if the difference value is larger than zero, controlling the audio gain of the electronic terminal to reduce the gain adjustment value so as to reduce the output volume of the digital earphone; and if the difference is smaller than zero, controlling the audio gain of the electronic terminal to increase the gain adjustment value so as to increase the output volume of the digital earphone.
Optionally, the process of adjusting the audio gain of the electronic terminal may include: cyclically comparing the volume value of the overheard audio data with the preset volume value, and adjusting the audio gain of the electronic terminal based on the comparison result, wherein in each cycle, the processor can be configured to perform the following processing: and when the difference value between the volume value of the audioback audio data and the preset volume value does not meet the adjusting condition, the circulation is exited.
Optionally, the adjusting condition may include a first adjusting condition and a second adjusting condition, the first adjusting condition may indicate that a difference between a volume value of the audio data to be listened back and the preset volume value is greater than a first preset value, the second adjusting condition may indicate that a difference between the volume value of the audio data to be listened back and the preset volume value is less than a second preset value, the preset variation includes a first preset variation and a second preset variation, and the processing of controlling the audio gain of the electronic terminal to change the preset variation may include: and if the difference value meets the first adjusting condition, controlling the audio gain of the electronic terminal to reduce a first preset variable quantity so as to reduce the output volume of the digital earphone, and if the difference value meets the second adjusting condition, controlling the audio gain of the electronic terminal to increase a second preset variable quantity so as to increase the output volume of the digital earphone.
Optionally, the electronic terminal may further include a storage module for storing a gain table corresponding to the digital headset, the gain table may include a gain identifier and a plurality of audio gains, the gain identifier may indicate an audio gain currently used by the electronic terminal, wherein the processor may be further configured to: after the audio gain of the electronic terminal is adjusted, the gain identification is updated to indicate the adjusted audio gain, so that the electronic terminal transmits audio data to the digital headset based on the updated gain table.
According to another aspect of exemplary embodiments of the present invention, there is provided a digital headset including: and an audio codec playing the test audio data in response to the control instruction received through the second communication interface and providing the back-hearing audio data to the electronic terminal.
Optionally, the control instruction may include a listen-back instruction, where the audio codec may control the digital earphone to enter a listen-back mode in response to the listen-back instruction, play the test audio data in the listen-back mode, and generate listen-back audio data, and the second communication interface sends the listen-back audio data generated by the audio codec to the electronic terminal through the connection.
Optionally, the digital headset may further include an analog switch, a speaker, and a microphone, the analog switch being selectively connected to the speaker and the microphone, wherein the audio codec may control the analog switch to be closed in response to the listen back instruction, so as to enable the digital headset to enter a listen back mode, wherein in the listen back mode, the speaker and the microphone form an internal loop through the closed analog switch.
Optionally, the digital headset may further include a speaker, and the control instruction may include an audio playing instruction, where the audio codec may control the speaker to play the test audio data in response to the audio playing instruction, so that the electronic terminal collects the played test audio data.
According to another aspect of exemplary embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described method of controlling the volume of a digital headset.
By adopting the method for controlling the volume of the digital earphone, the electronic terminal and the digital earphone, which are disclosed by the exemplary embodiment of the invention, the function of automatically calibrating the volume when the electronic terminal uses different digital earphones is realized.
Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings which illustrate exemplary embodiments, wherein:
fig. 1 is a schematic diagram illustrating volume output of a conventional electronic terminal when a different digital headset is used;
fig. 2 illustrates a flowchart of a method of controlling volume of a digital headset according to an exemplary embodiment of the present invention;
FIG. 3 shows a schematic diagram of a gain table in an electronic terminal according to an exemplary embodiment of the invention;
FIG. 4 illustrates a flowchart of steps for adjusting an audio gain of an electronic terminal according to an exemplary embodiment of the present invention;
FIG. 5 illustrates a flowchart of steps for adjusting an audio gain of an electronic terminal according to another exemplary embodiment of the present invention;
FIG. 6 is a diagram illustrating comparison of audio gain adjustment before and after an electronic terminal according to an exemplary embodiment of the present invention;
fig. 7 illustrates an interaction diagram between an electronic terminal and a digital headset according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
Fig. 2 illustrates a flowchart of a method of controlling a volume of a digital headset according to an exemplary embodiment of the present invention.
Referring to fig. 2, in step S10, a control command and test audio data are transmitted to a digital headset in a connected state with an electronic terminal.
As an example, the connection between the electronic terminal and the digital headset may be a wired connection (e.g., connection through respective digital interfaces of the electronic terminal and the digital headset), or a wireless connection (e.g., bluetooth connection).
In an exemplary embodiment of the present invention, two volume calibration schemes, automatic volume calibration and manual volume calibration, are provided.
In the volume calibration scheme of automatic volume calibration, when it is detected that the electronic terminal is connected with the digital earphone, a control instruction and test audio data can be sent to the digital earphone which is in a connection state with the electronic terminal.
For example, for the wired connection mode, the impedance of the CC terminal of the digital interface of the electronic terminal may be detected according to the protocol of the USB device, when the impedance of the CC terminal is detected to reach a predetermined impedance value (e.g., 5.1 kilo-ohms), it is determined that the digital headset is inserted (i.e., a connection is established with the electronic terminal), and the electronic terminal is controlled to enter the digital headset mode.
In the volume calibration scheme of manual volume calibration, when a volume calibration control command is received, the control command and test audio data can be sent to the digital earphone which is in a connection state with the electronic terminal.
For example, after the digital headset is connected with the electronic terminal, a volume calibration interface may be displayed based on a user operation on the electronic terminal (e.g., an operation of starting a volume calibration program), and when a selection of a calibration option input by the user on the displayed volume calibration interface is received, a volume calibration control instruction corresponding to the calibration option is received.
In step S20, the digital headphones respond to the control instruction and feedback the returned audio data for the test audio data.
In one case, the control instruction may include a listen back instruction (Loopback instruction). Here, the listen-back instruction is used to control the digital earphone to play the test audio data in the listen-back mode to feed back the test audio data.
For example, a listen command may be sent back to the digital headphones, the digital headphones entering a listen mode in response to the listen command, sending test audio data to the digital headphones, the digital headphones playing the test audio data in the listen mode, and generating the listen audio data.
In this case, the digital headset may transmit the generated audible tone data to the electronic terminal through a connection established between the electronic terminal and the digital headset.
Alternatively, the control instructions may include audio playback instructions. Here, the audio playing instruction is used for controlling the digital earphone to play the test audio data.
That is, the digital headset plays the test audio data through the speaker of the digital headset in response to the audio play instruction.
In this case, the test audio data played by the digital earphone may be collected by a microphone of the electronic terminal, and the collected test audio data may be determined as the return audio data.
In a preferred example, the method of controlling the volume of a digital headset according to an exemplary embodiment of the present invention may further include: and displaying prompt information to a user at the electronic terminal to prompt the user to enable a loudspeaker of the digital earphone to be close to a microphone of the electronic terminal, and then controlling the digital earphone to play test audio data so as to calibrate the volume of the digital earphone.
In step S30, the audio gain of the electronic terminal is adjusted based on the acquired volume value of the audible back audio data to change the output volume of the digital headphone.
Here, the volume value of the returned audio data is used to represent the volume level of the returned audio data.
In a preferred example, a gain table corresponding to the digital headset may be stored in the electronic terminal, for example, a gain table for controlling the output volume of the digital headset may be stored in a memory of the electronic terminal. As an example, the stored gain table may include a gain identification indicating the audio gain currently used by the electronic terminal and a plurality of audio gains.
In this case, after adjusting the audio gain of the electronic terminal, the gain flag is updated to indicate the adjusted audio gain to cause the electronic terminal to transmit audio data to the digital headset based on the updated gain table.
According to the method for controlling the volume of the digital headset, the volume of the output of the digital headset can be controlled by configuring the parameters in the gain table of the electronic terminal.
Fig. 3 shows a schematic diagram of a gain table in an electronic terminal according to an exemplary embodiment of the present invention.
As shown in fig. 3, the gain table corresponding to the digital headset stored in the electronic terminal includes a plurality of audio gains, e.g., gain-10 dB (decibel) to 10dB, and the gain table further includes a gain flag (e.g., "in use").
In one example, assuming that the audio gain originally used by the electronic terminal is 0dB, after the audio gain of the electronic terminal is adjusted based on the method for controlling the volume of the digital headset shown in fig. 1, for example, if the audio gain of the adjusted electronic terminal is 4dB, the gain flag is updated from indicating 0dB to indicating 4dB after adjustment.
After the output volume calibration of the digital headset, the electronic terminal will subsequently determine the volume of the audio data transmitted to the digital headset with the audio gain indicated by the gain identifier in the gain table corresponding to the digital headset.
Alternatively, if the electronic terminal is disconnected from the digital headset, the gain table stored in the electronic terminal may be deleted.
In a preferred exemplary embodiment of the present invention, the audio gain of the electronic terminal may be adjusted based on the comparison result of the volume value of the overheard audio data and the preset volume value to change the output volume of the digital headset. Here, the numerical value of the preset volume value may refer to a volume value at which the output volume of the digital headset is comfortable for a user, and a person skilled in the art may set the preset volume value according to actual situations.
For example, the audio gain of the electronic terminal may be adjusted in a one-time adjustment or a stepwise adjustment based on the comparison result.
The process of adjusting the audio gain of the electronic terminal in a one-time adjustment manner is described with reference to fig. 4.
Fig. 4 shows a flowchart of steps for adjusting an audio gain of an electronic terminal according to an exemplary embodiment of the present invention.
Referring to fig. 4, in step S301, a difference value between the volume value of the audible sound data and a preset volume value is determined.
In step S302, a gain adjustment value corresponding to a difference between the volume value of the audible sound data and the preset volume value is determined.
In one example, a correspondence relationship between a plurality of volume values and a plurality of gain adjustment values may be established in advance, in which case, a volume value closest to the above-described difference value is determined based on the correspondence relationship established in advance, and a gain adjustment value corresponding to the closest volume value is determined as a gain adjustment value corresponding to the difference value.
In another example, a correspondence relationship between a plurality of volume value intervals and a plurality of gain adjustment values may be established in advance, in which case, after a difference between the volume value of the returned audio data and a preset volume value is determined, a volume value interval to which the difference belongs may be determined, a gain adjustment value corresponding to the determined volume value interval may be found through the correspondence relationship, and the found gain adjustment value may be determined as the gain adjustment value corresponding to the difference.
It should be understood that the above-described manner of determining the gain adjustment value is merely an example, and the present invention is not limited thereto, and the gain adjustment value may be determined in other manners.
In step S303, the audio gain of the electronic terminal is changed based on the determined gain adjustment value.
For example, it may be determined whether a difference between a volume value of the overhearing audio data and a preset volume value is greater than zero, and if the determined difference is greater than zero, the audio gain of the electronic terminal is controlled to decrease the gain adjustment value to decrease the output volume of the digital headset, where the adjusted audio gain is the difference between the audio gain of the electronic terminal and the gain adjustment value.
And if the determined difference is smaller than zero, controlling the audio gain of the electronic terminal to increase the gain adjustment value so as to increase the output volume of the digital earphone, wherein the adjusted audio gain is the sum of the audio gain of the electronic terminal and the gain adjustment value.
If the determined difference is equal to zero, the audio gain of the electronic terminal is not adjusted.
In the scheme of adjusting the audio gain of the electronic terminal in a stepwise adjustment manner, the volume value of the overheard audio data may be cyclically compared with a preset volume value, and the audio gain of the electronic terminal may be adjusted based on the comparison result.
For example, the following steps may be performed in each cycle: detecting whether the difference value between the volume value of the audiofrequency data and the preset volume value meets the adjusting condition, if the difference value meets the adjusting condition, controlling the audio frequency gain of the electronic terminal to change the preset variable quantity so as to continuously send a control instruction and the test audio frequency data under the changed audio frequency gain to the digital earphone, if the difference value does not meet the adjusting condition, not adjusting the audio frequency gain of the electronic terminal, exiting the circulation, determining the current audio frequency gain of the electronic terminal, and updating the gain table by using the current audio frequency gain of the electronic terminal.
The process of adjusting the audio gain of the electronic terminal in a stepwise manner is described below with reference to fig. 5. In this example, the adjustment condition may include a first adjustment condition and a second adjustment condition, the first adjustment condition may indicate that a difference between the volume value of the audio data to be listened back and the preset volume value is greater than a first preset value, the second adjustment condition may indicate that a difference between the volume value of the audio data to be listened back and the preset volume value is less than a second preset value, and the preset variation may include a first preset variation and a second preset variation.
Fig. 5 shows a flowchart of steps for adjusting an audio gain of an electronic terminal according to another exemplary embodiment of the present invention.
Referring to fig. 5, in step S310, a difference value between the volume value of the audible sound data and a preset volume value is determined.
In step S320, it is detected whether a difference between the volume value of the inaudible audio data and the preset volume value satisfies a first adjustment condition. That is, it is detected whether the determined difference is greater than a first preset value.
If the detected difference value satisfies the first adjustment condition (i.e., is greater than the first preset value), step S330 is performed: and controlling the audio gain of the electronic terminal to reduce the first preset variable quantity so as to reduce the output volume of the digital earphone.
As an example, the first preset value may be +1dbfs (dB Full scale), and the first preset variation may be +1dB, but the present invention is not limited thereto, and those skilled in the art may adjust the first preset value and the magnitude of the first preset variation according to needs. Alternatively, as the magnitude of the first preset value changes, the magnitude of the first preset variation may be adjusted accordingly, for example, as the magnitude of the first preset value increases, the magnitude of the first preset variation may be increased accordingly, and as the magnitude of the first preset value decreases, the magnitude of the first preset variation may be decreased accordingly.
In step S340, the gain table is updated with the audio gain changed by the electronic terminal. For example, the gain identification in the gain table is updated to indicate the changed audio gain.
At this time, the control instruction and the test audio data at the changed audio gain are continuously sent to the digital earphone, and the returned audio data fed back by the digital earphone for the test audio data at the changed audio gain is obtained, and step S310 is returned to be executed based on the returned audio data.
If the detected difference does not satisfy the first adjustment condition (i.e., is less than or equal to the first preset value), step S350 is performed: and detecting whether the difference value between the volume value of the audible data and the preset volume value meets a second adjusting condition. That is, it is detected whether the determined difference is smaller than the second preset value.
If the detected difference value satisfies the second adjustment condition (i.e., is less than the second preset value), step S360 is performed: and controlling the audio gain of the electronic terminal to increase the second preset variable quantity so as to increase the output volume of the digital earphone.
As an example, the second preset value may be-1 dBFS, and the second preset variation may be +1dB, but the present invention is not limited thereto, and those skilled in the art may adjust the values of the second preset value and the second preset variation as needed. Alternatively, as the magnitude of the second preset value changes, the magnitude of the second preset variation may be adjusted accordingly, for example, as the magnitude of the second preset value increases, the magnitude of the second preset variation may be increased accordingly, and as the magnitude of the second preset value decreases, the magnitude of the second preset variation may be decreased accordingly.
At this time, step S340 is performed to update the gain table with the changed audio gain of the electronic terminal.
If the detected difference does not satisfy the second adjustment condition (i.e., is greater than or equal to the second preset value), step S370 is performed: and determining the current audio gain of the electronic terminal, and updating and saving the gain table by using the current audio gain of the electronic terminal.
It should be understood that, in the above-mentioned procedure of adjusting the audio gain, it is determined whether the first adjustment condition is satisfied first and then the second adjustment condition is determined, but the present invention is not limited thereto, and it may also be determined whether the second adjustment condition is satisfied first and then the first adjustment condition is determined, and the detection order of the first adjustment condition and the second adjustment condition is not limited by the present invention.
In addition, the manner of adjusting the audio gain of the electronic terminal shown in fig. 5 is only an example, and the present invention is not limited thereto, and the audio gain of the electronic terminal may be adjusted by other manners.
Fig. 6 illustrates a comparison between before and after audio gain adjustment of an electronic terminal according to an exemplary embodiment of the present invention.
As can be seen from fig. 6, when the output volume of the digital earphone is smaller, the amplitude of the volume waveform of the fed back audible data is smaller, and after the volume is automatically calibrated, the volume of the audible data is increased to reach the preset volume value to meet the normal use requirement of the user.
Fig. 7 illustrates an interaction diagram between an electronic terminal and a digital headset according to an exemplary embodiment of the present invention.
As shown in fig. 7, the electronic terminal according to an exemplary embodiment of the present invention includes a first communication interface (such as a USB connector in the electronic terminal shown in the figure) and a processor (such as an AP processor shown in the figure). In addition, the electronic terminal may further include a storage module (e.g., a memory module), a power management module, and a USB processing module.
A digital headset according to an exemplary embodiment of the present invention includes a second communication interface (such as a USB connector in the digital headset shown in the figure) and an audio codec.
It should be understood that, in a preferred example, the first communication interface and the second communication interface may refer to a USB digital interface, for example, a universal serial bus type C interface, but the present invention is not limited thereto, and the communication interfaces may also be other forms of USB digital interfaces. Besides, the first communication interface and the second communication interface may also refer to wireless communication modules, such as bluetooth module/WIFI module, but the present invention is not limited thereto, and the communication interfaces may also be other types of wireless communication modules.
By way of example, the electronic terminal may include, but is not limited to, a smart phone, a tablet computer, a smart wearable device, a personal digital assistant, a game console, a video player, and other existing various electronic devices with digital interfaces. The digital headset may include, but is not limited to, existing various wired/wireless headsets having a separate Audio Codec (Audio Codec).
Specifically, the first communication interface of the electronic terminal transmits a control command and test audio data to the digital headset in a state of being connected to the digital headset.
In an exemplary embodiment of the present invention, two volume calibration schemes, automatic volume calibration and manual volume calibration, are provided.
In a volume calibration scheme for automatic volume calibration, the processor may be configured to: and controlling the first communication interface to send the control instruction and the test audio data in response to detecting that the electronic terminal is connected with the digital earphone.
In a volume calibration scheme for manual volume calibration, the processor may be configured to: and controlling the first communication interface to send the control instruction and the test audio data in response to receiving the volume calibration control instruction.
The second communication interface of the digital headset receives the control command and the test audio data from the electronic terminal in a state of being connected to the electronic terminal. The audio codec of the digital headset plays the test audio data in response to the control instructions received through the second communication interface and provides the back audio data to the electronic terminal.
In one case, the control instructions may include a listen-back instruction. Here, the listen-back instruction is used to control the digital earphone to play the test audio data in the listen-back mode to feed back the test audio data.
That is, the audio codec controls the digital headset to enter the listen-back mode in response to the listen-back command, and plays the test audio data in the listen-back mode to generate the listen-back audio data.
In this case, the second communication interface sends the audible tone data generated by the audio codec to the electronic terminal via the connection between the electronic terminal and the digital headset.
Here, the digital headset according to an exemplary embodiment of the present invention may further include analog switches (i.e., switches for controlling a Loopback mode), speakers (e.g., a LEFT speaker LEFT and a RIGHT speaker RIGHT), and a Microphone (MIC). The USB audio data received from the electronic terminal is output through a speaker for left/right channels after being processed by an audio codec in the digital headset.
The analog switch is selectively connectable to the speaker and the microphone. As an example, the analog switch may be disposed inside the audio codec or outside the audio codec, and fig. 7 shows two setting manners of the analog switch, and those skilled in the art may select the setting manner of the analog switch as needed as long as a hearing-back loop can be formed inside the digital headphone by controlling the analog switch.
For example, the audio codec may control the analog switch to be closed in response to a listen back instruction received through the second communication interface to cause the digital headset to enter a listen back mode (Loopback mode). In the listen-back mode, the speaker and microphone form an internal loop through the closed analog switch.
It will be appreciated that when the digital headset plays the test audio data in the listen-back mode, the speakers of the digital headset do not output volume, i.e., the volume calibration process described above does not cause discomfort to the user's ears.
Alternatively, the control instructions may include audio playback instructions. Here, the audio playing instruction is used for controlling the digital earphone to play the test audio data.
That is to say, the audio codec controls the speaker to play the test audio data in response to the audio playing instruction, so that the electronic terminal collects the played test audio data.
In this case, the microphone of the electronic terminal collects test audio data played by the speaker of the digital earphone, and determines the collected test audio data as the return audio data.
The processor of the electronic terminal is configured to: and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone.
That is, the method of controlling the volume of the digital headset shown in fig. 1 is performed in the electronic terminal shown in fig. 7, i.e., the output volume of the digital headset is changed by adjusting the audio gain of the electronic terminal.
In a preferred example, a gain corresponding to the digital headset may be stored in a memory module of the electronic terminal. As an example, the stored gain table may include a gain identification indicating the audio gain currently used by the electronic terminal and a plurality of audio gains.
It should be understood that, since the process of the processor adjusting the audio gain of the electronic terminal based on the obtained volume value of the audible data has been described in detail in fig. 1 to 5, the present invention is not repeated in this regard.
There is also provided, in accordance with an exemplary embodiment of the present invention, a computer-readable storage medium storing a computer program. The computer readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the above-described method of controlling the volume of a digital headset. The computer readable recording medium is any data storage device that can store data read by a computer system. Examples of the computer-readable recording medium include: read-only memory, random access memory, read-only optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the internet via wired or wireless transmission paths).
By adopting the method for controlling the volume of the digital earphone, the electronic terminal and the digital earphone, the output volume of each digital earphone can be in a normal range when the electronic terminal uses different digital earphones, so that the problem of abnormal volume when the electronic terminal uses the digital earphones is simply and efficiently solved.
According to the method for controlling the volume of the digital headset, the electronic terminal and the digital headset, the volume calibration of the digital headset can be realized without additional circuits or accessories.
While exemplary embodiments of the invention have been described above, it should be understood that the above description is illustrative only and not exhaustive, and that the invention is not limited to the exemplary embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. Therefore, the protection scope of the present invention should be subject to the scope of the claims.

Claims (25)

1. A method of controlling volume of a digital headset, comprising:
sending a control instruction and test audio data to a digital earphone in a connection state with the electronic terminal;
obtaining the returned audio data fed back by the digital earphone in response to the control instruction aiming at the test audio data;
and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone.
2. The method of claim 1, wherein the control instructions and test audio data are sent in response to one of the following conditions:
detecting that the electronic terminal is connected with the digital earphone;
and receiving a volume calibration control instruction.
3. The method of claim 1 or 2, wherein the control instructions include a listen-back instruction and an audio play instruction,
the digital earphone is used for playing the test audio data under the answering mode, and the audio playing instruction is used for controlling the digital earphone to play the test audio data.
4. The method of claim 3, wherein the returned audio data fed back by the digital headset for the test audio data in response to the control instructions is obtained by one of:
receiving back-listening audio data from the digital headset over the established connection;
the method comprises the steps of collecting test audio data played by a digital earphone through a microphone of an electronic terminal, and determining the collected test audio data as the echo audio data.
5. The method of claim 1, wherein the step of adjusting the audio gain of the electronic terminal based on the obtained volume value of the overheard audio data comprises:
and adjusting the audio gain of the electronic terminal based on the comparison result of the volume value of the audible data and the preset volume value so as to change the output volume of the digital earphone.
6. The method of claim 5, wherein the step of adjusting the audio gain of the electronic terminal comprises:
determining the difference value between the volume value of the echo audio data and the preset volume value;
determining a gain adjustment value corresponding to the difference value;
the audio gain of the electronic terminal is changed based on the determined gain adjustment value.
7. The method of claim 6, wherein the step of changing the audio gain of the electronic terminal based on the determined gain adjustment value comprises:
determining whether the difference is greater than zero;
if the difference value is larger than zero, controlling the audio gain of the electronic terminal to reduce the gain adjustment value so as to reduce the output volume of the digital earphone;
and if the difference is smaller than zero, controlling the audio gain of the electronic terminal to increase the gain adjustment value so as to increase the output volume of the digital earphone.
8. The method of claim 5, wherein the step of adjusting the audio gain of the electronic terminal comprises: cyclically comparing the volume value of the overheard audio data with the preset volume value, and adjusting the audio gain of the electronic terminal based on the comparison result,
wherein, in each cycle,
and when the difference value between the volume value of the audioback audio data and the preset volume value does not meet the adjusting condition, the circulation is exited.
9. The method according to claim 8, wherein the adjustment condition includes a first adjustment condition indicating that a difference between a volume value of the overheard audio data and the preset volume value is larger than a first preset value and a second adjustment condition indicating that a difference between a volume value of the overheard audio data and the preset volume value is smaller than a second preset value, the preset change amount includes a first preset change amount and a second preset change amount,
wherein, the step of controlling the audio gain of the electronic terminal to change the preset variation comprises:
if the difference value meets the first adjusting condition, controlling the audio gain of the electronic terminal to reduce a first preset variable quantity so as to reduce the output volume of the digital earphone,
and if the difference value meets a second adjusting condition, controlling the audio gain of the electronic terminal to increase a second preset variable quantity so as to increase the output volume of the digital earphone.
10. The method of claim 1, wherein the electronic terminal has stored therein a gain table corresponding to the digital headset, the gain table including a gain indicator indicating an audio gain currently used by the electronic terminal and a plurality of audio gains,
wherein the method further comprises:
after the audio gain of the electronic terminal is adjusted, the gain identification is updated to indicate the adjusted audio gain, so that the electronic terminal transmits audio data to the digital headset based on the updated gain table.
11. An electronic terminal, comprising:
the first communication interface sends a control instruction and test audio data to the digital earphone in a state of being connected with the digital earphone;
a processor configured to:
obtaining the returned audio data fed back by the digital earphone in response to the control instruction aiming at the test audio data;
and adjusting the audio gain of the electronic terminal based on the acquired volume value of the audible data to change the output volume of the digital earphone.
12. The electronic terminal of claim 11, wherein the processor controls the first communication interface to send the control instructions and the test audio data in response to one of:
detecting that the electronic terminal is connected with the digital earphone;
and receiving a volume calibration control instruction.
13. The electronic terminal according to claim 11 or 12, wherein the control instructions comprise a listen-back instruction and an audio play instruction,
the digital earphone is used for playing the test audio data under the answering mode, and the audio playing instruction is used for controlling the digital earphone to play the test audio data.
14. The electronic terminal of claim 13, wherein the electronic terminal further comprises a microphone,
wherein the processor is configured to obtain the returned audio data fed back by the digital headset for the test audio data in response to the control instruction by one of:
receiving back-listening audio data from the digital headset over the established connection based on the first communication interface;
the method comprises the steps of collecting test audio data played by a digital earphone through a microphone of an electronic terminal, and determining the collected test audio data as the echo audio data.
15. The electronic terminal of claim 11, wherein the processor is configured to adjust an audio gain of the electronic terminal to change an output volume of the digital headset based on a comparison of a volume value of the audible data with a preset volume value.
16. The electronic terminal of claim 15, wherein the process of adjusting the audio gain of the electronic terminal comprises:
determining the difference value between the volume value of the echo audio data and the preset volume value;
determining a gain adjustment value corresponding to the difference value;
the audio gain of the electronic terminal is changed based on the determined gain adjustment value.
17. The electronic terminal of claim 16, wherein the process of changing the audio gain of the electronic terminal based on the determined gain adjustment value comprises:
determining whether the difference is greater than zero;
if the difference value is larger than zero, controlling the audio gain of the electronic terminal to reduce the gain adjustment value so as to reduce the output volume of the digital earphone;
and if the difference is smaller than zero, controlling the audio gain of the electronic terminal to increase the gain adjustment value so as to increase the output volume of the digital earphone.
18. The electronic terminal of claim 15, wherein the process of adjusting the audio gain of the electronic terminal comprises: cyclically comparing the volume value of the overheard audio data with the preset volume value, and adjusting the audio gain of the electronic terminal based on the comparison result,
wherein, in each cycle, the processor is configured to perform the following:
and when the difference value between the volume value of the audioback audio data and the preset volume value does not meet the adjusting condition, the circulation is exited.
19. The electronic terminal according to claim 18, wherein the adjustment condition includes a first adjustment condition indicating that a difference between a volume value of the audio data to be listened back and the preset volume value is larger than a first preset value and a second adjustment condition indicating that a difference between a volume value of the audio data to be listened back and the preset volume value is smaller than a second preset value, the preset change amount includes a first preset change amount and a second preset change amount,
wherein, the process of controlling the audio gain of the electronic terminal to change the preset variation comprises the following steps:
if the difference value meets the first adjusting condition, controlling the audio gain of the electronic terminal to reduce a first preset variable quantity so as to reduce the output volume of the digital earphone,
and if the difference value meets a second adjusting condition, controlling the audio gain of the electronic terminal to increase a second preset variable quantity so as to increase the output volume of the digital earphone.
20. The electronic terminal of claim 11, wherein the electronic terminal further comprises a storage module to store a gain table corresponding to the digital headset, the gain table including a gain identification and a plurality of audio gains, the gain identification indicating an audio gain currently used by the electronic terminal,
wherein the processor is further configured to:
after the audio gain of the electronic terminal is adjusted, the gain identification is updated to indicate the adjusted audio gain, so that the electronic terminal transmits audio data to the digital headset based on the updated gain table.
21. A digital headset, comprising:
a second communication interface for receiving the control command and the test audio data from the electronic terminal in a state of being connected to the electronic terminal,
and the audio codec responds to the control instruction received through the second communication interface to play the test audio data and provides the echo audio data to the electronic terminal.
22. The digital headset of claim 21, wherein the control instructions include listen-back instructions,
the audio codec responds to the hearing instruction to control the digital earphone to enter a hearing mode, test audio data are played in the hearing mode to generate hearing audio data, and the second communication interface sends the hearing audio data generated by the audio codec to the electronic terminal through the connection.
23. The digital headset of claim 22, wherein the digital headset further comprises an analog switch, a speaker, and a microphone, the analog switch being selectively connectable to the speaker and the microphone,
wherein the audio codec controls the analog switch to be closed in response to the listen back instruction so as to enable the digital earphone to enter a listen back mode,
wherein, in the listen-back mode, the speaker and the microphone form an internal loop through the closed analog switch.
24. The digital headset of claim 21, wherein the digital headset further comprises a speaker, the control instructions comprise audio playback instructions,
and the audio codec responds to the audio playing instruction to control the loudspeaker to play the test audio data so as to enable the electronic terminal to collect the played test audio data.
25. A computer-readable storage medium storing a computer program, characterized in that the computer program, when being executed by a processor, implements a method of controlling digital headphone volume according to any one of claims 1 to 10.
CN202010512600.1A 2020-06-08 2020-06-08 Method for controlling volume of digital earphone, electronic terminal and digital earphone Pending CN111666061A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010512600.1A CN111666061A (en) 2020-06-08 2020-06-08 Method for controlling volume of digital earphone, electronic terminal and digital earphone
PCT/KR2021/006614 WO2021251660A1 (en) 2020-06-08 2021-05-27 Method for controlling volume of digital earphone, electronic terminal and digital earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010512600.1A CN111666061A (en) 2020-06-08 2020-06-08 Method for controlling volume of digital earphone, electronic terminal and digital earphone

Publications (1)

Publication Number Publication Date
CN111666061A true CN111666061A (en) 2020-09-15

Family

ID=72385832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010512600.1A Pending CN111666061A (en) 2020-06-08 2020-06-08 Method for controlling volume of digital earphone, electronic terminal and digital earphone

Country Status (2)

Country Link
CN (1) CN111666061A (en)
WO (1) WO2021251660A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238729A (en) * 2021-04-15 2021-08-10 Oppo广东移动通信有限公司 Earphone volume determining method, earphone and computer readable storage medium
CN113938781A (en) * 2021-08-27 2022-01-14 北京声智科技有限公司 Earphone-based holographic projection method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065904A (en) * 2022-05-30 2022-09-16 歌尔股份有限公司 Volume adjusting method and device, earphone, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110532A (en) * 2005-10-14 2007-04-26 Sharp Corp Noise cancellation headphone and method for adjusting variation of feedback gain of the same
US20110191103A1 (en) * 2010-01-29 2011-08-04 Pantech Co., Ltd. Portable terminal to adjust sound output of wireless headset
US20130236023A1 (en) * 2012-03-08 2013-09-12 Harman International Industries, Incorporated System for headphone equalization
US20140064503A1 (en) * 2012-08-30 2014-03-06 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio output
US8761383B2 (en) * 2012-03-30 2014-06-24 Gn Netcom A/S Telephone interface unit and a method of configuring headset system to telephone device
CN105446697A (en) * 2015-12-31 2016-03-30 广东小天才科技有限公司 Automatic earphone volume adjusting method, device and system
CN106131731A (en) * 2016-08-11 2016-11-16 歌尔股份有限公司 Have the process circuit and earphone monitored with active noise reduction function concurrently
CN110333841A (en) * 2019-07-05 2019-10-15 深圳市康冠技术有限公司 Method, audio processing modules, television set and the storage medium of audio output
CN111107463A (en) * 2019-12-30 2020-05-05 广州由我科技股份有限公司 Wireless earphone switching method and device, wireless earphone and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007110532A (en) * 2005-10-14 2007-04-26 Sharp Corp Noise cancellation headphone and method for adjusting variation of feedback gain of the same
US20110191103A1 (en) * 2010-01-29 2011-08-04 Pantech Co., Ltd. Portable terminal to adjust sound output of wireless headset
US20130236023A1 (en) * 2012-03-08 2013-09-12 Harman International Industries, Incorporated System for headphone equalization
US8761383B2 (en) * 2012-03-30 2014-06-24 Gn Netcom A/S Telephone interface unit and a method of configuring headset system to telephone device
US20140064503A1 (en) * 2012-08-30 2014-03-06 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio output
CN105446697A (en) * 2015-12-31 2016-03-30 广东小天才科技有限公司 Automatic earphone volume adjusting method, device and system
CN106131731A (en) * 2016-08-11 2016-11-16 歌尔股份有限公司 Have the process circuit and earphone monitored with active noise reduction function concurrently
CN110333841A (en) * 2019-07-05 2019-10-15 深圳市康冠技术有限公司 Method, audio processing modules, television set and the storage medium of audio output
CN111107463A (en) * 2019-12-30 2020-05-05 广州由我科技股份有限公司 Wireless earphone switching method and device, wireless earphone and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238729A (en) * 2021-04-15 2021-08-10 Oppo广东移动通信有限公司 Earphone volume determining method, earphone and computer readable storage medium
CN113238729B (en) * 2021-04-15 2024-04-30 Oppo广东移动通信有限公司 Headset volume determination method, headset, and computer-readable storage medium
CN113938781A (en) * 2021-08-27 2022-01-14 北京声智科技有限公司 Earphone-based holographic projection method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2021251660A1 (en) 2021-12-16

Similar Documents

Publication Publication Date Title
CN110972014B (en) Parameter adjustment method and device for active noise reduction earphone and wireless earphone
KR100842618B1 (en) Music file playing method and apparatus
CN111666061A (en) Method for controlling volume of digital earphone, electronic terminal and digital earphone
US20140254828A1 (en) System and Method for Personalization of an Audio Equalizer
US20090016540A1 (en) Auditory perception controlling device and method
US20100027807A1 (en) Method and apparatus for adjusting audio volume to prevent hearing loss or damage
US7957549B2 (en) Acoustic apparatus and method of controlling an acoustic apparatus
TW591965B (en) Handheld device providing to control the earphone volume separately and controlling method thereof
US20180098720A1 (en) A Method and Device for Conducting a Self-Administered Hearing Test
US11877122B2 (en) Hearing aid with wireless transmission function
CN109498030B (en) Free sound field hearing test system and method
KR102066649B1 (en) Personalized system of smart headphone device and method of using the same
CN114979363A (en) Volume adjusting method and device, electronic equipment and storage medium
CN106686507A (en) Hearing aid fitting method based on mobile terminal
EP3038255A2 (en) An intelligent volume control interface
CN110213707A (en) Earphone and its hearing-aid method, computer readable storage medium
WO2020252973A1 (en) Wireless earphone noise reduction method and system, wireless earphone and storage medium
CN111541966B (en) Uplink noise reduction method and device of wireless earphone and wireless earphone
CN114903473A (en) Hearing detection method, device, electronic equipment and storage medium
CN109814833B (en) Real-time control frequency response output device and application method thereof
KR101672455B1 (en) Portable terminal and sound detector each of which communicating using Body Area Network and data control method for the same
KR101995670B1 (en) Personalized system of smart headphone device with oriented chatting function and method of using the same
CN110840462A (en) Hearing-aid method for human ears based on earphone, computer readable storage medium and Bluetooth earphone
EP1505802A1 (en) Handheld device having an auto-volume control means for earphone plugging and controlling method thereof
CN107493376A (en) A kind of ringing volume adjusting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination