CN117278668A - Hearing protection method and device in hand-held hands-free mode switching process - Google Patents

Hearing protection method and device in hand-held hands-free mode switching process Download PDF

Info

Publication number
CN117278668A
CN117278668A CN202311212973.7A CN202311212973A CN117278668A CN 117278668 A CN117278668 A CN 117278668A CN 202311212973 A CN202311212973 A CN 202311212973A CN 117278668 A CN117278668 A CN 117278668A
Authority
CN
China
Prior art keywords
voice playing
playing device
function
volume
loudspeaker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311212973.7A
Other languages
Chinese (zh)
Inventor
叶磊
张留帅
周厚杰
张森
程黎辉
关亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Longqi Intelligent Technology Co ltd
Original Assignee
Shanghai Longqi Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Longqi Intelligent Technology Co ltd filed Critical Shanghai Longqi Intelligent Technology Co ltd
Priority to CN202311212973.7A priority Critical patent/CN117278668A/en
Publication of CN117278668A publication Critical patent/CN117278668A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a hearing protection method and equipment in the switching process of a hand-held hands-free mode, which realize the function that when a voice playing device is shielded, the playing volume of the voice playing device under the function of a loudspeaker needs to be reduced in a short time; and the playing volume of the voice playing device under the function of the loudspeaker can be automatically and gradually recovered. Therefore, when the mobile equipment is communicated from the handheld mode and is suddenly cut to the hands-free mode by mistake, the playing volume of the voice playing device under the function of the loudspeaker can be limited, so that the playing volume is prevented from being overlarge, the playing volume in the hands-free mode is ensured not to be suddenly increased, the playing volume of the voice playing device under the function of the loudspeaker can be gradually increased, and the time is adapted to the ears of a user.

Description

Hearing protection method and device in hand-held hands-free mode switching process
Technical Field
The invention relates to a hearing protection method and equipment in a hand-held hands-free mode switching process.
Background
When a mobile phone, a tablet and the like are designed to be double-speaker, a receiver on the mobile device has a speaker function at the same time, and a high-pass platform and an MTK platform are generally adopted for selection, and other platforms such as a display platform cannot meet the Sop0289 authentication requirement in a stereo project. Because the display platform does not support the direct switching between the hands-free mode and the handheld mode without hanging up the phone during the real network call and the software call. If the switching is forced, the volume of the prompt of the receiver used as the loudspeaker is suddenly increased, and the hearing of the user is damaged.
Disclosure of Invention
It is an object of the present invention to provide a hearing protection method and device during hand-held hands-free mode switching.
According to one aspect of the present invention there is provided a method of hearing protection during hand-held hands-free mode switching, the method comprising:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
Further, in the above method, reducing the playing volume of the voice playing device in the speaker mode includes:
starting a Ramp algorithm module stored in an xml file in a Thread running system;
reading a volume adjustment percentage parameter from the Ramp algorithm module;
calculating a target volume value to be reduced according to the read volume adjustment percentage parameter;
issuing the target volume value to a HAL layer of the mobile device;
the HAL layer provides an interface for FW firmware layer call of the mobile device;
the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer;
and the DSP digital signal processing module is used for controlling the playing volume of the voice playing device in the loudspeaker mode based on the target volume value.
Further, in the above method, reading the volume adjustment percentage parameter from the Ramp algorithm module includes:
and reading the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types and use scenes of the mobile equipment.
Further, in the above method, monitoring, by a distance sensor of the mobile device, whether the voice playing device is blocked includes:
and when the distance between the object in front of the voice playing device and the earphone is monitored by the distance sensor of the mobile equipment to be smaller than a preset threshold value, judging that the voice playing device is shielded.
According to another aspect of the invention there is also provided a hearing protection device during hand-held hands-free mode switching, wherein the device comprises:
a monitoring device for converting the voice playing device on the mobile device from the receiver function to the speaker function when the hand-held communication mode is switched to the hands-free communication mode, monitoring whether the voice playing device is blocked by a distance sensor of the mobile device,
the control device is used for reducing the playing volume of the voice playing device under the function of the loudspeaker if the voice playing device is monitored to be shielded; gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
Further, in the above device, the control device is configured to start a Ramp algorithm module stored in an xml file in the Thread running system; reading a volume adjustment percentage parameter from the Ramp algorithm module; calculating a target volume value to be reduced according to the read volume adjustment percentage parameter; issuing the target volume value to a HAL layer of the mobile device; the HAL layer provides an interface for FW firmware layer call of the mobile device; the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer; and the DSP digital signal processing module controls the playing volume of the voice playing device in the loudspeaker mode based on the target volume value.
Further, in the above device, the control device is configured to read the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types and usage scenarios of the mobile device.
Further, in the above device, the monitoring device is configured to determine that the voice playing device is blocked when the distance between the object in front of the voice playing device and the voice playing device is monitored by the distance sensor of the mobile device to be smaller than a preset threshold.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
when the mobile device acquires that the hand-held communication mode is switched to the hands-free communication mode, the distance sensor of the mobile device monitors whether the receiver is blocked,
if the receiver is monitored to be shielded, reducing the prompting volume of the conversation mode switching of the receiver;
and gradually recovering the playing volume of the earphone after the preset time period.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
when the mobile device acquires that the hand-held communication mode is switched to the hands-free communication mode, the distance sensor of the mobile device monitors whether the receiver is blocked,
if the receiver is monitored to be shielded, reducing the prompting volume of the conversation mode switching of the receiver;
and gradually recovering the playing volume of the earphone after the preset time period.
Compared with the prior art, the invention realizes the function that when the voice playing device is shielded, the playing volume of the voice playing device under the function of the loudspeaker needs to reduce the gain for a short time; and the playing volume of the voice playing device under the function of the loudspeaker can be automatically and gradually recovered. Therefore, when the mobile equipment is communicated from the handheld mode and is suddenly switched to the hands-free mode by mistake, the invention can limit the playing volume of the voice playing device under the function of the loudspeaker so as to prevent the playing volume from being overlarge, ensure that the playing volume of the hands-free mode cannot be suddenly increased, and can gradually increase the playing volume of the voice playing device under the function of the loudspeaker so as to adapt to the time for the ears of a user. When the earphone of the mobile equipment such as the mobile phone is clung to the ear, the mobile equipment such as the mobile phone can detect and identify, and under the condition of hands-free mode switching, the playing volume of the voice playing device under the function of the loudspeaker is automatically reduced, for example, the 20DB gain is reduced, so that the playing volume can not damage the hearing of a user.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic diagram of a hearing protection method during hands-free mode switching according to an embodiment of the present invention;
fig. 2 is a flow chart of a hearing protection method during hands-free mode switching according to an embodiment of the present invention.
The same or similar reference numbers in the drawings refer to the same or similar parts.
Detailed Description
The invention is described in further detail below with reference to the accompanying drawings.
In one typical configuration of the present application, the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
The invention provides a hearing protection method in a hands-free mode switching process, which comprises the following steps:
step S1, when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
the mobile device may be a mobile device such as a mobile phone or a tablet;
in the hand-held communication mode, the voice is output through the receiver function of the voice playing device; in the hands-free call mode, the voice is output through the speaker function of the voice playing device.
The voice playing device can be arranged at the upper part of the mobile equipment, for example, the top end of the front surface of the mobile phone, and the voice playing device is arranged near the ear when in a handheld call mode;
the voice playing device provided by the invention has the functions of the receiver and the loudspeaker, and can meet different requirements of a hand-held call mode and a hands-free call mode. The earpiece function and the speaker function of the voice playing apparatus of the present invention may be implemented in software and/or hardware, for example, the earpiece and speaker hardware may be integrated into the same voice playing apparatus.
In addition, the mobile device can also adopt double speakers, and besides one speaker is arranged in the voice playing device at the upper part of the mobile device, the other speaker can be arranged at the bottom or the side surface of the mobile device, so that a better voice output effect can be obtained.
The voice communication equipment can register the PSensor distance sensor and the monitor when the system is started, monitors the PSensor state change through the monitor, monitors whether the receiver is shielded, and indicates that the ears of a user can be close to the voice playing device when the receiver is shielded, and the volume of the prompting sound needs to be reduced to avoid damaging the ears;
step S2, if the voice playing device is monitored to be shielded, the playing volume of the voice playing device under the function of a loudspeaker is reduced;
in order to avoid the excessive volume of the voice playing device under the function of the loudspeaker when the hand-held call mode is switched to the hands-free call mode, the prompting volume can be reduced, and the damage to ears is avoided
Step S3, gradually recovering the playing volume of the voice playing device under the function of a loudspeaker.
Here, when the hands-free call mode is switched, the distance between the ear of the user and the voice playing device is generally greater than the preset safety distance, and the playing volume of the voice playing device under the speaker function can be gradually restored, for example, after the preset time, the playing volume of the voice playing device under the speaker function is gradually restored; or gradually recovering the playing volume of the voice playing device under the function of the loudspeaker in the preset time so as to ensure that the user normally uses the mobile device to conduct the conversation under the hands-free mode.
The invention realizes the function that when the voice playing device is shielded, the playing volume of the voice playing device under the function of the loudspeaker needs to reduce the gain for a short time; and the playing volume of the voice playing device under the function of the loudspeaker can be automatically and gradually recovered. Therefore, when the mobile equipment is communicated from the handheld mode and is suddenly switched to the hands-free mode by mistake, the invention can limit the playing volume of the voice playing device under the function of the loudspeaker so as to prevent the playing volume from being overlarge, ensure that the playing volume of the hands-free mode cannot be suddenly increased, and can gradually increase the playing volume of the voice playing device under the function of the loudspeaker so as to adapt to the time for the ears of a user. When the earphone of the mobile equipment such as the mobile phone is clung to the ear, the mobile equipment such as the mobile phone can detect and identify, and under the condition of hands-free mode switching, the playing volume of the voice playing device under the function of the loudspeaker is automatically reduced, for example, the 20DB gain is reduced, so that the playing volume can not damage the hearing of a user.
As shown in fig. 1, in an embodiment of a hearing protection method in a hands-free mode switching process of the present invention, step S2 of reducing a playing volume of a voice playing device in a speaker mode includes:
step S21, audioServic and audioPolicymanager: starting a Ramp algorithm module stored in an xml file in a Thread running system;
when the service is started, the Ramp algorithm module stored in the xml file in the system can be analyzed, and a Thread is started to run the Ramp algorithm module;
the Ramp algorithm module may be implemented at the frame layer, which will primarily take an adjustable gain control and may be invoked by most scenarios.
The start (audiopolicy manager apm) function may be used to call the ramp interface, and there may be a structural parameter in the ramp algorithm module that controls variables such as ramp slope (normal level of increasing volume in a fixed time).
S22, reading a volume adjustment percentage parameter from a Ramp algorithm module;
step S23, rampThead, calculating a target volume value to be reduced according to the read volume adjustment percentage parameter;
here, a specific volume gain value to be attenuated can be calculated according to the volume adjustment percentage parameter in the Ramp algorithm module;
step S24, audioFlinger, namely, issuing the target volume value to a HAL layer of the mobile equipment;
here, the call condition ramp part needs to modify the DSP part, and the AudioFlinger can issue the sound volume parameter to the HAL, and the DSP can control the Voice/VoWiFi volume according to the target volume value issued by the HAL layer;
step S25, a HAL layer provides an interface for FW firmware layer call of the mobile device;
step S26, the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer;
and step S26, the DSP digital signal processing module controls the playing volume of the voice playing device in the loudspeaker mode based on the target volume value.
In an embodiment of a hearing protection method in a hands-free mode switching process of the present invention, step S22, reading a volume adjustment percentage parameter from a Ramp algorithm module, includes:
and reading the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types and use scenes of the mobile equipment.
The use scenario may be, for example, a conversation hands-free scenario, a music-listening hands-free scenario, or the like.
Different volume adjustment percentage parameters can be set for different types and usage scenarios of the mobile device to ensure more accurate volume to be reduced later and more comfortable ears of the user.
In an embodiment of the hearing protection method in the hands-free mode switching process of the present invention, step S1, monitoring whether the voice playing device is blocked or not through a distance sensor of a mobile device, includes:
when the distance between an object in front of the voice playing device and the voice playing device is monitored by the distance sensor of the mobile equipment to be smaller than a preset threshold value, judging that the voice playing device is shielded.
The invention realizes the function that the playing volume of the voice playing device under the function of the loudspeaker needs to reduce the gain for a short time when the distance sensor is shielded; and it is realized that the playing volume of the voice playing device under the function of the loudspeaker can be automatically and gradually restored if the distance sensor is triggered or shielded for more than 5 s.
As shown in fig. 2, when the user's ear or palm is close to the distance sensor p-sensor of the phone by 2cm or less, the p-sensor is triggered and the timer is synchronized (processtypeeventdistance= 5.000000). The system client sets two modes of the new ramp:
1.need ramp=true;
2. delay 5S sets the need ramp=false.
When triggering a Notification scene that the mobile device acquires that the handheld call mode is switched to the hands-free call mode, the system detects whether the new mode is true or not, and the system detects that Y is true, so that the original sound gain is maintained. The detection is N, false, and the cue sound drops to 6db at the original gain. Preventing sudden prompt tone from damaging hearing to achieve the aim of protecting the hearing of a user.
According to another aspect of the invention there is also provided a hearing protection device during hands-free mode switching, wherein the device comprises:
a monitoring device for converting the voice playing device on the mobile device from the receiver function to the speaker function when the hand-held communication mode is switched to the hands-free communication mode, monitoring whether the voice playing device is blocked by a distance sensor of the mobile device,
the control device is used for reducing the playing volume of the voice playing device under the function of the loudspeaker if the voice playing device is monitored to be shielded; gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
Further, in the above device, the control device is configured to start a Ramp algorithm module stored in an xml file in the Thread running system; reading a volume adjustment percentage parameter from the Ramp algorithm module; calculating a target volume value to be reduced according to the read volume adjustment percentage parameter; issuing the target volume value to a HAL layer of the mobile device; the HAL layer provides an interface for FW firmware layer call of the mobile device; the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer; and the DSP digital signal processing module controls the playing volume of the voice playing device in the loudspeaker mode based on the target volume value.
Further, in the above device, the control device is configured to read the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types and usage scenarios of the mobile device.
Further, in the above device, the monitoring device is configured to determine that the voice playing device is blocked when the distance between the object in front of the voice playing device and the voice playing device is monitored by the distance sensor of the mobile device to be smaller than a preset threshold.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to perform operations comprising:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
Compared with the prior art, the invention realizes the function that when the voice playing device is shielded, the playing volume of the voice playing device under the function of the loudspeaker needs to reduce the gain for a short time; and the playing volume of the voice playing device under the function of the loudspeaker can be automatically and gradually recovered. Therefore, when the mobile equipment is communicated from the handheld mode and is suddenly switched to the hands-free mode by mistake, the invention can limit the playing volume of the voice playing device under the function of the loudspeaker so as to prevent the playing volume from being overlarge, ensure that the playing volume of the hands-free mode cannot be suddenly increased, and can gradually increase the playing volume of the voice playing device under the function of the loudspeaker so as to adapt to the time for the ears of a user. When the earphone of the mobile equipment such as the mobile phone is clung to the ear, the mobile equipment such as the mobile phone can detect and identify, and under the condition of hands-free mode switching, the playing volume of the voice playing device under the function of the loudspeaker is automatically reduced, for example, the 20DB gain is reduced, so that the playing volume can not damage the hearing of a user.
Details of each device and storage medium embodiment of the present invention may refer to corresponding parts of each method embodiment, and are not described herein.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.
It should be noted that the present invention may be implemented in software and/or a combination of software and hardware, e.g., using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to perform the steps or functions described above. Likewise, the software programs of the present invention (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
Furthermore, portions of the present invention may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present invention by way of operation of the computer. Program instructions for invoking the inventive methods may be stored in fixed or removable recording media and/or transmitted via a data stream in a broadcast or other signal bearing medium and/or stored within a working memory of a computer device operating according to the program instructions. An embodiment according to the invention comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to operate a method and/or a solution according to the embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (10)

1. A method of hearing protection during hand-held hands-free mode switching, wherein the method comprises:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
2. The method of claim 1, wherein reducing the playback volume of the voice playback device in the speaker mode comprises:
starting a Ramp algorithm module stored in an xml file in a Thread running system;
reading a volume adjustment percentage parameter from the Ramp algorithm module;
calculating a target volume value to be reduced according to the read volume adjustment percentage parameter;
issuing the target volume value to a HAL layer of the mobile device;
the HAL layer provides an interface for FW firmware layer call of the mobile device;
the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer;
and the DSP digital signal processing module controls the playing volume of the voice playing device in a loudspeaker mode based on the target volume value.
3. The method of claim 2, wherein reading the volume adjustment percentage parameter from the Ramp algorithm module comprises:
and reading the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types and use scenes of the mobile equipment.
4. The method of claim 1, wherein monitoring whether the voice playback device is occluded by a distance sensor of a mobile device comprises:
and when the distance between the object in front of the voice playing device and the earphone is monitored by the distance sensor of the mobile equipment to be smaller than a preset threshold value, judging that the voice playing device is shielded.
5. A hearing protection device during hand-held hands-free mode switching, wherein the device comprises:
a monitoring device for converting the voice playing device on the mobile device from the receiver function to the speaker function when the hand-held communication mode is switched to the hands-free communication mode, monitoring whether the voice playing device is blocked by a distance sensor of the mobile device,
the control device is used for reducing the playing volume of the voice playing device under the function of the loudspeaker if the voice playing device is monitored to be shielded; gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
6. The apparatus of claim 5, wherein the control device is configured to start a Ramp algorithm module stored in an xml file in a Thread running system; reading a volume adjustment percentage parameter from the Ramp algorithm module; calculating a target volume value to be reduced according to the read volume adjustment percentage parameter; issuing the target volume value to a HAL layer of the mobile device; the HAL layer provides an interface for FW firmware layer call of the mobile device; the FW firmware layer transmits the target volume value to a DSP digital signal processing module of the mobile equipment, namely a Kernel layer; and the DSP digital signal processing module controls the playing volume of the voice playing device in the loudspeaker mode based on the target volume value.
7. The device of claim 6, wherein the control means is configured to read the corresponding volume adjustment percentage parameter from the Ramp algorithm module according to different types of mobile devices and usage scenarios.
8. The device according to claim 1, wherein the monitoring means is configured to determine that the voice playing device is blocked when the distance between the object in front of the voice playing device and the voice playing device is monitored by the distance sensor of the mobile device to be smaller than a preset threshold.
9. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
10. A computer-readable storage medium having stored thereon computer-executable instructions, wherein execution of the computer-executable instructions by a processor causes the processor to perform operations comprising:
when the mobile equipment acquires that the hand-held call mode is switched to the hands-free call mode, the voice playing device on the mobile equipment is converted into a loudspeaker function from a receiver function, whether the voice playing device is blocked or not is monitored through a distance sensor of the mobile equipment,
if the voice playing device is monitored to be shielded, reducing the playing volume of the voice playing device under the function of a loudspeaker;
gradually restoring the playing volume of the voice playing device under the function of the loudspeaker.
CN202311212973.7A 2023-09-19 2023-09-19 Hearing protection method and device in hand-held hands-free mode switching process Pending CN117278668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311212973.7A CN117278668A (en) 2023-09-19 2023-09-19 Hearing protection method and device in hand-held hands-free mode switching process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311212973.7A CN117278668A (en) 2023-09-19 2023-09-19 Hearing protection method and device in hand-held hands-free mode switching process

Publications (1)

Publication Number Publication Date
CN117278668A true CN117278668A (en) 2023-12-22

Family

ID=89217205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311212973.7A Pending CN117278668A (en) 2023-09-19 2023-09-19 Hearing protection method and device in hand-held hands-free mode switching process

Country Status (1)

Country Link
CN (1) CN117278668A (en)

Similar Documents

Publication Publication Date Title
US11587574B2 (en) Voice processing method, apparatus, electronic device, and storage medium
US10341767B2 (en) Speaker protection excursion oversight
JP5704470B2 (en) Audio intelligibility increasing method and apparatus and computer apparatus
US9870783B2 (en) Audio signal processing
JP6564027B2 (en) Method and apparatus for controlling application program and electronic device
US20190227767A1 (en) Volume Adjustment Method and Terminal
US11638083B2 (en) Earphone abnormality processing method, earphone, system, and storage medium
US20210144463A1 (en) Method for Controlling Volume of Wireless Headset, and Computer-Readable Storage Medium
JP7290749B2 (en) Voice call method and its device, electronic equipment and computer program
WO2014061578A1 (en) Electronic device and acoustic reproduction method
US20130101125A1 (en) Acoustic Shock Prevention Apparatus
EP2996352B1 (en) Audio system and method using a loudspeaker output signal for wind noise reduction
CN107621933B (en) Audio playing method and device and related medium product
WO2017181656A1 (en) Mobile phone and method for mobile phone to intelligently adjust ringtone volume
WO2020103562A1 (en) Voice processing method and apparatus
TW201423587A (en) System and method for providing prompts for callee
JP5970125B2 (en) Control device, control method and program
CN117278668A (en) Hearing protection method and device in hand-held hands-free mode switching process
CN112383655A (en) Electronic device, sound enhancement method for electronic device, and storage medium
CN111770404A (en) Recording method, recording device, electronic equipment and readable storage medium
CN115038009B (en) Audio control method, wearable device and electronic device
US11895471B2 (en) Method for operating a device having a speaker so as to prevent unexpected audio output
CN106293607B (en) Method and system for automatically switching audio output modes
CN108605067B (en) Method for playing audio and mobile terminal
CN115022773A (en) Bluetooth device audio control method, device and storage medium

Legal Events

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