Volume adjustment method, device, computer equipment and readable storage medium

By acquiring the volume information of the terminal device and receiving physical button signals, determining the target volume adjustment strategy, the problem of incomplete volume adjustment in the existing technology is solved, and a wider volume adjustment is achieved to meet the diverse needs of users.

CN115022771BActive Publication Date: 2025-08-15ZHEJIANG GEOFORCECHIP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210617616.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2025-08-15
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

In the prior art, the volume adjustment method cannot adjust all volume information, resulting in the volume adjustment result that the user's adjustment needs cannot meet the user.

Method used

By obtaining the current volume information of the terminal device, receiving the volume adjustment signal sent by the physical buttons, determining the target volume adjustment strategy based on the volume adjustment signal and the current volume information, and playing audio based on this strategy, supporting more volume adjustments.

Benefits of technology

The volume adjustment of more volume gears is achieved, which meets the users' diverse volume adjustment needs and increases the range of volume adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022771B_ABST
    Figure CN115022771B_ABST
Patent Text Reader

Abstract

The present application provides a volume adjustment method, device, computer equipment and readable storage medium, which belongs to the field of circuit control technology. The method includes: obtaining the current volume information of a terminal device that is communicatively connected to an audio device, the current volume information is used to indicate the current volume level of the terminal device; receiving a volume adjustment signal sent by a physical button, the volume adjustment signal includes: a volume increase signal and a volume decrease signal, the physical button is a physical button on the audio device or a physical button on the terminal device; determining a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device; obtaining a target volume adjustment result based on the target volume adjustment strategy; and performing audio playback based on the target volume adjustment result. The present application can increase the range of volume adjustment to meet adjustment needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit control technology, and in particular to a volume adjustment method, apparatus, computer equipment, and readable storage medium. Background Art

[0002] For audio devices, such as headphones or speakers, users usually need to adjust the volume by using the volume adjustment keys on these devices.

[0003] In the prior art, volume adjustment is mainly achieved by operating the volume adjustment button on a mobile phone or audio device to increase or decrease the amplitude of the digital quantity of the audio stream, and then generating a corresponding analog signal for audio playback based on the change in the digital quantity.

[0004] However, when audio is adjusted in this manner, it is not possible to adjust all volume information, resulting in a volume adjustment result that cannot meet adjustment requirements. Summary of the Invention

[0005] The purpose of this application is to provide a volume adjustment method, device, computer equipment and readable storage medium, which can increase the range of volume adjustment and meet adjustment needs.

[0006] The embodiment of the present application is implemented as follows:

[0007] In one aspect of an embodiment of the present application, a volume adjustment method is provided, which is applied to an audio device and includes:

[0008] Obtain the current volume information of the terminal device connected to the audio device, which indicates the current volume level of the terminal device;

[0009] Receive a volume adjustment signal sent by a physical button, the volume adjustment signal including a volume increase signal and a volume decrease signal, the physical button being a physical button on an audio device or a physical button on a terminal device;

[0010] Determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device;

[0011] Based on the target volume adjustment strategy, a target volume adjustment result is obtained;

[0012] Play audio based on the target volume adjustment result.

[0013] Optionally, determining a target volume adjustment strategy according to the volume adjustment signal and current volume information of the terminal device includes:

[0014] Determining adjusted volume information according to the volume adjustment signal and current volume information of the terminal device;

[0015] determining a target interval to which the adjusted volume information belongs;

[0016] If there is an optional volume adjustment strategy that matches the target interval, the optional volume adjustment strategy is used as the target volume adjustment strategy.

[0017] Optionally, after determining the target interval to which the adjusted volume information belongs, the method further includes:

[0018] If there is no optional volume adjustment strategy matching the target interval, a fixed volume adjustment strategy is used as the target volume adjustment strategy, wherein in the fixed volume adjustment strategy, the adjusted volume information and the target volume adjustment result have a fixed mapping relationship.

[0019] Optionally, after receiving the volume adjustment signal sent by the physical button, the method further includes:

[0020] Generate a return signal based on the volume adjustment signal, the return signal including: a command sequence number and adjustable data;

[0021] Send a return signal to the terminal device.

[0022] Optionally, performing audio playback based on the target volume adjustment result includes:

[0023] The codec in the audio device is controlled to play audio according to the target volume adjustment result.

[0024] Optionally, the audio device is communicatively connected to the terminal device via a low voltage differential signaling communication protocol.

[0025] Optionally, receiving a volume adjustment signal sent by a physical button includes:

[0026] If the physical button is a physical button of the terminal device, a volume adjustment signal sent by the physical button is received through a low voltage differential signal communication protocol;

[0027] If the physical button is a physical button of an audio device, a volume adjustment signal sent by the physical button is received through a single-wire signal protocol.

[0028] Another aspect of an embodiment of the present application provides a volume adjustment device, which is applied to an audio device, and includes: an acquisition module, a receiving module, a determination module, a calculation module, and a playback module;

[0029] An acquisition module is used to obtain current volume information of a terminal device that is in communication with the audio device, where the current volume information is used to indicate the current volume level of the terminal device;

[0030] A receiving module, configured to receive a volume adjustment signal sent by a physical button, the volume adjustment signal including a volume increase signal and a volume decrease signal, the physical button being a physical button on an audio device or a physical button on a terminal device;

[0031] A determination module, configured to determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device;

[0032] A calculation module, configured to obtain a target volume adjustment result based on a target volume adjustment strategy;

[0033] The playback module is used to play audio based on the target volume adjustment result.

[0034] Optionally, the determination module is specifically used to determine the adjusted volume information based on the volume adjustment signal and the current volume information of the terminal device; determine the target interval to which the adjusted volume information belongs; if there is an optional volume adjustment strategy that matches the target interval, the optional volume adjustment strategy is used as the target volume adjustment strategy.

[0035] Optionally, the determination module is further configured to use a fixed volume adjustment strategy as the target volume adjustment strategy if no optional volume adjustment strategy matching the target interval exists, wherein in the fixed volume adjustment strategy, the adjusted volume information and the target volume adjustment result have a fixed mapping relationship.

[0036] Optionally, the determination module is further configured to generate a return signal based on the volume adjustment signal, the return signal including: an instruction sequence number and adjustable data; and send the return signal to the terminal device.

[0037] Optionally, the playing module is specifically configured to control a codec in the audio device to play audio according to a target volume adjustment result.

[0038] Optionally, in the apparatus, the audio device and the terminal device are communicatively connected via a low voltage differential signaling communication protocol.

[0039] Optionally, if the physical button is a physical button of a terminal device, the receiving module is specifically used to receive the volume adjustment signal sent by the physical button through a low-voltage differential signal communication protocol; if the physical button is a physical button of an audio device, the receiving module is specifically used to receive the volume adjustment signal sent by the physical button through a single-line signal protocol.

[0040] Another aspect of an embodiment of the present application provides a computer device, including: a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the volume adjustment method are implemented.

[0041] In another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the volume adjustment method are implemented.

[0042] The beneficial effects of the embodiments of the present application include:

[0043] The present application provides a volume adjustment method, apparatus, computer device, and readable storage medium, which can obtain the current volume information of a terminal device in communication with an audio device; receive a volume adjustment signal sent by a physical button; determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device; obtain a target volume adjustment result based on the target volume adjustment strategy; and play audio based on the target volume adjustment result. Specifically, different volume adjustment strategies can be determined based on the volume adjustment signal and the current volume information of the terminal device, and then, based on the different volume adjustment strategies, the volume of more volume levels can be adjusted, thereby increasing the range of volume adjustment and meeting different volume adjustment requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 A schematic diagram of the connection relationship of the audio devices provided in the embodiment of the present application;

[0046] Figure 2 A flow chart of a volume adjustment method provided in an embodiment of the present application;

[0047] Figure 3 Another flow chart of the volume adjustment method provided in an embodiment of the present application;

[0048] Figure 4 Another flow chart of the volume adjustment method provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of a volume adjustment device provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of the volume device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.

[0052] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.

[0053] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0054] In the description of this application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0055] It should be noted that in the prior art, in the process of adjusting the volume, the volume key is mainly used to directly adjust the amplitude of the digital quantity of the audio stream, thereby increasing or decreasing the amplitude. However, since the communication between the terminal device and the audio device is usually based on low-voltage differential signaling (LVDS), this communication method is used to intelligently adjust the volume information of some intervals. For example, there are 16 adjustable volume levels for the terminal device, but this communication method can only be used to adjust some of the levels, such as the adjustment of the first 8 levels.

[0056] That is to say, when the audio is adjusted using the existing technology, it is impossible to adjust all the volume information, which leads to the situation that the volume adjustment result may not meet the adjustment requirements. For example, when the user needs to adjust to gear 10, the existing technology can only adjust gears 1-8, and cannot adjust gear 10, which cannot meet the user's adjustment needs.

[0057] The present application provides a volume adjustment method to solve the above-mentioned defects in the prior art. The connection relationship of the audio devices involved in the embodiments of the present application is explained in detail below.

[0058] Figure 1For a schematic diagram of the connection relationship of the audio devices provided in the embodiment of this application, please refer to Figure 1 The audio device 100 may specifically include: a main control chip 110, a physical button 120 and a codec 130. The main control chip 110 is connected to the physical button 120 and the codec 130 respectively; the audio device 100 may be connected to the terminal device 200.

[0059] Optionally, the audio device 100 can be specifically a headset, a speaker, an amplifier or any type of wired audio device; the terminal device 200 can be specifically a mobile phone, a computer, a tablet computer, a game console or any type of electronic device, without limitation here.

[0060] The main control chip 110 may be a control chip with processing functions, such as a microcontroller unit (MCU), a central processing unit (CPU), etc. There is no specific limitation here, and any chip that can realize data information processing may be used.

[0061] The physical button 120 can specifically be a volume adjustment button on the audio device 100, such as: volume plus or minus buttons on headphones, a volume knob on a speaker, etc., and is not specifically limited here.

[0062] The codec 130 (CODEC) can be a device with encoding and decoding functions in digital communication. In the embodiment of the present application, the codec 130 can convert the digital signal sent by the main control chip 110 into an analog signal to achieve audio playback.

[0063] Specifically, the main control chip 110 and the codec 130 can communicate with each other via I2C (Inter-Integrated Circuit, a two-wire serial bus) and I2S (Inter-IC Sound, an integrated circuit internal audio bus).

[0064] The following is a detailed explanation of the specific implementation process of the volume adjustment method provided in the embodiment of the present application.

[0065] Figure 2 For a flow chart of the volume adjustment method provided in the embodiment of the present application, please refer to Figure 2 , the method comprising:

[0066] S210: Acquire current volume information of a terminal device connected to the audio device for communication.

[0067] The current volume information is used to indicate the current volume of the terminal device.

[0068] The execution subject of the method may be the above-mentioned audio device, specifically the main control chip in the audio device.

[0069] Optionally, the current volume information may specifically be the current volume information of the terminal device, such as volume level, volume level, etc. Any information that can represent the volume of the terminal device when playing audio is sufficient, and no specific form of limitation is imposed here.

[0070] The audio device can be connected to the terminal device for communication. After the communication connection is established, the terminal device can actively send the current volume information of the terminal device to the audio device; alternatively, after the communication connection is established, the audio device can send an acquisition request to the terminal device, and the terminal device can send the current volume information of the terminal device to the audio device based on the acquisition request.

[0071] After the audio device obtains the current volume information of the terminal device, it can store it, for example, it can be stored in the memory of the main control chip.

[0072] S220: Receive a volume adjustment signal sent by a physical button.

[0073] The volume adjustment signal includes: a volume increase signal and a volume decrease signal, and the physical button is a physical button on the audio device or a physical button on the terminal device.

[0074] Optionally, the audio device can receive a volume adjustment signal sent by a physical button, wherein the volume adjustment signal can specifically be a signal generated by the physical button in response to a user's operation, for example: when the user presses the volume increase button, a volume increase signal can be generated; when the user presses the volume decrease button, a volume decrease signal can be generated.

[0075] The physical button may be a physical button on the audio device, or may be a physical button on the terminal device (eg, a volume increase or decrease button on a mobile phone).

[0076] S230: Determine a target volume adjustment strategy according to the volume adjustment signal and current volume information of the terminal device.

[0077] Optionally, after receiving the volume adjustment signal, the audio device can determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device. Different volume adjustment signals and current volume information of the terminal device correspond to different target volume adjustment strategies, which are not specifically limited here.

[0078] It should be noted that the target volume adjustment strategy may specifically be a strategy for processing based on the volume adjustment signal, and different processing results may be obtained based on different target volume adjustment strategies.

[0079] S240: Obtain a target volume adjustment result based on the target volume adjustment strategy.

[0080] Optionally, after the target volume adjustment strategy is determined, corresponding volume adjustment processing may be performed based on the target volume adjustment strategy to obtain a target volume adjustment result.

[0081] The target volume adjustment result may be a digital signal after adjustment, which may be a volume level or a decibel value, etc. The audio device may convert the digital signal into a corresponding analog signal to achieve audio playback.

[0082] In addition, the target volume adjustment strategy may specifically be a corresponding relationship or a specific calculation formula, and any target volume adjustment result can be obtained through the strategy, and is not limited here.

[0083] It should be noted that the audio device may receive multiple volume adjustment signals, and may execute the above steps after each reception to obtain different target volume adjustment strategies, and then perform corresponding processing based on the different target volume adjustment strategies to obtain target volume adjustment results.

[0084] S250: Playing audio based on the target volume adjustment result.

[0085] Optionally, after the audio device makes the above adjustment, it can play audio based on the target volume adjustment result. Specifically, the main control chip can send the target volume adjustment result to the codec, and then the codec converts the format into a playable analog signal for audio playback.

[0086] In a volume adjustment method provided in an embodiment of the present application, the current volume information of a terminal device in communication with an audio device can be obtained; a volume adjustment signal sent by a physical button can be received; a target volume adjustment strategy can be determined based on the volume adjustment signal and the current volume information of the terminal device; a target volume adjustment result can be obtained based on the target volume adjustment strategy; and audio playback can be performed based on the target volume adjustment result. Specifically, different volume adjustment strategies can be determined based on the volume adjustment signal and the current volume information of the terminal device, and the volume of more volume levels can be adjusted based on the different volume adjustment strategies, thereby increasing the range of volume adjustment and meeting different volume adjustment requirements.

[0087] Another specific implementation process of the volume adjustment method involved in the embodiment of the present application is explained in detail below.

[0088] Figure 3 For another flow chart of the volume adjustment method provided in the embodiment of the present application, please refer to Figure 3, according to the volume adjustment signal and the current volume information of the terminal device, determine the target volume adjustment strategy, including:

[0089] S310: Determine adjusted volume information according to the volume adjustment signal and current volume information of the terminal device.

[0090] Optionally, after the audio device receives the volume adjustment signal, it may determine adjusted volume information based on the volume adjustment signal and current volume information of the terminal device.

[0091] Among them, if the current volume information of the terminal device is the volume level, the adjusted volume level can be calculated according to the volume adjustment signal as the adjusted volume information; if the current volume information of the terminal device is the specific volume value, the adjusted volume specific value can be calculated according to the volume adjustment signal as the volume level.

[0092] S320: Determine the target interval to which the adjusted volume information belongs.

[0093] Optionally, after determining the adjusted volume information based on the above method, the target interval to which the adjusted volume information belongs can be determined based on the specific value of the volume information. For example, if it is a specific volume level, the specific level interval can be determined; if it is a specific volume value, the specific decibel interval can be determined, etc., and no specific restrictions are made here.

[0094] The division of the target intervals may be pre-configured, and different target intervals may be pre-configured with different optional volume adjustment strategies.

[0095] If there is an optional volume adjustment strategy that matches the target interval, then S330: the optional volume adjustment strategy is used as the target volume adjustment strategy.

[0096] Optionally, after determining the target interval, if there is an optional volume adjustment strategy that matches the target interval, the optional volume adjustment strategy is used as the target volume adjustment strategy, and audio playback can be performed based on the target volume adjustment result.

[0097] For example, if the volume level is between 1 and 8, there may be no corresponding optional volume adjustment strategy. However, if the volume level is between 9 and 16, each level may have a corresponding optional volume adjustment strategy. If the adjusted volume level is determined to be level 9, the optional volume adjustment strategy corresponding to level 9 may be used as the target volume adjustment strategy, and audio playback may be performed based on the target volume adjustment result.

[0098] Correspondingly, if there is no optional volume adjustment strategy matching the target interval, then S340: the fixed volume adjustment strategy is used as the target volume adjustment strategy.

[0099] In the fixed volume adjustment strategy, the adjusted volume information and the target volume adjustment result have a fixed mapping relationship.

[0100] Optionally, if there is no optional volume adjustment strategy matching the target interval, a pre-configured fixed volume adjustment strategy may be used as the target volume adjustment strategy. Specifically, the target volume adjustment result corresponding to the adjusted volume information may be determined according to a preset mapping relationship.

[0101] For a fixed volume adjustment strategy, each input adjusted volume information can be processed in the same way to obtain a corresponding target volume adjustment result.

[0102] For example, if the volume level after adjustment is between 1 and 8, there may be no corresponding optional volume adjustment strategy. Specifically, for example, if the volume level after adjustment is 1, the target volume adjustment strategy corresponding to level 1 can be determined based on the preset mapping relationship. In other words, when the level is 1, a digital signal corresponding to level 1 can be generated as the corresponding target volume adjustment result. The same applies to other levels without optional volume adjustment strategies, which will not be elaborated here.

[0103] Among them, the optional volume adjustment strategy may include multiple strategies, and one of the multiple strategies is selected as the target volume adjustment strategy based on the actual adjusted volume information; for the fixed volume adjustment strategy, all adjusted volume information within the target range is adjusted using the same fixed volume adjustment strategy.

[0104] In the volume adjustment method provided in the embodiments of the present application, the adjusted volume information can be determined based on the volume adjustment signal and the current volume information of the terminal device; the target interval to which the adjusted volume information belongs can be determined; if an optional volume adjustment strategy matching the target interval exists, the optional volume adjustment strategy is used as the target volume adjustment strategy; if no optional volume adjustment strategy matching the target interval exists, the fixed volume adjustment strategy is used as the target volume adjustment strategy. In this manner, the target volume adjustment strategy corresponding to the adjusted volume information can be further determined based on the target interval to which the adjusted volume information belongs, thereby adopting different target volume adjustment strategies for processing based on different adjusted volume information to obtain corresponding target volume adjustment results, thereby improving the accuracy of the target volume adjustment results.

[0105] Another specific implementation process of the volume adjustment method involved in the embodiment of the present application is explained in detail below.

[0106] Figure 4 For another flow chart of the volume adjustment method provided in the embodiment of the present application, please refer to Figure 4 After receiving the volume adjustment signal sent by the physical button, the method further includes:

[0107] S410: Generate a return signal based on the volume adjustment signal.

[0108] The return signal includes: instruction sequence number and adjustable data.

[0109] Optionally, after receiving the volume adjustment signal, the audio device may generate a corresponding return signal based on the volume adjustment signal. The return signal may be fed back to the terminal device to indicate that the audio device has received the volume adjustment signal.

[0110] In the return signal, the instruction serial number may specifically be an identification serial number of the instruction, and the adjustable data may be the data sent for adjustment.

[0111] S420: Send the return signal to the terminal device.

[0112] Optionally, after generating the above-mentioned return signal, the return signal can be sent to the terminal device. After receiving the return signal, the terminal device can also send a corresponding reply command, for example: it can specifically reply with the calibration data corresponding to the adjustment data, etc., or, after receiving the return signal, if the terminal device determines that no reply is required, it can also not send the corresponding calibration data to calibrate the adjustment data. This can be set according to actual needs and is not limited to this.

[0113] Optionally, playing audio based on the target volume adjustment result includes: controlling a codec in an audio device to play audio according to the target volume adjustment result.

[0114] Optionally, after the main control chip generates the target volume adjustment result, it can send the target volume adjustment result to the codec in an established manner based on the I2C protocol, so that the codec performs digital-to-analog conversion after receiving the target volume adjustment result, obtains an analog signal corresponding to the target volume adjustment result, and outputs the amplitude of the analog signal to achieve the process of audio playback according to the target volume adjustment result.

[0115] Optionally, the audio device is communicatively connected to the terminal device via a low voltage differential signaling communication protocol.

[0116] It should be noted that when the audio device interacts with the terminal device, it can communicate in accordance with the voltage differential signal communication protocol. For example, when acquiring the current volume information, receiving the volume adjustment signal sent by the physical button of the terminal device, and the audio device sending the return signal to the terminal device, information can be transmitted using the above communication protocol.

[0117] Correspondingly, for different physical buttons, the transmission process of the volume adjustment signal is also different, as follows:

[0118] If the physical button is a physical button of a terminal device, the volume adjustment signal sent by the physical button is received through a low-voltage differential signal communication protocol; if the physical button is a physical button of an audio device, the volume adjustment signal sent by the physical button is received through a single-line signal protocol.

[0119] It should be noted that, during the transmission process, the adjusted volume information can be transmitted in the form of a character string or a number in any base. In the target volume adjustment strategy, the corresponding volume adjustment result can be obtained by directly calculating the calculated formula between the adjusted volume information and the target volume adjustment result.

[0120] For example, the target volume adjustment strategy may be specifically expressed as the following formula:

[0121] Vol=X1-Data / X2;

[0122] Among them, Vol can be the target volume adjustment result, Data can be the adjusted volume information; X1 and X2 can be pre-configured constant coefficients. In different target volume adjustment strategies, the values of X1 and X2 can be different, and no specific limitation is made here.

[0123] It should be noted that the above formula is only an example. In actual implementation, it can be any linear formula and is not limited to the above form.

[0124] The above method can be used to adjust the volume of all gears. For example, due to the limitation of the communication method in the prior art, only the volume adjustment of gears 1 to 8 can be achieved. Through the above method provided by this application, combined with different target volume adjustment strategies, more comprehensive volume adjustment can be achieved, the range of volume adjustment can be increased, and the adjustment needs can be met.

[0125] The following describes the apparatus, device, storage medium, etc. corresponding to the volume adjustment method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.

[0126] Figure 5For a structural diagram of the volume adjustment device provided in the embodiment of the present application, please refer to Figure 5 , the device includes: an acquisition module 510, a receiving module 520, a determination module 530, a calculation module 540 and a playback module 550;

[0127] An acquisition module 510 is configured to acquire current volume information of a terminal device that is communicatively connected to the audio device, where the current volume information indicates the current volume level of the terminal device.

[0128] A receiving module 520 is configured to receive a volume adjustment signal sent by a physical button, the volume adjustment signal including a volume increase signal and a volume decrease signal, and the physical button is a physical button on an audio device or a physical button on a terminal device;

[0129] A determination module 530 is configured to determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device;

[0130] A calculation module 540 is configured to obtain a target volume adjustment result based on the target volume adjustment strategy;

[0131] The playing module 550 is configured to play audio based on the target volume adjustment result.

[0132] Optionally, the determination module 530 is specifically used to determine the adjusted volume information based on the volume adjustment signal and the current volume information of the terminal device; determine the target interval to which the adjusted volume information belongs; if there is an optional volume adjustment strategy that matches the target interval, then the optional volume adjustment strategy is used as the target volume adjustment strategy.

[0133] Optionally, the determination module 530 is further configured to use a fixed volume adjustment strategy as the target volume adjustment strategy if no optional volume adjustment strategy matching the target interval exists, wherein in the fixed volume adjustment strategy, the adjusted volume information and the target volume adjustment result have a fixed mapping relationship.

[0134] Optionally, the determination module 530 is further configured to generate a return signal based on the volume adjustment signal, the return signal including: an instruction sequence number and adjustable data; and send the return signal to the terminal device.

[0135] Optionally, the playing module 550 is specifically configured to control a codec in the audio device to play audio according to the target volume adjustment result.

[0136] Optionally, in the apparatus, the audio device and the terminal device are communicatively connected via a low voltage differential signaling communication protocol.

[0137] Optionally, if the physical button is a physical button of a terminal device, the receiving module 520 is specifically used to receive the volume adjustment signal sent by the physical button through a low-voltage differential signal communication protocol; if the physical button is a physical button of an audio device, the receiving module 520 is specifically used to receive the volume adjustment signal sent by the physical button through a single-line signal protocol.

[0138] The above-mentioned device is used to execute the method provided in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0139] The above modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0140] Figure 6 For a structural diagram of the volume device provided in the embodiment of this application, please refer to Figure 6 The computer device includes: a memory 610 and a processor 620. The memory 610 stores a computer program that can be run on the processor 620. When the processor 620 executes the computer program, the steps of the volume adjustment method are implemented.

[0141] Optionally, the computer device may specifically be a main control chip of the above-mentioned audio device.

[0142] In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the volume adjustment method are implemented.

[0143] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0144] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0145] In addition, the functional units in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.

[0146] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor (English: processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, abbreviated: ROM), a random access memory (English: Random Access Memory, abbreviated: RAM), a magnetic disk or an optical disk, and other media that can store program code.

[0147] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited to them. Any changes or substitutions that can be easily conceived by any person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0148] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.

Claims

1. A volume adjustment method, characterized in that: The method is applied to an audio device, and the method comprises: Acquire current volume information of a terminal device communicatively connected to the audio device, where the current volume information is used to indicate the current volume level of the terminal device; receiving a volume adjustment signal sent by a physical button, the volume adjustment signal including a volume increase signal and a volume decrease signal, the physical button being a physical button on the audio device or a physical button on the terminal device; determining a target volume adjustment strategy according to the volume adjustment signal and the current volume information of the terminal device; Based on the target volume adjustment strategy, obtaining a target volume adjustment result; Playing audio based on the target volume adjustment result; The determining a target volume adjustment strategy according to the volume adjustment signal and the current volume information of the terminal device includes: determining adjusted volume information according to the volume adjustment signal and current volume information of the terminal device; determining a target interval to which the adjusted volume information belongs; If there is an optional volume adjustment strategy that matches the target interval, the optional volume adjustment strategy is used as the target volume adjustment strategy, and different optional volume adjustment strategies are pre-configured for different target intervals.

2. The volume adjustment method according to claim 1, wherein: After determining the target interval to which the adjusted volume information belongs, the method further includes: If there is no optional volume adjustment strategy matching the target interval, a fixed volume adjustment strategy is used as the target volume adjustment strategy, wherein in the fixed volume adjustment strategy, the adjusted volume information and the target volume adjustment result have a fixed mapping relationship.

3. The volume adjustment method according to claim 1, wherein: After receiving the volume adjustment signal sent by the physical button, the method further includes: Generate a return signal based on the volume adjustment signal, the return signal including: a command sequence number and adjustable data; The return signal is sent to the terminal device.

4. The volume adjustment method according to any one of claims 1 to 3, wherein: The performing audio playback based on the target volume adjustment result includes: The codec in the audio device is controlled to play audio according to the target volume adjustment result.

5. The volume adjustment method according to any one of claims 1 to 3, wherein: The audio device is communicatively connected to the terminal device via a low voltage differential signaling communication protocol.

6. The volume adjustment method according to claim 5, wherein: The receiving the volume adjustment signal sent by the physical button includes: If the physical button is a physical button of a terminal device, receiving a volume adjustment signal sent by the physical button through the low voltage differential signal communication protocol; If the physical button is a physical button of an audio device, a volume adjustment signal sent by the physical button is received through a single-line signal protocol.

7. A volume adjustment device, characterized in that: The device is applied to an audio device, and comprises: an acquisition module, a receiving module, a determination module, a calculation module and a playing module; The acquisition module is used to acquire current volume information of a terminal device that is communicatively connected to the audio device, where the current volume information is used to indicate the current volume level of the terminal device; The receiving module is configured to receive a volume adjustment signal sent by a physical button, the volume adjustment signal including a volume increase signal and a volume decrease signal, and the physical button is a physical button on the audio device or a physical button on the terminal device; The determining module is configured to determine a target volume adjustment strategy based on the volume adjustment signal and the current volume information of the terminal device; The calculation module is configured to obtain a target volume adjustment result based on the target volume adjustment strategy; The playback module is configured to play audio based on the target volume adjustment result; The calculation module is specifically configured to: determine adjusted volume information based on the volume adjustment signal and current volume information of the terminal device; determine a target interval to which the adjusted volume information belongs; and if an optional volume adjustment strategy matching the target interval exists, use the optional volume adjustment strategy as the target volume adjustment strategy, with different optional volume adjustment strategies pre-configured for different target intervals.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Volume regulation method, volume regulation device and processing equipment

    CN107371094A

  • Volume gear adjusting method and electronic equipment

    CN113489844A