CN114095825B - Mode switching method, device, audio playing equipment and computer readable medium - Google Patents
Mode switching method, device, audio playing equipment and computer readable medium Download PDFInfo
- Publication number
- CN114095825B CN114095825B CN202111395283.0A CN202111395283A CN114095825B CN 114095825 B CN114095825 B CN 114095825B CN 202111395283 A CN202111395283 A CN 202111395283A CN 114095825 B CN114095825 B CN 114095825B
- Authority
- CN
- China
- Prior art keywords
- time interval
- mode
- target
- audio playing
- noise
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1083—Reduction of ambient noise
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
- Soundproofing, Sound Blocking, And Sound Damping (AREA)
Abstract
A mode switching method, a device, an audio playing device and a computer readable medium relate to the technical field of audio playing, and the method comprises the following steps: when a mode switching request is acquired, acquiring the target noise intensity of the current environmental noise; acquiring reference parameters; determining a target switching time interval based on the reference parameter and the target noise strength; in response to the mode switch request, the mode switch operation is completed after the target switch time interval. Because the reference parameter is set in advance based on the auditory perception of the noise intensity change of the audio playing device during the process of switching the audio playing device from the first audio playing mode to the second audio playing mode under the environment noise with the designated noise intensity, the reference parameter can be used as a reference value to play a guiding role in setting the target switching time interval, so that the switching time interval is set from the angle of the auditory perception of the user, the setting of the switching time interval is more reasonable, and the uncomfortable feeling of the user on the mode switching is reduced.
Description
Technical Field
The present application relates to the field of audio playback technologies, and in particular, to a mode switching method, a mode switching device, an audio playback apparatus, and a computer readable medium.
Background
With the development of science and technology, audio playing devices are increasingly widely used, and have more and more functions, which become a necessary requirement in daily life. The existing active noise reduction Bluetooth headset comprises a plurality of modes, and generally comprises an active noise reduction mode, a common mode, a transparent mode and the like. Currently, a fixed gradient parameter design is adopted when each mode is switched, so that the binaural experience is poor when a user switches modes by using the audio playing device.
Disclosure of Invention
The application provides a mode switching method, a mode switching device, audio playing equipment and a computer readable medium. To ameliorate the above-mentioned disadvantages.
In a first aspect, an embodiment of the present application provides a mode switching method, applied to an audio playing device, where the audio playing device has at least two different audio playing modes, and in different audio playing modes, noise reduction parameters of the audio playing device on environmental noise are different, where the method includes: when a mode switching request is acquired, acquiring the target noise intensity of the current environmental noise, wherein the mode switching request is used for requesting to switch the current first audio playing mode into a second audio playing mode; acquiring reference parameters which are preset based on auditory perception of noise intensity change of the audio playing device during the process of switching from the first audio playing mode to the second audio playing mode under the environment noise of specified noise intensity by a user; determining a target switching time interval based on the reference parameter and the target noise strength; and responding to the mode switching request, and switching the first audio playing mode to a second audio playing mode after the target switching time interval.
In a second aspect, an embodiment of the present application further provides a mode switching device, which is applied to an audio playing device, where the audio playing device has at least two different audio playing modes, and in different audio playing modes, noise reduction parameters of the audio playing device on environmental noise are different, and the mode switching device includes: the device comprises a first acquisition unit, a second acquisition unit, a determination unit and a switching unit. The first obtaining unit is used for obtaining the target noise intensity of the current environmental noise when a mode switching request is obtained, wherein the mode switching request is used for requesting to switch the current first audio playing mode to the second audio playing mode. A second acquisition unit configured to acquire a reference parameter set in advance based on auditory perception of a change in noise intensity during switching of the audio playback apparatus from the first audio playback mode to the second audio playback mode by a user under an environmental noise specifying the noise intensity. And the determining unit is used for determining a target switching time interval based on the reference parameter and the target noise intensity. And the switching unit is used for responding to the mode switching request and switching the first audio playing mode into a second audio playing mode after the target switching time interval.
In a third aspect, an embodiment of the present application further provides an audio playing device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the above-described method.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium storing program code executable by a processor, the program code when executed by the processor causing the processor to perform the above method.
In a fifth aspect, embodiments of the present application also provide a computer program product comprising a computer program/instruction, characterized in that the computer program/instruction, when executed by a processor, implements the above-mentioned method.
The mode switching method, the device, the audio playing equipment and the computer readable medium provided by the application acquire the target noise intensity of the current environment when acquiring the mode switching request for requesting to switch the current first audio playing mode into the second audio playing mode, then determine the target switching time interval based on the reference parameter and the target noise intensity, and respond to the mode switching request to finish the operation of switching the first audio playing mode into the second audio playing mode within the target switching time interval. Because the reference parameter is set in advance based on the auditory perception of the noise intensity change of the audio playing device during the process of switching the audio playing device from the first audio playing mode to the second audio playing mode under the environment noise with the designated noise intensity, the reference parameter can serve as a reference value to play a guiding role in setting the target switching time interval, so that the setting of the switching time interval can be related to the auditory perception of the noise intensity change of the two modes when the user switches, namely, the switching time interval is set from the angle of the auditory perception of the user, the setting of the switching time interval is more reasonable, and the discomfort of the user to the mode switching is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram illustrating a usage scenario of an audio playback apparatus according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for mode switching according to an embodiment of the present application;
Fig. 3 is a schematic diagram showing noise reduction sound pressure in different audio playing modes according to an embodiment of the present application;
FIG. 4 is a flow chart of a mode switching method according to another embodiment of the present application;
FIG. 5 is a flow chart of a mode switching method according to another embodiment of the present application;
FIG. 6 is a block diagram of a mode switching device according to an embodiment of the present application;
fig. 7 is a block diagram showing the structure of an audio playing device according to an embodiment of the present application;
FIG. 8 shows a block diagram of a computer-readable storage medium provided by an embodiment of the application;
fig. 9 shows a block diagram of a computer program product provided by an embodiment of the application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
With the development of science and technology, the audio playing device is more and more widely used, and has more and more functions, which has become an indispensable requirement in people's daily life, but in the process of using the audio playing device, noise can be heard often, that is, the audio except for useful audio data in the audio data that can be listened to by the user through the audio playing device can be called noise. The noise may include environmental noise, which is audio emitted by a noise source other than the audio playback device within the application scene in which the audio playback device is located.
Currently, audio playback devices have an active noise reduction function to reduce interference of external noise to users. Typical active noise reduction schemes are individual FF microphone noise reduction, individual FB microphone noise reduction, hybrid noise reduction (ff+fb).
Specifically, as shown in fig. 1, the audio playing device 100 has a plurality of audio playing modes, and in different audio playing modes, the noise reduction parameters of the audio playing device on the environmental noise are different, and when the user wears the audio playing device 100, the hearing feeling on the environmental noise is different in different audio playing modes. Illustratively, a processor is provided within the audio playback device 100 that enables switching between different modes.
The noise reduction parameter may reflect the noise reduction capability of the audio playback apparatus 100 to the environmental noise, and may be a positive gain or a negative gain, if it is a positive gain, the noise reduction parameter may reduce the environmental noise, if it is a negative gain, the noise reduction parameter may increase the environmental noise, and in addition, the noise reduction parameter may be a0 gain, that is, the noise reduction process is not performed on the environmental noise. Illustratively, the audio playing device 100 may be a headset, where the audio playing device 100 may include an active noise reduction mode, a normal mode, a pass-through mode, and the like, where the active noise reduction mode refers to an active noise reduction mode that plays a noise-canceling signal through a speaker of the audio playing device 100 and eliminates environmental noise, that is, the aforementioned active noise reduction of the environmental noise through a noise reduction microphone, where a noise reduction parameter corresponding to the active noise reduction mode is a positive gain; the normal mode refers to a mode of turning off active noise reduction, that is, the audio playing device 100 does not perform active noise reduction, where a noise reduction parameter corresponding to the normal mode is zero gain; the pass-through mode is to play the environmental sound through the earphone speaker, so that the user can hear the external environmental sound, that is, the environmental noise heard by the user is consistent with that when the audio playing device 100 is not worn, the noise reduction parameter corresponding to the pass-through mode is negative gain, that is, the audio playing device 100 strengthens the environmental noise.
Currently, when each audio playing mode of the audio playing device 100 is switched, mode switching is completed by adopting a fixed gradient parameter, where the gradient parameter includes a gradient gain and a switching time, the gradient gain is mostly switched from a noise reduction gain of one mode to a noise reduction gain of another mode, the switching time is time consuming for completing switching between two different modes, and the switching time affects the time consuming for completing the gradient gain, thereby affecting a linear function of the gradient gain.
However, the inventor found in the study that, at present, the mode switching is completed by adopting a fixed gradual change parameter, so that the problem that when the user wears the audio playing device 100 to perform mode switching, the hearing feeling is poor is easily caused, for example, in a quiet environment, the effect change is possibly small, the user perception is poor, and the user experience effect is poor is easily caused; in a noisy environment, when the mode is switched, the effect change may be larger, so that a user can hear obvious switching noise, or the switching causes abrupt change of sound, and discomfort or damage to ears are caused; the modes such as the common mode, the noise reduction mode, the transparent mode and the like are switched into fixed parameters, so that the switching effect of the noise reduction mode for switching the common mode may not be obvious, the switching effect of the transparent switching noise reduction mode may be too obvious, and the problems such as noise or discomfort of ears are caused.
Therefore, in order to overcome the above-mentioned drawbacks, the embodiments of the present application provide a mode switching method and apparatus, which are configured to set the audio playing device by the auditory sense of the noise intensity variation during the switching of the first audio playing mode to the second audio playing mode, so that the mode switching method and apparatus can be used as a reference value to guide the setting of the target switching time interval, so that the setting of the switching time interval can be related to the auditory sense of the noise intensity variation when the user switches between the two modes, i.e. the switching time interval is set from the angle of the auditory sense of the user, so that the setting of the switching time interval is more reasonable, and the discomfort of the user to the mode switching is reduced.
Specifically, referring to fig. 2, fig. 2 shows a mode switching method provided by an embodiment of the present application, where the method is applied to the above-mentioned audio playing device, and specifically, the method includes: s201 to S204.
S201: when the mode switching request is acquired, the target noise intensity of the current environmental noise is acquired.
In the embodiment of the present application, the mode switching request is used for requesting to switch the current first audio playing mode to the second audio playing mode. That is, in the case where the audio playback apparatus is currently in the first audio playback mode, if the audio playback apparatus acquires the mode switching request, if the request is responded, the current first audio playback mode needs to be switched to the second audio playback mode, so that the user can switch between different playback modes while using the audio playback apparatus.
In some embodiments, an operation key is provided on the audio playing device, through which a user can input a mode switching request, where the operation key may be a physical key or a virtual key on a touch screen, and is not limited herein; in other embodiments, the audio playing device is provided with a microphone, and the user can input a mode switching request in a voice manner, for example, the user inputs a voice of 'switching to XX mode', and the 'XX' can be input by the user according to actual requirements; in still other embodiments, the user terminal may be connected to the audio playing device, e.g., the user terminal is connected to the audio playing device through bluetooth, and the user may input a mode switching request through a designated interface of the user terminal and send the mode switching request to the audio playing device by the user terminal.
It should be noted that, the switching between different audio playing modes corresponds to different mode switching requests, and the audio playing device can determine the audio playing mode currently requested to be switched by the user by identifying the different mode switching requests.
As an embodiment, after the audio playback apparatus monitors the mode switching request, the target noise intensity of the current environmental noise may be obtained. The audio playback device is provided with an audio pickup means, which may be a microphone, for example, which picks up the noise intensity of the current ambient noise. Specifically, the audio collecting device collects current environmental noise to obtain an environmental sound signal, and the audio playing device analyzes the collected environmental sound signal to obtain a target noise intensity corresponding to the environmental sound signal, for example, the audio collecting device may perform fast fourier transform or wavelet transform on the environmental sound signal, so as to obtain a sound pressure level of the signal, that is, the target noise intensity.
As another embodiment, an electronic device, which may be a mobile terminal, a computer, or the like, is connected to the audio playing device, and in particular, the electronic device may be the above-described user terminal. As an implementation manner, the audio playing device is provided with the audio collecting device, the audio collecting device collects current environmental noise to obtain an environmental sound signal, the environmental sound signal is sent to the electronic device, and the electronic device adopts the analysis mode to obtain the target noise intensity corresponding to the environmental sound signal and sends the target noise intensity to the audio playing device. As another implementation mode, an audio playing device is installed on the electronic device, and then the electronic device and the audio playing device are in the same environmental noise, the audio playing device of the electronic device collects the current environmental noise to obtain an environmental sound signal, and the above analysis mode is adopted to obtain a target noise intensity corresponding to the environmental sound signal and sends the target noise intensity to the audio playing device.
S202: and acquiring a reference parameter.
In an embodiment of the present application, the reference parameter is set in advance based on an auditory perception of a change in noise intensity of the audio playback apparatus during the switching from the first audio playback mode to the second audio playback mode by the user under an environmental noise of a specified noise intensity.
As an embodiment, setting the environmental noise of the reference environment as the specified noise intensity, where the reference environment may be used as a reference environment for a reference, and the auditory perception caused by the change of the noise intensity heard by the user during the switching of the first audio playing mode to the second audio playing mode under the reference environment may be used as a reference standard for measuring the auditory perception of the user. For example, if the auditory sense of the noise intensity variation in the reference environment is good, when the user performs the switching from the first audio playing mode to the second audio playing mode in the environment with other noise intensity, it is necessary to ensure that the auditory sense of the noise intensity variation in the environment with other noise intensity is also good, so that the reference parameter may be used as a reference, i.e. the reference parameter adjusts the noise intensity variation in the different noise environments during the mode switching, so that the auditory sense of the noise intensity variation by the user is consistent with or slightly different from the auditory sense of the noise intensity variation in the environmental noise with the specified noise intensity.
It should be noted that, the audio playing device has at least two different audio playing modes, so that the audio playing device may also have multiple mode switches, where each mode switch operation corresponds to one reference parameter, specifically, the reference parameter corresponding to each mode switch operation may be obtained in advance for each mode switch operation, and then, after the mode switch request is obtained, the reference parameter corresponding to the mode switch operation is searched for based on the mode switch operation corresponding to the mode switch request.
As an embodiment, the reference parameter may be an evaluation value for evaluating the auditory perception of the change of the noise intensity by the user, or may be a switching time interval during which the first audio playback mode is switched to the second audio playback mode in the environment noise including the evaluation value and the specified noise intensity.
The reference parameter may be determined by subjective auditory perception of the user, or may be obtained based on simulating the auditory perception of the user by the audiometric software, for example, the score value may be considered to be given, or may be given based on the audiometric software, which is not limited herein.
S203: a target switching time interval is determined based on the reference parameter and the target noise strength.
As shown in fig. 3, fig. 3 shows the sound pressure level of noise in different audio playback modes, and the change in the sound pressure level of noise during switching corresponding to each audio playback mode. In the coordinate axes shown in fig. 3, the abscissa is time, the ordinate is the sound pressure of noise, that is, the noise intensity, as shown in fig. 3, the sound pressure of noise corresponding to the noise reduction mode is V1, the sound pressure of noise corresponding to the normal mode is V2, the sound pressure of noise corresponding to the pass-through mode is V3, and V1 is smaller than V2, and V2 is smaller than V3.
As shown in fig. 3, the time interval between t2 and t3 is the switching time interval between normal mode and pass-through mode, the time interval between t5 and t6 is the switching time interval between pass-through mode and noise reduction mode, and the time interval between t8 and t9 is the switching time interval between noise reduction mode and normal mode. It can be seen that the magnitude of the sound pressure of the noise changes during the time interval of the mode switching, i.e. a noise intensity change is generated, which is determined by the noise intensity change value between the two modes and the switching time interval. Specifically, the noise intensity variation between the two modes determines the sound drop of the noise at the time of switching, for example, the sound pressure difference from 120dB to 80dB is different from the sound pressure difference from 120dB to 90dB, the auditory perception of the user is different, and the switching time interval determines the sound energy felt by the user in the whole switching process, for example, the sound energy is also switched from 120dB to 80dB, the user feel on the former is smoother and the feel on the latter is more abrupt compared with the sound energy consumed for 2s after 10s switching. Wherein the noise intensity variation value between the two modes depends on the noise reduction parameter between the two modes.
Thus, the noise intensity variation during the mode switching perceived by the user is determined by the noise intensity variation value between the two modes and the switching time interval. Specifically, when the switching time interval is fixed, the larger the noise intensity change is, the more obvious the switching effect is perceived, and the smaller the noise intensity change is, the weaker the switching effect is perceived; when the noise intensity change is fixed, the shorter the switching time interval is, the more obvious the switching effect is perceived, and conversely, the weaker the switching effect is. The noise heard by the user depends on the noise reduction degree in each mode and the noise size of the environment, that is, in the case that the environmental noise is certain, that is, in the same environment, the noise strength heard by the user in each mode depends on the noise reduction parameters of each mode, and the noise reduction parameters of each mode are fixed noise reduction amounts, so that the noise heard by the user depends on the noise size of the environment. The degree to which the user perceived switching effect varies depends on the ambient noise level and the time at which the effect switches, i.e. the target noise intensity and the target switching time interval.
With reference to the foregoing description, the reference parameter may be used as a reference standard for measuring the auditory sense of the user, and then the target switching time interval is set under the condition that the target noise intensity is known, so that the user can meet the reference parameter for the auditory sense of the noise intensity variation in the target switching time interval, thereby making the setting of the target switching time interval more reasonable.
As an embodiment, the reference parameter may be an evaluation value for evaluating the auditory perception of the change of the noise intensity by the user, and based on the analysis, it is known that the change degree of the switching effect perceived by the user depends on the target noise intensity and the target switching time interval, so that the evaluation value is related to the noise intensity and the switching time interval, and a functional relationship may be established between the evaluation value and the noise intensity and the switching time interval, and then, in the case that the evaluation value and the target noise intensity are known, the target switching time interval can be determined, specifically, refer to the following embodiment.
S204: and responding to the mode switching request, and completing the operation of switching the first audio playing mode to the second audio playing mode in the target switching time interval.
As an implementation manner, the first audio playing mode is switched to the second audio playing mode in a gradual manner within the target switching time interval. As shown in fig. 3, the change slope of the noise sound pressure level at the time of each mode switching is inversely related to the switching time interval, the longer the switching time interval is, the smaller the change slope is, the more stable the auditory perception of the user is, i.e., not abrupt, the shorter the switching time interval is, the larger the change slope is, the more abrupt the auditory perception of the user is, i.e., not stable.
In some embodiments, the audio playback device may play voice information for alerting the user of the current mode switching operation when the mode is switched. As shown in fig. 3, at the time interval between t1 and t2, the audio playing device plays the first voice information, the first voice information is used for prompting the switching from the normal mode to the pass-through mode, at the time interval between t4 and t5, the audio playing device plays the second voice information, the second voice information is used for prompting the switching from the pass-through mode to the noise reduction mode, at the time interval between t7 and t8, the audio playing device plays the third voice information, and the third voice information is used for prompting the switching from the noise reduction mode to the normal mode.
In the embodiment of the present application, the voice information for prompting the first audio playing mode to be switched to the second audio playing mode is specified voice information, where the specified voice information may be the first voice information, the second voice information or the third voice information. And the audio playing device responds to the mode switching request to play the appointed voice information, and finishes the operation of switching the first audio playing mode into the second audio playing mode in the target switching time interval after the appointed voice information is completely played. As an embodiment, the playing finishing time of the specified voice information is earlier than or equal to the starting time of the target switching time interval, that is, during the playing process of the specified voice information, the audio playing device is kept in the first audio playing mode, after the playing of the specified voice information is finished, the mode switching operation is performed, and the operation of switching the first audio playing mode to the second audio playing mode is completed within the target switching time interval.
As another embodiment, the playing finishing time of the specified voice information is later than the starting time of the target switching time interval, and the playing starting time of the specified voice information is earlier than the starting time of the target switching time interval, and the playing finishing time of the specified voice information is earlier than or equal to the ending time of the target switching time interval, that is, the mode switching operation starts to be performed during the playing of the specified voice information, the mode switching operation is completed when the playing of the specified voice information is finished, or the mode switching operation continues to be performed when the playing of the specified voice information is finished, and the mode switching operation is completed when the target switching time interval is finished. As still another embodiment, the play start time of the specified voice information is later than or equal to the start time of the target switching time interval, and the play end time of the specified voice information is earlier than or equal to the end time of the target switching time interval. The audio playing device responds to the mode switching request to play the appointed voice information and simultaneously execute the mode switching operation, after the appointed voice information is played, the mode switching operation is continuously executed, and the mode switching operation is completed when the target switching time interval is finished, namely, the playing of the appointed voice information and the mode switching operation are completed within the target switching time interval.
Therefore, when a mode switching request for requesting to switch the current first audio playing mode to the second audio playing mode is acquired, a target noise intensity of the current environment is acquired, then a target switching time interval is determined based on the reference parameter and the target noise intensity, and the operation of switching the first audio playing mode to the second audio playing mode is completed within the target switching time interval in response to the mode switching request. Because the reference parameter is set in advance based on the auditory perception of the noise intensity change of the audio playing device during the process of switching the audio playing device from the first audio playing mode to the second audio playing mode under the environment noise with the designated noise intensity, the reference parameter can serve as a reference value to play a guiding role in setting the target switching time interval, so that the setting of the switching time interval can be related to the auditory perception of the noise intensity change of the two modes when the user switches, namely, the switching time interval is set from the angle of the auditory perception of the user, the setting of the switching time interval is more reasonable, and the discomfort of the user to the mode switching is reduced.
Referring to fig. 4, fig. 4 shows a mode switching method according to an embodiment of the present application, where the method is applied to the above-mentioned audio playing device, and specifically includes: s401 to S406.
S401: when the mode switching request is acquired, the target noise intensity of the current environmental noise is acquired.
S402: and under the environment noise with the designated noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to be switched from the first audio playing mode to the second audio playing mode, and each time interval to be selected corresponds to one noise intensity change.
As an embodiment, in the case that the noise intensity is unchanged, different time intervals to be selected are adopted to control the audio playing device to switch from the first audio playing mode to the second audio playing mode, as can be seen from fig. 3, the sound pressure change felt by the user in the mode switching process is related to the time intervals to be selected, so each time interval to be selected corresponds to one noise intensity change, in particular, the time interval to be selected is inversely related to the abrupt degree (i.e. slope) of the noise intensity change, that is, the longer the time interval to be selected is, the lower the abrupt degree of the noise intensity change is, and the lower the time interval to be selected is, the higher the abrupt degree of the noise intensity change is.
As an embodiment, the specified noise intensity may be a maximum noise intensity, which may be determined based on statistics of noise intensities of different environments in which the user is located within a preset time period, for example, statistics of noise intensities of different environments in which the user is located within the preset time period, taking the maximum noise intensity as the maximum noise intensity. In the embodiment of the present application, the designated noise intensity may be 120dB, and the target evaluation value is denoted as Y max, and the time interval to be selected corresponding to the target evaluation value is denoted as t max.
S403: and searching a target evaluation value meeting a preset perception condition from the evaluation values of the auditory perception of the noise intensity change corresponding to each time interval to be selected by a user.
As an embodiment, under the environmental noise with the specified noise intensity, the user or the listening evaluation software evaluates the auditory perception of the noise intensity variation during the time when the audio playing device completes the switching of the first audio playing mode to the second audio playing mode by adopting different time intervals to be selected, so that each time interval to be selected corresponds to a evaluation value, and the evaluation value can reflect the comfort level of the auditory perception of the user, specifically, the evaluation value is positively correlated with the comfort level of the auditory perception of the user, that is, the higher the evaluation value, the higher the comfort level of the auditory perception of the user, the lower the evaluation value, and the lower the comfort level of the auditory perception of the user.
As an embodiment, the preset sensing condition may be that the evaluation value is greater than a preset threshold value, which may be set based on a comfort zone of auditory perception of the user. The evaluation value satisfying the preset sensing condition is, for example, the evaluation value having the largest value, that is, the largest evaluation value is found as the target evaluation value from among the evaluation values of the auditory sense of the noise intensity variation corresponding to each of the time intervals to be selected by the user.
S404: the reference parameter is determined based on the target evaluation value.
In an embodiment of the present application, the reference parameter includes a target evaluation value. Since the target evaluation value is selected for the user's comfort level of hearing perception of the change in noise intensity when performing the mode switching operation with different time intervals under the specified noise intensity, for example, the evaluation value with the highest comfort level is taken as the reference parameter, and when the target switching time interval is set based on the target evaluation value, the target switching time interval can be adjusted based on the difference between the target noise intensity and the specified noise intensity, so that the user's comfort level of hearing perception of the change in noise intensity corresponding to the target switching time interval under the target noise intensity also satisfies the comfort level corresponding to the target evaluation value.
It should be noted that the steps of S401 may be performed after S404, and the specific execution sequence is not limited herein.
S405: a target switching time interval is determined based on the reference parameter and the target noise strength.
As one embodiment, the reference parameter includes a target evaluation value, and an embodiment of S405 is to determine a target switching time interval based on the target evaluation value and the target noise intensity. Specifically, after determining the target evaluation value, in order to ensure the comfort level of the auditory sense of the user, it is necessary to ensure as much as possible that the comfort level of the auditory sense of the noise intensity variation of the mode switching device is the same as the comfort level of the target evaluation value in environments of different noise intensities, that is, by setting the target switching time interval in environments of different noise intensities, the evaluation value of the comfort level of the auditory sense of the noise intensity variation of the user in the target switching time is also the target evaluation value. In the embodiment of the application, under the target evaluation value, the hearing perception of the user on the change of the noise intensity is free from the problems of switching noise, ear discomfort and the like.
Based on the above description, the degree of change in the user perceived switching effect depends on the ambient noise level and the time of the effect switching, i.e. the target noise intensity and the target switching time interval, and the scoring value is a function of the noise intensity and the switching time interval, provided that the user perception of the change in the noise intensity during the mode switching is measured as the scoring value. The function is assumed to be:
Y=a*N-b*t (1)
wherein Y is a scoring value, t is a target switching time interval, a is a noise influence coefficient, b is a time influence coefficient, and N is environmental noise. At the time t, the larger N is, the larger Y is, the more obvious the user perception is, the smaller N is, the smaller Y is, and the weaker the user perception is; the smaller t is, the larger Y is, the more obvious the user perception is, the larger t is, the smaller Y is, and the weaker the user perception is.
As can be seen from the formula (1), the switching time interval is related not only to the score value Y and the environmental noise N but also to the noise influence coefficient and the time influence coefficient, so that the values of a and b need to be determined first.
As an implementation manner, in addition to the above-mentioned specific noise intensity, Y max corresponds to t max, the audio playing device may be controlled to switch from the first audio playing mode to the second audio playing mode by using different time intervals to be selected under the environmental noise of the first test noise intensity, where each time interval to be selected corresponds to a noise intensity change, and a target evaluation value is searched from evaluation values of auditory perception of the noise intensity change corresponding to each time interval to be selected by a user, and the time interval to be selected corresponding to the target evaluation value is denoted as t 1, so that for the first test noise intensity, Y max corresponds to t 1. In addition, a time interval corresponding to Y max under one noise intensity needs to be tested again, specifically, under the environment noise of the second test noise intensity, different time intervals to be selected are adopted to control the audio playing device to switch from the first audio playing mode to the second audio playing mode, each time interval to be selected corresponds to one noise intensity change, and from the evaluation value of auditory perception of the noise intensity change corresponding to each time interval to be selected by the user, a target evaluation value is searched, and the time interval to be selected corresponding to the target evaluation value is marked as t 2, so that for the second test noise intensity, the time interval to be selected corresponds to t 2 to Y max. The designated noise intensity, the first test noise intensity and the second test noise intensity are all known values, for example, the designated noise intensity, the first test noise intensity and the second test noise intensity are 120dB, 100dB and 80dB, respectively.
Thus, three sets of data (120 dB, Y max,tmax)、(100dB,Ymax,t1)、(80dB,Ymax,t2) are substituted into equation (1), respectively, to calculate a and b, and Y max.
Thus, equation (1) can become:
t=(a*N-Ymax)/b (2)
Where t is the target switching time interval, a is the noise influence coefficient, b is the time influence coefficient, and Y max is the target evaluation value, so that when a and b and Y max are both known, t is related to N, and N is the noise intensity, which can also be obtained by the above analysis.
It should be noted that, in the embodiment where the above formula (2) is a functional relationship among the evaluation value, the noise intensity, and the time interval, and the target switching time interval is determined based on the reference parameter and the target noise intensity, the target switching time interval is determined based on the functional relationship, the target evaluation value, and the target noise intensity, that is, the target evaluation value and the target noise intensity are substituted into the formula (2), t may be obtained, and thus the target switching time interval is obtained.
S406: and responding to the mode switching request, and completing the operation of switching the first audio playing mode to the second audio playing mode in the target switching time interval.
It should be noted that, for the portions of the steps not described in detail, reference may be made to the foregoing embodiments, and details are not repeated here.
Therefore, the embodiment of the application can set the target switching time interval under the noise environment of the current noise intensity based on the target evaluation value determined by the auditory perception comfort level of the noise intensity change of the audio playing device during the process of switching the first audio playing mode to the second audio playing mode by adopting different time intervals to be selected for the audio playing device by the user under the environment noise of the specified noise intensity, so that the auditory perception comfort level of the noise intensity change of the user during the mode switching is consistent with the target evaluation value under the noise environment of the current noise intensity.
Referring to fig. 5, fig. 5 shows a mode switching method according to an embodiment of the present application, where the method is applied to the above-mentioned audio playing device, and specifically the method includes: s501 to S507.
S501: and under the environment noise with the first noise intensity and the second noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to switch from the first audio playing mode to the second audio playing mode, and each time interval to be selected corresponds to one noise intensity change.
As an embodiment, the foregoing specified noise intensities may include a first noise intensity and a second noise intensity, the first noise intensity being greater than the second noise intensity, the preset sensing condition includes a first condition and a second condition, and the user's auditory perception of the change in noise intensity satisfying the first condition is greater than the auditory perception of the change in noise intensity satisfying the second condition. In some embodiments, the first noise strength may be the aforementioned maximum noise strength, the second noise strength may be a noise strength value of a relatively quiet environment, and the second noise strength may be, for example, 30dB to 50dB, for example, the second noise strength may be 30dB. Therefore, the first noise intensity may represent the maximum noise intensity, and the second noise intensity may represent the minimum noise intensity, i.e. a relatively quiet environment, and the evaluation values and the switching times obtained under the two noise intensities are both representative and reference, so that the target switching time interval under the current environmental noise is conveniently set based on the evaluation values and the switching times obtained under the two noise intensities.
And respectively under the environmental noise of the first noise intensity and the environmental noise of the second noise intensity, adopting different time intervals to be selected to control the audio playing equipment to be switched from the first audio playing mode to the second audio playing mode, wherein each time interval to be selected corresponds to one noise intensity change.
S502: and searching a first evaluation value meeting a first condition from first evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected under the environment noise of the first noise intensity by a user, and taking the first evaluation value as a target evaluation value.
For example, the first noise intensity may be the aforementioned maximum noise intensity, where the first noise intensity may represent a scene of the maximum noise experienced by the user, and then the switching time interval corresponding to the highest evaluation value determined under the first noise intensity may represent the most comfortable auditory sensation under the environment of the maximum noise, and if the noise intensity variation in the switching time interval under the environment of the other noise intensities (i.e., the noise intensity is less than the first noise intensity) enables the evaluation value of the auditory sensation comfort of the user to be consistent with the target evaluation value, the comfort of the user may not be poorer than the comfort under the environment of the maximum noise.
Under the environment noise of the first noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to switch from the first audio playing mode to the second audio playing mode, then, through the evaluation value of the hearing perception of the noise intensity change during each time interval to be selected corresponding to the first noise intensity by a user or hearing evaluation software, the evaluation value corresponding to each time interval to be selected under the environment noise of the first noise intensity can be obtained, and then, the first evaluation value meeting the first condition is searched and used as the target evaluation value. The process of searching for the target evaluation value may refer to the foregoing embodiment, where the evaluation value is positively related to the comfort level of the auditory perception of the user, and the first evaluation value satisfying the first condition is the first evaluation value with the largest value.
In one embodiment, the first noise intensity is the maximum noise intensity described above, that is, 120dB, and the determined target evaluation value is Y max. The time interval to be selected corresponding to the target evaluation value is a first time interval, namely t max.
S503: and searching an evaluation value meeting a second condition from second evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected under the environment noise of the second noise intensity by a user.
For example, the second noise intensity may be the aforementioned relatively quiet noise intensity, the first noise intensity may represent that the user is in a relatively quiet scene, and the switching time interval corresponding to the second evaluation value determined under the second noise intensity may represent the auditory sensation of the user in the relatively quiet scene.
Under the environmental noise of the second noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to switch from the first audio playing mode to the second audio playing mode, then, through the evaluation value of the hearing perception of the noise intensity change during each time interval to be selected corresponding to the second noise intensity by a user or hearing evaluation software, the evaluation value corresponding to each time interval to be selected under the environmental noise of the second noise intensity can be obtained, and then, the second evaluation value meeting the second condition is searched and used as the target evaluation value. The process of searching for the target evaluation value may refer to the foregoing embodiment, where the evaluation value is positively correlated with the comfort level of the auditory perception of the user.
In one embodiment, the second evaluation value satisfying the second condition is the second evaluation value having the largest value. Thus, the second evaluation value may characterize the maximum comfort of the auditory perception of the change in noise intensity during the mode switching by the user in a relatively quiet environment, and the time interval to be selected corresponding to the second evaluation value may be the second time interval, the first time interval being greater than the second time interval because the first noise intensity is greater than the second noise intensity, and the first time interval and the second time interval being the upper and lower limits of the target switching time interval, respectively.
As another embodiment, the second evaluation value satisfying the second condition is the smallest value, the smaller the second evaluation value is, the lower the perceived comfort of the user in terms of noise intensity variation during mode switching in a relatively quiet environment, the second evaluation value may be the second time interval, and thus the second time interval may be the switching time interval in the case of the user being most uncomfortable in terms of noise intensity variation during mode switching in a relatively quiet environment, and thus the first time interval is larger than the second time interval, and the first time interval and the second time interval are respectively the upper limit and the lower limit of the target switching time interval, i.e., the first time interval represents the upper limit of the most comfortable time interval, and the second time interval represents the lower limit of the most uncomfortable time interval.
In the embodiment of the present application, the second evaluation value is the second evaluation value with the smallest value.
In one embodiment, the first noise intensity is the maximum noise intensity described above, that is, 120dB, and the determined target evaluation value is Y max. The time interval to be selected corresponding to the target evaluation value is a first time interval, namely t max. The second evaluation value under the second noise intensity is Y min, and the second time interval corresponding to the second evaluation value is t min.
S504: and taking the target evaluation value, the first time interval and the second time interval as the reference parameters.
S505: when the mode switching request is acquired, the target noise intensity of the current environmental noise is acquired.
The step S505 may be performed before the step S504 or before the step S501, as long as the step S505 is performed before the step S506 uses the target noise intensity, and the specific execution order is not limited herein.
S506: a target switching time interval is determined based on the reference parameter and the target noise strength.
As one embodiment, a functional relationship between an evaluation value, noise intensity, and time interval is obtained; determining an initial switching time interval based on the functional relationship, the target evaluation value and the target noise intensity; the target handover time interval is determined based on the first time interval and the second time interval and the initial handover time interval. The functional relationship may be the above formula 2, and the time interval may be obtained by using the above formula 2 and the target evaluation value and the target noise intensity, and as the initial switching time interval, specifically, reference may be made to the above embodiment of S405, which is not described herein.
From the above analysis, the first time interval and the second time interval are respectively the upper limit and the lower limit of the target switching time interval, i.e. the first time interval represents the upper limit of the most comfortable time interval, and the second time interval represents the lower limit of the least comfortable time interval. Then after determining the initial switching time interval, it may be determined whether the initial switching time interval is greater than or equal to the second time interval and less than or equal to the first time interval based on the first time interval and the second time interval.
Specifically, if the initial switching time interval is greater than or equal to the second time interval and less than or equal to the first time interval, the initial switching time interval is taken as a target switching time interval; if the initial switching time interval is smaller than the second time interval, taking the second time interval as a target switching time interval; and if the initial switching time interval is larger than the first time interval, taking the first time interval as a target switching time interval. That is, the target switching time interval may not be smaller than the second time interval, that is, the user's perceived auditory comfort of the noise intensity variation during the target switching time interval must not be worse than the perceived auditory comfort of the noise intensity variation during the second time interval by the user in the environment of the second noise intensity, avoiding unreasonable settings during the target switching time interval, resulting in an excessively bad perceived auditory comfort of the user. The target switching time interval may not be greater than the first time interval, that is, the user's perceived auditory comfort of the change in noise intensity during the target switching time interval must not be higher than the perceived auditory comfort of the change in noise intensity during the first time interval for the user in the environment of the first noise intensity, avoiding excessive switching time to increase comfort and excessive waiting time for the user.
Specifically, substituting the target evaluation value and the target noise intensity into formula (2), t 'is the initial switching time interval, and then, if t min≤t'≤tmax, t=t'; if t < t min,t=tmin; if t' > t max,t=tmin, where t is the target switching time interval.
S507: and responding to the mode switching request, and completing the operation of switching the first audio playing mode to the second audio playing mode in the target switching time interval.
It should be noted that, for the details of the above steps, reference may be made to the foregoing embodiments, and details are not repeated here.
Therefore, the embodiment of the application can use the first time interval and the second time interval as the upper limit and the lower limit of the target switching time interval respectively on the basis of the time switching interval obtained by the mode of the embodiment on the basis of the first time interval and the second time interval corresponding to the noise environment (the noisiest noise environment) with the first noise intensity, which is the first time interval for the mode switching operation and is most comfortable for the user, and the second time interval (the relatively quiet noise environment) with the second noise intensity, which is the least comfortable for the user, so that the obtained setting of the target switching time interval is more reasonable.
It should be noted that, for the switching between different modes, the above functional relationship may be established, and the target switching time interval corresponding to the mode switching is determined based on the functional relationship, and the switching of other modes may refer to the foregoing embodiments and will not be described herein.
Referring to fig. 6, which shows a block diagram of a mode switching apparatus 600 according to an embodiment of the present application, the apparatus is applied to an audio playing device, the audio playing device has at least two different audio playing modes, and in different audio playing modes, noise reduction parameters of the audio playing device on environmental noise are different, and the mode switching apparatus 600 may include: a first acquisition unit 601, a second acquisition unit 602, a determination unit 603, and a switching unit 604.
The first obtaining unit 601 is configured to obtain a target noise strength of a current environmental noise when a mode switching request is obtained, where the mode switching request is used to request to switch a current first audio playing mode to a second audio playing mode.
A second acquisition unit 602 configured to acquire a reference parameter set in advance based on auditory perception of a change in noise intensity during a user's switching of the audio playback apparatus from the first audio playback mode to the second audio playback mode under an environmental noise specifying the noise intensity.
Further, the second obtaining unit 602 is further configured to control the audio playing device to switch from the first audio playing mode to the second audio playing mode by using different time intervals to be selected under the environmental noise with the specified noise intensity, where each time interval to be selected corresponds to a noise intensity change; searching a target evaluation value meeting a preset perception condition from the evaluation value of auditory perception of noise intensity change corresponding to each time interval to be selected by a user; the reference parameter is determined based on the target evaluation value.
Further, the evaluation value is positively related to the comfort level of the hearing perception of the user, and the evaluation value meeting the preset perception condition is the evaluation value with the largest value.
Further, the specified noise intensity includes a first noise intensity and a second noise intensity, the first noise intensity is greater than the second noise intensity, the preset perception condition includes a first condition and a second condition, and the user's auditory perception of the noise intensity variation satisfying the first condition is greater than the auditory perception of the noise intensity variation satisfying the second condition. The second obtaining unit 602 is further configured to find, from first evaluation values of auditory perception of noise intensity variation corresponding to each of the time intervals to be selected by a user under the environmental noise of the first noise intensity, the first evaluation value satisfying a first condition as a target evaluation value, where the time interval to be selected corresponding to the target evaluation value is the first time interval; searching an evaluation value meeting a second condition from second evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected by a user under the environment noise of the second noise intensity, wherein the time interval to be selected corresponding to the evaluation value meeting the second condition is a second time interval, and the first time interval is larger than the second time interval; and taking the target evaluation value, the first time interval and the second time interval as the reference parameters.
Further, the evaluation value is positively correlated with the comfort level of the auditory perception of the user, the first evaluation value satisfying the first condition is the first evaluation value with the largest value, and the second evaluation value satisfying the second condition is the second evaluation value with the smallest value.
A determining unit 603 for determining a target switching time interval based on the reference parameter and the target noise intensity.
Further, the determining unit 603 is further configured to obtain a functional relationship among the evaluation value, the noise intensity, and the time interval; and determining a target switching time interval based on the functional relation, the target evaluation value and the target noise intensity.
Further, the determining unit 603 is further configured to obtain a functional relationship among the evaluation value, the noise intensity, and the time interval; determining an initial switching time interval based on the functional relationship, the target evaluation value and the target noise intensity; the target handover time interval is determined based on the first time interval and the second time interval and the initial handover time interval.
Further, the determining unit 603 is further configured to take the initial switching time interval as a target switching time interval if the initial switching time interval is greater than or equal to the second time interval and less than or equal to the first time interval; if the initial switching time interval is smaller than the second time interval, taking the second time interval as a target switching time interval; and if the initial switching time interval is larger than the first time interval, taking the first time interval as a target switching time interval.
Further, the functional relationship is: t= (a×n-Y max)/b, where t is a target switching time interval, a is a noise influence coefficient, b is a time influence coefficient, Y max is a target evaluation value, and N is noise intensity.
And a switching unit 604, configured to switch the first audio playing mode to the second audio playing mode after the target switching time interval in response to the mode switching request.
Further, the switching unit 604 is further configured to play specified voice information in response to the mode switching request, where the specified voice information is used to prompt the first audio playing mode to be switched to the second audio playing mode; and after the appointed voice information is completely played, completing the operation of switching the first audio playing mode into the second audio playing mode in the target switching time interval. Specifically, in response to the mode switching request, the noise reduction parameters of the audio playing device are gradually adjusted from the first parameters of the first audio playing mode to the second parameters of the second audio playing mode within the target switching time interval.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 7, a block diagram of an audio playing device according to an embodiment of the present application is shown. The audio playback device 100 may be an electronic device capable of running applications such as a smart phone, tablet computer, electronic book, etc. The audio playback device 100 of the present application may include one or more of the following: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall audio playback device 100 using various interfaces and lines, performs various functions of the audio playback device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the terminal 100 in use (such as phonebook, audio-video data, chat-record data), etc.
Referring to fig. 8, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 800 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.
Referring to fig. 9, a computer program product 900 according to an embodiment of the present application is shown, including a computer program/instruction 910, where the computer program/instruction implements the method when executed by a processor.
In summary, the mode switching method, apparatus, audio playing device and computer readable medium provided by the present application acquire a target noise intensity of a current environment when acquiring a mode switching request for requesting to switch a current first audio playing mode to a second audio playing mode, then determine a target switching time interval based on a reference parameter and the target noise intensity, and complete the operation of switching the first audio playing mode to the second audio playing mode within the target switching time interval in response to the mode switching request. Because the reference parameter is set in advance based on the auditory perception of the noise intensity change of the audio playing device during the process of switching the audio playing device from the first audio playing mode to the second audio playing mode under the environment noise with the designated noise intensity, the reference parameter can serve as a reference value to play a guiding role in setting the target switching time interval, so that the setting of the switching time interval can be related to the auditory perception of the noise intensity change of the two modes when the user switches, namely, the switching time interval is set from the angle of the auditory perception of the user, the setting of the switching time interval is more reasonable, and the discomfort of the user to the mode switching is reduced.
When the user switches between different modes, the optimal effect switching experience can be obtained; under different environments, the user can obtain optimal effect switching experience; when each mode is switched, the problems of noise, ear discomfort and the like are avoided.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (14)
1. A mode switching method, applied to an audio playing device, where the audio playing device has at least two different audio playing modes, and in different audio playing modes, noise reduction parameters of the audio playing device on environmental noise are different, the method includes:
when a mode switching request is acquired, acquiring the target noise intensity of the current environmental noise, wherein the mode switching request is used for requesting to switch the current first audio playing mode into a second audio playing mode;
acquiring reference parameters which are preset based on auditory perception of noise intensity change of the audio playing device during the process of switching from the first audio playing mode to the second audio playing mode under the environment noise of specified noise intensity by a user;
determining a target switching time interval based on the reference parameter and the target noise strength;
responding to the mode switching request, and completing the operation of switching the first audio playing mode into a second audio playing mode in the target switching time interval;
wherein, the reference parameters are obtained in advance through the following steps:
under the environmental noise with the designated noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to be switched from the first audio playing mode to the second audio playing mode, and each time interval to be selected corresponds to one noise intensity change;
Searching a target evaluation value meeting a preset perception condition from the evaluation value of auditory perception of noise intensity change corresponding to each time interval to be selected by a user;
the reference parameter is determined based on the target evaluation value.
2. The method according to claim 1, wherein the evaluation value is positively correlated with the comfort level of the auditory perception of the user, and the evaluation value satisfying the preset perception condition is the evaluation value having the largest value.
3. The method of claim 1, wherein the reference parameter comprises the target evaluation value, wherein the determining a target switching time interval based on the reference parameter and the target noise strength comprises:
acquiring a functional relation among an evaluation value, noise intensity and a time interval;
and determining a target switching time interval based on the functional relation, the target evaluation value and the target noise intensity.
4. The method of claim 1, wherein the specified noise intensity comprises a first noise intensity and a second noise intensity, the first noise intensity is greater than the second noise intensity, the preset perceived condition comprises a first condition and a second condition, and the user's auditory perception of a change in noise intensity that satisfies the first condition is greater than the auditory perception of a change in noise intensity that satisfies the second condition;
Searching a target evaluation value meeting a preset perception condition from the evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected by a user, and determining the reference parameter based on the target evaluation value, wherein the method comprises the following steps:
Searching a first evaluation value meeting a first condition from first evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected by a user under the environment noise of the first noise intensity as a target evaluation value, wherein the time interval to be selected corresponding to the target evaluation value is the first time interval;
Searching an evaluation value meeting a second condition from second evaluation values of auditory perception of noise intensity change corresponding to each time interval to be selected by a user under the environment noise of the second noise intensity, wherein the time interval to be selected corresponding to the evaluation value meeting the second condition is a second time interval, and the first time interval is larger than the second time interval;
and taking the target evaluation value, the first time interval and the second time interval as the reference parameters.
5. The method of claim 4, wherein the evaluation value is positively correlated with a comfort level of auditory perception of the user, the first evaluation value satisfying the first condition is a first evaluation value having a largest value, and the second evaluation value satisfying the second condition is a second evaluation value having a smallest value.
6. The method of claim 4, wherein the determining a target switching time interval based on the reference parameter and the target noise strength comprises:
acquiring a functional relation among an evaluation value, noise intensity and a time interval;
determining an initial switching time interval based on the functional relationship, the target evaluation value and the target noise intensity;
The target handover time interval is determined based on the first time interval and the second time interval and the initial handover time interval.
7. The method of claim 6, wherein the determining the target switching time interval based on the first and second time intervals and the initial switching time interval comprises:
If the initial switching time interval is greater than or equal to the second time interval and less than or equal to the first time interval, taking the initial switching time interval as a target switching time interval;
If the initial switching time interval is smaller than the second time interval, taking the second time interval as a target switching time interval;
And if the initial switching time interval is larger than the first time interval, taking the first time interval as a target switching time interval.
8. The method according to claim 3 or 6, wherein the functional relationship is:
t=(a*N-Ymax)/b,
wherein t is a target switching time interval, a is a noise influence coefficient, b is a time influence coefficient, Y max is a target evaluation value, and N is noise intensity.
9. The method according to any one of claims 1-7, wherein the completing the operation of switching the first audio playback mode to the second audio playback mode within the target switching time interval in response to the mode switching request comprises:
Playing specified voice information in response to the mode switching request, wherein the specified voice information is used for prompting that the first audio playing mode is switched to the second audio playing mode;
and after the appointed voice information is completely played, completing the operation of switching the first audio playing mode into the second audio playing mode in the target switching time interval.
10. The method of any of claims 1-7, wherein switching the first audio playback mode to a second audio playback mode after the target switching time interval in response to the mode switch request comprises:
And responding to the mode switching request, and gradually adjusting the noise reduction parameters of the audio playing equipment from the first parameters of the first audio playing mode to the second parameters of the second audio playing mode in the target switching time interval.
11. A mode switching device, characterized in that it is applied to an audio playing device, where the audio playing device has at least two different audio playing modes, and in different audio playing modes, noise reduction parameters of the audio playing device on environmental noise are different, and the mode switching device includes:
The first acquisition unit is used for acquiring the target noise intensity of the current environmental noise when a mode switching request is acquired, wherein the mode switching request is used for requesting to switch the current first audio playing mode into the second audio playing mode;
a second acquisition unit configured to acquire a reference parameter set in advance based on auditory perception of a change in noise intensity during a user's switching of the audio playback apparatus from the first audio playback mode to the second audio playback mode under an environmental noise specifying the noise intensity;
a determining unit configured to determine a target switching time interval based on the reference parameter and the target noise intensity;
A switching unit, configured to switch the first audio playing mode to a second audio playing mode after the target switching time interval in response to the mode switching request;
wherein, the reference parameters are obtained in advance through the following steps:
under the environmental noise with the designated noise intensity, different time intervals to be selected are adopted to control the audio playing equipment to be switched from the first audio playing mode to the second audio playing mode, and each time interval to be selected corresponds to one noise intensity change;
Searching a target evaluation value meeting a preset perception condition from the evaluation value of auditory perception of noise intensity change corresponding to each time interval to be selected by a user;
the reference parameter is determined based on the target evaluation value.
12. An audio playback device, comprising:
One or more processors;
a memory;
One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-10.
13. A computer readable medium, characterized in that the computer readable medium stores a program code executable by a processor, which program code, when executed by the processor, causes the processor to perform the method of any of claims 1-10.
14. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1-10.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111395283.0A CN114095825B (en) | 2021-11-23 | 2021-11-23 | Mode switching method, device, audio playing equipment and computer readable medium |
PCT/CN2022/109422 WO2023093113A1 (en) | 2021-11-23 | 2022-08-01 | Mode switching method and apparatus, and audio playing device and computer-readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111395283.0A CN114095825B (en) | 2021-11-23 | 2021-11-23 | Mode switching method, device, audio playing equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114095825A CN114095825A (en) | 2022-02-25 |
CN114095825B true CN114095825B (en) | 2024-08-13 |
Family
ID=80303357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111395283.0A Active CN114095825B (en) | 2021-11-23 | 2021-11-23 | Mode switching method, device, audio playing equipment and computer readable medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114095825B (en) |
WO (1) | WO2023093113A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095825B (en) * | 2021-11-23 | 2024-08-13 | 深圳市锐尔觅移动通信有限公司 | Mode switching method, device, audio playing equipment and computer readable medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112004174A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Noise reduction control method and device and computer readable storage medium |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1513371B1 (en) * | 2004-10-19 | 2012-08-15 | Phonak Ag | Method for operating a hearing device as well as a hearing device |
JP5353044B2 (en) * | 2008-04-15 | 2013-11-27 | ソニー株式会社 | Signal processing apparatus and signal processing method |
CN102549657B (en) * | 2009-08-14 | 2015-05-20 | 皇家Kpn公司 | Method and system for determining a perceived quality of an audio system |
US20140126733A1 (en) * | 2012-11-02 | 2014-05-08 | Daniel M. Gauger, Jr. | User Interface for ANR Headphones with Active Hear-Through |
EP3799441A1 (en) * | 2015-12-29 | 2021-03-31 | Beijing Xiaoniao Tingting Technology Co., LTD | Method for adjusting ambient sound for earphone, and earphone |
US10024711B1 (en) * | 2017-07-25 | 2018-07-17 | BlueOwl, LLC | Systems and methods for assessing audio levels in user environments |
US11153677B2 (en) * | 2019-05-31 | 2021-10-19 | Apple Inc. | Ambient sound enhancement based on hearing profile and acoustic noise cancellation |
CN111935583B (en) * | 2020-08-24 | 2022-09-27 | Oppo(重庆)智能科技有限公司 | Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium |
CN113542963B (en) * | 2021-07-21 | 2022-12-20 | RealMe重庆移动通信有限公司 | Sound mode control method, device, electronic equipment and storage medium |
CN114095825B (en) * | 2021-11-23 | 2024-08-13 | 深圳市锐尔觅移动通信有限公司 | Mode switching method, device, audio playing equipment and computer readable medium |
-
2021
- 2021-11-23 CN CN202111395283.0A patent/CN114095825B/en active Active
-
2022
- 2022-08-01 WO PCT/CN2022/109422 patent/WO2023093113A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112004174A (en) * | 2020-08-27 | 2020-11-27 | 努比亚技术有限公司 | Noise reduction control method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114095825A (en) | 2022-02-25 |
WO2023093113A1 (en) | 2023-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
CN107580113B (en) | Prompting method, prompting device, storage medium and terminal | |
CN111447539B (en) | Fitting method and device for hearing earphones | |
US11632621B2 (en) | Method for controlling volume of wireless headset, and computer-readable storage medium | |
CN107509153B (en) | Detection method and device of sound playing device, storage medium and terminal | |
CN110493678B (en) | Earphone control method and device, earphone and storage medium | |
CN103686575B (en) | Auditory prosthesis | |
CN111508510B (en) | Audio processing method and device, storage medium and electronic equipment | |
CN109104684B (en) | Microphone plugging detection method and related products | |
CN108810693A (en) | Apparatus control method and Related product | |
CN108966067A (en) | Control method for playing back and Related product | |
CN111970609A (en) | Sound quality adjusting method, sound quality adjusting system, electronic device, earphone, and computer-readable storage medium | |
US12069451B2 (en) | User hearing protection method, apparatus, and electronic device | |
CN113422866B (en) | Volume adjusting method and device, storage medium and electronic equipment | |
CN115474927A (en) | Hearing detection method, device, electronic equipment and storage medium | |
CN113949956A (en) | Noise reduction processing method and device, electronic equipment, earphone and storage medium | |
CN107547732A (en) | A kind of media play volume adjusting method, device, terminal and storage medium | |
CN112272342B (en) | Automatic volume adjusting method and device, bluetooth headset and storage medium | |
CN114095825B (en) | Mode switching method, device, audio playing equipment and computer readable medium | |
CN108668018A (en) | Mobile terminal, volume control method and related product | |
WO2021026126A1 (en) | User interface for dynamically adjusting settings of hearing instruments | |
CN114710730B (en) | Volume prompt method, device, earphone and storage medium | |
CN108829244A (en) | Volume adjusting method and relevant device | |
WO2023197474A1 (en) | Method for determining parameter corresponding to earphone mode, and earphone, terminal and system | |
CN107493376A (en) | A kind of ringing volume adjusting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |