CN114253503A - Audio data processing method and electronic equipment - Google Patents

Audio data processing method and electronic equipment Download PDF

Info

Publication number
CN114253503A
CN114253503A CN202111580916.5A CN202111580916A CN114253503A CN 114253503 A CN114253503 A CN 114253503A CN 202111580916 A CN202111580916 A CN 202111580916A CN 114253503 A CN114253503 A CN 114253503A
Authority
CN
China
Prior art keywords
audio
electronic equipment
playing
module
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111580916.5A
Other languages
Chinese (zh)
Inventor
林翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111580916.5A priority Critical patent/CN114253503A/en
Publication of CN114253503A publication Critical patent/CN114253503A/en
Priority to PCT/CN2022/140715 priority patent/WO2023116769A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a processing method of audio data and electronic equipment, and belongs to the technical field of electronics. The audio data processing method comprises the following steps: when the electronic equipment is in wireless charging connection with the charging seat, detecting the state parameters of the electronic equipment; determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is not provided with the second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from a plurality of pre-stored audio parameters, and audio playing is carried out according to the target audio parameter; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is provided with the second loudspeaker module, audio playing is carried out in a second audio playing mode, and audio playing is carried out through the second loudspeaker module; and under the condition that the sound outlet of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode.

Description

Audio data processing method and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a processing method of audio data and electronic equipment.
Background
Along with the development of electronic technology, the variety of electronic equipment is more and more abundant, and different types of electronic equipment often dispose the charging wire of different grade type, is unfavorable for user's carrying and use, so carry out wireless demand that charges for electronic equipment and increase day by day.
When the electronic equipment is charged wirelessly, the electronic equipment can be connected with the charging seat in a vertical screen or horizontal screen state. When the electronic device is connected to the charging seat, the sound outlet of the speaker disposed on the electronic device may be blocked by the charging seat, and the sound outlet blocked by the sound outlet may reduce the audio playing effect of the electronic device.
Disclosure of Invention
The embodiment of the application aims to provide audio data processing and electronic equipment, and the problem that the sound outlet of a loudspeaker is blocked by a charging seat to influence the audio playing effect can be solved.
In a first aspect, an embodiment of the present application provides an audio data processing method, which is applied to an electronic device, and the method includes:
detecting the state parameters of the electronic equipment when the electronic equipment is in wireless charging connection with a charging seat;
determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters;
under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is not provided with a second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from various pre-stored audio parameters, and audio playing is carried out according to the target audio parameter;
under the condition that the sound outlet of the first loudspeaker module is shielded and the second loudspeaker module is arranged on the charging seat, audio playing is carried out in a second audio playing mode, and the audio playing is carried out through the second loudspeaker module;
and under the condition that the sound outlet hole of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode.
In a second aspect, an embodiment of the present application provides an apparatus for processing audio data, which is executed in an electronic device, and includes:
the detection module is used for detecting the state parameters of the electronic equipment when the electronic equipment is wirelessly charged and connected with a charging seat;
the first determining module is used for determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is blocked or not according to the state parameter;
the first playing module is used for playing audio in a first audio playing mode under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is not provided with a second loudspeaker module, determining a target audio parameter from a plurality of pre-stored audio parameters and playing audio by using the target audio parameter;
the second playing module is used for playing audio in a second audio playing mode under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is provided with the second loudspeaker module, and playing audio through the second loudspeaker module;
and the third playing module is used for playing audio in a third audio playing mode under the condition that the sound outlet of the first loudspeaker module is not blocked.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when executed by the processor, the program or the instruction implements the steps of the audio data processing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the audio data processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method for processing audio data according to the first aspect.
In the embodiment of the application, when the electronic equipment is wirelessly charged and connected with a charging seat, the state parameters of the electronic equipment are detected; determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is not provided with the second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from a plurality of pre-stored audio parameters, and audio playing is carried out according to the target audio parameter; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is provided with the second loudspeaker module, audio playing is carried out in a second audio playing mode, and audio playing is carried out through the second loudspeaker module; and under the condition that the sound outlet of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode. Through the technical scheme of this application embodiment, can judge whether the sound hole is sheltered from according to electronic equipment's state parameter to take different audio playback modes in a flexible way under the different condition, and then improved electronic equipment's audio playback effect.
Drawings
Fig. 1 is a first flowchart illustrating a method for processing audio data according to an embodiment of the present application;
fig. 2 is a first physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application;
fig. 3 is a second physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application;
fig. 4 is a schematic frequency-loudness diagram of an electronic device playing audio data in different states according to an embodiment of the present application;
FIG. 5 is a block diagram of a circuitry framework of an electronic device according to an embodiment of the present application;
FIG. 6 is a frequency-gain diagram of a first audio parameter provided by an embodiment of the present application;
fig. 7 is a third physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application;
FIG. 8 is a block diagram of the circuitry of the cradle according to one embodiment of the present application;
fig. 9 is a second flowchart of a method for processing audio data according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an apparatus for processing audio data according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a processing method of audio data according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a first flowchart illustrating a method for processing audio data according to an embodiment of the present application.
Step S102, when the electronic device is wirelessly charged and connected with the charging seat, the state parameters of the electronic device are detected.
The CPU (central processing unit) of the electronic device can determine whether the electronic device is wirelessly connected to the charging cradle, and the principle is as follows: the electronic device may include a first coil and the charging dock may include a second coil. When the electronic equipment is wirelessly charged and connected with the charging seat, the first coil is in communication connection with the second coil; when the electronic equipment is disconnected with the charging seat in a wireless charging mode, the first coil and the second coil stop being in communication connection. The CPU may determine whether the electronic device is wirelessly connected to the charging dock according to whether the first coil receives the communication signal from the second coil.
It should be noted that, when the electronic device is wirelessly charged and connected to the charging seat, the electronic device may be in a charging state, or may be in a non-charging state due to the full charge of the electric quantity, and the second coil will continuously transmit the communication signal to the first coil as long as the electronic device remains connected to the charging seat regardless of whether the electronic device is in the charging state.
The state parameters of the electronic device may include one or more of the following parameters: the state parameter of the horizontal and vertical screen states of the representation electronic equipment, the shielding state parameter of whether the sound outlet hole of the first loudspeaker module of the representation electronic equipment is shielded, and the like.
The state parameters representing the horizontal and vertical screen states of the electronic equipment can be acquired through a gravity sensor G-sensor positioned in the electronic equipment. The shielding state parameter for representing whether the sound outlet of the first loudspeaker module is shielded or not can be acquired by a sensor which is arranged inside the sound outlet in advance or surrounds the sound outlet. The sound outlet of the first speaker module can be arranged at the bottom of the electronic device or at two sides of the electronic device.
And step S104, determining whether the sound outlet hole of the first loudspeaker module of the electronic equipment is blocked or not according to the state parameters.
When the electronic equipment is wirelessly charged and connected with the charging seat, the state parameters of the transverse and vertical screen states of the electronic equipment can reflect whether the sound outlet of the first loudspeaker module of the electronic equipment is shielded or not.
The first speaker module is disposed at the bottom of the electronic device as an example: the electronic equipment is in wireless charging connection with the charging seat, the vertical screen of the electronic equipment is determined to be placed on the charging seat through state parameters representing the horizontal and vertical screen states of the electronic equipment, the bottom of the electronic equipment is connected with the charging seat, and a sound outlet hole of a first loudspeaker module arranged at the bottom is shielded by the charging seat; the electronic equipment is wirelessly charged and connected with the charging seat, the transverse screen of the electronic equipment is determined to be placed on the charging seat through the state parameters of the transverse and vertical screen states of the electronic equipment, one side of the electronic equipment is connected with the charging seat, and the sound outlet hole of the first loudspeaker module arranged at the bottom is not shielded by the charging seat.
Optionally, the state parameter comprises a first state and a second state; under the condition that the electronic equipment is in a first state, the electronic equipment is placed on the charging seat in a vertical mode, and the sound outlet hole of the first loudspeaker module is shielded by the charging seat; under the condition that the electronic equipment is in the second state, the transverse screen of the electronic equipment is placed on the charging seat, and the sound outlet hole of the first loudspeaker module is not shielded.
In the following, taking an electronic device as a mobile phone as an example, the definition of the bottom of the electronic device and one side of the electronic device in the embodiment of the present application is described. The commonly used mobile phone can be regarded as a cuboid with six sides, one of the six sides of the cuboid is a mobile phone screen, and the mobile phone screen can be used for displaying a user operation interface of the mobile phone. One surface, namely the bottom of the mobile phone, of four surfaces adjacent to the mobile phone screen in the cuboid, which is close to the right lower side of the user operation interface; the side close to the right upper side of the user operation interface is the top of the mobile phone; the side close to the right left side or right side of the user operation interface is the side of the mobile phone.
The first state can be a vertical screen state, and when the electronic equipment is wirelessly charged and connected with the charging seat, the electronic equipment is in the vertical screen state, namely the electronic equipment is placed on the charging seat in a vertical screen mode. The electronic equipment is internally provided with a first loudspeaker module, and a sound outlet of the first loudspeaker module is positioned at the bottom of the electronic equipment. When the electronic equipment vertical screen is placed on the charging seat, the bottom of the electronic equipment is contacted with the charging seat, and the sound outlet hole positioned at the bottom is shielded by the charging seat.
The second state can be a horizontal screen state, and when the electronic device is wirelessly charged and connected with the charging seat, the electronic device is in the horizontal screen state, that is, the horizontal screen of the electronic device is placed on the charging seat. The electronic equipment is internally provided with a first loudspeaker module, and a sound outlet of the first loudspeaker module is positioned at the bottom of the electronic equipment. When the electronic equipment vertical screen is placed on the charging seat, one side of the electronic equipment is in contact with the charging seat, and the sound outlet hole positioned at the bottom is not shielded by the charging seat.
The following may specifically describe this embodiment with reference to fig. 2, fig. 3, and fig. 4: fig. 2 is a first physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application. Fig. 3 is a second physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application. Fig. 4 is a schematic frequency-loudness diagram of an electronic device playing audio data in different states according to an embodiment of the present application.
As shown in fig. 2, the electronic device 201 is connected to the charging cradle 202, and the electronic device 201 is in a landscape state. As shown in fig. 3, the electronic device 201 is connected to the charging dock 202, and the electronic device 201 is in a vertical screen state.
The sound outlet of the first speaker module is located at the bottom of the electronic device 201, and as shown in fig. 3, when the electronic device 201 is wirelessly charged and connected with the charging seat 202 and the electronic device 201 is in a vertical screen state, the sound outlet of the first speaker module is shielded by the charging seat 202; as shown in fig. 2, when the electronic device 201 is wirelessly charged and connected to the charging stand 202 and the electronic device 201 is in a landscape state, the sound outlet of the first speaker module is not blocked.
As shown in fig. 4, in the graph, the frequency is used as an abscissa, the unit is Hz, the loudness of sound is used as an ordinate, a curve 401 is a frequency-loudness curve when the electronic device is wirelessly connected to the charging stand and the electronic device is in a landscape state, and a curve 402 is a frequency-loudness curve when the electronic device is wirelessly connected to the charging stand and the electronic device is in a portrait state.
As can be seen from fig. 4, when the frequency is greater than the specific frequency, the loudness corresponding to the curve 402 is greatly decreased, which is understood that the high frequency response of the curve 402 is significantly decreased, so that the loudness corresponding to the curve 401 is significantly greater than the loudness corresponding to the curve 402. The subjective perception that the user listens to the audio data corresponding to curve 402 is that the sound is muffled and not clear enough. The specific frequency may be 3000 Hz.
It should be noted that, if the electronic device is not connected to the charging seat, the sound outlet of the first speaker module cannot be blocked by the charging seat, and it is not necessary to detect the horizontal and vertical screen states of the electronic device.
In another embodiment, if the sound outlet of the first speaker module is disposed at one side of the electronic device, and when the electronic device is connected to the charging seat and the electronic device is in the horizontal screen state, the sound outlet is blocked by the charging seat, then in the frequency-loudness schematic diagram shown in fig. 4, the curve 401 is a frequency-loudness curve when the electronic device is connected to the charging seat and the electronic device is in the vertical screen state, and the curve 402 is a frequency-loudness curve when the electronic device is connected to the charging seat and the electronic device is in the horizontal screen state, which is opposite to the aforementioned embodiment in which the sound outlet of the first speaker module is disposed at the bottom of the electronic device, and is not repeated here.
Before detecting a state parameter of the electronic device, the electronic device may receive a first instruction; the first instruction is used for instructing the electronic equipment to play audio data.
In the electronic device, the execution subject performing the step of receiving the first instruction may be a user input unit. Namely, a user input unit of the electronic equipment receives a first instruction submitted by a user and sends the first instruction to a CPU of the electronic equipment.
The first instruction may be an instruction submitted by a user for the electronic device. The first instruction is used for instructing the electronic equipment to play audio data through the first loudspeaker module. The audio data may be audio data of a song or audio data of a video. And playing the audio data through the first loudspeaker module, namely, externally playing the audio data.
For example, the user gives an instruction to play song A to the mobile phone, or the user gives an instruction to play video B to the tablet computer.
Before receiving the first instruction, the electronic device may be wirelessly connected to the charging cradle or not connected to the charging cradle. That is, the wireless charging connection between the electronic device and the charging dock may occur before the electronic device receives the first command or after the electronic device receives the first command. The charging seat can be a charging device for wired charging or a charging device for wireless charging.
For example, the mobile phone is connected with a charging seat with a wireless charging function to wirelessly charge the mobile phone, and then receives a first instruction for instructing the mobile phone to play the song nail through the first speaker module. For another example, a first instruction for instructing the mobile phone to play audio data of the video b through the first speaker module is received, and then the mobile phone is placed on a charging stand for wireless charging.
The first instruction may carry a first identification. The first identifier may be used to query the first audio data to be played.
After step S104 is performed, one of step S106, step S108, and step S110 may be performed.
The charging seat can be a charging seat provided with the second loudspeaker module, and can also be a charging seat not provided with the second loudspeaker module.
If the charging seat is not provided with the second loudspeaker module, if the sound outlet hole of the first loudspeaker module of the electronic equipment is shielded, executing the step S106; if it is determined that the sound outlet of the first speaker module of the electronic device is not blocked, step S110 is executed.
If the charging seat is provided with the second loudspeaker module, if the sound outlet hole of the first loudspeaker module of the electronic equipment is determined to be blocked, executing the step S108; if it is determined that the sound outlet of the first speaker module of the electronic device is not blocked, step S110 is executed.
And S106, under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is not provided with the second loudspeaker module, carrying out audio playing in a first audio playing mode, determining a target audio parameter from a plurality of prestored audio parameters, and carrying out audio playing in the target audio parameter.
The pre-stored multiple audio parameters may include a target audio parameter called when the sound outlet of the first speaker module is blocked, or may include a conventional audio parameter called when the sound outlet of the first speaker module is not blocked.
The target audio parameter and the conventional audio parameter may be audio parameters used for audio processing of the audio data when the electronic device plays the audio data out.
The first audio playing mode can be an audio playing mode which improves the audio playing effect by calling the target audio parameter to play audio under the condition that the sound outlet of the first loudspeaker module is blocked.
Optionally, playing audio with the target audio parameter includes: acquiring first audio data to be played; configuring an equalizer module in the electronic equipment according to the target audio parameters; performing gain processing on the first audio data through the configured equalizer module to obtain second audio data; and playing the second audio data.
The method includes the steps of performing real-time audio processing on first audio data to be played according to a target audio parameter, wherein the first audio data comprise a plurality of audio signals arranged in a time sequence, searching gain data corresponding to the frequency of each audio signal in the first audio parameter, configuring an equalizer module in the electronic equipment according to the gain data, performing gain processing on the output loudness of each audio signal in the first audio data by using the configured equalizer module, and playing second audio data by using the first audio data after the gain processing as the second audio data.
Fig. 5 is a circuit system framework diagram of an electronic device according to an embodiment of the present application. The circuit system is a circuit system which is embodied by circuit devices in the electronic equipment for executing the steps of the audio data processing method. As shown in the figure, the central processing unit CPU505 includes an instruction sending module 501 and an audio data transmission module 502, the audio data transmission module 502 is in communication connection with the first smart power amplifier 503, the instruction sending module 501 is connected with the first smart power amplifier 503, and the first smart power amplifier 502 is connected with the first speaker module 504. Wherein:
CPU505 is the control hub for the entire circuitry.
The instruction sending module 501 may be an I2C (Inter-Integrated Circuit, two-wire serial bus) module, and the CPU505 controls the first smart power amplifier 502 to operate through the instruction sending module 501.
The audio data transmission module 502 may be an I2S (Inter-IC Sound, integrated circuit built-in audio bus) module, and the CPU505 transmits the first audio data to the first smart power amplifier 502 through the audio data transmission module 502.
A first smart power amplifier 502 for driving a first speaker module 504. The "power amplifier" in the first smart power amplifier 802 refers to a power amplifier. The first smart power amplifier 502 may include a DSP (Digital Signal processing) module inside, and the DSP module may include at least an EQ (Equalizer) module. The EQ module is configured to adjust an output frequency response of the audio data, and may give different gains to audio signals at different frequency points, that is, perform gain processing on the audio signal according to gain data corresponding to the frequency point, for the audio signal at any frequency point.
The first speaker module 504 is configured to play the second audio data.
In specific implementation, the equalizer module in the electronic device in the step "configure the equalizer module in the electronic device according to the target audio parameter" may be an EQ module in a DSP module in the first smart power amplifier 502 in the circuit system, and the main execution body for executing the step "play the second audio data" may be the first speaker module 504 in the circuit system.
In other embodiments, the first smart power amplifier 502 does not include a DSP module inside, and the DSP module is located inside the CPU, then the equalizer module in the electronic device in the step "configure the equalizer module in the electronic device according to the target audio parameter" may be an EQ module in the DSP module in the CPU505 in the circuit system, and the execution subject for executing the step "play the second audio data" may be the first speaker module 504 in the circuit system. After the EQ module performs audio processing on the first audio data to generate second audio data, the EQ module sends the second audio data to the first smart power amplifier 502, and the first smart power amplifier 502 sends the second audio data to the first speaker module 504.
Optionally, the target audio parameter is predetermined by: under the condition that the electronic equipment is in wireless charging connection with the charging seat and the electronic equipment is in a first state, testing the output frequency response of the third audio data at each frequency point to obtain first frequency response data; under the condition that the electronic equipment is in the second state, testing the output frequency response of the third audio data at each frequency point to obtain second frequency response data; and determining the gain data of each frequency point according to the first frequency response data and the second frequency response data, and taking the gain data of each frequency point as a target audio parameter.
The target audio parameters may be predetermined before the electronic device is formally put into use. For any electronic equipment, when the electronic equipment is wirelessly charged and connected with the charging seat and the electronic equipment is in a first state, the sound outlet of the first loudspeaker module positioned at the bottom of the electronic equipment is shielded by the charging seat, and under the condition, the output frequency response of each frequency point of the third audio data is tested to obtain the first frequency response data. The third audio data may include a plurality of frequency points located in a preset frequency band, and the plurality of frequency points may be continuous or discrete. The preset frequency band may be a high frequency band greater than a specific frequency. The specific frequency is the same parameter as the specific frequency in the frequency-loudness curve shown in fig. 4 and can be determined by the frequency-loudness curve shown in fig. 4.
And under the condition that the sound outlet is not blocked, testing the frequency response of each frequency point of the third audio data to obtain second frequency response data. And determining the gain data of each frequency point according to the ratio of the second frequency response data to the first frequency response data, and counting the gain data of each frequency point to obtain the target audio parameters.
This may be explained in connection with fig. 6. Fig. 6 is a frequency-gain diagram of a first audio parameter according to an embodiment of the present application. As shown, the abscissa is frequency in Hz and the ordinate is gain in dB. From 3KHz up frequency, can give positive gain gradually, when 6KHZ, the gain has reached 15dB, has compensated because the high frequency signal of loss is stopped up by the charging seat to the sound outlet of first speaker module. Gain is understood to mean that the audio data of the processor is amplified according to the value of the gain. For example, when the gain is 6dB, the loudness of the processed audio data is twice the loudness of the audio data before processing; when the gain is 12dB, the loudness of the processed audio data is four times the loudness of the audio data before processing.
And S108, under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is provided with the second loudspeaker module, carrying out audio playing in a second audio playing mode, and carrying out audio playing on the second loudspeaker module and the second loudspeaker module through the second loudspeaker module.
The second audio playing mode can be an audio playing mode which improves the audio playing effect by playing audio through the second loudspeaker module arranged on the charging seat under the condition that the sound outlet of the first loudspeaker module is shielded.
It should be noted that, in the case of using the second audio playing mode, the second speaker module is obviously not shielded, so the electronic device can call the conventional audio parameters to play the audio. The regular audio parameters may be the pre-stored audio parameters that are called when the sound outlet of the first speaker module is not blocked.
Step S110, when the sound outlet of the first speaker module is not blocked, performing audio playing in a third audio playing mode.
The third audio playing mode may be an audio playing mode in which audio playing is performed through the first speaker module of the electronic device under the condition that the sound outlet of the first speaker module is not blocked. Under the condition of adopting the third audio playing mode, the electronic equipment can call the conventional audio parameters to play the audio. The regular audio parameters may be the pre-stored audio parameters that are called when the sound outlet of the first speaker module is not blocked.
The audio playing effects of the first audio playing mode, the second audio playing mode and the third audio playing mode are the same when the first audio playing mode, the second audio playing mode and the third audio playing mode are specifically implemented.
Step S108 and step S110 can be explained with reference to fig. 7 and 8. Fig. 7 is a third physical diagram of an electronic device connected to a charging dock according to an embodiment of the present application. Fig. 8 is a circuit system framework diagram of a charging cradle according to an embodiment of the present application.
Referring to fig. 7, the electronic device 201 is connected to the charging cradle 202, and the electronic device handles the portrait screen state. The charging base 202 includes a sound outlet 203 of the second speaker module, and the sound outlet 203 is not blocked when the electronic device 201 is connected to the charging base 202. As shown in fig. 8, the charging stand comprises a bluetooth module 801, a second smart power amplifier 802 and a second speaker module 803.
In this embodiment, the charging cradle is modified, and a bluetooth module 801, a second smart power amplifier 802, and a second speaker module 803 shown in fig. 8 are added. The bluetooth module 801 is responsible for communication connection with the electronic device, receives audio data sent by the electronic device, and transmits the audio data to the second smart power amplifier 802. The second smart power amplifier 802 amplifies the received audio data and pushes the speaker module of the second speaker module 803 to output sound, which is emitted from the sound outlet of the second speaker module 803. Wherein, the second smart power amplifier 802, the power amplifier refers to a power amplifier.
For example, when the mobile phone is wirelessly charged, if the user wants to play music or video, it is determined whether the mobile phone is in the landscape mode or the portrait mode by the gravity sensor G-sensor in the mobile phone. If the mobile phone is in the horizontal screen mode, sound is played from the sound outlet of the first loudspeaker module of the mobile phone. If the mobile phone is in the vertical screen mode, the sound outlet of the first loudspeaker module does not output sound, the audio data is transmitted to the Bluetooth module of the charging seat through the Bluetooth module of the mobile phone, and the sound is emitted through the sound outlet of the second loudspeaker module on the charging seat. In the process of playing videos and music, when the gravity sensor G-sensor detects that the state of the mobile phone is converted from a vertical screen to a horizontal screen, or the CPU detects that the mobile phone is disconnected with the charging seat, the sound is switched back to the sound outlet of the first loudspeaker module of the mobile phone for output.
Optionally, when the electronic device is in the first state, the charging seat is not provided with the second speaker module, and it is detected that the electronic device is disconnected from the charging seat for wireless charging, the audio playing in the first audio playing mode is stopped, and the audio playing in the third audio playing mode is performed; when the electronic equipment is in a first state, the charging seat is provided with a second loudspeaker module, and the wireless charging connection between the electronic equipment and the charging seat is detected, the audio playing in a second audio playing mode is stopped, and the audio playing in a third audio playing mode is carried out; under the condition that the charging seat is not provided with a second loudspeaker module and the electronic equipment is detected to be switched from the first state to the second state, stopping playing the audio in the first audio playing mode and playing the audio in the third audio playing mode; and the charging seat is provided with a second loudspeaker module, and the audio playing in the second audio playing mode is stopped and the audio playing in the third audio playing mode is carried out under the condition that the electronic equipment is detected to be switched from the first state to the second state.
When the electronic equipment is in a first state, the charging seat is not provided with a second loudspeaker module, and the wireless charging connection between the electronic equipment and the charging seat is detected, the audio playing in a first audio playing mode is stopped, and the audio playing in a third audio playing mode is carried out; and under the condition that the charging seat is not provided with the second loudspeaker module and the electronic equipment is detected to be switched from the first state to the second state, stopping playing the audio in the first audio playing mode and playing the audio in the third audio playing mode.
During specific implementation, the charging seat is not provided with the second loudspeaker module, the electronic equipment can adopt the first audio playing mode or the third audio playing mode to play audio under different conditions, and in the initial state, the electronic equipment is wirelessly connected with the charging seat, and the electronic equipment is in the first state, so that the electronic equipment can be determined to play audio in the first audio playing mode. Then, the following two cases may occur:
(a1) the electronic equipment is detected to be disconnected with the charging seat for wireless charging connection, at the moment, although the electronic equipment is still in the first state, the electronic equipment is not placed on the charging seat any longer, so that the sound outlet hole of the first loudspeaker module of the electronic equipment is not shielded by the charging seat any longer, the electronic equipment stops playing audio in the first audio playing mode, and plays audio in the third audio playing mode.
(a2) The electronic equipment is detected to be switched from the first state to the second state, at the moment, because the state parameters of the electronic equipment are changed, the sound outlet of the first loudspeaker module of the electronic equipment is not blocked by the charging seat any more, so that the electronic equipment stops playing the audio in the first audio playing mode and plays the audio in the third audio playing mode.
When the electronic equipment is in the first state, the charging seat is provided with a second loudspeaker module, and the second audio playing mode is stopped to play audio under the condition that the wireless charging connection between the electronic equipment and the charging seat is detected, and the third audio playing mode is used for playing audio. And the charging seat is provided with a second loudspeaker module, and the audio playing in the second audio playing mode is stopped and the audio playing in the third audio playing mode is carried out under the condition that the electronic equipment is detected to be switched from the first state to the second state.
During specific implementation, the charging seat is provided with the second loudspeaker module, and electronic equipment can adopt under the different circumstances to adopt second audio playback mode or third audio playback mode, and under the initial condition, electronic equipment and charging seat wireless connection, and electronic equipment is in first state, then can confirm that electronic equipment carries out the audio playback with second audio playback mode. Then, the following two cases may occur:
(a1) the electronic equipment is detected to be disconnected from the charging seat for wireless charging connection, at the moment, although the electronic equipment is still in the first state, the sound outlet hole of the first loudspeaker module of the electronic equipment is not blocked by the charging seat any more, so that the electronic equipment stops playing the audio in the second audio playing mode and plays the audio in the third audio playing mode.
(a2) The electronic equipment is detected to be switched from the first state to the second state, at the moment, because the state parameters of the electronic equipment are changed, the sound outlet of the first loudspeaker module of the electronic equipment is not blocked by the charging seat any more, so that the electronic equipment stops playing the audio in the second audio playing mode and plays the audio in the third audio playing mode.
The electronic equipment stops playing the audio in the first audio playing mode and plays the audio in the third audio playing mode, which can be understood as that the electronic equipment stops calling the target audio parameter to play the audio and then calls the conventional audio parameter to play the audio.
The electronic device can process the audio signals corresponding to the audio data at each time point according to the time sequence, and play the audio signals after the audio processing while performing the audio processing on the audio signals.
Under the condition that the electronic equipment plays audio in the first audio playing mode, the electronic equipment can inquire corresponding gain data in the target audio parameter according to the frequency of each audio signal in the audio data, perform gain processing on the output frequency response of the audio signal according to the gain data, and play the audio signal after the gain processing. Under the condition that the electronic device plays audio in the third audio playing mode, the electronic device may query the conventional audio parameters for the frequency of each audio signal in the audio data to obtain corresponding gain data, perform gain processing on the output frequency response of the audio signal according to the gain data, and play the audio signal after the gain processing.
The electronic device stops calling the target audio parameter to perform audio playing, and then calls the conventional audio parameter to perform audio playing, for example, the first audio data to be played includes N audio signals arranged according to a time sequence, the electronic device may query the target audio parameter to obtain corresponding gain data for the frequency of each audio signal in the first X audio signals in the audio data in an initial state, perform gain processing on the output frequency response of the audio signal according to the gain data, and play the audio signal after the gain processing. After the electronic device processes the first X audio signals, stopping calling the target audio parameter to perform audio playing, and calling the conventional audio parameter to perform audio playing, that is, the electronic device queries the conventional audio parameter for the frequency of each audio signal from the (N-X) th to the nth audio signals in the audio data to obtain corresponding gain data, performs gain processing on the output frequency response of the audio signal according to the gain data, and plays the audio signal after the gain processing.
The electronic equipment stops playing the audio in the second audio playing mode and plays the audio in the third audio playing mode, and the electronic equipment can be understood as stopping playing the audio in the second speaker module arranged on the charging seat and playing the audio in the first speaker module of the electronic equipment.
The audio playing mode is changed under the condition that the wireless charging connection between the electronic equipment and the charging seat is detected or the electronic equipment is switched from the first state to the second state is detected, so that the electronic equipment can keep the same audio playing effect before and after the connection relation with the charging seat or the state change of the horizontal and vertical screens, the stability of audio playing is improved, the audio playing effect of the audio data to be played can not be neglected along with the operation of the user on the electronic equipment, and the user experience is improved.
For example, a user takes a mobile phone playing music, the mobile phone is originally placed on a charging seat in a vertical screen mode, is in wireless connection with the charging seat, is disconnected from the charging seat after being taken up, and the output frequency response of the mobile phone playing music is not influenced by the operation of the user.
In the embodiment of the audio data processing method shown in fig. 1, when the electronic device is wirelessly charged and connected with the charging cradle, the state parameter of the electronic device is detected; determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is not provided with the second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from a plurality of pre-stored audio parameters, and audio playing is carried out according to the target audio parameter; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is provided with the second loudspeaker module, audio playing is carried out in a second audio playing mode, and audio playing is carried out through the second loudspeaker module; and under the condition that the sound outlet of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode. Through the technical scheme of this application embodiment, can judge whether the sound hole is sheltered from according to electronic equipment's state parameter to take different audio playback modes in a flexible way under the different condition, and then improved electronic equipment's audio playback effect.
Based on the same technical concept, the present application further provides an embodiment of a method for processing audio data, as shown in fig. 9. Fig. 9 is a second flowchart of a method for processing audio data according to an embodiment of the present application.
Referring to fig. 9, in step S902, first audio data is obtained by testing when the electronic device is placed on the charging dock in a vertical screen mode.
In step S904, the electronic device is connected to the charging cradle.
Step S906, the electronic equipment receives a first signal; the first signal is used for instructing the electronic equipment to play audio data.
Step S908, determine whether the electronic device is in a portrait screen.
If yes, go to step S910; if not, go to step S914.
In step S910, the target audio parameter is called.
Step S912, determining whether the electronic device is disconnected from the charging dock or not in the vertical screen mode.
If yes, go to step S914.
Step S914, call conventional audio parameters.
The processing method for audio data provided in the embodiment shown in fig. 9 can implement each process implemented in the foregoing processing method for audio data embodiment, and is not described herein again to avoid repetition.
It should be noted that, in the processing method of audio data provided in the embodiment of the present application, the execution subject may be a processing apparatus of audio data, or a control module of the processing apparatus of audio data for executing the method of processing audio data. In the embodiment of the present application, a method for executing audio data processing by an audio data processing device is taken as an example, and the audio data processing device provided in the embodiment of the present application is described.
Fig. 10 is a schematic structural diagram of an apparatus for processing audio data according to an embodiment of the present application.
Referring to fig. 10, the apparatus for processing audio data includes:
the detection module 1001 is used for detecting the state parameters of the electronic equipment when the electronic equipment is wirelessly charged and connected with the charging seat;
the first determining module 1002 is configured to determine whether a sound outlet of a first speaker module of the electronic device is blocked according to the state parameter;
the first playing module 1003 is configured to play audio in a first audio playing mode under the condition that the sound outlet of the first speaker module is blocked and the charging stand is not provided with the second speaker module, determine a target audio parameter from a plurality of pre-stored audio parameters, and play audio in the target audio parameter;
the second playing module 1004 is used for playing audio in a second audio playing mode under the condition that the sound outlet of the first speaker module is blocked and the charging seat is provided with the second speaker module, and playing audio through the second speaker module;
the third playing module 1005 is configured to play audio in a third audio playing manner when the sound outlet of the first speaker module is not blocked.
Optionally, the state parameter comprises a first state and a second state;
under the condition that the electronic equipment is in a first state, the electronic equipment is placed on the charging seat in a vertical mode, and the sound outlet hole of the first loudspeaker module is shielded by the charging seat;
under the condition that the electronic equipment is in the second state, the transverse screen of the electronic equipment is placed on the charging seat, and the sound outlet hole of the first loudspeaker module is not shielded.
Optionally, the first playing module 1003 is specifically configured to:
acquiring first audio data to be played;
configuring an equalizer module in the electronic equipment according to the target audio parameters;
performing gain processing on the first audio data through the configured equalizer module to obtain second audio data;
and playing the second audio data.
Optionally, the processing apparatus of audio data further includes:
the fourth playing module is used for stopping playing the audio in the first audio playing mode and playing the audio in the third audio playing mode when the electronic equipment is in the first state, the charging seat is not provided with the second loudspeaker module and the wireless charging connection between the electronic equipment and the charging seat is detected;
the fifth playing module is used for stopping playing the audio in the second audio playing mode and playing the audio in the third audio playing mode when the electronic equipment is in the first state, the charging seat is provided with a second loudspeaker module and the wireless charging connection between the electronic equipment and the charging seat is detected;
the sixth playing module is used for stopping playing the audio in the first audio playing mode and playing the audio in the third audio playing mode when the charging seat is not provided with the second loudspeaker module and the electronic equipment is detected to be switched from the first state to the second state;
and the seventh playing module is used for stopping playing the audio in the second audio playing mode and playing the audio in the third audio playing mode when the charging seat is provided with the second loudspeaker module and the electronic equipment is detected to be switched from the first state to the second state.
Optionally, the target audio parameter is predetermined by running the following modules:
the testing module is used for testing the output frequency response of the third audio data at each frequency point under the condition that the electronic equipment is in wireless charging connection with the charging seat and the electronic equipment is in a first state, so as to obtain first frequency response data; under the condition that the electronic equipment is in the second state, testing the output frequency response of the third audio data at each frequency point to obtain second frequency response data;
and the second determining module is used for determining the gain data of each frequency point according to the first frequency response data and the second frequency response data, and taking the gain data of each frequency point as a target audio parameter.
In the embodiment of the application, when the electronic equipment is wirelessly charged and connected with a charging seat, the state parameters of the electronic equipment are detected; determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is not provided with the second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from a plurality of pre-stored audio parameters, and audio playing is carried out according to the target audio parameter; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is provided with the second loudspeaker module, audio playing is carried out in a second audio playing mode, and audio playing is carried out through the second loudspeaker module; and under the condition that the sound outlet of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode. Through the technical scheme of this application embodiment, can judge whether the sound hole is sheltered from according to electronic equipment's state parameter to take different audio playback modes in a flexible way under the different condition, and then improved electronic equipment's audio playback effect.
The audio data processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The audio data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The audio data processing apparatus provided in this embodiment of the present application can implement each process implemented by the foregoing audio data processing method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in an embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the foregoing audio data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1210 is configured to detect a state parameter of the electronic device when the electronic device is wirelessly charged and connected to a charging cradle;
determining a target audio playing mode from a plurality of pre-stored audio playing modes according to the state parameters, wherein the plurality of audio playing modes comprise a first audio playing mode and a second audio playing mode;
an audio output unit 1203, configured to determine a target audio parameter from multiple pre-stored audio parameters when the first audio playing mode is taken as a target audio playing mode, and perform audio playing with the target audio parameter;
alternatively, the first and second electrodes may be,
when the first audio playing mode is used as the target audio playing mode, the charging seat is provided with a first loudspeaker module, and audio playing is carried out through the first loudspeaker module of the charging seat.
In the embodiment of the application, when the electronic equipment is wirelessly charged and connected with a charging seat, the state parameters of the electronic equipment are detected; determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is not provided with the second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from a plurality of pre-stored audio parameters, and audio playing is carried out according to the target audio parameter; under the condition that the sound outlet of the first loudspeaker module is shielded and the charging seat is provided with the second loudspeaker module, audio playing is carried out in a second audio playing mode, and audio playing is carried out through the second loudspeaker module; and under the condition that the sound outlet of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode. Through the technical scheme of this application embodiment, can judge whether the sound hole is sheltered from according to electronic equipment's state parameter to take different audio playback modes in a flexible way under the different condition, and then improved electronic equipment's audio playback effect.
Optionally, the state parameter comprises a first state and a second state;
when the electronic equipment is in a first state, the electronic equipment is vertically placed on the charging seat, so that the sound outlet hole of the second loudspeaker module arranged at the bottom of the electronic equipment is shielded by the charging seat;
when the electronic equipment is in the second state, the transverse screen of the electronic equipment is placed on the charging seat, so that the sound outlet is not shielded.
Optionally, the audio output unit 1203 is further configured to: and performing audio playing according to the target audio parameters, wherein the audio playing comprises the following steps: acquiring first audio data to be played; configuring an equalizer module in the electronic equipment according to the target audio parameters; performing gain processing on the first audio data through the configured equalizer module to obtain second audio data; and playing the second audio data.
Optionally, the audio output unit 1203 is further configured to: when the electronic equipment is in the first state and the wireless charging connection between the electronic equipment and the charging seat is detected to be disconnected, stopping audio playing by using the audio parameters corresponding to the first state, and playing audio based on the audio parameters corresponding to the second state; or when the electronic equipment is switched from the first state to the second state, stopping audio playing by the audio parameter corresponding to the first state, and playing audio based on the audio parameter corresponding to the second state.
Optionally, the processor 1210 is further configured to: the audio parameter corresponding to the first state is predetermined by: when the electronic equipment is in wireless charging connection with the charging seat and the electronic equipment is in a first state, testing the output frequency response of the third audio data at each frequency point to obtain first frequency response data; when the electronic equipment is in a second state, testing the output frequency response of the third audio data at each frequency point to obtain second frequency response data; and determining the gain data of each frequency point according to the first frequency response data and the second frequency response data, and taking the gain data of each frequency point as the audio parameter corresponding to the first state.
In the embodiment of the application, the corresponding audio parameters are determined according to the state parameters, the first audio data are processed according to the audio playing parameters, the second audio data are generated and played, and the audio parameters are adjusted when the electronic equipment is changed, so that the audio playing effect of the electronic equipment is prevented from being interfered by user operation, and the stability of the audio playing effect is improved.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned audio data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned audio data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for processing audio data is applied to electronic equipment, and is characterized by comprising the following steps:
detecting the state parameters of the electronic equipment when the electronic equipment is in wireless charging connection with a charging seat;
determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is shielded or not according to the state parameters;
under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is not provided with a second loudspeaker module, audio playing is carried out in a first audio playing mode, a target audio parameter is determined from various pre-stored audio parameters, and audio playing is carried out according to the target audio parameter;
under the condition that the sound outlet of the first loudspeaker module is shielded and the second loudspeaker module is arranged on the charging seat, audio playing is carried out in a second audio playing mode, and the audio playing is carried out through the second loudspeaker module;
and under the condition that the sound outlet hole of the first loudspeaker module is not blocked, carrying out audio playing in a third audio playing mode.
2. The method of claim 1, wherein the state parameters include a first state and a second state;
under the condition that the electronic equipment is in a first state, the electronic equipment is placed on the charging seat in a vertical screen mode, and the sound outlet hole of the first loudspeaker module is shielded by the charging seat;
and under the condition that the electronic equipment is in the second state, the transverse screen of the electronic equipment is placed on the charging seat, and the sound outlet hole of the first loudspeaker module is not shielded.
3. The method of claim 1, wherein the audio playing with the target audio parameters comprises:
acquiring first audio data to be played;
configuring an equalizer module in the electronic equipment according to the target audio parameters;
performing gain processing on the first audio data through the configured equalizer module to obtain second audio data;
and playing the second audio data.
4. The method of claim 2, further comprising:
when the electronic equipment is in a first state, the charging seat is not provided with a second loudspeaker module, and the wireless charging connection between the electronic equipment and the charging seat is detected, the audio playing in a first audio playing mode is stopped, and the audio playing in a third audio playing mode is stopped;
when the electronic equipment is in a first state, the charging seat is provided with a second loudspeaker module, and the electronic equipment is detected to be disconnected with the charging seat in a wireless charging manner, the audio playing in a second audio playing manner is stopped, and the audio playing in a third audio playing manner is carried out;
under the condition that the charging seat is not provided with a second loudspeaker module and the electronic equipment is detected to be switched from the first state to the second state, stopping playing the audio in a first audio playing mode and playing the audio in a third audio playing mode;
and a second loudspeaker module is arranged on the charging seat, and under the condition that the electronic equipment is detected to be switched from the first state to the second state, the audio playing in the second audio playing mode is stopped, and the audio playing in the third audio playing mode is carried out.
5. The method of claim 2, wherein the target audio parameter is predetermined by:
under the condition that the electronic equipment is in wireless charging connection with the charging seat and the electronic equipment is in the first state, testing the output frequency response of third audio data at each frequency point to obtain first frequency response data; under the condition that the electronic equipment is in the second state, testing the output frequency response of the third audio data at each frequency point to obtain second frequency response data;
and determining gain data of each frequency point according to the first frequency response data and the second frequency response data, and taking the gain data of each frequency point as the target audio parameter.
6. An apparatus for processing audio data, which is executed in an electronic device, comprising:
the detection module is used for detecting the state parameters of the electronic equipment when the electronic equipment is wirelessly charged and connected with a charging seat;
the first determining module is used for determining whether a sound outlet hole of a first loudspeaker module of the electronic equipment is blocked or not according to the state parameter;
the first playing module is used for playing audio in a first audio playing mode under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is not provided with a second loudspeaker module, determining a target audio parameter from a plurality of pre-stored audio parameters and playing audio by using the target audio parameter;
the second playing module is used for playing audio in a second audio playing mode under the condition that the sound outlet of the first loudspeaker module is blocked and the charging seat is provided with the second loudspeaker module, and playing audio through the second loudspeaker module;
and the third playing module is used for playing audio in a third audio playing mode under the condition that the sound outlet of the first loudspeaker module is not blocked.
7. The apparatus of claim 6, wherein the state parameters comprise a first state and a second state;
under the condition that the electronic equipment is in a first state, the electronic equipment is placed on the charging seat in a vertical screen mode, and the sound outlet hole of the first loudspeaker module is shielded by the charging seat;
and under the condition that the electronic equipment is in the second state, the transverse screen of the electronic equipment is placed on the charging seat, and the sound outlet hole of the first loudspeaker module is not shielded.
8. The apparatus of claim 6, wherein the first playing module is specifically configured to:
acquiring first audio data to be played;
configuring an equalizer module in the electronic equipment according to the target audio parameters;
performing gain processing on the first audio data through the configured equalizer module to obtain second audio data;
and playing the second audio data.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of processing audio data according to any one of claims 1-5.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the method of processing audio data according to any one of claims 1-5.
CN202111580916.5A 2021-12-22 2021-12-22 Audio data processing method and electronic equipment Pending CN114253503A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111580916.5A CN114253503A (en) 2021-12-22 2021-12-22 Audio data processing method and electronic equipment
PCT/CN2022/140715 WO2023116769A1 (en) 2021-12-22 2022-12-21 Audio data processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111580916.5A CN114253503A (en) 2021-12-22 2021-12-22 Audio data processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114253503A true CN114253503A (en) 2022-03-29

Family

ID=80794260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111580916.5A Pending CN114253503A (en) 2021-12-22 2021-12-22 Audio data processing method and electronic equipment

Country Status (2)

Country Link
CN (1) CN114253503A (en)
WO (1) WO2023116769A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116769A1 (en) * 2021-12-22 2023-06-29 维沃移动通信有限公司 Audio data processing method and electronic device
WO2024131153A1 (en) * 2022-12-20 2024-06-27 荣耀终端有限公司 Loudspeaker control method and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053931A (en) * 2003-12-03 2005-06-10 김관회 A mobile phone charging system having function of audio signal output
CN104917474A (en) * 2014-03-14 2015-09-16 联想(北京)有限公司 Audio amplifier module gain setting method and electronic device
CN205725945U (en) * 2016-05-04 2016-11-23 湖州优创科技有限公司 A kind of multi-functional mobile phone charging rack
CN211830863U (en) * 2020-06-08 2020-10-30 杭州职业技术学院 Vehicle-mounted mobile phone fixing device
CN212012214U (en) * 2020-06-08 2020-11-24 江西立讯智造有限公司 Convenient wireless charging seat
US20210144500A1 (en) * 2018-07-26 2021-05-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Detecting Blocking of Microphone and Related Products
CN214045705U (en) * 2020-12-22 2021-08-24 鸣扬智能科技(深圳)有限公司 Wireless charger cell phone stand of formula is inhaled to multipurpose magnetism
CN214798947U (en) * 2021-04-13 2021-11-19 深圳市创佳声学科技有限公司 Microphone device capable of being charged wirelessly

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033676B (en) * 2015-03-13 2018-12-11 北京智谷睿拓技术服务有限公司 Audio play control method and device, electronic equipment
US10007481B2 (en) * 2015-08-31 2018-06-26 Sonos, Inc. Detecting and controlling physical movement of a playback device during audio playback
CN105915718A (en) * 2016-05-30 2016-08-31 努比亚技术有限公司 Device and method for voice playing
CN110267159A (en) * 2019-05-08 2019-09-20 努比亚技术有限公司 Audio frequency playing method, wearable device, cradle and readable storage medium storing program for executing
CN211320948U (en) * 2019-11-13 2020-08-21 江苏实亿元交通工程有限公司 Treasured charges with music instant music
CN114253503A (en) * 2021-12-22 2022-03-29 维沃移动通信有限公司 Audio data processing method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053931A (en) * 2003-12-03 2005-06-10 김관회 A mobile phone charging system having function of audio signal output
CN104917474A (en) * 2014-03-14 2015-09-16 联想(北京)有限公司 Audio amplifier module gain setting method and electronic device
CN205725945U (en) * 2016-05-04 2016-11-23 湖州优创科技有限公司 A kind of multi-functional mobile phone charging rack
US20210144500A1 (en) * 2018-07-26 2021-05-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for Detecting Blocking of Microphone and Related Products
CN211830863U (en) * 2020-06-08 2020-10-30 杭州职业技术学院 Vehicle-mounted mobile phone fixing device
CN212012214U (en) * 2020-06-08 2020-11-24 江西立讯智造有限公司 Convenient wireless charging seat
CN214045705U (en) * 2020-12-22 2021-08-24 鸣扬智能科技(深圳)有限公司 Wireless charger cell phone stand of formula is inhaled to multipurpose magnetism
CN214798947U (en) * 2021-04-13 2021-11-19 深圳市创佳声学科技有限公司 Microphone device capable of being charged wirelessly

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116769A1 (en) * 2021-12-22 2023-06-29 维沃移动通信有限公司 Audio data processing method and electronic device
WO2024131153A1 (en) * 2022-12-20 2024-06-27 荣耀终端有限公司 Loudspeaker control method and electronic device

Also Published As

Publication number Publication date
WO2023116769A1 (en) 2023-06-29

Similar Documents

Publication Publication Date Title
WO2023116769A1 (en) Audio data processing method and electronic device
CN107360458B (en) Play control method, device, storage medium and terminal
CN103391473B (en) Method and device for providing and acquiring audio and video
CN104393848B (en) Volume adjusting method and device
EP3432136A1 (en) Sound effect configuration method and related device
CN106254910B (en) Method and device for recording image
CN108319442B (en) Audio playing control method and mobile terminal
CN108196947B (en) Application running state control method and mobile terminal
US20140064503A1 (en) Method and apparatus for controlling audio output
CN106776385A (en) A kind of transmission method of daily record log information, device and terminal
CN103491447A (en) Channel playing method and device of intelligent display terminal and apparatus
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN108848267B (en) Audio playing method and mobile terminal
CN109101151B (en) Information display processing method and terminal equipment
CN104966520B (en) Control method for playing back, intelligent terminal and vehicle device play system
CN110795310A (en) Information reminding method and electronic equipment
CN111614329A (en) Power amplifier, electronic equipment, voltage control method and device
KR20120074648A (en) Method and apparatus for touch input for electronic device
CN108429363B (en) Wireless charging method and wireless charging device
CN113038273B (en) Video frame processing method and device, storage medium and electronic equipment
CN107622234B (en) Method and device for displaying budding face gift
CN110099170B (en) Picture deleting method and mobile terminal
CN108536272B (en) Method for adjusting frame rate of application program and mobile terminal
CN103945305B (en) The method and electronic equipment of a kind of information processing
CN112181442A (en) Unloaded page display method, device, terminal, server and storage medium

Legal Events

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