WO2021115006A1 - 保护用户听力的方法、装置和电子设备 - Google Patents

保护用户听力的方法、装置和电子设备 Download PDF

Info

Publication number
WO2021115006A1
WO2021115006A1 PCT/CN2020/128073 CN2020128073W WO2021115006A1 WO 2021115006 A1 WO2021115006 A1 WO 2021115006A1 CN 2020128073 W CN2020128073 W CN 2020128073W WO 2021115006 A1 WO2021115006 A1 WO 2021115006A1
Authority
WO
WIPO (PCT)
Prior art keywords
sound
sound pressure
electronic device
earphone
output
Prior art date
Application number
PCT/CN2020/128073
Other languages
English (en)
French (fr)
Inventor
郭志巍
林松
安艳宾
舒文
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to AU2020402822A priority Critical patent/AU2020402822B2/en
Priority to US17/779,149 priority patent/US20220417658A1/en
Priority to EP20898439.3A priority patent/EP4047469A4/en
Publication of WO2021115006A1 publication Critical patent/WO2021115006A1/zh

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/04Circuits for transducers, loudspeakers or microphones for correcting frequency response
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Definitions

  • This application relates to the technical field of electronic equipment, and in particular to a method, device and electronic equipment for protecting the hearing of a user.
  • the safety EN50332 regulations require that when playing special test sound sources, the maximum playback level earphone sound pressure should be less than 100dB (A weighting), and the protection level earphone sound pressure should be less than 85dB (A weighting) .
  • the hearing protection method is single. When the amplitude of the audio source that the user is listening to is large, the user may still hear the instantaneous sound pressure greater than 100dB (A weighting), and when it exceeds 100dB (A weighting), it must be To a certain extent, the user’s auditory nerve cells will be damaged. Therefore, it is necessary to provide a solution to effectively protect the user’s hearing when the user uses headphones to listen to music, watch videos, listen to books or listen to the radio.
  • This application provides a method, device and electronic equipment for protecting users’ hearing.
  • This application also provides a computer-readable storage medium to enable users to use headphones to listen to music, watch videos, listen to books, listen to radio, play games or Protect the user’s hearing during a call.
  • this application provides a method for protecting the hearing of a user, including:
  • the electronic device After the electronic device turns on the hearing protection mode, when the current sound output mode of the electronic device is earphone output, obtain the current frame sound source data; specifically, the electronic device may obtain the current sound output mode according to the current register or parameter data of the audio path, If the current sound output mode of the above electronic device is speaker or earpiece, the electronic device automatically turns off the hearing protection function and prompts the user that the current sound output mode is not earphone mode; if the current sound output mode of the above electronic device is earphone output, the electronic device normally cuts into hearing Protected mode, get the current frame audio source data;
  • the sound pressure output by the earphone connected to the electronic device is obtained; that is, in this embodiment, the sound pressure output by the earphone connected to the electronic device can be obtained according to the sound source data of the current frame.
  • the sound pressure sensor is added in the cavity, and there is no need to change the earphone data transmission interface and protocol; among them, the earphone connected to the above electronic device can be the earphone connected to the above electronic device through the earphone cable, or the earphone connected to the above electronic device through Bluetooth Bluetooth headset, this embodiment does not limit the specific form of the headset connected to the above electronic device;
  • the above-mentioned transient sound pressure over-standard protection operation may be preset by the user who uses the above-mentioned electronic device, and the above-mentioned transient sound pressure over-standard protection operation may include: turning off playback, lowering the volume, or other operations set by the user.
  • the specific operation of the instantaneous sound pressure over-standard protection operation is not limited.
  • the electronic device when the above sound pressure is greater than the predetermined sound pressure threshold, the electronic device will give an instantaneous sound pressure over-standard warning, and according to the above-mentioned user preset operation, the electronic device will be turned off to play, lower the volume, or set by the user. Other operations.
  • the electronic device turns on the hearing protection mode
  • the current frame of sound source data is obtained, and the current frame of sound source data is used to obtain the information connected to the electronic device.
  • the sound pressure output by the earphone is compared with the predetermined sound pressure threshold. If the sound pressure is greater than the predetermined sound pressure threshold, an instantaneous sound pressure exceeding warning is performed, and the electronic equipment is protected against instantaneous sound pressure exceeding In this way, the user's hearing can be protected when the instantaneous sound pressure exceeds the standard when the user uses headphones to listen to music, watch videos, listen to books, listen to radio, games and/or calls.
  • the acquiring, according to the current frame sound source data, the sound pressure output by the earphone connected to the electronic device includes:
  • the current use scenario of the headset may include: audio playback, video playback, games or calls, etc.;
  • the sound pressure output by the earphone connected to the above electronic device can be obtained according to the current frame sound source data, which is completely realized by software, and there is no need to add a sound pressure sensor in the earphone cavity, and there is no need to change the earphone data transmission interface and protocol.
  • the method further includes:
  • determine the cumulative sound dose up to the current moment may be calculated according to the historical sound pressure data stored in the memory and the sound dose calculation method;
  • the sound dose is compared with a predetermined sound dose standard value; wherein the predetermined sound dose standard value may be a sound dose standard value specified by an international standard or a domestic standard, or a user-defined sound dose standard value;
  • the above-mentioned sound dose over-standard protection operation may be preset by the user who uses the above-mentioned electronic device, and the above-mentioned sound dose over-standard protection operation may include: reminding the user to stop using the earphone mode to avoid hearing damage, and recommending the user to rest for X hours before proceeding.
  • Use headset mode and perform operations such as turning off playback, lowering the volume, or other options set by the user.
  • This embodiment realizes the early warning and hearing protection for the user when the total sound dose exceeds the standard and damages the user's hearing when listening to music continuously for a long time.
  • the method before acquiring the sound source data of the current frame, the method further includes:
  • the operation information of the user who uses the electronic device is detected; the above-mentioned operation information may include: the user clicks, long-presses, or other operations on the interface of the electronic device; or, the above-mentioned operation information may include: Input operation information;
  • the method before the obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone, the method further includes:
  • the electronic device plays the special audio source data, acquiring the electrical signal time domain data at the earphone interface of the electronic device, and acquiring the acoustic signal time domain data output by the earphone;
  • the electroacoustic conversion coefficient of the earphone is obtained according to the electrical signal time domain data and the acoustic signal time domain data.
  • the obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone includes:
  • this application provides a device for protecting the hearing of a user, including:
  • the acquiring module is configured to acquire the current frame of sound source data when the current sound output mode of the electronic device is earphone output after the electronic device turns on the hearing protection mode; and acquire the connection of the electronic device according to the current frame of sound source data The sound pressure of the headphone output;
  • a comparison module for comparing the sound pressure with a predetermined sound pressure threshold
  • the protection module is used to perform an instantaneous sound pressure exceeding standard warning and instantaneous sound pressure exceeding protective operation when the sound pressure is greater than the predetermined sound pressure threshold.
  • the acquisition module includes:
  • a scene acquisition sub-module for acquiring the current use scene of the headset
  • the voltage value acquisition sub-module is used to acquire the digital signal value output to the headphone jack of the electronic device according to the sound source data of the current frame and the sound effect change and gain value on the path corresponding to the use scene; Obtaining the voltage value output to the earphone jack by the digital signal value and the digital-to-electrical conversion gain value of the electronic device;
  • the sound pressure obtaining sub-module is configured to obtain the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone.
  • a saving module configured to save the sound pressure corresponding to the current frame of sound source data after the acquiring module acquires the sound pressure output by the earphone connected to the electronic device;
  • the determination module is used to determine the accumulated sound dose up to the current time according to the saved historical data of sound pressure
  • the comparison module is also used to compare the sound dose with a predetermined standard value of the sound dose
  • the protection module is also used to perform sound dose exceeding warning and sound dose exceeding protection operations when the sound dose is greater than the predetermined sound dose standard value.
  • the device further includes:
  • the detection module is configured to detect the operation information of the user who uses the electronic device before the acquisition module acquires the sound source data of the current frame;
  • An activation module configured to activate the hearing protection mode of the electronic device in response to the operation information detected by the detection module
  • the operation acquisition module is used to acquire the instantaneous sound pressure over-standard protection operation and the sound dose over-standard protection operation set by the user;
  • the saving module is used to save the instantaneous sound pressure over-standard protection operation and the sound dose over-standard protection operation acquired by the acquisition module.
  • the acquisition module further includes:
  • the coefficient acquisition sub-module is used to acquire the electrical signal time domain at the earphone interface of the electronic device before the sound pressure acquisition sub-module acquires the sound pressure output by the earphone and after the electronic device plays special sound source data Data, and obtain the acoustic signal time-domain data output by the earphone; and obtain the electro-acoustic conversion coefficient of the earphone according to the electrical signal time-domain data and the acoustic signal time-domain data.
  • the sound pressure acquisition sub-module is specifically configured to convert the voltage value into electrical signal frequency domain data, and obtain according to the electrical signal frequency domain data and the electroacoustic conversion coefficient Acoustic signal frequency domain data; and converting the acoustic signal frequency domain data into acoustic signal time domain data, and obtaining the sound pressure output by the earphone according to the acoustic signal time domain data.
  • this application provides an electronic device, including:
  • Display unit ; one or more processors; memory; audio single-channel; input unit; multiple application programs; and one or more computer programs, wherein the one or more computer programs are stored in the memory, so
  • the one or more computer programs include instructions, which when executed by the device, cause the device to perform the following steps:
  • the electronic device After the electronic device turns on the hearing protection mode, when the current sound output mode of the electronic device is earphone output, acquiring the current frame of sound source data;
  • the step of causing the device to execute the acquisition of the sound pressure output by the earphone connected to the electronic device according to the current frame sound source data includes:
  • the device when the instruction is executed by the device, the device further executes the following steps before executing the step of acquiring the sound source data of the current frame:
  • the operation information of the user who uses the electronic device is detected;
  • the device executes the step of obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone Previously, the following steps were also performed:
  • the electronic device plays the special audio source data, acquiring the electrical signal time domain data at the earphone interface of the electronic device, and acquiring the acoustic signal time domain data output by the earphone;
  • the electroacoustic conversion coefficient of the earphone is obtained according to the electrical signal time domain data and the acoustic signal time domain data.
  • the device executes the step of obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone include:
  • the present application provides a computer-readable storage medium in which a computer program is stored, which when running on a computer, causes the computer to execute the method as described in the first aspect.
  • this application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium that is packaged with the processor, and may also be stored in part or in a memory that is not packaged with the processor.
  • Figure 1 is a flow chart of a method for protecting human ears and hearing provided by related art
  • FIG. 2 is a flowchart of an embodiment of a method for protecting user hearing in this application
  • FIG. 3 is a flowchart of another embodiment of the method for protecting the hearing of a user according to this application;
  • FIG. 4 is a schematic diagram of an embodiment of obtaining an electro-acoustic conversion coefficient in a method for protecting a user's hearing in this application;
  • FIG. 5 is a schematic diagram of an embodiment of obtaining sound pressure in the method for protecting the hearing of a user according to this application;
  • FIG. 6 is a flowchart of another embodiment of the method for protecting the hearing of a user according to this application.
  • FIG. 7 is a flowchart of still another embodiment of the method for protecting the hearing of a user according to this application.
  • Figure 8(a) is a flowchart of another embodiment of the method for protecting user hearing in this application.
  • FIG. 8(b) is a flowchart of an embodiment of acquiring the sound pressure output by the earphone in the method for protecting the user's hearing in this application;
  • FIG. 9 is a schematic structural diagram of an embodiment of an apparatus for protecting users' hearing in this application.
  • FIG. 10 is a schematic structural diagram of another embodiment of an apparatus for protecting user hearing in this application.
  • FIG. 11 is a schematic structural diagram of an embodiment of an electronic device of this application.
  • the safety EN50332 regulations require that when playing special test sound sources, the maximum playback level earphone sound pressure should be less than 100dB (A weighting), and the protection level earphone sound pressure should be less than 85dB (A weighting) .
  • the hearing protection method is single.
  • the user may still hear the instantaneous sound pressure greater than 100dB (A-weighted), and when it exceeds 100dB (A-weighted), it must be To a certain extent, it will damage the user’s auditory nerve cells, not only the instantaneous sound pressure will cause hearing loss, but also when the user uses the earphone for a long time on the terminal device, the cumulative sound dose will be generated. protection.
  • the new safety standards provide two alternative safety requirements.
  • the first plan is consistent with the existing requirements, and the second recommended in the new safety standards limits the sound dose of the cumulative effect of listening to music for a long time.
  • the current electronic equipment has not yet provided effective technical means for the above-mentioned scheme two.
  • Figure 1 is a flow chart of a method for protecting human ear hearing provided by the related art.
  • the technical solution provides a method for protecting human ear hearing.
  • the method includes: when the earphone stops playing the audio signal, receiving the collected audio signal Environmental noise; analyze the environmental noise to obtain the target noise sound pressure level; determine the maximum output volume corresponding to the target noise sound pressure level according to the preset mapping relationship between the noise sound pressure level and the maximum output volume; the audio signal output to the earphones Control the maximum volume of the device so that the maximum volume is less than the maximum output volume; receive real-time monitoring of the actual sound pressure data in the human outer ear channel; compare the actual sound pressure data with the preset sound pressure threshold; control the earphone output audio according to the comparison result The current volume.
  • the embodiment of the present invention can combine the noise of the surrounding environment with the actual output volume of the earphone to control the output volume of the earphone in real time, so that the output volume of the earphone can protect the hearing of human ears without causing any damage or affecting the audio. Listening experience.
  • This solution only proposes hearing protection for the instantaneous sound pressure that the user hears when listening to music exceeds the standard, but does not realize the protection against the cumulative hearing loss effect caused by the user's long-term use of earphones.
  • This application provides a method for protecting the hearing of users, which can realize the use of earphones for listening to music, watching videos, listening to books, listening to the radio, playing games and/or making calls without increasing the hardware components of existing electronic equipment.
  • the user's hearing is protected when the instantaneous sound pressure exceeds the standard hearing loss and the cumulative hearing loss when using the earphone for a long time.
  • Fig. 2 is a flowchart of an embodiment of a method for protecting a user’s hearing in this application. As shown in Fig. 2, the above method for protecting a user’s hearing may include:
  • Step 201 After the electronic device turns on the hearing protection mode, when the current sound output mode of the above-mentioned electronic device is earphone output, acquire the current frame of sound source data.
  • the electronic device can obtain the current sound output mode according to the current register or parameter data of the audio path. If the current sound output mode of the above electronic device is a speaker or earpiece, the electronic device automatically turns off the hearing protection function and prompts the user to be in a non-headphone mode. ; If the current sound output mode of the above electronic device is earphone output, the electronic device normally switches to the hearing protection mode to obtain the current frame of sound source data.
  • Step 202 Obtain the sound pressure output by the earphone connected to the electronic device according to the sound source data of the current frame.
  • this embodiment can obtain the sound pressure output by the earphone connected to the above-mentioned electronic device according to the current frame sound source data, without adding a sound pressure sensor in the earphone cavity, and without changing the earphone data transmission interface and protocol.
  • the headset connected to the electronic device may be a headset connected to the electronic device through a headset cable, or a Bluetooth headset connected to the electronic device through Bluetooth. This embodiment does not limit the specific form of the headset connected to the electronic device. .
  • Step 203 Compare the above-mentioned sound pressure with a predetermined sound pressure threshold.
  • the foregoing predetermined sound pressure threshold may be set according to system performance and/or implementation requirements during specific implementation. This embodiment does not limit the size of the foregoing predetermined sound pressure threshold.
  • step 204 if the above sound pressure is greater than the predetermined sound pressure threshold, an instantaneous sound pressure exceeding warning and instantaneous sound pressure exceeding protection operation are performed.
  • the above-mentioned transient sound pressure over-standard protection operation may be preset by the user who uses the above-mentioned electronic device, and the above-mentioned transient sound pressure over-standard protection operation may include: turning off playback, lowering the volume, or other operations set by the user.
  • the specific operation of the instantaneous sound pressure over-standard protection operation is not limited.
  • the electronic device when the above sound pressure is greater than the predetermined sound pressure threshold, the electronic device will give an instantaneous sound pressure over-standard warning, and according to the above-mentioned user preset operation, the electronic device will be turned off to play, lower the volume, or set by the user. Other operations.
  • the electronic device turns on the hearing protection mode
  • the current frame of sound source data is obtained, and the current frame of sound source data is used to obtain the information connected to the electronic device.
  • the sound pressure output by the earphone is compared with the predetermined sound pressure threshold. If the sound pressure is greater than the predetermined sound pressure threshold, an instantaneous sound pressure exceeding warning is performed, and the electronic equipment is protected against instantaneous sound pressure exceeding In this way, the user's hearing can be protected when the instantaneous sound pressure exceeds the standard when the user uses headphones to listen to music, watch videos, listen to books, listen to radio, games and/or calls.
  • FIG. 3 is a flowchart of another embodiment of the method for protecting the hearing of a user according to this application.
  • step 202 may include:
  • Step 301 Acquire the current usage scenario of the aforementioned headset.
  • the current use scenarios of the above-mentioned earphones may include: audio playback, video playback, games or calls, etc.
  • Step 302 Acquire the digital signal value output to the headphone jack of the electronic device according to the sound source data of the current frame, and the sound effect change and gain value on the path corresponding to the use scene.
  • Step 303 Obtain the voltage value output to the earphone jack according to the digital signal value and the digital-to-electrical conversion gain value of the electronic device.
  • Step 304 Obtain the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone.
  • the method before obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone, the method further includes: obtaining the electric signal at the earphone interface of the electronic device after the special sound source data is played by the electronic device And acquire the time-domain data of the acoustic signal output by the earphone; and acquire the electro-acoustic conversion coefficient of the earphone according to the time-domain data of the electric signal and the time-domain data of the acoustic signal.
  • FIG. 4 is a schematic diagram of an embodiment of obtaining electro-acoustic conversion coefficients in the method for protecting user hearing in this application.
  • the voltage measurement device can be used to obtain the information of the electronic device.
  • the electrical signal time-domain data V t at the earphone interface, and the artificial head test is used to obtain the acoustic signal time-domain data P t output by the earphone, and then the fast Fourier transform (fast fourier transform) is performed on V t and P t respectively; Abbreviation: fft), obtain the electrical signal frequency domain data V spec and the acoustic signal time domain data P spec , and then convert the acoustic signal frequency domain data P spec into A weighted acoustic signal frequency domain data P specA through the A weighting network, and finally Calculate the ratio of the A-weighted acoustic signal frequency domain data P specA to the electrical signal frequency domain data V spec , and the above ratio is the electroacoustic conversion coefficient He2a (f).
  • the earphone matched with the electronic device will use a human head torso simulator to test and obtain the electroacoustic transfer function of the earphone itself, which represents the electrical signal received by the earphone (output by the electronic device) to the simulated position of the eardrum (Sound pressure sensors are arranged inside the ears of the human head torso simulator), and the accuracy is high.
  • obtaining the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone may be: converting the voltage value into electric signal frequency domain data; according to the electric signal frequency domain data and the electroacoustic conversion coefficient, Acquire acoustic signal frequency domain data; convert the acoustic signal frequency domain data into acoustic signal time domain data; then obtain the sound pressure output by the earphone according to the acoustic signal time domain data.
  • FIG. 5 is a schematic diagram of an embodiment of obtaining sound pressure in the method for protecting user hearing in this application.
  • the above voltage value (that is, the electrical signal time domain data V t ) can be fft transformed, and The voltage value is converted into the electrical signal frequency domain data V spec , and then the electrical signal frequency domain data V spec is multiplied by the electroacoustic conversion coefficient He2a (f) to obtain the A-weighted acoustic signal time domain data P tA , and finally The above A-weighted sound signal time-domain data P tA performs equivalent continuous A sound level calculation to obtain the sound pressure level calculation value L PA .
  • the sound pressure output by the earphone connected to the above electronic device can be obtained according to the current frame sound source data, which is completely realized by software, and there is no need to add a sound pressure sensor in the earphone cavity, and there is no need to change the earphone data transmission interface and protocol.
  • Fig. 6 is a flowchart of still another embodiment of the method for protecting user hearing in this application. As shown in Fig. 6, in the embodiment shown in Fig. 2 of this application, after step 202, it may further include:
  • Step 601 Save the sound pressure corresponding to the sound source data of the current frame.
  • the sound pressure corresponding to the sound source data of the current frame may be stored in the memory.
  • Step 602 Determine the accumulated sound dose up to the current time according to the saved historical sound pressure data.
  • the cumulative sound dose generated up to the current time can be calculated according to the historical sound pressure data and the sound dose calculation method stored in the memory.
  • step 603 the above-mentioned sound dose is compared with a predetermined standard value of the sound dose.
  • the predetermined sound dose standard value may be a sound dose standard value specified by an international standard or a domestic standard, or a user-defined sound dose standard value.
  • step 604 if the sound dose is greater than the predetermined sound dose standard value, the sound dose exceeding standard warning and sound dose exceeding protection operation are performed.
  • the above-mentioned sound dose over-standard protection operation may be preset by the user who uses the above-mentioned electronic device, and the above-mentioned sound dose over-standard protection operation may include: reminding the user to stop using the earphone mode to avoid hearing damage, and recommending the user to rest for X hours before proceeding.
  • Use headset mode and perform operations such as turning off playback, lowering the volume, or other options set by the user.
  • step 603 if the sound dose is less than or equal to the predetermined sound dose standard value, or the sound dose is greater than the predetermined sound dose standard value but the user forces the electronic device to continue playing, the electronic device continues to play the next frame
  • the sound source data return to step 201; if the above sound dose is greater than the predetermined sound dose standard value and the user chooses to turn off playback, this process ends; in addition, when the above user finishes using the terminal device normally, unplug the headset or turn off playback, The hearing protection mode is automatically exited.
  • This embodiment realizes the early warning and hearing protection for the user when the total sound dose exceeds the standard and damages the user's hearing when listening to music continuously for a long time.
  • FIG. 7 is a flowchart of another embodiment of a method for protecting user hearing in this application. As shown in FIG. 7, in the embodiment shown in FIG. 2 of this application, before step 201, it may further include:
  • Step 701 Detect operation information of a user who uses an electronic device.
  • the above-mentioned operation information may include: a user clicks, long-presses or other operations on the interface of the electronic device; or, the above-mentioned operation information may include: operation information input by the user to the above-mentioned electronic device through voice.
  • Step 702 in response to the above operation information, turn on the hearing protection mode of the above electronic device.
  • the electronic device can detect the click, long press or other operation performed by the user on the interface of the electronic device, or the operation information input by the user through voice, and then respond to the operation information to turn on the operation information.
  • Hearing protection mode of electronic equipment can detect the click, long press or other operation performed by the user on the interface of the electronic device, or the operation information input by the user through voice, and then respond to the operation information to turn on the operation information.
  • Step 703 Acquire and save the instantaneous sound pressure over-standard protection operation and the sound dose over-standard protection operation set by the user.
  • the electronic device may acquire and save the instantaneous sound pressure exceeding protection operation and the sound dose exceeding protection operation set by the user.
  • the foregoing instantaneous sound pressure exceeding protection operation may include: closing playback, lowering the volume, or other operations set by the user. This embodiment does not limit the specific operation of the foregoing instantaneous sound pressure exceeding protection operation;
  • the above sound dose exceeding protection operation may include: reminding the user to suspend using the earphone mode to avoid hearing damage, and recommending the user to rest for X hours before using the earphone mode, and performing operations such as turning off playback, lowering the volume, or other options set by the user.
  • the method for protecting the user’s hearing provided by this application can be applied to electronic equipment containing earphones. Without increasing the hardware components of the existing electronic equipment, users can use earphones to listen to music, watch videos, listen to books, listen to the radio, and play. In gaming and/or phone use scenarios, the user’s hearing is protected when the instantaneous sound pressure exceeds the standard hearing loss and the cumulative hearing loss when using the earphone for a long time.
  • the following uses the music playing mode on the electronic device as an example to describe the method for protecting the user’s hearing proposed in this application, but the embodiments of this application are not limited to this, and for anyone who uses earphones such as watching videos, listening to books, playing games or making calls, etc. The scenarios are applicable.
  • Fig. 8(a) is a flowchart of another embodiment of the method for protecting the hearing of a user according to this application. As shown in Fig. 8(a), the method for protecting the hearing of a user may include:
  • Step 801 The electronic device turns on the hearing protection mode.
  • the electronic device may detect a click, long press, or other operation on the interface of the electronic device by the user using the above-mentioned electronic device, or the operation information input by the above-mentioned user through voice, and then turn on the above-mentioned electronic device in response to the above-mentioned operation information.
  • Hearing protection mode a click, long press, or other operation on the interface of the electronic device by the user using the above-mentioned electronic device, or the operation information input by the above-mentioned user through voice
  • the electronic device After the electronic device turns on the hearing protection mode, the electronic device can acquire and save the instantaneous sound pressure over-standard protection operation and the sound dose over-standard protection operation set by the user.
  • the foregoing instantaneous sound pressure exceeding protection operation may include: closing playback, lowering the volume, or other operations set by the user. This embodiment does not limit the specific operation of the foregoing instantaneous sound pressure exceeding protection operation;
  • the above sound dose exceeding protection operation may include: reminding the user to suspend the use of earphone mode to avoid hearing loss, and recommending that the user rest for X hours before using the earphone mode, and perform operations such as turning off playback, lowering the volume, or other options set by the user.
  • Step 802 Acquire the current sound output mode of the above-mentioned electronic device.
  • the electronic device can obtain the current sound output mode of the electronic device according to the current register or parameter data of the audio path. If the current sound output mode of the electronic device is a speaker or earpiece, the electronic device automatically turns off the hearing protection function and prompts the user to It is a non-headphone mode; if the current sound output mode of the above electronic device is earphone output, the electronic device normally switches to the hearing protection mode to obtain the current frame of audio source data.
  • Step 803 Acquire the audio source data of the current frame.
  • the electronic device may take a frame of audio source data as input for analysis according to the frame length T pre-made by the algorithm.
  • Step 804 Obtain the sound pressure output by the earphone connected to the electronic device according to the sound source data of the current frame.
  • FIG. 8(b) is a flowchart of an embodiment of acquiring the sound pressure output by the earphone in the method for protecting the hearing of a user according to the present application.
  • step 804 may include:
  • Step 8041 After obtaining a frame of audio source data A, first obtain the current use scene of the aforementioned headset, read the volume level parameters set by the electronic device under the current use scene, and obtain the volume gain size C 1 according to the current use volume to obtain the audio source data A* C 1 .
  • Step 8042 Read the sound effect parameters in the current use scene, and perform the sound effect operation on the input audio source data A*C 1 to obtain output data Eff(A*C 1 ).
  • Step 8043 Read the post gain C 2 and perform the gain operation to obtain the output Eff(A*C 1 )*C 2 .
  • Step 8044 the digital signal is input Eff(A*C 1 )*C 2 , and the audio codec (Codec) gain C 3 is passed to obtain the output Eff(A*C 1 )*C 2 *C 3 , where Eff(A *C 1 )*C 2 *C 3 is the digital signal value output to the headphone jack of the above-mentioned electronic device.
  • Step 8045 multiply Eff(A*C 1 )*C 2 *C 3 by the digital-to-electrical conversion gain value C ce (determined by pre-test) output from the Codec to the earphone to obtain the voltage value Eff(A *C 1 )*C 2 *C 3 *C ce .
  • Step 805 Compare the sound pressure output by the earphone connected to the electronic device with a predetermined sound pressure threshold. If the sound pressure is greater than the predetermined sound pressure threshold, step 806 is executed; if the sound pressure is less than or equal to the predetermined sound pressure threshold, step 807 is executed.
  • Step 806 Perform instantaneous sound pressure over-standard early warning and instantaneous sound pressure over-standard protection operations. Then step 807 is executed.
  • the above-mentioned transient sound pressure over-standard protection operation may be preset by the user using the above electronic device, and the above-mentioned transient sound pressure over-standard protection operation may include: turning off music playback, lowering the volume, or other operations set by the user.
  • the specific operation of the above instantaneous sound pressure over-standard protection operation is not limited.
  • Step 807 Store the current sound pressure data.
  • the current sound pressure data is stored in the memory as historical data.
  • Step 808 Determine the accumulated sound dose up to the current moment according to the saved historical sound pressure data.
  • the cumulative sound dose generated at the current moment can be calculated according to the historical sound pressure data and the sound dose calculation method stored in the memory.
  • Step 809 Compare the above-mentioned sound dose with a predetermined standard value of the sound dose. Then step 810 is executed.
  • the predetermined sound dose standard value may be a sound dose standard value specified by an international standard or a domestic standard, or a user-defined sound dose standard value.
  • step 810 if the sound dose is greater than the predetermined sound dose standard value, the sound dose exceedance warning and sound dose exceedance protection operations are performed.
  • the above-mentioned sound dose over-standard protection operation may be preset by the user who uses the above-mentioned electronic device, and the above-mentioned sound dose over-standard protection operation may include: reminding the user to stop using the earphone mode to avoid hearing damage, and recommending the user to rest for X hours before proceeding.
  • step 809 if the sound dose is less than or equal to the predetermined sound dose standard value, or the sound dose is greater than the predetermined sound dose standard value but the user forces the electronic device to continue playing, the electronic device continues to play the next frame
  • the electronic device For audio source data, return to step 801; if the above sound dose is greater than the predetermined sound dose standard value and the user chooses to turn off music playback, this process ends; in addition, when the above user finishes using the terminal device normally, unplug the headset or turn off playback , The hearing protection mode is automatically exited.
  • the method for protecting the user's hearing provided by the embodiments of the present application has been slightly modified, and can estimate the sound pressure distribution of the spatial sound field when the mobile phone, smart speaker, and smart large screen use the speaker device to play music or video.
  • the difference is that the embodiment of the present application uses earphones, and it is necessary to establish an electroacoustic conversion coefficient from the electrical signal output by the electronic device to the sound pressure output by the earphone.
  • the electroacoustic conversion coefficients from the electrical signal to each point in the external sound field space For mobile phones, smart speakers, and smart large screens, when using speaker devices to predict the external sound field, it is necessary to establish the electroacoustic conversion coefficients from the electrical signal to each point in the external sound field space.
  • FIG. 9 is a schematic structural diagram of an embodiment of a device for protecting user hearing in this application.
  • the above device 90 for protecting user hearing may include: an acquisition module 91, a comparison module 92, and a protection module 93; it should be understood that, The device 90 for protecting the user's hearing may correspond to the electronic device 900 shown in FIG. 11.
  • the functions of the acquisition module 91, the comparison module 92, and the protection module 93 may be implemented by the processor 910 in the electronic device 900 shown in FIG. 11.
  • the obtaining module 91 is configured to obtain the current frame of sound source data when the current sound output mode of the above electronic device is earphone output after the electronic device is turned on the hearing protection mode; and obtain the current frame of sound source data according to the current frame of sound source data, and obtain the information connected to the above electronic device.
  • the comparison module 92 is configured to compare the above-mentioned sound pressure with a predetermined sound pressure threshold
  • the protection module 93 is configured to perform an instantaneous sound pressure over-standard early warning and instantaneous sound pressure over-standard protection operations when the above-mentioned sound pressure is greater than the above-mentioned predetermined sound pressure threshold.
  • the device 90 for protecting user hearing provided by the embodiment shown in FIG. 9 can be used to implement the technical solution of the method embodiment shown in FIG. 2 of the present application. For its implementation principles and technical effects, further reference may be made to the relevant description in the method embodiment.
  • FIG. 10 is a schematic structural diagram of another embodiment of the device for protecting user hearing in this application. Compared with the device 90 for protecting user hearing shown in FIG. 9, the difference is that in the device 100 for protecting user hearing shown in FIG. ,
  • the obtaining module 91 may include: a scene obtaining sub-module 911, a voltage value obtaining sub-module 912, and a sound pressure obtaining sub-module 913;
  • the scene acquisition sub-module 911 is used to acquire the current use scene of the aforementioned headset
  • the voltage value acquisition sub-module 912 is configured to acquire the digital signal value output to the headphone jack of the electronic device according to the sound source data of the current frame, and the sound effect change and gain value on the path corresponding to the use scene; Value and the digital-to-electrical conversion gain value of the electronic device to obtain the voltage value output to the headphone jack;
  • the device 100 for protecting user hearing may further include: a saving module 94 and a determining module 95;
  • the saving module 94 is configured to save the sound pressure corresponding to the sound source data of the current frame after the acquiring module 91 acquires the sound pressure output by the earphone connected to the above-mentioned electronic device;
  • the determining module 95 is used to determine the accumulated sound dose up to the current time according to the saved historical data of sound pressure
  • the comparison module 92 is also used to compare the above-mentioned sound dose with a predetermined standard value of the sound dose
  • the protection module 93 is also used to perform sound dose over-standard warning and sound-dose over-standard protection operations when the above-mentioned sound dose is greater than a predetermined standard value of sound dose.
  • the device 100 for protecting the user's hearing may further include: a detection module 96 and an opening module 97, an operation acquisition module 98, and a saving module 94;
  • the detection module 96 is configured to detect the operation information of the user who uses the electronic device before the acquisition module 91 acquires the sound source data of the current frame;
  • the activation module 97 is configured to activate the hearing protection mode of the above-mentioned electronic device in response to the operation information detected by the detection module 96;
  • the operation acquisition module 98 is also used to acquire the instantaneous sound pressure over-standard protection operation and the sound dose over-standard protection operation set by the user;
  • the saving module 94 is configured to save the instantaneous sound pressure exceeding protection operation and the sound dose exceeding protection operation acquired by the acquiring module 91.
  • the obtaining module 91 may further include: a coefficient obtaining sub-module 914;
  • the coefficient acquisition submodule 914 is configured to acquire the electrical signal time domain data at the earphone interface of the electronic device before the sound pressure acquisition submodule 913 acquires the sound pressure output by the earphone, and after the electronic device plays the special sound source data, and Acquire the acoustic signal time-domain data output by the earphone; and obtain the electroacoustic conversion coefficient of the earphone according to the electrical signal time-domain data and the acoustic signal time-domain data.
  • the sound pressure acquisition sub-module 913 is specifically configured to convert the above voltage value into electrical signal frequency domain data, and obtain the acoustic signal frequency domain based on the above electrical signal frequency domain data and the above electroacoustic conversion coefficient. Data; and converting the acoustic signal frequency domain data into acoustic signal time domain data, and obtaining the sound pressure output by the earphone according to the acoustic signal time domain data.
  • the device 100 for protecting the user's hearing may correspond to the electronic device 900 shown in FIG. 11.
  • the functions of the acquiring module 91, the comparing module 92, the protecting module 93, the saving module 94, the determining module 95, and the opening module 97 can be implemented by the processor 910 in the electronic device 900 shown in FIG. 11, and the functions of the opening module 97 can be This is implemented by the input unit 960 in the electronic device 900 shown in FIG. 11.
  • the device 100 for protecting user hearing provided by the embodiment shown in FIG. 10 can be used to implement the technical solutions of the method embodiments shown in FIGS. 3 to 7 of this application. For its implementation principles and technical effects, further reference may be made to related descriptions in the method embodiments.
  • each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as ASIC), or, one or more micro-processing Digital Processor (Digital Singnal Processor; hereinafter referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of System-On-a-Chip (hereinafter referred to as SOC).
  • FIG. 11 is a schematic structural diagram of an embodiment of an electronic device of this application.
  • the above-mentioned electronic device may include: a display unit; one or more processors; a memory; an audio single channel; an input unit; and multiple application programs; And one or more computer programs.
  • the above-mentioned electronic equipment may be a mobile terminal (mobile phone), a smart screen, a drone, an intelligent connected vehicle (Intelligent Connected Vehicle; hereinafter referred to as ICV), a smart/intelligent car (smart/intelligent car), or in-vehicle equipment, etc. equipment.
  • ICV Intelligent Connected Vehicle
  • a smart/intelligent car smart/intelligent car
  • in-vehicle equipment etc. equipment.
  • the aforementioned one or more computer programs are stored in the aforementioned memory, and the aforementioned one or more computer programs include instructions.
  • the aforementioned instructions executes the following steps: after the electronic device turns on the hearing protection mode, When the current sound output mode of the electronic device is earphone output, obtain the current frame of sound source data;
  • the step of causing the above-mentioned device to execute the step of obtaining the sound pressure output by the earphone connected to the above-mentioned electronic device according to the above-mentioned sound source data of the current frame includes:
  • the sound pressure output by the earphone is obtained according to the voltage value and the electroacoustic conversion coefficient of the earphone.
  • the above device executes the step of acquiring the sound pressure output by the earphone connected to the above electronic device according to the above current frame sound source data, and then further performs the following steps:
  • the sound dose over-standard warning and sound dose over-standard protection operation will be carried out.
  • the above-mentioned device when executed by the above-mentioned device, the above-mentioned device further executes the following steps before executing the step of acquiring the sound source data of the current frame:
  • the operation information of the user who uses the electronic device is detected;
  • the electronic device plays the special audio source data, acquiring the electrical signal time domain data at the earphone jack of the electronic device, and acquiring the acoustic signal time domain data output by the earphone;
  • the electroacoustic conversion coefficient of the earphone is obtained according to the electrical signal time domain data and the acoustic signal time domain data.
  • the step of causing the above-mentioned device to obtain the sound pressure output by the earphone according to the voltage value and the electroacoustic conversion coefficient of the earphone includes:
  • the electronic device shown in FIG. 11 may be a terminal device or a circuit device built in the aforementioned terminal device.
  • the device can be used to execute the functions/steps in the methods provided in the embodiments shown in FIG. 2 to FIG. 7 of the present application.
  • the electronic device 900 includes a processor 910 and a transceiver 920.
  • the electronic device 900 may further include a memory 930.
  • the processor 910, the transceiver 920, and the memory 930 can communicate with each other through internal connection paths to transfer control and/or data signals.
  • the memory 930 is used to store computer programs, hearing protection algorithm program codes, and hearing protection process historical data.
  • the processor 910 is used to call and run the computer program from the memory 930, process the information transmitted by the input unit 960 and the display unit 970, and process audio stream signals.
  • the aforementioned memory 930 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types that can store information and instructions.
  • the type of dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, CD-ROM Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures And any other media that can be accessed by the computer.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • CD-ROM Storage including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices or can be used to carry or store desired program codes in the
  • the electronic device 900 may further include an antenna 940 for transmitting the wireless signal output by the transceiver 920.
  • the above-mentioned processor 910 and the memory 930 may be integrated into a processing device, and more commonly, they are components independent of each other.
  • the processor 910 is configured to execute the program code stored in the memory 930 to implement the above-mentioned functions.
  • the memory 930 may also be integrated in the processor 910, or independent of the processor 910.
  • the electronic device 900 may also include an input unit 960, a display unit 970, and an audio circuit 980.
  • the audio circuit 980 may also include a microphone 984. You can connect headphones 982 and so on.
  • the display unit 970 may include a display screen.
  • the input unit 960 and the display unit 970 are used to interact with the user, and the input unit 960 is used for the user to start, stop, or customize the hearing protection function.
  • the display unit 970 is used to display output information of the hearing protection function.
  • the audio circuit 980 is used to transmit and process audio signals, and implement various operations such as filtering and power amplification.
  • the earphone 982 can implement electro-acoustic conversion, convert the electrical signal output by the electronic device into an acoustic signal and output it to the user's ear.
  • the aforementioned electronic device 900 may further include a power supply 950 for providing power to various devices or circuits in the terminal device.
  • the electronic device 900 shown in FIG. 11 can implement various processes of the methods provided in the embodiments shown in FIGS. 2 to 7 of this application.
  • the operations and/or functions of each module in the electronic device 900 are used to implement the corresponding processes in the foregoing method embodiments.
  • processor 910 in the electronic device 900 shown in FIG. 11 may be a system-on-chip SOC, and the processor 910 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of Processor, for example: Graphics Processing Unit (hereinafter referred to as GPU), etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • each part of the processor or processing unit inside the processor 910 can cooperate to implement the previous method flow, and the corresponding software program of each part of the processor or processing unit can be stored in the memory 930.
  • the device includes a storage medium and a central processing unit.
  • the storage medium may be a non-volatile storage medium.
  • a computer executable program is stored in the storage medium.
  • the central processing unit is connected to the The non-volatile storage medium is connected, and the computer executable program is executed to implement the method provided by the embodiments shown in FIG. 2 to FIG. 7 of this application.
  • the processors involved may include, for example, CPU, DSP, microcontroller or digital signal processor, and may also include GPU, embedded neural network processor (Neural-network Process Units; hereinafter referred to as NPU) and Image signal processing (Image Signal Processing; hereinafter referred to as ISP), which may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits used to control the execution of the technical solutions of this application Circuit etc.
  • the processor may have a function of operating one or more software programs, and the software programs may be stored in a storage medium.
  • the embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, which when running on a computer, causes the computer to execute the functions provided by the embodiments shown in Figs. 2 to 7 of the present application. method.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided by the embodiments shown in FIG. 2 to FIG. 7 of the present application.
  • At least one refers to one or more
  • multiple refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean the existence of A alone, A and B at the same time, and B alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • “The following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disks or optical disks etc.

Abstract

一种保护用户听力的方法、装置和电子设备,上述保护用户听力的方法中,在电子设备开启听力保护模式之后,当声音输出模式为耳机输出时,根据当前帧音源数据,获取耳机输出的声压,当上述声压大于预定的声压阈值时,进行瞬时声压超标预警,并对上述电子设备进行瞬时声压超标保护操作,从而可以在瞬时声压超标时对用户的听力进行保护;另外,在获取输出的声压之后,还可以保存声压,根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量,当上述声剂量大于预定的声剂量标准值时,进行声剂量超标预警和声剂量超标保护操作,从而可以实现在长时间连续使用耳机时总声剂量超标损害用户听力的情形下,对用户进行预警及听力保护。

Description

保护用户听力的方法、装置和电子设备
本申请要求于2019年12月11日提交中国专利局、申请号为201911265119.0、发明名称为“保护用户听力的方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,特别涉及一种保护用户听力的方法、装置和电子设备。
背景技术
现在,大部分用户特别是年轻人喜欢使用耳机在电子设备(例如:智能手机、平板电脑、笔记本电脑和/或音频播放器等)上听音乐、看视频、听书或收听广播。特别是有些用户喜欢听大音量的音乐或者喜欢长时间听音乐,这时用户听力将有受损风险。世界卫生组织调查显示11亿年轻人(12-35岁)面临听力受损风险,个人音频设备音量过大以及长时间持续听音乐是造成风险的重要原因。随着手机、平板电脑等电子设备在世界范围的普及,面临听力受损风险的人数及听力已受损的人数在逐年增加。
在当前音频播放终端设备中,安规EN50332法规要求在播放特制测试音源时,最大播放档位耳机声压应小于100dB(A计权),保护档位耳机声压应小于85dB(A计权)。该听力保护手段单一,当用户所听音源的幅度比特制测试音源幅度大时,用户仍然有可能听到的瞬时声压大于100dB(A计权),超过100dB(A计权)时,则一定程度上会损伤用户的听觉神经细胞,因此需要提供一种方案,在用户使用耳机听音乐、看视频、听书或收听广播时,对用户的听力进行有效的保护。
发明内容
本申请提供了一种保护用户听力的方法、装置和电子设备,本申请还提供一种计算机可读存储介质,以实现在用户使用耳机听音乐、看视频、听书、收听广播、玩游戏或通话时,对用户的听力进行保护。
第一方面,本申请提供了一种保护用户听力的方法,包括:
在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;具体地,电子设备可以根据音频通路当前寄存器或参数数据获取当前声音输出模式,如果上述电子设备当前的声音输出模式为喇叭或听筒,则电子设备自动关闭听力保护功能并提示用户当前为非耳机模式;如果上述电子设备当前的声音输出模式为耳机输出,则电子设备正常切入听力保护模式,获取当前帧音源数据;
根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;也就是 说,本实施例可以根据当前帧音源数据,获取上述电子设备连接的耳机输出的声压,无需在耳机腔体内增加声压传感器,也不需要更改耳机数据传输接口及协议;其中,上述电子设备连接的耳机可以为通过耳机线与上述电子设备连接的耳机,也可以为通过蓝牙与上述电子设备连接的蓝牙耳机,本实施例对上述电子设备连接的耳机的具体形态不作限定;
将所述声压与预定的声压阈值进行对比;
如果所述声压大于所述预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。其中,上述瞬时声压超标保护操作可以是使用上述电子设备的用户预先设定的,上述瞬时声压超标保护操作可以包括:关闭播放、降低音量或用户设定的其他操作,本实施例对上述瞬时声压超标保护操作的具体操作不作限定。
也就是说,当上述声压大于预定的声压阈值时,电子设备会进行瞬时声压超标预警,并根据上述用户预先设定的操作,对电子设备进行关闭播放、降低音量或用户设定的其他操作。
上述保护用户听力的方法中,在电子设备开启听力保护模式之后,当上述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据,根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压,将上述声压与预定的声压阈值进行对比,如果上述声压大于预定的声压阈值,则进行瞬时声压超标预警,并对上述电子设备进行瞬时声压超标保护操作,从而可以在用户使用耳机进行听音乐、看视频、听书、听广播、游戏和/或通话等场景下,在瞬时声压超标时对用户的听力进行保护。
其中一种可能的实现方式中,所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压包括:
获取所述耳机当前的使用场景;其中,上述耳机当前的使用场景可以包括:音频播放、视频播放、游戏或通话等;
根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;
根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
本实施例可以根据当前帧音源数据,获取上述电子设备连接的耳机输出的声压,完全通过软件实现,无需在耳机腔体内增加声压传感器,也不需要更改耳机数据传输接口及协议。
其中一种可能的实现方式中,所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压之后,还包括:
保存所述当前帧音源数据对应的声压;
根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;具体地,可以根据存储器中保存的声压的历史数据及声剂量计算方法,计算截至当前时刻累积产生的声剂量;
将所述声剂量与预定的声剂量标准值进行对比;其中,上述预定的声剂量标准 值可以是国际标准或国内标准规定的声剂量标准值,也可以是用户自定义的声剂量标准值;
如果所述声剂量大于所述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
其中,上述声剂量超标保护操作可以是使用上述电子设备的用户预先设定的,上述声剂量超标保护操作可以包括:提醒用户暂停使用耳机模式以避免听力受损,并建议用户休息X小时后再使用耳机模式,并执行关闭播放、降低音量、或用户设定的其他选项操作。
本实施例实现了在长时间连续听音乐时总声剂量超标损害用户听力的情形下,对用户进行预警及听力保护。
其中一种可能的实现方式中,所述获取当前帧音源数据之前,还包括:
检测到使用电子设备的用户的操作信息;其中,上述操作信息可以包括:用户在电子设备的界面上进行点击、长按或其他操作;或者,上述操作信息可以包括:用户通过语音向上述电子设备输入的操作信息;
响应于所述操作信息,开启所述电子设备的听力保护模式;也就是说,在具体实现时,电子设备可以检测上述用户在电子设备的界面上进行的点击、长按或其他操作,或者上述用户通过语音输入的操作信息,然后响应于上述操作信息,开启上述电子设备的听力保护模式;
获取并保存所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
其中一种可能的实现方式中,所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压之前,还包括:
在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;
根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
其中一种可能的实现方式中,所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压包括:
将所述电压值转换为电信号频域数据;
根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;
将所述声信号频域数据转换为声信号时域数据;
根据所述声信号时域数据获取所述耳机输出的声压。
第二方面,本申请提供一种保护用户听力的装置,包括:
获取模块,用于在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;以及根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;
对比模块,用于将所述声压与预定的声压阈值进行对比;
保护模块,用于当所述声压大于所述预定的声压阈值时,进行瞬时声压超标预警和瞬时声压超标保护操作。
其中一种可能的实现方式中,所述获取模块包括:
场景获取子模块,用于获取所述耳机当前的使用场景;
电压值获取子模块,用于根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
声压获取子模块,用于根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
其中一种可能的实现方式中,所述装置还包括:
保存模块,用于在所述获取模块获取所述电子设备连接的耳机输出的声压之后,保存所述当前帧音源数据对应的声压;
确定模块,用于根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
所述对比模块,还用于将所述声剂量与预定的声剂量标准值进行对比;
所述保护模块,还用于当所述声剂量大于所述预定的声剂量标准值时,进行声剂量超标预警和声剂量超标保护操作。
其中一种可能的实现方式中,所述装置还包括:
检测模块,用于在所述获取模块获取当前帧音源数据之前,检测使用电子设备的用户的操作信息;
开启模块,用于响应于所述检测模块检测到的操作信息,开启所述电子设备的听力保护模式;
操作获取模块,用于获取所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作;
保存模块,用于保存所述获取模块获取的瞬时声压超标保护操作和声剂量超标保护操作。
其中一种可能的实现方式中,所述获取模块还包括:
系数获取子模块,用于在所述声压获取子模块获取所述耳机输出的声压之前,在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;以及根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
其中一种可能的实现方式中,所述声压获取子模块,具体用于将所述电压值转换为电信号频域数据,根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;以及将所述声信号频域数据转换为声信号时域数据,根据所述声信号时域数据获取所述耳机输出的声压。
第三方面,本申请提供一种电子设备,包括:
显示单元;一个或多个处理器;存储器;音频单路;输入单元;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行以下步骤:
在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;
根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;
将所述声压与预定的声压阈值进行对比;
如果所述声压大于所述预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。
其中一种可能的实现方式中,所述指令被所述设备执行时,使得所述设备执行所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压的步骤包括:
获取所述耳机当前的使用场景;
根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;
根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
其中一种可能的实现方式中,所述指令被所述设备执行时,使得所述设备执行所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压的步骤之后,还执行以下步骤:
保存所述当前帧音源数据对应的声压;
根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
将所述声剂量与预定的声剂量标准值进行对比;
如果所述声剂量大于所述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
其中一种可能的实现方式中,所述指令被所述设备执行时,使得所述设备执行所述获取当前帧音源数据的步骤之前,还执行以下步骤:
检测到使用电子设备的用户的操作信息;
响应于所述操作信息,开启所述电子设备的听力保护模式;
获取并保存所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
其中一种可能的实现方式中,所述指令被所述设备执行时,使得所述设备执行所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压的步骤之前,还执行以下步骤:
在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;
根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
其中一种可能的实现方式中,所述指令被所述设备执行时,使得所述设备执行所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压的步骤包括:
将所述电压值转换为电信号频域数据;
根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;
将所述声信号频域数据转换为声信号时域数据;
根据所述声信号时域数据获取所述耳机输出的声压。
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第五方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为现有相关技术提供的一种保护人耳听力的方法的流程图;
图2为本申请保护用户听力的方法一个实施例的流程图;
图3为本申请保护用户听力的方法再一个实施例的流程图;
图4为本申请保护用户听力的方法中获取电声转换系数一个实施例的示意图;
图5为本申请保护用户听力的方法中获取声压的一个实施例的示意图;
图6为本申请保护用户听力的方法再一个实施例的流程图;
图7为本申请保护用户听力的方法再一个实施例的流程图;
图8(a)为本申请保护用户听力的方法再一个实施例的流程图;
图8(b)为本申请保护用户听力的方法中获取耳机输出的声压的一个实施例的流程图;
图9为本申请保护用户听力的装置一个实施例的结构示意图;
图10为本申请保护用户听力的装置另一个实施例的结构示意图;
图11为本申请电子设备一个实施例的结构示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
在当前音频播放终端设备中,安规EN50332法规要求在播放特制测试音源时,最大播放档位耳机声压应小于100dB(A计权),保护档位耳机声压应小于85dB(A计权)。该听力保护手段单一,当用户所听音源的幅度比特制测试音源幅度大时,用户仍然有可能听到的瞬时声压大于100dB(A计权),超过100dB(A计权)时,则一定程度上会损伤用户的听觉神经细胞,不仅瞬时声压大会造成听力受损,当用户在终端设备上长时间使用耳机时会产生累积声剂量,当前保护方法对长期使用耳机造成的累积损伤效应不能保护。
为了更好地保护用户听力,新的安规标准给出了两种可选的安规要求方案。其中方案一与现有要求一致,新的安规标准中推荐的方案二限定了长时间听音乐累积效应的声剂量大小。但当前的电子设备针对上述方案二尚未提供有效技术手段。
图1为现有相关技术提供的一种保护人耳听力的方法的流程图,该技术方案提供了一种保护人耳听力的方法,该方法包括:当耳机停止播放音频信号时,接收采集的环境噪声;对环境噪声进行分析,得到目标噪声声压级;根据预设的噪声声压 级与最大输出音量的映射关系,确定目标噪声声压级对应的最大输出音量;对耳机输出的音频信号的最大音量进行控制,使最大音量小于最大输出音量;接收实时监测到的人外耳通道内的实际声压数据;将实际声压数据与预设声压阈值进行比较;根据比较结果控制耳机输出音频的当前音量。本发明实施例能够将周围环境的噪声与耳机实际输出音量相结合来对耳机输出音量进行实时控制,使得耳机输出的音量能够对人耳的听力进行保护,不会造成任何损伤,也不影响音频的收听体验。
但是上述方案存在以下问题:
(1)该方案为了采集外耳道内的声音,需要在耳机腔体内增加声压传感器,对常规耳机无法兼容,同时会增加硬件成本。
(2)该方案至少需要在耳机上布设2个传声器,而当前电子设备3.5mm耳机接口仅能支持获取1路传声器数据。因此当前电子设备上的3.5mm耳机数据传输接口及协议不满足上述方案的需求,需定义及实现新的传输接口及协议。
(3)耳机腔体内监测到的声压与用户耳膜处实际听到的声压存在较大差异,在表征用户实际听到的声压大小时精度较差。
(4)该方案仅仅提出了对用户听音乐时耳朵听到的瞬时声压超标进行听力保护,而未实现针对用户长时间使用耳机而产生的累积听力损伤效应的保护。
本申请提供一种保护用户听力的方法,可以在不增加现有电子设备硬件器件的基础上,实现在用户使用耳机听音乐、看视频、听书、收听广播、玩游戏和/或通话等使用耳机场景下,在瞬时声压超标听力损伤以及长期使用耳机时累积听力损伤这两种损害用户听力的情形下,对用户的听力进行保护。
图2为本申请保护用户听力的方法一个实施例的流程图,如图2所示,上述保护用户听力的方法可以包括:
步骤201,在电子设备开启听力保护模式之后,当上述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据。
具体地,电子设备可以根据音频通路当前寄存器或参数数据获取当前声音输出模式,如果上述电子设备当前的声音输出模式为喇叭或听筒,则电子设备自动关闭听力保护功能并提示用户当前为非耳机模式;如果上述电子设备当前的声音输出模式为耳机输出,则电子设备正常切入听力保护模式,获取当前帧音源数据。
步骤202,根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压。
也就是说,本实施例可以根据当前帧音源数据,获取上述电子设备连接的耳机输出的声压,无需在耳机腔体内增加声压传感器,也不需要更改耳机数据传输接口及协议。
其中,上述电子设备连接的耳机可以为通过耳机线与上述电子设备连接的耳机,也可以为通过蓝牙与上述电子设备连接的蓝牙耳机,本实施例对上述电子设备连接的耳机的具体形态不作限定。
步骤203,将上述声压与预定的声压阈值进行对比。
其中,上述预定的声压阈值可以在具体实现时,根据系统性能和/或实现需求等自行设定,本实施例对上述预定的声压阈值的大小不作限定。
步骤204,如果上述声压大于预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。
其中,上述瞬时声压超标保护操作可以是使用上述电子设备的用户预先设定的,上述瞬时声压超标保护操作可以包括:关闭播放、降低音量或用户设定的其他操作,本实施例对上述瞬时声压超标保护操作的具体操作不作限定。
也就是说,当上述声压大于预定的声压阈值时,电子设备会进行瞬时声压超标预警,并根据上述用户预先设定的操作,对电子设备进行关闭播放、降低音量或用户设定的其他操作。
上述保护用户听力的方法中,在电子设备开启听力保护模式之后,当上述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据,根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压,将上述声压与预定的声压阈值进行对比,如果上述声压大于预定的声压阈值,则进行瞬时声压超标预警,并对上述电子设备进行瞬时声压超标保护操作,从而可以在用户使用耳机进行听音乐、看视频、听书、听广播、游戏和/或通话等场景下,在瞬时声压超标时对用户的听力进行保护。
图3为本申请保护用户听力的方法再一个实施例的流程图,如图3所示,本申请图2所示实施例中,步骤202可以包括:
步骤301,获取上述耳机当前的使用场景。
其中,上述耳机当前的使用场景可以包括:音频播放、视频播放、游戏或通话等。
步骤302,根据上述当前帧音源数据,以及上述使用场景对应的通路上的音效改变及增益值,获取输出到上述电子设备的耳机接口处的数字信号值。
步骤303,根据上述数字信号值和上述电子设备的数电转换增益值获取输出到上述耳机接口处的电压值。
步骤304,根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压。
具体地,在根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压之前,还包括:在上述电子设备播放特制音源数据之后,获取上述电子设备的耳机接口处的电信号时域数据,并获取上述耳机输出的声信号时域数据;根据上述电信号时域数据和上述声信号时域数据获取上述耳机的电声转换系数。
具体地,图4为本申请保护用户听力的方法中获取电声转换系数一个实施例的示意图,如图4所示,在电子设备播放特制音源数据之后,可以使用电压测量设备获取上述电子设备的耳机接口处的电信号时域数据V t,并使用人工头测试获取上述耳机输出的声信号时域数据P t,然后分别对V t和P t进行快速傅里叶变换(fast fourier transform;以下简称:fft),获得电信号频域数据V spec和声信号时域数据P spec,再将声信号频域数据P spec通过A计权网络转换为A计权声信号频域数据P specA,最后计算A计权声信号频域数据P specA与电信号频域数据V spec的比值,上述比值即为电声转换系数H e2a(f)。
本实施例中针对电子设备搭配的耳机会使用人头躯干模拟器来进行测试获取耳 机本身的电声传递函数,该传递函数表征了耳机接收到的电信号(由电子设备输出)到耳膜模拟位置处(人头躯干模拟器耳朵内部布设有声压传感器)的精确数值,精度较高。
这样,根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压可以为:将上述电压值转换为电信号频域数据;根据上述电信号频域数据和上述电声转换系数,获取声信号频域数据;将上述声信号频域数据转换为声信号时域数据;然后根据上述声信号时域数据获取上述耳机输出的声压。
具体地,图5为本申请保护用户听力的方法中获取声压的一个实施例的示意图,如图5所示,可以对上述电压值(即电信号时域数据V t)进行fft变换,将上述电压值转换为电信号频域数据V spec,然后将上述电信号频域数据V spec乘以上述电声转换系数H e2a(f),获得A计权声信号时域数据P tA,最后对上述A计权声信号时域数据P tA进行等效连续A声级计算,获得声压级计算值L PA
本实施例可以根据当前帧音源数据,获取上述电子设备连接的耳机输出的声压,完全通过软件实现,无需在耳机腔体内增加声压传感器,也不需要更改耳机数据传输接口及协议。
图6为本申请保护用户听力的方法再一个实施例的流程图,如图6所示,本申请图2所示实施例中,步骤202之后,还可以包括:
步骤601,保存当前帧音源数据对应的声压。
具体地,可以将当前帧音源数据对应的声压存入存储器。
步骤602,根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量。
具体地,可以根据存储器中保存的声压的历史数据及声剂量计算方法,计算截至当前时刻累积产生的声剂量。
步骤603,将上述声剂量与预定的声剂量标准值进行对比。
其中,上述预定的声剂量标准值可以是国际标准或国内标准规定的声剂量标准值,也可以是用户自定义的声剂量标准值。
步骤604,如果上述声剂量大于上述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
其中,上述声剂量超标保护操作可以是使用上述电子设备的用户预先设定的,上述声剂量超标保护操作可以包括:提醒用户暂停使用耳机模式以避免听力受损,并建议用户休息X小时后再使用耳机模式,并执行关闭播放、降低音量、或用户设定的其他选项操作。
进一步地,步骤603之后,如果上述声剂量小于或等于上述预定的声剂量标准值,或者上述声剂量大于上述预定的声剂量标准值但用户强制电子设备继续播放,则电子设备继续播放下一帧音源数据,返回执行步骤201;如果上述声剂量大于上述预定的声剂量标准值并且用户选择关闭播放,则本次流程结束;另外,当上述用户正常使用完终端设备拔出耳机或关闭播放时,听力保护模式自动退出。
本实施例实现了在长时间连续听音乐时总声剂量超标损害用户听力的情形下,对用户进行预警及听力保护。
图7为本申请保护用户听力的方法再一个实施例的流程图,如图7所示,本申请图2所示实施例中,步骤201之前,还可以包括:
步骤701,检测到使用电子设备的用户的操作信息。
其中,上述操作信息可以包括:用户在电子设备的界面上进行点击、长按或其他操作;或者,上述操作信息可以包括:用户通过语音向上述电子设备输入的操作信息。
步骤702,响应于上述操作信息,开启上述电子设备的听力保护模式。
也就是说,在具体实现时,电子设备可以检测上述用户在电子设备的界面上进行的点击、长按或其他操作,或者上述用户通过语音输入的操作信息,然后响应于上述操作信息,开启上述电子设备的听力保护模式。
步骤703,获取并保存上述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
具体地,在电子设备开启听力保护模式之后,电子设备可以获取并保存上述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
其中,上述瞬时声压超标保护操作可以包括:关闭播放、降低音量或用户设定的其他操作,本实施例对上述瞬时声压超标保护操作的具体操作不作限定;
上述声剂量超标保护操作可以包括:提醒用户暂停使用耳机模式以避免听力受损,并建议用户休息X小时后再使用耳机模式,并执行关闭播放、降低音量、或用户设定的其他选项操作。
本申请提供的保护用户听力的方法可以应用于包含耳机的电子设备中,在不增加现有电子设备硬件器件的基础上,实现在用户使用耳机听音乐、看视频、听书、收听广播、玩游戏和/或通话等使用耳机场景下,在瞬时声压超标听力损伤以及长期使用耳机时累积听力损伤这两种损害用户听力的情形下,对用户的听力进行保护。
下面以电子设备上的音乐播放模式为例对本申请提出的保护用户听力的方法进行说明,但本申请实施例并不仅限于此,对看视频、听书、玩游戏或通话等任何使用到耳机的场景均适用。
图8(a)为本申请保护用户听力的方法再一个实施例的流程图,如图8(a)所示,上述保护用户听力的方法可以包括:
步骤801,电子设备开启听力保护模式。
具体地,电子设备可以检测使用上述电子设备的用户在电子设备的界面上进行的点击、长按或其他操作,或者上述用户通过语音输入的操作信息,然后响应于上述操作信息,开启上述电子设备的听力保护模式。
在电子设备开启听力保护模式之后,电子设备可以获取并保存上述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
其中,上述瞬时声压超标保护操作可以包括:关闭播放、降低音量或用户设定的其他操作,本实施例对上述瞬时声压超标保护操作的具体操作不作限定;
上述声剂量超标保护操作可以包括:提醒用户暂停使用耳机模式以避免听力受 损,并建议用户休息X小时后再使用耳机模式,并执行关闭播放、降低音量、或用户设定的其他选项操作。
步骤802,获取上述电子设备当前的声音输出模式。
具体地,电子设备可以根据音频通路当前寄存器或参数数据获取上述电子设备当前的声音输出模式,如果上述电子设备当前的声音输出模式为喇叭或听筒,则电子设备自动关闭听力保护功能并提示用户当前为非耳机模式;如果上述电子设备当前的声音输出模式为耳机输出,则电子设备正常切入听力保护模式,获取当前帧音源数据。
步骤803,获取当前帧音源数据。
具体地,电子设备可以根据算法预制的帧长T,取一帧音源数据作为输入进行分析。
步骤804,根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压。
具体地,图8(b)为本申请保护用户听力的方法中获取耳机输出的声压的一个实施例的流程图,如图8(b)所示,步骤804可以包括:
步骤8041,获取一帧音源数据A后,首先获取上述耳机当前的使用场景,读取当前使用场景下电子设备设置的音量等级参数,根据当前使用音量获取音量增益大小C 1,得到音源数据A*C 1
步骤8042,读取当前使用场景下的音效参数,对输入的音源数据A*C 1进行音效操作,得到输出数据Eff(A*C 1)。
步骤8043,读取后置增益C 2并进行增益操作,得到输出Eff(A*C 1)*C 2
步骤8044,数字信号输入Eff(A*C 1)*C 2,经过音频编解码器(Codec)增益C 3,获得输出Eff(A*C 1)*C 2*C 3,其中,Eff(A*C 1)*C 2*C 3即为输出到上述电子设备的耳机接口处的数字信号值。
步骤8045,将Eff(A*C 1)*C 2*C 3乘以Codec输出到耳机的数电转换增益值C ce(预先测试确定),获得输出到上述耳机接口处的电压值Eff(A*C 1)*C 2*C 3*C ce
步骤8046,根据上述电压值和上述耳机的电声转换系数H e2a(f),得到上述电子设备连接的耳机输出的声压p A=[Eff(A*C 1)*C 2*C 3*C ce]**H e2a,其中,**代表频域相乘。
步骤805,将上述电子设备连接的耳机输出的声压与预定的声压阈值进行对比。如果上述声压大于预定的声压阈值,则执行步骤806;如果上述声压小于或等于预定的声压阈值,则执行步骤807。
步骤806,进行瞬时声压超标预警和瞬时声压超标保护操作。然后执行步骤807。
其中,上述瞬时声压超标保护操作可以是使用上述电子设备的用户预先设定的,上述瞬时声压超标保护操作可以包括:关闭音乐播放、降低音量或用户设定的其他操作,本实施例对上述瞬时声压超标保护操作的具体操作不作限定。
步骤807,存储当前声压数据。
具体地,将当前声压数据作为历史数据存入存储器中。
步骤808,根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量。
具体地,可以根据存储器中保存的声压的历史数据及声剂量计算方法,计算截 至当前时刻累积产生的声剂量。
步骤809,将上述声剂量与预定的声剂量标准值进行对比。然后执行步骤810。
其中,上述预定的声剂量标准值可以是国际标准或国内标准规定的声剂量标准值,也可以是用户自定义的声剂量标准值。
步骤810,如果上述声剂量大于上述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
其中,上述声剂量超标保护操作可以是使用上述电子设备的用户预先设定的,上述声剂量超标保护操作可以包括:提醒用户暂停使用耳机模式以避免听力受损,并建议用户休息X小时后再使用耳机听音乐操作,并执行关闭播放、降低音量、或用户设定的其他选项操作。
进一步地,步骤809之后,如果上述声剂量小于或等于上述预定的声剂量标准值,或者上述声剂量大于上述预定的声剂量标准值但用户强制电子设备继续播放,则电子设备继续播放下一帧音源数据,返回执行步骤801;如果上述声剂量大于上述预定的声剂量标准值并且用户选择关闭音乐播放,则本次流程结束;另外,当上述用户正常使用完终端设备拔出耳机或关闭播放时,听力保护模式自动退出。
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。
本申请实施例提供的保护用户听力的方法稍经修改,可以预估手机、智能音箱、智能大屏在使用喇叭器件播放音乐或视频时空间声场的声压分布情况。不同点在于,本申请实施例为使用耳机,需要建立电子设备输出电信号到耳机输出声压的电声转换系数。而用于手机、智能音箱、智能大屏在使用喇叭器件播放对外界声场预估时,需要建立电信号到外界声场空间各点处的电声转换系数。
图9为本申请保护用户听力的装置一个实施例的结构示意图,如图6所示,上述保护用户听力的装置90可以包括:获取模块91、对比模块92和保护模块93;应当理解的是,保护用户听力的装置90可以对应于图11所示的电子设备900。其中,获取模块91、对比模块92和保护模块93的功能可以由图11所示的电子设备900中的处理器910实现。
其中,获取模块91,用于在电子设备开启听力保护模式之后,当上述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;以及根据当前帧音源数据,获取上述电子设备连接的耳机输出的声压;
对比模块92,用于将上述声压与预定的声压阈值进行对比;
保护模块93,用于当上述声压大于上述预定的声压阈值时,进行瞬时声压超标预警和瞬时声压超标保护操作。
图9所示实施例提供的保护用户听力的装置90可用于执行本申请图2所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图10为本申请保护用户听力的装置另一个实施例的结构示意图,与图9所示的保护用户听力的装置90相比,不同之处在于,图10所示的保护用户听力的装置100中,获取模块91可以包括:场景获取子模块911、电压值获取子模块912和声压获取子模块913;
其中,场景获取子模块911,用于获取上述耳机当前的使用场景;
电压值获取子模块912,用于根据上述当前帧音源数据,以及上述使用场景对应的通路上的音效改变及增益值,获取输出到上述电子设备的耳机接口处的数字信号值;根据上述数字信号值和上述电子设备的数电转换增益值获取输出到上述耳机接口处的电压值;
声压获取子模块913,用于根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压。
其中一种可能的实现方式中,保护用户听力的装置100还可以包括:保存模块94和确定模块95;
其中,保存模块94,用于在获取模块91获取上述电子设备连接的耳机输出的声压之后,保存当前帧音源数据对应的声压;
确定模块95,用于根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
对比模块92,还用于将上述声剂量与预定的声剂量标准值进行对比;
保护模块93,还用于当上述声剂量大于预定的声剂量标准值时,进行声剂量超标预警和声剂量超标保护操作。
其中一种可能的实现方式中,保护用户听力的装置100还可以包括:检测模块96和开启模块97、操作获取模块98和保存模块94;
检测模块96,用于在获取模块91获取当前帧音源数据之前,检测使用电子设备的用户的操作信息;
开启模块97,用于响应于检测模块96检测到的操作信息,开启上述电子设备的听力保护模式;
操作获取模块98,还用于获取上述用户设定的瞬时声压超标保护操作和声剂量超标保护操作;
保存模块94,用于保存获取模块91获取的瞬时声压超标保护操作和声剂量超标保护操作。
其中一种可能的实现方式中,获取模块91还可以包括:系数获取子模块914;
系数获取子模块914,用于在声压获取子模块913获取上述耳机输出的声压之前,在上述电子设备播放特制音源数据之后,获取上述电子设备的耳机接口处的电信号时域数据,并获取上述耳机输出的声信号时域数据;以及根据上述电信号时域数据和上述声信号时域数据获取上述耳机的电声转换系数。
其中一种可能的实现方式中,声压获取子模块913,具体用于将上述电压值转换为电信号频域数据,根据上述电信号频域数据和上述电声转换系数,获取声信号频域数据;以及将上述声信号频域数据转换为声信号时域数据,根据上述声信号时域数据获取上述耳机输出的声压。
应当理解的是,保护用户听力的装置100可以对应于图11所示的电子设备900。其中,获取模块91、对比模块92、保护模块93、保存模块94、确定模块95和开启模块97的功能可以由图11所示的电子设备900中的处理器910实现,开启模块97的功能可以由图11所示的电子设备900中的输入单元960实现。
图10所示实施例提供的保护用户听力的装置100可用于执行本申请图3~图7所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
应理解以上图9~图10所示的保护用户听力的装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,保护模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
图11为本申请电子设备一个实施例的结构示意图,如图11所示,上述电子设备可以包括:显示单元;一个或多个处理器;存储器;音频单路;输入单元;多个应用程序;以及一个或多个计算机程序。
其中,上述电子设备可以为移动终端(手机),智慧屏,无人机,智能网联车(Intelligent Connected Vehicle;以下简称:ICV),智能(汽)车(smart/intelligent car)或车载设备等设备。
其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行以下步骤:在电子设备开启听力保护模式之后,当电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;
根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压;
将上述声压与预定的声压阈值进行对比;
如果上述声压大于上述预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。
其中一种可能的实现方式中,上述指令被上述设备执行时,使得上述设备执行根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压的步骤包括:
获取上述耳机当前的使用场景;
根据上述当前帧音源数据,以及上述使用场景对应的通路上的音效改变及增益值,获取输出到上述电子设备的耳机接口处的数字信号值;
根据上述数字信号值和上述电子设备的数电转换增益值获取输出到上述耳机接口处的电压值;
根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压。
其中一种可能的实现方式中,上述指令被上述设备执行时,使得上述设备执行根据上述当前帧音源数据,获取上述电子设备连接的耳机输出的声压的步骤之后,还执行以下步骤:
保存上述当前帧音源数据对应的声压;
根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
将上述声剂量与预定的声剂量标准值进行对比;
如果上述声剂量大于上述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
其中一种可能的实现方式中,上述指令被上述设备执行时,使得上述设备执行获取当前帧音源数据的步骤之前,还执行以下步骤:
检测到使用电子设备的用户的操作信息;
响应于上述操作信息,开启上述电子设备的听力保护模式;
获取并保存上述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
其中一种可能的实现方式中,上述指令被上述设备执行时,使得上述设备执行根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压的步骤之前,还执行以下步骤:
在上述电子设备播放特制音源数据之后,获取上述电子设备的耳机接口处的电信号时域数据,并获取上述耳机输出的声信号时域数据;
根据上述电信号时域数据和上述声信号时域数据获取上述耳机的电声转换系数。
其中一种可能的实现方式中,上述指令被上述设备执行时,使得上述设备执行根据上述电压值和上述耳机的电声转换系数获取上述耳机输出的声压的步骤包括:
将上述电压值转换为电信号频域数据;
根据上述电信号频域数据和上述电声转换系数,获取声信号频域数据;
将上述声信号频域数据转换为声信号时域数据;
根据上述声信号时域数据获取上述耳机输出的声压。
图11所示的电子设备可以是终端设备也可以是内置于上述终端设备的电路设备。该设备可以用于执行本申请图2~图7所示实施例提供的方法中的功能/步骤。
如图11所示,电子设备900包括处理器910和收发器920。可选地,该电子设备900还可以包括存储器930。其中,处理器910、收发器920和存储器930之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器930用于存储计算机程序、听力保护算法程序代码、听力保护过程历史数据及用户自定义设置数据,该处理器910用于从该存储器930中调用并运行该计算机程序,以及对输入单元960和显示单元970传递的信息进行处理以及对音频流信号进行处理。
上述存储器930可以是只读存储器(read-only memory,ROM)、可存储静态信 息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。
可选地,电子设备900还可以包括天线940,用于将收发器920输出的无线信号发送出去。
上述处理器910可以和存储器930可以合成一个处理装置,更常见的是彼此独立的部件,处理器910用于执行存储器930中存储的程序代码来实现上述功能。具体实现时,该存储器930也可以集成在处理器910中,或者,独立于处理器910。
除此之外,为了使得电子设备900的功能更加完善,该电子设备900还可以包括输入单元960、显示单元970和音频电路980,所述音频电路980还可以包括麦克风984,上述音频电路982还可以连接耳机982等。其中,显示单元970可以包括显示屏。
其中,输入单元960与显示单元970用于与用户实现交互,其中输入单元960用于用户对听力保护功能进行启动、停止或者自定义设置。显示单元970用于显示听力保护功能的输出信息。
音频电路980用于传输及处理音频信号,实现滤波、功率放大等各种操作。耳机982可以实现电声转换,将电子设备输出的电信号转换为声信号输出到用户耳朵。
可选地,上述电子设备900还可以包括电源950,用于给终端设备中的各种器件或电路提供电源。
应理解,图11所示的电子设备900能够实现本申请图2~图7所示实施例提供的方法的各个过程。电子设备900中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见本申请图2~图7所示方法实施例中的描述,为避免重复,此处适当省略详细描述。
应理解,图11所示的电子设备900中的处理器910可以是片上系统SOC,该处理器910中可以包括中央处理器(Central Processing Unit;以下简称:CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit;以下简称:GPU)等。
总之,处理器910内部的各部分处理器或处理单元可以共同配合实现之前的方法流程,且各部分处理器或处理单元相应的软件程序可存储在存储器930中。
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图2~图7所示实施例提供的方法。
以上各实施例中,涉及的处理器可以例如包括CPU、DSP、微控制器或数字信 号处理器,还可包括GPU、嵌入式神经网络处理器(Neural-network Process Units;以下简称:NPU)和图像信号处理器(Image Signal Processing;以下简称:ISP),该处理器还可包括必要的硬件加速器或逻辑处理硬件电路,如ASIC,或一个或多个用于控制本申请技术方案程序执行的集成电路等。此外,处理器可以具有操作一个或多个软件程序的功能,软件程序可以存储在存储介质中。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图7所示实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图7所示实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (19)

  1. 一种保护用户听力的方法,其特征在于,包括:
    在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;
    根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;
    将所述声压与预定的声压阈值进行对比;
    如果所述声压大于所述预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压包括:
    获取所述耳机当前的使用场景;
    根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;
    根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
    根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压之后,还包括:
    保存所述当前帧音源数据对应的声压;
    根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
    将所述声剂量与预定的声剂量标准值进行对比;
    如果所述声剂量大于所述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
  4. 根据权利要求1或2所述的方法,其特征在于,所述获取当前帧音源数据之前,还包括:
    检测到使用电子设备的用户的操作信息;
    响应于所述操作信息,开启所述电子设备的听力保护模式;
    获取并保存所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压之前,还包括:
    在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;
    根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
  6. 根据权利要求2或5所述的方法,其特征在于,所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压包括:
    将所述电压值转换为电信号频域数据;
    根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;
    将所述声信号频域数据转换为声信号时域数据;
    根据所述声信号时域数据获取所述耳机输出的声压。
  7. 一种保护用户听力的装置,其特征在于,包括:
    获取模块,用于在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;以及根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;
    对比模块,用于将所述声压与预定的声压阈值进行对比;
    保护模块,用于当所述声压大于所述预定的声压阈值时,进行瞬时声压超标预警和瞬时声压超标保护操作。
  8. 根据权利要求7所述的装置,其特征在于,所述获取模块包括:
    场景获取子模块,用于获取所述耳机当前的使用场景;
    电压值获取子模块,用于根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
    声压获取子模块,用于根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
  9. 根据权利要求7或8所述的装置,其特征在于,还包括:
    保存模块,用于在所述获取模块获取所述电子设备连接的耳机输出的声压之后,保存所述当前帧音源数据对应的声压;
    确定模块,用于根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
    所述对比模块,还用于将所述声剂量与预定的声剂量标准值进行对比;
    所述保护模块,还用于当所述声剂量大于所述预定的声剂量标准值时,进行声剂量超标预警和声剂量超标保护操作。
  10. 根据权利要求7或8所述的装置,其特征在于,还包括:
    检测模块,用于在所述获取模块获取当前帧音源数据之前,检测使用电子设备的用户的操作信息;
    开启模块,用于响应于所述检测模块检测到的操作信息,开启所述电子设备的听力保护模式;
    操作获取模块,用于获取所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作;
    保存模块,用于保存所述获取模块获取的瞬时声压超标保护操作和声剂量超标保护操作。
  11. 根据权利要求8所述的装置,其特征在于,所述获取模块还包括:
    系数获取子模块,用于在所述声压获取子模块获取所述耳机输出的声压之前,在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;以及根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
  12. 根据权利要求8或11所述的装置,其特征在于,
    所述声压获取子模块,具体用于将所述电压值转换为电信号频域数据,根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;以及将所述声信号频域数据转换为声信号时域数据,根据所述声信号时域数据获取所述耳机输出的声压。
  13. 一种电子设备,其特征在于,包括:
    显示单元;一个或多个处理器;存储器;音频单路;输入单元;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行以下步骤:
    在电子设备开启听力保护模式之后,当所述电子设备当前的声音输出模式为耳机输出时,获取当前帧音源数据;
    根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压;
    将所述声压与预定的声压阈值进行对比;
    如果所述声压大于所述预定的声压阈值,则进行瞬时声压超标预警和瞬时声压超标保护操作。
  14. 根据权利要求13所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压的步骤包括:
    获取所述耳机当前的使用场景;
    根据所述当前帧音源数据,以及所述使用场景对应的通路上的音效改变及增益值,获取输出到所述电子设备的耳机接口处的数字信号值;
    根据所述数字信号值和所述电子设备的数电转换增益值获取输出到所述耳机接口处的电压值;
    根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压。
  15. 根据权利要求13或14所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述根据所述当前帧音源数据,获取所述电子设备连接的耳机输出的声压的步骤之后,还执行以下步骤:
    保存所述当前帧音源数据对应的声压;
    根据保存的声压的历史数据,确定截至当前时刻累积产生的声剂量;
    将所述声剂量与预定的声剂量标准值进行对比;
    如果所述声剂量大于所述预定的声剂量标准值,则进行声剂量超标预警和声剂量超标保护操作。
  16. 根据权利要求13或14所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述获取当前帧音源数据的步骤之前,还执行以下步骤:
    检测到使用电子设备的用户的操作信息;
    响应于所述操作信息,开启所述电子设备的听力保护模式;
    获取并保存所述用户设定的瞬时声压超标保护操作和声剂量超标保护操作。
  17. 根据权利要求14所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压的步骤之前,还执行以下步骤:
    在所述电子设备播放特制音源数据之后,获取所述电子设备的耳机接口处的电信号时域数据,并获取所述耳机输出的声信号时域数据;
    根据所述电信号时域数据和所述声信号时域数据获取所述耳机的电声转换系数。
  18. 根据权利要求14或17所述的电子设备,其特征在于,所述指令被所述设备执行时,使得所述设备执行所述根据所述电压值和所述耳机的电声转换系数获取所述耳机输出的声压的步骤包括:
    将所述电压值转换为电信号频域数据;
    根据所述电信号频域数据和所述电声转换系数,获取声信号频域数据;
    将所述声信号频域数据转换为声信号时域数据;
    根据所述声信号时域数据获取所述耳机输出的声压。
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-6任一项所述的方法。
PCT/CN2020/128073 2019-12-11 2020-11-11 保护用户听力的方法、装置和电子设备 WO2021115006A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
AU2020402822A AU2020402822B2 (en) 2019-12-11 2020-11-11 User hearing protection method, apparatus, and electronic device
US17/779,149 US20220417658A1 (en) 2019-12-11 2020-11-11 User hearing protection method, apparatus, and electronic device
EP20898439.3A EP4047469A4 (en) 2019-12-11 2020-11-11 METHOD AND APPARATUS FOR PROTECTING A USER'S HEARING, AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911265119.0A CN112947886A (zh) 2019-12-11 2019-12-11 保护用户听力的方法、装置和电子设备
CN201911265119.0 2019-12-11

Publications (1)

Publication Number Publication Date
WO2021115006A1 true WO2021115006A1 (zh) 2021-06-17

Family

ID=76226311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128073 WO2021115006A1 (zh) 2019-12-11 2020-11-11 保护用户听力的方法、装置和电子设备

Country Status (5)

Country Link
US (1) US20220417658A1 (zh)
EP (1) EP4047469A4 (zh)
CN (1) CN112947886A (zh)
AU (1) AU2020402822B2 (zh)
WO (1) WO2021115006A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938795A (zh) * 2021-09-10 2022-01-14 深圳市飞科笛系统开发有限公司 调节耳机音量的方法、装置、耳机及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905303B (zh) * 2021-10-11 2024-04-09 上海物骐微电子有限公司 听力损伤预警方法、存储介质及音频设备
CN114245268A (zh) * 2021-11-01 2022-03-25 深圳市飞科笛系统开发有限公司 一种音量控制的方法、系统及智能耳机
CN114025276B (zh) * 2021-11-29 2023-08-22 深圳市大十未来科技有限公司 一种可保护听力的音频装置输出能量控制方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819451A (zh) * 2005-12-28 2006-08-16 英保达资讯(天津)有限公司 一种基于媒体播放器通过调节音量保护听力的方法
CN101060724A (zh) * 2007-04-25 2007-10-24 比特联创电子(北京)有限公司 避免音频设备损害听力的方法及用该方法制成的电声装置
CN101060314A (zh) * 2006-04-19 2007-10-24 鸿富锦精密工业(深圳)有限公司 保护听力的方法及声音输出装置
CN108834020A (zh) * 2018-07-17 2018-11-16 苏州科技大学 一种保护耳朵听力的音量调节方法和系统

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7003123B2 (en) * 2001-06-27 2006-02-21 International Business Machines Corp. Volume regulating and monitoring system
US20070281762A1 (en) * 2006-05-31 2007-12-06 Motorola, Inc. Signal routing to a communication accessory based on device activation
KR20100069737A (ko) * 2008-12-17 2010-06-25 삼성전자주식회사 오디오 신호 제어 방법 및 장치
NL2009348C2 (en) * 2012-08-23 2014-02-25 Dynamic Ear Company B V Audio listening device and method of audio playback.
US9524731B2 (en) * 2014-04-08 2016-12-20 Doppler Labs, Inc. Active acoustic filter with location-based filter characteristics
WO2016115622A1 (en) * 2015-01-22 2016-07-28 Eers Global Technologies Inc. Active hearing protection device and method therefore
GB2537646B (en) * 2015-04-22 2018-03-28 Elaratek Ltd Monitoring acoustic energy of headset
US9848269B2 (en) * 2015-12-29 2017-12-19 International Business Machines Corporation Predicting harmful noise events and implementing corrective actions prior to noise induced hearing loss
US10251001B2 (en) * 2016-01-13 2019-04-02 Bitwave Pte Ltd Integrated personal amplifier system with howling control
CN107197403B (zh) * 2016-03-15 2021-03-16 中兴通讯股份有限公司 一种终端音频参数管理方法、装置及系统
US9980028B2 (en) * 2016-06-22 2018-05-22 Plantronics, Inc. Sound exposure limiter
CN106502618B (zh) * 2016-10-21 2020-10-13 深圳市冠旭电子股份有限公司 一种听力保护方法及装置
CN113865697A (zh) * 2017-02-10 2021-12-31 霍尼韦尔国际公司 可通信地耦合的噪声监测与标测设备的分布式网络
CN108989931B (zh) * 2018-06-19 2020-10-09 美特科技(苏州)有限公司 听力保护耳机及其听力保护方法、计算机可读存储介质
CN110460927A (zh) * 2019-08-01 2019-11-15 深圳市康宸电子科技有限公司 一种基于dsp的3d游戏蓝牙耳机及处理方法
US11388502B1 (en) * 2022-03-03 2022-07-12 Strand Industries, LLC In-ear device with personalized aesthetics

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819451A (zh) * 2005-12-28 2006-08-16 英保达资讯(天津)有限公司 一种基于媒体播放器通过调节音量保护听力的方法
CN101060314A (zh) * 2006-04-19 2007-10-24 鸿富锦精密工业(深圳)有限公司 保护听力的方法及声音输出装置
CN101060724A (zh) * 2007-04-25 2007-10-24 比特联创电子(北京)有限公司 避免音频设备损害听力的方法及用该方法制成的电声装置
CN108834020A (zh) * 2018-07-17 2018-11-16 苏州科技大学 一种保护耳朵听力的音量调节方法和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938795A (zh) * 2021-09-10 2022-01-14 深圳市飞科笛系统开发有限公司 调节耳机音量的方法、装置、耳机及存储介质
CN113938795B (zh) * 2021-09-10 2024-01-12 深圳市飞科笛系统开发有限公司 调节耳机音量的方法、装置、耳机及存储介质

Also Published As

Publication number Publication date
AU2020402822A1 (en) 2022-06-02
AU2020402822B2 (en) 2023-10-05
EP4047469A1 (en) 2022-08-24
CN112947886A (zh) 2021-06-11
US20220417658A1 (en) 2022-12-29
EP4047469A4 (en) 2022-12-21

Similar Documents

Publication Publication Date Title
WO2021115006A1 (zh) 保护用户听力的方法、装置和电子设备
CN102172044B (zh) 音频输出的控制方法及设备
JP6505252B2 (ja) 音声信号を処理するための方法及び装置
TWI575964B (zh) 用於智慧音量曝露且整合揚聲器之聲壓感測器
KR102595050B1 (ko) 환경 및 종합 음향 선량측정
WO2019033987A1 (zh) 提示方法、装置、存储介质及终端
US11818554B2 (en) Headset playback acoustic dosimetry
KR20090113162A (ko) 모바일 단말기의 청력 검사 방법 및 장치
KR101659410B1 (ko) 개인사용 스마트기기와 이어폰 조합의 사운드최적화 장치 및 방법
US20190141462A1 (en) System and method for performing an audiometric test and calibrating a hearing aid
US11456006B2 (en) System and method for determining audio output device type
CN111800699B (zh) 音量调节提示方法、装置、耳机设备及存储介质
KR102110515B1 (ko) 음향 광고 또는 음향 데이터를 재생하는 보청기
CN108270913B (zh) 一种移动终端及听力保护方法
US20200278832A1 (en) Voice activation for computing devices
CN108810787B (zh) 基于音频设备的异物检测方法和装置、终端
CN106293607B (zh) 自动切换音频输出模式的方法及系统
WO2023160286A1 (zh) 降噪参数适配方法和装置
WO2022254834A1 (ja) 信号処理装置、信号処理方法およびプログラム
KR20180015333A (ko) 헤드폰 또는 이어폰 음상정위를 위한 좌우출력 자동조절 장치 및 방법
CN113993037A (zh) 音频控制方法、系统、电子设备和介质
TW201621889A (zh) 音訊處理方法

Legal Events

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

Ref document number: 20898439

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020898439

Country of ref document: EP

Effective date: 20220518

ENP Entry into the national phase

Ref document number: 2020402822

Country of ref document: AU

Date of ref document: 20201111

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE