Voltage adjusting method, device, equipment, medium and program product
By receiving audio signals in the terminal device and adjusting the output voltage, the problem of vibration and ringtone volume not meeting the demand is solved, and the dynamic adjustment of volume is achieved to meet the reminder needs of different scenarios.
Patent Information
- Application Number
- CN202310675956.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2024-12-10
AI Technical Summary
When using terminal devices such as mobile phones to transmit messages or communicate with phone calls, the volume of vibration and ringtones does not meet the needs of users, especially when the phone is placed in the clothing pocket, the volume is too low to be used to remind the effect, and on the desktop The volume is too loud when on the go, affecting others.
By receiving the audio signal generated by the reminder device in the terminal device, the output voltage is adjusted based on the volume of the audio signal, thereby dynamically adjusting the volume to adapt to the needs of different scenarios.
Automatic volume adjustment is realized to meet the volume needs in different scenarios, ensuring that the reminder is effective without affecting others.
Smart Images

Figure CN119110014A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of terminal equipment, and in particular, to a voltage adjustment method, apparatus, device, medium, and program product. Background Art
[0002] When using mobile phones and other terminal devices to transmit messages or make phone calls, since users do not always pay attention to their phones, there needs to be a way to remind users that their phones have received messages or calls.
[0003] In the related art, when a mobile phone receives a message or a call, it will remind the user to check the message or answer the call through vibration and / or ringtone.
[0004] However, in some cases, the volume of the vibration and / or ringtone does not meet the needs of the user. For example, when the mobile phone is placed in a pocket of clothing, the volume of the vibration and / or ringtone will be too small to have the effect of reminding the user. Summary of the invention
[0005] The present application provides a voltage adjustment method, device, equipment, medium and program product, and the technical solution at least includes:
[0006] According to one aspect of an embodiment of the present application, a voltage adjustment method is provided. The method is performed by a terminal device having a reminder device. The method includes:
[0007] When there is an event to be reminded, control the reminder device to send a message reminder;
[0008] receiving an audio signal generated by the reminder device during the message reminder process;
[0009] Based on the volume of the audio signal, the output voltage used to control the alert device is adjusted.
[0010] According to another aspect of an embodiment of the present application, a voltage adjustment device is provided, the device including a reminder device, the device including:
[0011] A control module, used for controlling the reminder device to send a message reminder when there is an event to be reminded;
[0012] A receiving module, used for receiving an audio signal generated by the reminder device during the message reminder process;
[0013] The adjustment module is used to adjust the output voltage used to control the reminder device based on the volume of the audio signal.
[0014] According to another aspect of an embodiment of the present application, a terminal device is provided, comprising: a processor and a memory, wherein at least one program is stored in the memory; the processor is used to execute at least one program in the memory to implement the voltage adjustment methods in the above-mentioned aspects.
[0015] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the voltage adjustment method as described in the above aspects.
[0016] According to another aspect of an embodiment of the present application, a computer program product (or computer program) is provided, which includes computer instructions, the computer instructions are stored in a computer-readable storage medium, a processor obtains the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the voltage adjustment method as described in the above aspects.
[0017] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0018] By adjusting the output voltage used to control the reminder device based on the volume of the audio signal, the volume of the audio signal is changed, so that the volume of the audio signal can be automatically adjusted to meet different volume requirements in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram showing a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0021] Figure 2 A flow chart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0022] Figure 3 A flow chart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0023] Figure 4 A flow chart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0024] Figure 5A flow chart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0025] Figure 6 A flow chart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown;
[0026] Figure 7 A block diagram of a voltage adjustment device provided by an exemplary embodiment of the present application is shown;
[0027] Figure 8 A schematic diagram of the structure of a terminal device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0031] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0032] It should be understood that, although the terms first, second, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0033] When using a mobile phone or other terminal device to transmit messages or make phone calls, since the user will not always pay attention to the mobile phone, there needs to be a way to remind the user that the mobile phone has received a message or a call. In the related art, when a mobile phone receives a message or a call, it will use vibration and / or ringtones to remind the user to check the message or answer the call. However, in some cases, the volume of the vibration and / or ringtone does not meet the needs of the user. For example, when the mobile phone is placed in a pocket of clothing, the volume of the vibration and / or ringtone will be too small and cannot have the effect of reminding the user. When the mobile phone is placed on a desktop, the volume of the vibration and / or ringtone may be too loud and affect other people. Therefore, a method that can dynamically adjust the volume of vibration and ringtones is needed. Figure 1 A schematic diagram of a voltage adjustment method provided by an exemplary embodiment of the present application is shown, and the method is performed by a terminal device 100, and the terminal device 100 includes: a speaker 110, a first microphone 120, an audio power amplifier (Power Amplifier, PA) 130, a motor 140, a second microphone 150, a motor drive PA160, and at least one of a processor 170.
[0034] The terminal device 100 may generally refer to one of a plurality of terminals, and this embodiment is described by taking the terminal device 100 as an example. The device type of the terminal device 100 includes at least one of a smart phone, a tablet computer, an e-book reader, a laptop computer, and a desktop computer, and this embodiment is described by taking the terminal device 100 as a smart phone as an example.
[0035] In some embodiments, the terminal device 100 receives a first audio signal generated by the speaker 110 through the first microphone 120, and the first microphone 120 converts the first audio signal into a first electrical signal; the terminal device 100 receives a second audio signal generated by the vibration of the motor 140 through the second microphone 150, and the second microphone 150 converts the second audio signal into a second electrical signal.
[0036] In some embodiments, the speaker 110 and the first microphone 120 are positioned close to each other, for example, both are placed on the upper part of the terminal device 100; the motor 140 and the second microphone 150 are positioned close to each other, for example, both are placed on the lower part of the terminal device 100, so the first audio signal received by the first microphone 120 and the second audio signal received by the second microphone 150 are generally not attenuated.
[0037] In some embodiments, the resonance frequency of the motor 140 is 170 Hz, and the first audio signal generated by the speaker 110 needs to pass through the high-pass filter in the audio PA 130. The cutoff frequency of the high-pass filter is 180 Hz, that is, only audio signals higher than 180 Hz can pass, and audio signals lower than 180 Hz, such as 170 Hz, will be cut off. Therefore, the first audio signal generated by the speaker 110 will not affect the motor 140 and the second microphone 150. The distance between the motor 140 and the first microphone 120 is usually far, and the effect of the second audio signal generated by the motor 140 on the first microphone 120 can be ignored.
[0038] In some embodiments, the output voltage of the audio PA 130 is adjusted based on the first audio signal generated by the speaker 110 to adjust the volume of the first audio signal. Those skilled in the art can preset the first threshold and the second threshold, which can be the same or different.
[0039] The volume of the first audio signal can be described by frequency or amplitude or sound intensity or other aspects, which is not limited in this embodiment, and frequency is used as an example for explanation. The first microphone 120 sends a first electrical signal corresponding to the first audio signal to the processor 170. When the processor 170 determines that the frequency of the first audio signal is greater than the first threshold, the processor 170 reduces the output voltage of the audio PA 130 to reduce the volume of the first audio signal; when the processor 170 determines that the frequency of the first audio signal is less than the second threshold, the processor 170 increases the output voltage of the audio PA 130 to increase the volume of the first audio signal.
[0040] Exemplarily, the first threshold is 4000 Hz, the second threshold is 3000 Hz, the first microphone 120 sends a first electrical signal corresponding to the first audio signal to the processor 170, and when the frequency of the first audio signal is 4500 Hz and the judgment result of the processor 170 is that the frequency of the first audio signal is greater than 4000 Hz, the processor 170 reduces the output voltage of the audio PA 130 to reduce the volume of the first audio signal; when the frequency of the first audio signal is 2500 Hz and the judgment result of the processor 170 is that the frequency of the first audio signal is less than 3000 Hz, the processor 170 increases the output voltage of the audio PA 130 to increase the volume of the first audio signal; when the frequency of the first audio signal is 3500 Hz and the judgment result of the processor 170 is that the frequency of the first audio signal is between 3000 Hz and 4000 Hz, the processor 170 does not adjust the output voltage of the audio PA 130.
[0041] In some embodiments, based on the second audio signal generated by the vibration of the motor 140, the output voltage of the motor driving PA 160 is adjusted to adjust the magnitude of the second audio signal. Those skilled in the art preset the third threshold and the fourth threshold, which may be the same or different.
[0042] The volume of the second audio signal generated by the vibration of the motor 140 can be described by frequency or amplitude or sound intensity or other aspects, which is not limited in this embodiment, and is described by taking amplitude as an example. The second microphone 150 sends a second electrical signal corresponding to the second audio signal to the processor 170. When the processor 170 determines that the amplitude of the second audio signal is greater than the third threshold, the processor 170 reduces the output voltage of the motor drive PA160 to reduce the volume of the second audio signal; when the processor 170 determines that the amplitude of the second audio signal is less than the fourth threshold, the processor 170 increases the output voltage of the motor drive PA160 to increase the volume of the second audio signal.
[0043] Exemplarily, the third threshold is 1g, that is, the vibration of the motor 140 causes the terminal device 100 to be subjected to a force equivalent to its own weight, and the fourth threshold is 0.6g, that is, the vibration of the motor 140 causes the terminal device 100 to be subjected to a force equivalent to 60% of its own weight. The second microphone 150 sends a second electrical signal corresponding to the second audio signal to the processor 170. When the amplitude of the second audio signal is 1.2g and the processor 170 determines that the amplitude of the second audio signal is greater than 1g, the processor 170 reduces the output voltage of the motor drive PA160 to reduce the volume of the second audio signal; when the amplitude of the second audio signal is 0.5g and the processor 170 determines that the amplitude of the second audio signal is less than 0.6g, the processor 170 increases the output voltage of the motor drive PA160 to increase the volume of the second audio signal; when the amplitude of the second audio signal is 0.8g and the processor 170 determines that the amplitude of the second audio signal is between 0.6g and 1g, the processor 170 does not adjust the output voltage of the motor drive PA160.
[0044] In some embodiments, the terminal 100 receives an ambient audio signal generated by the external environment through the first microphone 120, and adjusts the output voltage of the audio PA 130 based on the volume of the first audio signal and the volume of the ambient audio signal. A person skilled in the art presets the fifth threshold.
[0045] The volume of the first audio signal and the volume of the ambient audio signal can be described by frequency or amplitude or sound intensity or other aspects, which is not limited in this embodiment, and is described by taking sound intensity as an example. When the processor 170 determines that the sound intensity of the first audio signal is greater than the sound intensity of the ambient audio signal, and the phase difference value is greater than the fifth threshold, the processor 170 reduces the output voltage of the audio PA 130 to reduce the volume of the first audio signal; when the processor 170 determines that the sound intensity of the first audio signal is less than or equal to the sound intensity of the ambient audio signal, the processor 170 increases the output voltage of the audio PA 130 to increase the volume of the first audio signal; when the processor 170 determines that the sound intensity of the first audio signal is greater than the sound intensity of the ambient audio signal, and the phase difference value is less than the fifth threshold, the processor 170 increases the output voltage of the audio PA 130 to increase the volume of the first audio signal; when the processor 170 determines that the sound intensity of the first audio signal is greater than the sound intensity of the ambient audio signal, and the phase difference value is less than the fifth threshold, the processor 170 increases the output voltage of the audio PA 130 to increase the volume of the first audio signal; when the processor 170 determines that the sound intensity of the first audio signal is greater than the sound intensity of the ambient audio signal, and the phase difference value is equal to the fifth threshold, the processor 170 does not adjust the output voltage of the audio PA 130.
[0046] Exemplarily, the sound intensity of the ambient audio signal is 50 decibels, and the fifth threshold is 5 decibels. When the sound intensity of the first audio signal is 60 decibels, the processor 170 determines that it is greater than 50 decibels, and the phase difference is 10 decibels, which is greater than 5 decibels, the processor 170 reduces the output voltage of the audio PA130 to reduce the volume of the first audio signal; when the sound intensity of the first audio signal is 40 decibels, the processor 170 determines that it is less than 50 decibels, the processor 170 increases the output voltage of the audio PA130 to increase the volume of the first audio signal; when the sound intensity of the first audio signal is 52 decibels, the processor 170 determines that it is greater than 50 decibels, and the phase difference is 2 decibels, which is less than 5 decibels, the processor 170 increases the output voltage of the audio PA130 to increase the volume of the first audio signal; when the sound intensity of the first audio signal is 55 decibels, the processor 170 determines that it is greater than 55 decibels, and the phase difference is 5 decibels, the processor 170 does not adjust the output voltage of the audio PA130.
[0047] In some embodiments, based on the adjustment of the output voltage of the audio PA, the output voltage of the motor drive PA is adjusted. For example, the output voltage of the audio PA before adjustment is the first audio output voltage, the output voltage of the audio PA after adjustment is the second audio output voltage, the output voltage of the motor drive PA before adjustment is the first motor output voltage, the output voltage of the motor drive PA after adjustment is the second motor output voltage, and the second audio output voltage is 80% of the first audio output voltage. Based on the adjustment, the second motor output voltage is adjusted to 80% of the first motor output voltage.
[0048] In some embodiments, the output voltage of the audio PA is adjusted based on the adjustment of the output voltage of the motor drive PA, which is similar to the adjustment method in the above embodiment and will not be described in detail here. The embodiment of the present application does not limit the correlation adjustment method of the output voltage of the audio PA and the output voltage of the motor drive PA, and the above content is only an example.
[0049] In summary, the method provided in this embodiment adjusts the output voltage of the audio PA and the output voltage of the motor drive PA based on the volume of the first audio signal and the volume of the second audio signal, thereby changing the volume of the two audio signals, so that the volume of the two audio signals can be automatically adjusted to meet different volume requirements in different scenarios.
[0050] The method provided in this embodiment also adjusts the output voltage of the audio PA according to the relative volume of the first audio signal and the volume of the ambient audio signal, thereby changing the volume of the first audio signal so that the volume of the first audio signal meets the volume requirement of the current environment.
[0051] Figure 2 A flowchart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, and the method includes:
[0052] Step 210: When there is an event to be reminded, control the reminder device to send a message reminder.
[0053] In some embodiments, the terminal device includes at least one of a first device, a reminder device, and a second device; wherein the first device includes a sound receiving device, and the sound receiving device includes at least one of a microphone, a piezoelectric sound receiving device, and an infrared sound receiving device; the reminder device includes at least one of a speaker and a motor; the second device includes a control device, and the control device includes at least one of a PA, a processor, and a sensor. The embodiments of the present application do not limit the above-mentioned devices.
[0054] In some embodiments, when there is an event to be reminded, the second device controls the reminder device to send a message reminder.
[0055] In some embodiments, where the PA is an audio PA, the reminder device is a speaker.
[0056] In some embodiments, when the PA is a motor driven PA, the reminder device is a motor.
[0057] In some embodiments, the event to be reminded includes at least one of: receiving a short message, receiving a phone call, triggering a timer reminder, and receiving push information from an application.
[0058] Exemplarily, when a terminal device receives a phone call from another terminal device, it controls a speaker to produce a ring tone through an audio PA, and / or controls a motor to produce vibrations through a motor drive PA, so as to remind the user of the terminal device that a call is about to be answered.
[0059] Step 220: Receive the audio signal generated by the reminder device during the message reminder process.
[0060] In some embodiments, an audio signal generated by the reminder device during the message reminder process is received by a first device such as a microphone, and the microphone includes at least one of a first microphone close to the speaker and a second microphone close to the motor.
[0061] In some embodiments, during the message reminder process, the speaker will generate a first audio signal, and the first audio signal includes at least one of pure music, human voice songs, and electronic prompt sounds; the motor will generate a second audio signal through vibration.
[0062] Step 230: Based on the volume of the audio signal, adjust the output voltage used to control the reminder device.
[0063] In some embodiments, the output voltage used to control the reminder device is adjusted with the volume of the audio signal being greater than the volume of the ambient audio signal as a control target, and the ambient audio signal is an audio signal generated by the external environment in which the terminal device is located.
[0064] In some embodiments, based on the volume change of the first audio signal generated by the speaker, the output voltage used to control the motor is adjusted, thereby associated with changing the volume of the second audio signal generated by the motor.
[0065] In some embodiments, the volume of the audio signal is used as a target volume as a control target, or the volume of the audio signal falling within a target volume range is used as a control target to adjust the output voltage used to control the reminder device.
[0066] In some embodiments, when the volume of the audio signal is greater than the target volume or greater than the maximum value of the target volume range, the output voltage used to control the reminder device is reduced, thereby reducing the volume of the audio signal;
[0067] When the volume of the audio signal is less than the target volume or less than the minimum value of the target volume range, increasing the output voltage used to control the reminder device, thereby increasing the volume of the audio signal;
[0068] When the volume of the audio signal is equal to the target volume or is within the target volume range, the output voltage of the device is not adjusted, thereby not changing the volume of the audio signal;
[0069] Among them, the target volume or target volume range is pre-set by a person skilled in the art, or dynamically adjusted according to the ambient volume of the environment in which the terminal device is located, and the embodiments of the present application are not limited to this.
[0070] In some embodiments, based on the frequency spectrum characteristics of the audio signal, such as at least one of amplitude, frequency, and phase, and the output voltage corresponding to the audio signal, an association relationship between the audio signal and the output voltage is established, and the association relationship can be represented by an association model, or by an association expression, or by a table. When the terminal device obtains the current audio signal, the output voltage corresponding to the current audio signal is obtained based on the frequency spectrum characteristics of the current audio signal and the association relationship.
[0071] In summary, the method provided in this embodiment adjusts the output voltage used to control the reminder device based on the volume of the audio signal, thereby changing the volume of the audio signal, so that the volume of the audio signal can be automatically adjusted to meet different volume requirements in different scenarios.
[0072] Figure 3 A flowchart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, and the method includes:
[0073] Step 210: When there is an event to be reminded, control the reminder device to send a message reminder.
[0074] Step 222: Receive a first audio signal generated by a speaker during the message reminder process.
[0075] In some embodiments, the terminal device includes at least one of a first microphone, a speaker, and an audio PA, and receives a first audio signal generated by the speaker during a message reminder process through the first microphone.
[0076] like Figure 1 As shown, the first microphone 120 and the speaker 110 are usually placed in close positions in the terminal device 100 , for example, both are placed on the upper part of the terminal device 100 , and the first microphone 120 mainly receives the first audio signal generated by the speaker 110 .
[0077] In some embodiments, the first audio signal passes through a high-pass filter in the audio PA, and the cutoff frequency of the high-pass filter is 180 Hz, that is, only audio signals higher than 180 Hz can pass, and audio signals lower than 180 Hz will be cut off, thereby reducing the impact of the first audio signal on audio signals received by other microphones.
[0078] Step 232: Taking the volume of the first audio signal as the target volume as the control target, or taking the volume of the first audio signal falling within the target volume range as the control target, adjust the output voltage used to control the speaker.
[0079] In some embodiments, based on the relative volume of the first audio signal and the target volume or target volume range, the output voltage used to control the speaker is reduced, increased, or not adjusted, thereby correspondingly reducing, increasing, or not changing the volume of the first audio signal.
[0080] In some embodiments, when the volume of the first audio signal is greater than a first threshold, reducing the output voltage when used to control the speaker;
[0081] When the volume of the first audio signal is less than a second threshold, increasing the output voltage used to control the speaker;
[0082] The first threshold and the second threshold are the same or different, and the first threshold and the second threshold are pre-set by those skilled in the art. When the first threshold and the second threshold are the same, the first threshold and the second threshold are the target volume; when the first threshold and the second threshold are different, the first threshold is greater than the second threshold, and the range between the first threshold and the second threshold is the target volume range.
[0083] In some embodiments, the first microphone converts the first audio signal into a first electrical signal and sends the converted signal to the processor. The processor determines the relative size of the volume of the first audio signal and the first threshold or the second threshold based on the first electrical signal.
[0084] The volume of the first audio signal can be described by frequency, amplitude, sound intensity or other aspects, which is not limited in this embodiment, and frequency is used as an example for illustration. For example, when the first threshold and the second threshold are both 3000 Hz, and the frequency of the first audio signal is 3500 Hz, the processor determines that the frequency of the first audio signal is greater than 3000 Hz, and the processor reduces the output voltage of the audio PA to reduce the volume of the first audio signal;
[0085] When the first threshold and the second threshold are both 3000 Hz and the frequency of the first audio signal is 2500 Hz, the processor determines that the frequency of the first audio signal is less than 3000 Hz, and the processor increases the output voltage of the audio PA to increase the volume of the first audio signal;
[0086] When the first threshold and the second threshold are both 3000 Hz and the frequency of the first audio signal is 3000 Hz, the processor determines that the frequency of the first audio signal is equal to 3000 Hz, and the processor does not adjust the output voltage of the audio PA and thus does not change the volume of the first audio signal.
[0087] Reference to the case where the first threshold value is different from the second threshold value Figure 1 The embodiments are not described in detail here.
[0088] In summary, the method provided in this embodiment adjusts the output voltage used to control the speaker based on the volume of the first audio signal, thereby changing the volume of the first audio signal, so that the volume of the first audio signal can be automatically adjusted to meet different volume requirements in different scenarios.
[0089] Figure 4 A flowchart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, and the method includes:
[0090] Step 210: When there is an event to be reminded, control the reminder device to send a message reminder.
[0091] Step 224: Receive a second audio signal generated by the motor during the message reminder process.
[0092] In some embodiments, the terminal device includes at least one of a second microphone, a motor, and a motor driving PA, and receives a second audio signal generated by the motor during the message reminder process through the second microphone.
[0093] like Figure 1 As shown, the second microphone 150 and the motor 140 are usually placed in close positions in the terminal device 100, for example, both are placed in the lower part of the terminal device 100, and the second microphone 150 mainly receives the second audio signal generated by the vibration of the motor 140.
[0094] In some embodiments, the motor is far away from other microphones, and the influence of the second audio signal generated by the vibration of the motor on other microphones can be ignored.
[0095] Step 234: Taking the volume of the second audio signal as the target volume as the control target, or taking the volume of the second audio signal falling within the target volume range as the control target, adjusting the output voltage for controlling the motor.
[0096] In some embodiments, based on the relative volume of the second audio signal and the target volume or target volume range, the output voltage used to control the motor is reduced, increased, or not adjusted, thereby correspondingly reducing, increasing, or not changing the volume of the second audio signal.
[0097] In some embodiments, when the volume of the second audio signal is greater than a third threshold, the output voltage used to control the motor is reduced;
[0098] When the volume of the second audio signal is less than a fourth threshold, increasing the output voltage used to control the motor;
[0099] The third threshold and the fourth threshold are the same or different, and the third threshold and the fourth threshold are preset by those skilled in the art. When the third threshold and the fourth threshold are the same, the third threshold and the fourth threshold are the target volume; when the third threshold and the fourth threshold are different, the third threshold is greater than the fourth threshold, and the range between the third threshold and the fourth threshold is the target volume range.
[0100] In some embodiments, the second microphone converts the second audio signal into a second electrical signal and sends it to the processor. The processor determines the relative size of the volume of the second audio signal and the third threshold or the fourth threshold based on the second electrical signal.
[0101] The volume of the second audio signal can be described by frequency or amplitude or sound intensity or other aspects, which is not limited in this embodiment, and is described by taking amplitude as an example. For example, when the third threshold and the fourth threshold are both 1g, that is, the vibration of the motor will cause the terminal device to be subjected to a force equal to its own weight, and the amplitude of the second audio signal is 1.2g, the processor determines that the amplitude of the second audio signal is greater than 1g, and the processor reduces the output voltage of the motor drive PA to reduce the volume of the second audio signal;
[0102] When the third threshold and the fourth threshold are both 1g and the amplitude of the second audio signal is 0.8g, the processor determines that the amplitude of the second audio signal is less than 1g, and the processor increases the output voltage of the motor drive PA to increase the volume of the second audio signal;
[0103] When the third threshold and the fourth threshold are both 1g and the amplitude of the second audio signal is 1g, the processor determines that the amplitude of the second audio signal is equal to 1g, and the processor does not adjust the output voltage of the motor drive PA and thus does not change the volume of the second audio signal.
[0104] Reference to the case where the third threshold value is different from the fourth threshold value Figure 1 The embodiments are not described in detail here.
[0105] To summarize, the method provided in this embodiment adjusts the output voltage used to control the motor based on the volume of the second audio signal, thereby changing the volume of the second audio signal, so that the volume of the second audio signal can be automatically adjusted to meet different volume requirements in different scenarios.
[0106] Figure 5 A flowchart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, and the method includes:
[0107] Step 210: When there is an event to be reminded, control the reminder device to send a message reminder.
[0108] Step 222: Receive a first audio signal generated by a speaker during the message reminder process.
[0109] Step 2321: Receive an ambient audio signal generated by the external environment.
[0110] In some embodiments, an ambient audio signal generated by an external environment is received by a first microphone.
[0111] In some embodiments, the first microphone receives a first audio signal generated by a speaker, and the terminal device stores spectral characteristics of the first audio signal including frequency, amplitude, period, etc. in a memory of the terminal device for comparison with spectral characteristics of the ambient audio signal directly received by the first microphone, thereby distinguishing the first audio signal from the ambient audio signal.
[0112] Step 2322: Based on the volume of the first audio signal and the volume of the ambient audio signal, adjust the output voltage used to control the speaker.
[0113] In some embodiments, based on the relative volume of the first audio signal and the volume of the ambient audio signal, the output voltage used to control the speaker is reduced, increased, or not adjusted, thereby correspondingly reducing, increasing, or not changing the volume of the first audio signal.
[0114] In some embodiments, the first microphone converts the first audio signal into a first electrical signal and sends it to the processor, and converts the ambient audio signal into an ambient electrical signal and sends it to the processor, and the processor determines the relative size of the volume of the first audio signal and the volume of the ambient audio signal based on the first electrical signal and the ambient electrical signal. The volume of the first audio signal and the volume of the ambient audio signal can be described by frequency or amplitude or sound intensity or other aspects, which is not limited in this embodiment, and is described by taking sound intensity as an example.
[0115] In some embodiments, when the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is greater than a fifth threshold, the output voltage used to control the speaker is reduced;
[0116] When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is less than a fifth threshold, increasing the output voltage used to control the speaker;
[0117] When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is equal to a fifth threshold, the output voltage for controlling the speaker is not adjusted;
[0118] The fifth threshold is preset by those skilled in the art.
[0119] Exemplarily, the sound intensity of the ambient audio signal is 50 decibels, and the fifth threshold is 5 decibels. When the sound intensity of the first audio signal is 60 decibels, the processor determines that it is greater than 50 decibels, and the phase difference is 10 decibels, which is greater than 5 decibels, the processor reduces the output voltage of the audio PA to reduce the volume of the first audio signal;
[0120] When the sound intensity of the first audio signal is 52 decibels, and the processor determines that it is greater than 50 decibels, and the phase difference is 2 decibels and less than 5 decibels, the processor increases the output voltage of the audio PA to increase the volume of the first audio signal;
[0121] When the sound intensity of the first audio signal is 55 decibels, and the processor determines that the sound intensity is greater than 55 decibels, and the phase difference is 5 decibels, the processor does not adjust the output voltage of the audio PA.
[0122] In some embodiments, when the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, the output voltage of the audio PA when controlling the speaker is increased so that the volume of the first audio signal is greater than the volume of the ambient audio signal, and the phase difference is equal to a fifth threshold, wherein the fifth threshold is pre-set by a person skilled in the art.
[0123] Exemplarily, the sound intensity of the ambient audio signal is 50 decibels, and the fifth threshold is 5 decibels. When the sound intensity of the first audio signal is 40 decibels, and the processor determines that it is less than 50 decibels, the processor increases the output voltage of the audio PA to increase the volume of the first audio signal, so that the sound intensity of the first audio signal is 55 decibels, which is greater than the volume of the ambient audio signal, and the difference value is equal to 5 decibels.
[0124] In summary, the method provided in this embodiment adjusts the output voltage used to control the speaker according to the relative volume of the first audio signal and the volume of the ambient audio signal, thereby changing the volume of the first audio signal so that the volume of the first audio signal meets the volume requirement of the current environment.
[0125] Figure 6 A flowchart of a voltage adjustment method provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, and the method includes:
[0126] Step 210: When there is an event to be reminded, control the reminder device to send a message reminder.
[0127] Step 220: Receive the audio signal generated by the reminder device during the message reminder process.
[0128] Step 236: Based on the adjustment of the output voltage when the audio PA controls the speaker, adjust the output voltage when the motor-driven PA controls the motor; or, based on the adjustment of the output voltage when the motor-driven PA controls the motor, adjust the output voltage when the audio PA controls the speaker.
[0129] In some embodiments, based on the adjustment of the output voltage of the audio PA when controlling the speaker, the output voltage of the motor driving PA when controlling the motor is adjusted. The output voltage of the audio PA before the adjustment is set to the first audio output voltage, the output voltage of the audio PA after the adjustment is set to the second audio output voltage, the output voltage of the motor driving PA before the adjustment is set to the first motor output voltage, and the output voltage of the motor driving PA after the adjustment is set to the second motor output voltage.
[0130] For example, after adjustment, the second audio output voltage is 0.8V, the first audio output voltage is 1V, and the second audio output voltage is 80% of the first audio output voltage. The first motor output voltage is 2V, and based on the adjustment, the terminal device adjusts the second motor output voltage to 80% of the first motor output voltage, that is, 1.6V.
[0131] In some embodiments, the output voltage of the audio PA is adjusted based on the adjustment of the output voltage of the motor driving PA. The adjustment method is the same as that in the above embodiments and will not be described in detail here.
[0132] The correlation adjustment method of the output voltage of the audio PA and the output voltage of the motor drive PA can also be correlated and adjusted according to the adjusted difference. The embodiment of the present application does not limit the correlation adjustment method, and the above content is only an example.
[0133] To summarize, the method provided in this embodiment changes the volume of the second audio signal by adjusting the output voltage when the audio PA controls the speaker and adjusting the output voltage when the motor drives the PA to control the motor, so that the volumes of the two audio signals can be adjusted in a correlated manner to meet different volume requirements in different scenarios.
[0134] The method provided in this embodiment also changes the volume of the first audio signal by adjusting the output voltage when the motor drives the PA to control the motor and adjusting the output voltage when the audio PA controls the speaker, so that the volumes of the two audio signals can be adjusted in a correlated manner to meet different volume requirements in different scenarios.
[0135] In the above embodiment, steps with the same sequence number can be considered as the same step. Figure 2 The corresponding embodiments, Figure 3 The corresponding embodiments, Figure 4 The corresponding embodiments, Figure 5 The corresponding embodiments and Figure 6 The corresponding embodiments may be implemented individually or in combination, and this application does not limit this.
[0136] Figure 7 A block diagram of a voltage adjustment device provided by an exemplary embodiment of the present application is shown. The device includes a control module 710 , a receiving module 720 and an adjustment module 730 .
[0137] The control module 710 is used to control the reminder device to send a message reminder when there is an event to be reminded;
[0138] The receiving module 720 is used to receive the audio signal generated by the reminder device during the message reminder process;
[0139] The adjustment module 730 is used to adjust the output voltage used to control the reminder device based on the volume of the audio signal.
[0140] In a possible design of this embodiment, the adjustment module 730 is used to adjust the output voltage used to control the reminder device with the volume of the audio signal as the target volume as the control target, or with the volume of the audio signal falling within the target volume range as the control target.
[0141] In a possible design of this embodiment, the receiving module 720 is used to receive a first audio signal generated by the speaker during the message reminder process;
[0142] The adjustment module 730 is used to adjust the output voltage used to control the speaker by taking the volume of the first audio signal as the target volume as the control target, or taking the volume of the first audio signal falling within the target volume range as the control target.
[0143] In a possible design of this embodiment, the receiving module 720 is used to receive a second audio signal generated by the motor during the message reminder process;
[0144] The adjustment module 730 is used to adjust the output voltage used to control the motor by taking the volume of the second audio signal as the target volume as the control target, or taking the volume of the second audio signal falling within the target volume range as the control target.
[0145] In a possible design of this embodiment, the adjustment module 730 is used to reduce the output voltage used to control the speaker when the volume of the first audio signal is greater than the first threshold;
[0146] When the volume of the first audio signal is less than a second threshold, increasing the output voltage used to control the speaker;
[0147] The first threshold and the second threshold are the same or different.
[0148] In a possible design of this embodiment, the adjustment module 730 is used to reduce the output voltage used to control the motor when the volume of the second audio signal is greater than a third threshold;
[0149] When the volume of the second audio signal is less than a fourth threshold, increasing the output voltage used to control the motor;
[0150] The third threshold and the fourth threshold are the same or different.
[0151] In a possible design of this embodiment, the receiving module 720 is used to receive an ambient audio signal generated by an external environment;
[0152] The adjustment module 730 is used to adjust the output voltage used to control the speaker based on the volume of the first audio signal and the volume of the ambient audio signal.
[0153] In a possible design of this embodiment, the adjustment module 730 is used to reduce the output voltage used to control the speaker when the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is greater than a fifth threshold;
[0154] When the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, the output voltage for controlling the speaker is increased.
[0155] In a possible design of this embodiment, the adjustment module 730 is used to reduce the output voltage used to control the speaker when the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is greater than a fifth threshold;
[0156] When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is less than a fifth threshold, increasing the output voltage used to control the speaker;
[0157] When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference value is equal to the fifth threshold, the output voltage for controlling the speaker is not adjusted.
[0158] In a possible design of this embodiment, the adjustment module 730 is used to increase the output voltage used to control the speaker when the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, so that the volume of the first audio signal is greater than the volume of the ambient audio signal, and the phase difference value is equal to the fifth threshold.
[0159] An embodiment of the present application also provides a terminal device, which includes: a processor and a memory, wherein at least one program is stored in the memory; the processor is used to execute at least one program in the memory to implement the voltage adjustment method provided by the above-mentioned method embodiments.
[0160] Figure 8 800 is a block diagram of a terminal device 800 provided by an exemplary embodiment of the present application. Generally, the terminal device 800 includes: a processor 801 and a memory 802 .
[0161] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may include a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0162] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, which is used to be executed by the processor 801 to implement the voltage adjustment method provided in the method embodiment of the present application.
[0163] In some embodiments, the server 800 may also optionally include: an input interface 803 and an output interface 804. The processor 801, the memory 802 and the input interface 803, the output interface 804 may be connected via a bus or a signal line. Each peripheral device may be connected to the input interface 803, the output interface 804 via a bus, a signal line or a circuit board. The input interface 803, the output interface 804 may be used to connect at least one peripheral device related to input / output to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802 and the input interface 803, the output interface 804 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802 and the input interface 803, the output interface 804 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.
[0164] Those skilled in the art will appreciate that the structure shown above does not constitute a limitation on the terminal device 800 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0165] In an exemplary embodiment, a chip is also provided. The chip includes a programmable logic circuit and / or program instructions. When the chip runs on the terminal device 800, it is used to implement the voltage adjustment method provided in the embodiment of the present application.
[0166] In an exemplary embodiment, a computer program product is also provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor reads the computer instructions from the computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the voltage adjustment method provided in the embodiment of the present application.
[0167] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the voltage adjustment method provided in the embodiment of the present application.
[0168] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0169] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0170] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A voltage adjustment method, characterized in that: The method is executed by a terminal device having a reminder device, and the method includes: When there is an event to be reminded, controlling the reminder device to send a message reminder; Receiving an audio signal generated by the reminder device during the message reminder process; Based on the volume of the audio signal, an output voltage used to control the reminder device is adjusted.
2. The method according to claim 1, characterized in that The adjusting, based on the volume of the audio signal, the output voltage for controlling the reminder device comprises: The output voltage used to control the reminder device is adjusted by taking the volume of the audio signal as the target volume as the control target, or taking the volume of the audio signal falling within the target volume range as the control target.
3. The method according to claim 2, characterized in that The reminder device includes a speaker, and the step of receiving an audio signal generated by the reminder device during the message reminder process includes: Receiving a first audio signal generated by the speaker during the message reminder process; The step of taking the volume of the audio signal as the target volume as the control target, or taking the volume of the audio signal falling within the target volume range as the control target, and adjusting the output voltage used to control the reminder device includes: The output voltage for controlling the speaker is adjusted by taking the volume of the first audio signal as the target volume as a control target, or taking the volume of the first audio signal falling within the target volume range as a control target.
4. The method according to claim 2, characterized in that: The reminder device includes a motor, and the step of receiving the audio signal generated by the reminder device during the message reminder process includes: receiving a second audio signal generated by the motor during the message reminder process; The step of taking the volume of the audio signal as the target volume as the control target, or taking the volume of the audio signal falling within the target volume range as the control target, and adjusting the output voltage used to control the reminder device includes: The output voltage for controlling the motor is adjusted by taking the volume of the second audio signal as the target volume as a control target, or taking the volume of the second audio signal falling within the target volume range as a control target.
5. The method according to claim 3, characterized in that: The step of taking the volume of the first audio signal as the target volume as a control target, or taking the volume of the first audio signal falling within the target volume range as a control target, and adjusting the output voltage used to control the speaker includes: When the volume of the first audio signal is greater than a first threshold, reducing an output voltage used to control the speaker; When the volume of the first audio signal is less than a second threshold, increasing the output voltage used to control the speaker; The first threshold and the second threshold are the same or different.
6. The method according to claim 4, characterized in that The step of adjusting the output voltage for controlling the motor by taking the volume of the second audio signal as the target volume as a control target, or taking the volume of the second audio signal falling within the target volume range as a control target, comprises: When the volume of the second audio signal is greater than a third threshold, reducing the output voltage used to control the motor; When the volume of the second audio signal is less than a fourth threshold, increasing the output voltage used to control the motor; The third threshold and the fourth threshold are the same or different.
7. The method according to claim 1, characterized in that The reminder device includes a speaker, and adjusting the output voltage for controlling the reminder device based on the volume of the audio signal includes: Receiving ambient audio signals generated by the external environment; Based on the volume of the first audio signal and the volume of the ambient audio signal, an output voltage when used to control the speaker is adjusted.
8. The method according to claim 7, characterized in that The adjusting the output voltage for controlling the speaker based on the volume of the first audio signal and the volume of the ambient audio signal includes: When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is greater than a fifth threshold, reducing the output voltage used to control the speaker; When the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, the output voltage for controlling the speaker is increased.
9. The method according to claim 8, characterized in that When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is greater than a fifth threshold, reducing the output voltage used to control the speaker includes: When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is greater than the fifth threshold, reducing the output voltage used to control the speaker; When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is less than the fifth threshold, increasing the output voltage used to control the speaker; When the volume of the first audio signal is greater than the volume of the ambient audio signal and the phase difference is equal to the fifth threshold, the output voltage for controlling the speaker is not adjusted.
10. The method according to claim 8, characterized in that When the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, increasing the output voltage for controlling the speaker comprises: When the volume of the first audio signal is less than or equal to the volume of the ambient audio signal, the output voltage used to control the speaker is increased so that the volume of the first audio signal is greater than the volume of the ambient audio signal, and the phase difference is equal to the fifth threshold.
11. A voltage regulating device, characterized in that: The device comprises a reminder device, and the device comprises: A control module, used for controlling the reminder device to send a message reminder when there is an event to be reminded; A receiving module, used for receiving the audio signal generated by the reminder device during the message reminder process; The adjustment module is used to adjust the output voltage used to control the reminder device based on the volume of the audio signal.
12. A terminal device, characterized in that: The terminal device comprises: a processor and a memory, wherein the memory stores at least one program; the processor is used to execute the at least one program in the memory to implement the voltage adjustment method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the voltage adjustment method according to any one of claims 1 to 10.
14. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the voltage adjustment method according to any one of claims 1 to 10.
