WO2021083128A1 - 一种声音处理方法及其装置 - Google Patents

一种声音处理方法及其装置 Download PDF

Info

Publication number
WO2021083128A1
WO2021083128A1 PCT/CN2020/123924 CN2020123924W WO2021083128A1 WO 2021083128 A1 WO2021083128 A1 WO 2021083128A1 CN 2020123924 W CN2020123924 W CN 2020123924W WO 2021083128 A1 WO2021083128 A1 WO 2021083128A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
sound
terminal device
configuration parameter
current
Prior art date
Application number
PCT/CN2020/123924
Other languages
English (en)
French (fr)
Inventor
刘世涛
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20880523.4A priority Critical patent/EP4040284A4/en
Publication of WO2021083128A1 publication Critical patent/WO2021083128A1/zh
Priority to US17/728,043 priority patent/US20220248160A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1615Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
    • G06F1/1616Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1688Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being integrated loudspeakers
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • 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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0241Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call
    • H04M1/0243Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings using relative motion of the body parts to change the operational status of the telephone set, e.g. switching on/off, answering incoming call using the relative angle between housings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6016Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2205/00Details of stereophonic arrangements covered by H04R5/00 but not provided for in any of its subgroups
    • H04R2205/022Plurality of transducers corresponding to a plurality of sound channels in each earpiece of headphones or in a single enclosure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field

Definitions

  • This application relates to the field of terminal technology, and in particular to a sound processing method and device.
  • Sound effect refers to the effect produced by sound, which refers to the noise or sound added to the vocal cords in order to enhance the reality, atmosphere or dramatic information of the scene.
  • the sound effect parameters included in the terminal are a set of fixed parameters that are individually tuned for the terminal. For example, according to one or more of the size of the terminal, the position of the speaker in the terminal, and the position of the microphone, a set of fixed sound effect parameters is set.
  • the audio effects achieved by the sound effect parameters cannot meet the requirements of different application scenarios. Therefore, how to enrich the audio effects of the terminal to meet the needs in different application scenarios has become an urgent technical problem to be solved.
  • the embodiments of the present application provide a sound processing method and device, which can flexibly adjust audio effects and improve the intelligence and flexibility of terminal equipment.
  • the embodiments of the present application provide a sound processing method, which is applied to a terminal device that includes multiple sound configuration parameter groups.
  • the terminal device may be an artificial intelligence-based terminal device.
  • the method includes: If the screen display parameters meet the sound adjustment conditions, obtain the current screen display parameters; determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters; update the second sound configuration parameter group A parameter group is configured for the first sound, and the second sound configuration parameter group is a sound configuration parameter group currently enabled by the terminal device.
  • the effect of collecting sound and/or playing sound of the terminal device can be made different.
  • the audio effect can be flexibly adjusted and the terminal device can be improved. Intelligence and flexibility.
  • the terminal device may include a first screen and a second screen; the screen display parameters may include a folding angle between the first screen and the second screen, and the first application identifier corresponding to the content displayed on the first screen , One or more of the second application identifier corresponding to the content displayed on the second screen or the identifier of the screen where the user's focus is located.
  • the aforementioned folding angle changes, which can make the screen display parameters meet the sound adjustment condition; the application type corresponding to the first application identifier changes, and/or the application type corresponding to the second application identifier changes, so that The screen display parameters meet the sound adjustment conditions, where the application type can be audio or non-audio; the first application identifier and the second application identifier are different, and the first application identifier and the second application identifier correspond to the application
  • the types are all audio types
  • the identification of the screen where the user focuses is changed, which can make the screen display parameters meet the sound adjustment conditions.
  • the screen display parameters satisfying the sound adjustment condition may include one or more of the above cases.
  • switching the sound configuration parameter group enabled by the terminal device The audio effect can be flexibly adjusted, and different application scenarios can be better matched, thereby helping to improve the intelligence and flexibility of the terminal device.
  • the current screen display parameters may include the current folding angle between the first screen and the second screen; the first sound configuration parameter group is determined from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters
  • a specific implementation manner may be: according to the correspondence between the folding angle and the sound configuration parameter group, the sound configuration parameter group corresponding to the current folding angle among the multiple sound configuration parameter groups is used as the first sound configuration parameter group.
  • the sound configuration parameter group can be dynamically adapted as the folding angle changes, and the sound configuration parameter group enabled by the terminal device can be switched.
  • the audio effect can be flexibly adjusted, the intelligence and flexibility of the terminal device can be improved, and the user can get a better audio experience.
  • a specific implementation manner of determining the first sound configuration parameter group from the foregoing multiple sound configuration parameter groups according to the current screen display parameters may be: according to the current screen display parameters, from the first screen and the second screen A third screen is determined in the middle; and the first sound configuration parameter group is determined from a plurality of sound configuration parameter groups according to the third screen.
  • the third screen may be a screen in a working mode of a terminal device, a screen running an audio application, or a screen that the user pays more attention to. In this way, the sound effect of the terminal device can be matched with the third screen.
  • the current screen display parameters may include one or more of the current first application identifier, the current second application identifier, or the current user focus screen identifier.
  • the specific implementation manner for determining the third screen from the first screen and the second screen according to the current screen display parameters may be any of the following methods: if the application type corresponding to the current first application identifier is the aforementioned audio type, and The application type corresponding to the current second application identifier is the aforementioned non-audio type, then the first screen is used as the third screen; if the application types corresponding to the current first application identifier and the current second application identifier are both audio types, And the current first application identifier and the current second application identifier are the same, the first screen and the second screen are used as the third screen; if the current first application identifier and the current second application identifier correspond to the application types Audio category, and the current first application identifier is different from the current second application identifier, the screen indicated by the identifier of the screen where the current user
  • the terminal device may include multiple sound input and output device groups, and the sound configuration parameter group corresponding to each sound input and output device group in the multiple sound input and output device groups may include a single-screen sound configuration parameter group and a full-screen sound configuration parameter group. Sound configuration parameter group.
  • a specific implementation manner of determining the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the third screen may be: according to the corresponding relationship between the screen and the sound input and output device group, input the sound corresponding to the third screen The output device group is used as the first sound input and output device group; if the third screen includes the first screen or the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is used as the first sound configuration parameter Group; if the third screen includes a first screen and a second screen, the full-screen sound configuration parameter group corresponding to each first sound input and output device group is taken as the first sound configuration parameter group.
  • the third screen when the third screen includes one of the first screen and the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is used as the first sound configuration parameter group, which is beneficial in Reduce the resource consumption of the terminal device while ensuring the sound effect of the terminal device.
  • the third screen includes the first screen and the second screen, it can be considered that the user is currently paying more attention to the data of applications running on the first screen and the second screen.
  • the method may further include updating the second sound input and output device group to the first sound input and output device group, and the second sound input and output device group is the sound input and output device group currently enabled by the terminal device.
  • an embodiment of the present application provides a sound processing device, which is a terminal device or a device (such as a chip) with a terminal device function.
  • the device has the function of realizing the sound processing method provided in the first aspect.
  • This function can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • an embodiment of the present application provides another sound processing device, which is a terminal device or a device (such as a chip) with a terminal device function.
  • the device includes a memory and a processor.
  • the memory stores program instructions.
  • the processor is connected to the memory via a bus.
  • the processor calls the program instructions stored in the memory to make the device execute the method described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium for storing computer program instructions used by the sound processing device described in the second aspect, including instructions for executing the program involved in the first aspect.
  • an embodiment of the present application provides a computer program product, the program product includes a program, and when the program is executed, the method described in the first aspect is implemented.
  • FIG. 1a is a schematic diagram of a scenario in which screen display parameters of a terminal device meet a sound adjustment condition according to an embodiment of the present application
  • Figure 1b is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application.
  • Fig. 1c is a schematic diagram of a software system of a terminal device disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a sound processing method disclosed in an embodiment of the present application.
  • Fig. 3a is a schematic flowchart of another sound processing method disclosed in an embodiment of the present application.
  • FIG. 3b is a schematic diagram of a scenario in which a terminal device is folded according to an embodiment of the present application
  • FIG. 3c is a schematic diagram of a stereo sound field when a video is played by a terminal device disclosed in an embodiment of the present application;
  • FIG. 3d is a schematic diagram of a stereo sound field when another terminal device disclosed in an embodiment of the present application plays a video;
  • FIG. 4a is a schematic flowchart of another sound processing method disclosed in an embodiment of the present application.
  • 4b is a diagram of the corresponding relationship between a screen and a sound input and output device group in a terminal device disclosed in an embodiment of the present application;
  • 4c is a schematic diagram of the usage of a sound input and output device group in a terminal device disclosed in an embodiment of the present application;
  • FIG. 4d is a schematic diagram of a terminal device obtained after the folding angle between the first screen and the second screen in FIG. 4c becomes 0° according to an embodiment of the present application;
  • Figure 5 is a schematic structural diagram of a sound processing device disclosed in an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of another sound processing device disclosed in an embodiment of the present application.
  • FIG. 1a is a schematic diagram of a scenario in which screen display parameters of a terminal device meet a sound adjustment condition according to an embodiment of this application.
  • the terminal device may include multiple sound configuration parameter groups, and the terminal device may also include one or more sound input and output device groups.
  • the terminal device includes a sound input and output device group as an example for illustration.
  • Each sound configuration parameter group can be used to configure the corresponding sound input/output device group, so that the sound effects played by the sound input/output device group or the collected sound effects meet user requirements.
  • one sound input and output device group can correspond to multiple sound configuration parameter groups.
  • the sound configuration parameter group may include, but is not limited to, smart power amplifier (smartpa) parameters, boost parameters (such as boost parameters), digital theater systems (digital theater systems, DTS) algorithm parameters, or Dolby sound effects One or more of the parameters of the algorithm.
  • DTS is a high-quality multi-track surround sound technology for movies and music.
  • Dolby Audio technology is a series of surround sound technologies used to provide rich, clear and novel sound effects for theaters, homes and on the way.
  • the parameters of the Dolby sound effect algorithm may include, but are not limited to, one or more of related parameters for achieving noise reduction, related parameters for achieving equalization, related parameters for achieving directional surround, or related parameters for achieving panoramic sound.
  • the sound input and output device group is composed of a sound input device and a sound output device.
  • a sound input and output device group may include one or more sound input devices, and a sound input and output device group may include one or more sound output devices.
  • the sound input device may include a microphone, and the sound output device may include a speaker.
  • the speaker may include a speaker or earpiece.
  • the sound configuration parameter group may include parameters used to configure each device in the sound input and output device group.
  • the sound configuration parameter group may include sound configuration parameter 1, sound configuration parameter 2, and sound configuration parameter 3. .
  • the sound configuration parameter 1 can be used to configure the speaker
  • the sound configuration parameter 2 can be used to configure the earpiece
  • the sound configuration parameter 3 can be used to configure the microphone.
  • the terminal device can detect whether the screen display parameters of the terminal device meet the sound adjustment conditions, and when it is detected that the screen display parameters of the terminal device meet the sound adjustment conditions, obtain the current screen display parameters;
  • the current screen display parameter determines the first sound configuration parameter group from multiple sound configuration parameter groups in the terminal device; and updates the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group Configure the parameter group for the sound currently enabled for the terminal device.
  • the screen display parameters of the terminal device may include a screen mode, and the screen mode may be a portrait mode or a landscape mode.
  • the screen display parameters of the terminal device satisfying the sound adjustment conditions can indicate that the sound effect obtained after configuring the sound input and output device group using the sound configuration parameter group currently enabled by the terminal device does not match the current application scenario, that is, the currently playing sound effect or The collected sound effect is not the best sound effect, and the user cannot get the best listening experience. Therefore, the terminal device can determine the first sound configuration parameter group from the multiple sound configuration parameter groups in the terminal device according to the current screen display parameters, and the terminal device enables the first sound configuration parameter group to configure the sound input and output device group The sound effect obtained can better match the current application scene.
  • the screen mode of the terminal device changes, which can make the screen display parameters of the terminal device meet the sound adjustment conditions.
  • the screen mode of the terminal device changes from landscape mode to portrait mode, or the screen mode of the terminal device changes from portrait mode to landscape mode.
  • the foregoing current screen display parameters may include the screen mode adopted after the screen mode of the terminal device is changed.
  • the terminal device 100 in FIG. 1a includes a sound input and output device group (not shown), and the sound input and output device group includes a speaker 101, an earpiece 102, and a microphone 103.
  • the screen of the terminal device 100 also includes time icons, communication signal icons, wireless local area networks (WLAN) (such as wireless fidelity, Wi-Fi) network connection status icons, battery icons, and display during video playback. Return icon, play progress icon, pause icon, control icon for playing the next video, etc.
  • WLAN wireless local area networks
  • the terminal device 100 plays the cat and mouse video in the vertical screen mode. It can be seen from the right diagram in FIG. 1a that at this time, the terminal device 100 plays the video in a landscape mode. It is understandable that the terminal device is in the landscape mode, and it can be considered that the user's requirement for the audio effect of the terminal device is higher than the requirement of the terminal device's audio effect in the portrait mode. Therefore, when the terminal device is in the landscape mode, adopting a sound configuration parameter group that makes the sound effect better is beneficial to enhance the user's sense of immersion in the landscape mode.
  • the terminal device 100 includes a sound configuration parameter group 1 and a sound configuration parameter group 2, the sound effect corresponding to using the sound configuration parameter group 1 is worse than the sound effect corresponding to using the sound configuration parameter group 2.
  • the terminal device 100 can use the sound configuration parameter group 2 as the first sound configuration parameter group; if the current screen mode of the terminal device 100 is the portrait mode, the terminal device 100 can The sound configuration parameter group 1 is used as the first sound configuration parameter group.
  • the use of the sound configuration parameter group 1 that makes the sound effect general can reduce the resource consumption of the terminal device.
  • the terminal device 100 in FIG. 1a includes a sound input and output device group for example only, and does not constitute a limitation to the embodiment of the present application.
  • the terminal device 100 may also include multiple sound input and output device groups.
  • a sound input and output device group including a speaker 101, an earpiece 102, and a microphone 103 is only used for example, and does not constitute a limitation to the embodiment of the present application.
  • the sound input and output device group may also include a secondary microphone.
  • the positions of the speaker 101, the earpiece 102, and the microphone 103 in the terminal device 100 in FIG. 1a are only for example, and do not constitute a limitation to the embodiment of the present application.
  • the terminal device 100 may be a terminal device based on artificial intelligence.
  • the terminal device 100 may also be called a terminal (terminal), a user equipment (UE), a mobile station (MS), and a mobile terminal (mobile terminal). , MT) and so on.
  • the terminal device can be a mobile phone (mobile phone), smart TV, wearable device, tablet computer (Pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal device, augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, transportation Wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and so on.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
  • AI Artificial intelligence
  • the core of AI is the use of machine learning technology to allow machines to simulate certain core aspects of human behavior.
  • AI allows machines to behave as autonomous systems that can perceive, learn, make decisions, and take actions with little or no human intervention.
  • FIG. 1b shows a schematic diagram of the structure of the terminal device 100.
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous transmitter receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may couple the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the terminal device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the terminal device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the terminal device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 100.
  • the terminal device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the terminal device 100. While the charging management module 140 charges the battery 142, it can also supply power to the terminal device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the terminal device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the terminal device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the terminal device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C.
  • the terminal device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals.
  • the terminal device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal device 100 determines the strength of the pressure according to the change in capacitance.
  • the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example, when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal device 100.
  • the angular velocity of the terminal device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the terminal device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the terminal device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the terminal device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device, applied to horizontal and vertical screen switching, pedometer and other applications.
  • the terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the terminal device 100 emits infrared light to the outside through the light emitting diode.
  • the terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100.
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 executes to reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature.
  • the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100.
  • the terminal device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to exemplify the software structure of the terminal device 100.
  • FIG. 1c is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the terminal device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompt text information in the status bar sound a prompt tone, terminal equipment vibration, flashing indicator light, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes the touch operation into the original input event (including touch coordinates, time stamp of the touch operation, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • FIG. 2 is a schematic flowchart of a sound processing method provided by an embodiment of the present application.
  • the method is applied to a terminal device including multiple sound configuration parameter groups.
  • the execution body of the sound processing method is a terminal device or a chip in the terminal device.
  • the following takes the terminal device as the execution body of the sound processing method as an example for description.
  • the method may include but is not limited to the following steps:
  • Step S201 When the screen display parameter of the terminal device meets the sound adjustment condition, the terminal device obtains the current screen display parameter.
  • the terminal device can detect whether the screen display parameters of the terminal device meet the sound adjustment conditions in real time, periodically or irregularly, and obtain the current The screen displays the parameters.
  • the screen display parameters of the terminal device satisfying the sound adjustment condition may include: the screen display parameters of the terminal device change, that is, the historical screen display parameters of the terminal device are different from the current screen display parameters.
  • the screen display parameters of the terminal device satisfying the sound adjustment conditions can indicate that the sound effect obtained after configuring the sound input and output device group in the terminal device using the sound configuration parameter group currently enabled by the terminal device does not match the current application scenario, that is, The terminal device can switch the sound configuration parameter group currently enabled by the terminal device to adjust the audio effect of the terminal device.
  • the screen display parameter of the terminal device satisfies the sound adjustment condition, indicating that the sound configuration parameter group currently enabled by the terminal device needs to be switched.
  • the screen display parameters may include a screen mode.
  • the screen mode of the terminal device changes, which can make the screen display parameters of the terminal device meet the sound adjustment conditions.
  • the screen mode of the terminal device changes during the process of running the audio application on the terminal device, so that the screen display parameters of the terminal device can satisfy the sound adjustment condition.
  • Audio applications can be applications with sound collection and/or sound playback functions, or audio applications can be applications with sound functions as the main function of the application (such as call applications), or audio applications can be applications with higher requirements for sound Applications (such as video players, music players, etc.).
  • Non-audio applications may have neither the sound collection function nor the sound playback function.
  • the terminal device does not need to switch the sound configuration parameter group currently enabled by the terminal device. Because in the process of running non-audio applications, the terminal device does not need to output other sounds with higher sound effects except for the output of message prompts, telephone ringing and other sounds that do not require higher sound effects, so in this case, do not switch
  • the sound configuration parameter group currently enabled by the terminal device is beneficial to avoid waste of resources.
  • the terminal device can set the sound adjustment conditions by default, or the user can customize or change the set sound adjustment conditions.
  • the user can set the sound adjustment conditions in the terminal device according to his own needs (such as usage habits), that is, the user can customize the conditions under which the sound configuration parameter group enabled by the terminal device can be switched.
  • the artificial intelligence-based terminal device can determine the screen display parameters and sound adjustment conditions according to the user's historical operation information on the terminal device. For example, if the historical operation information indicates that the screen mode of the terminal device has changed, the user inputs a preset operation in the terminal device to switch the sound configuration parameter group enabled by the terminal device. From the historical operation information, it can be understood that when the screen mode of the terminal device changes, the user wants to change the sound configuration parameter group enabled by the terminal device. Based on this, the terminal device based on artificial intelligence can automatically set the screen display parameters of the terminal device to meet the sound adjustment conditions including: the screen mode of the terminal device changes.
  • the set sound adjustment conditions can better match the user needs, avoid the user from manually switching the sound configuration parameter group enabled by the terminal device, that is, the sound configuration parameter group enabled by the terminal device can be switched more flexibly, and The switch of the sound configuration parameter group can be realized more quickly, which is beneficial to improve the intelligence and flexibility of the terminal device.
  • the historical operation information can be stored in the cloud or in the terminal device.
  • the terminal device can understand the user's habit of using the terminal device by recording the user's historical operation information, without frequently calling the data stored in the cloud. In this way, the terminal device can determine the user's usage habits without using the network.
  • the terminal device can determine the voice adjustment conditions for different users based on the historical operation information of different users. Furthermore, when different users use the terminal device, it is determined whether the sound configuration parameter group enabled by the terminal device can be switched through corresponding sound adjustment conditions.
  • the terminal device can switch the sound configuration parameter group enabled by the terminal device; if The terminal device is currently using the second user, and the terminal device may not switch the sound configuration parameter group enabled by the terminal device.
  • the intelligence and flexibility of the terminal device can be improved, so that the terminal device can better match the usage habits of different users, and enable different users to obtain a good experience when using the terminal device.
  • the screen display parameter may include the play mode of the audio application running in the terminal device.
  • the playback mode of the video application a may be a full-screen playback mode or a non-full-screen playback mode.
  • the play mode is the full-screen play mode, the content played by the video application a can occupy or almost occupy the entire screen (a small part of the screen can be used to display some system icons and application icons).
  • the right picture in Figure 1a As shown in the right picture in Figure 1a. It should be noted that even if the terminal device is in the portrait mode, if the video application a running in the terminal device is in the full-screen playback mode, the content of the video application a can also occupy the entire screen.
  • the screen display parameters of the terminal device satisfying the sound adjustment condition may include: a change in the play mode of the audio application (video application playing cat and mouse) running in the terminal device.
  • the playback mode of the audio application is changed from a full-screen playback mode to a non-full-screen playback mode, or the playback mode of the audio application is changed from a non-full-screen playback mode to a full-screen playback mode.
  • the terminal device may obtain the current screen display parameters, and determine the first sound configuration parameter group from the multiple sound configuration parameter groups included in the terminal device according to the current screen display parameters.
  • the current screen display parameters may include the current screen mode of the terminal device. Taking Figure 1a as an example, the screen mode (portrait mode) of the terminal device 100 in the left picture is the historical screen mode of the terminal device, and the screen mode (horizontal screen mode) of the terminal device 100 in the right picture is the terminal The screen mode the device is currently in.
  • the current screen display parameter may include the current play mode of the audio application running in the terminal device.
  • the application running on the screen mentioned in the embodiment of the present application means that the application is running in the terminal device, and the data of the application is displayed on the screen of the terminal device.
  • Step S202 The terminal device determines a first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters.
  • the terminal device may use the sound configuration parameter group corresponding to the current screen display parameter among the multiple sound configuration parameter groups as the first sound configuration parameter group according to the correspondence between the screen display parameters and the sound configuration parameter group.
  • the terminal device can set multiple types of screen display parameters, and respectively set the corresponding relationship between the various types of screen display parameters and the sound configuration parameter group.
  • the terminal device includes sound configuration parameter group 1 and sound configuration parameter group 2.
  • the two types of screen display parameters set by the terminal device are the screen mode and the playback mode of the audio application running in the terminal device (such as the playback of video application a). Mode), the corresponding relationship of the terminal equipment for the two types of screen display parameter settings are shown in Table 1 and Table 2:
  • the terminal device sets multiple types of screen display parameters (such as the screen mode and the playback mode of the video application a running in the terminal device), and it detects that the screen mode of the terminal device has changed (that is, the screen of the terminal device) When the display parameter meets the sound adjustment condition), the terminal device can obtain the current screen mode and use the current screen mode as the current screen display parameter. Furthermore, the first sound configuration parameter group is determined according to the corresponding relationship shown in Table 1.
  • the terminal device can obtain the current playback mode of the video application a, and change The current play mode of the video application a is used as the current screen display parameter. Furthermore, the first sound configuration parameter group is determined according to the corresponding relationship shown in Table 2.
  • the terminal device may preset the correspondence between the screen display parameter and the sound configuration parameter group, and the terminal device may also change the correspondence between the screen display parameter and the sound configuration parameter group according to user operations.
  • Step S203 The terminal device updates the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • the second sound configuration parameter group is a sound configuration parameter group activated by the terminal device when it is detected that the screen display parameter of the terminal device meets the sound adjustment condition.
  • the first sound configuration parameter group may be a sound configuration parameter group activated by the terminal device after it is detected that the screen display parameter of the terminal device meets the sound adjustment condition.
  • Different sound configuration parameter groups are used to configure the terminal device, and the terminal device has different effects of collecting sounds and/or playing sounds. Therefore, the terminal device can flexibly adjust the audio effect by switching the activated sound configuration parameter group, so that the audio effect of the terminal device can better adapt to different application scenarios, thereby helping to improve the intelligence and flexibility of the terminal device. And it helps to improve the user experience.
  • the current screen display parameters are obtained; and then the current screen display parameters are selected from multiple sound configuration parameter groups in the terminal device Determine the first sound configuration parameter group; and update the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • the sound configuration parameter group enabled by the terminal device the sound collection effect and/or sound playback effect of the terminal device can be made different, that is, the audio effect can be flexibly adjusted, thereby helping to improve the intelligence and flexibility of the terminal device.
  • FIG. 3a is a schematic flowchart of another sound processing method provided by an embodiment of the present application.
  • the method is applied to a terminal device that includes multiple sound configuration parameter groups. This method describes in detail when the terminal device includes a folding screen, under what circumstances the screen display parameters meet the sound adjustment conditions.
  • the execution body of the sound processing method is a terminal device, or a chip in the terminal device. The following takes the terminal device as the execution body of the sound processing method as an example for description. As shown in Figure 3a, the method may include but is not limited to the following steps:
  • Step S301 When the screen display parameter of the terminal device meets the sound adjustment condition, the terminal device obtains the current screen display parameter, where the terminal device includes the first screen and the second screen; the screen display parameter includes the first screen.
  • the folding angle between the screen and the second screen, the screen display parameter meeting the sound adjustment condition includes: the folding angle changes; the current screen display parameter includes the current folding angle between the first screen and the second screen.
  • the terminal device includes a folding screen
  • the folding screen may include one or more screens
  • the folding screen may appear as two or more screens after being folded.
  • the embodiment of the present application uses the folding screen After being folded, two screens (such as the first screen and the second screen) are presented as an example for introduction.
  • the screen display parameters may include, but are not limited to: the screen mode, the playback mode of the audio application running in the terminal device, the folding angle between the first screen and the second screen, and the content displayed on the first screen corresponds to One or more of the first application identifier corresponding to the content displayed on the second screen or the identifier of the screen where the user focuses.
  • the folding angle between the first screen and the second screen may be any angle in [-180°, 180°].
  • the content displayed on the first screen may be the content of the first application, and the identifier of the first application is the first application identifier.
  • the content displayed on the second screen may be the content of the second application, and the identifier of the second application is the second application identifier.
  • the identification of the screen where the user's focus is located is used to uniquely identify the screen where the user's focus is located.
  • the screen where the user focuses may be a screen that the user is currently paying more attention to.
  • the terminal device may use the screen that the user recently operated as the focus screen of the user, or the terminal device may determine the screen currently viewed by the user through the user's eyeballs, and use the screen currently viewed by the user as the focus screen of the user.
  • the embodiment of the present application does not limit the manner of determining the screen where the user's focus is located.
  • the screen display parameters that satisfy the sound adjustment conditions include one or more of the following situations: 1) The screen mode of the terminal device changes; 2) The screen mode of the terminal device is in the process of running audio applications on the terminal device Change occurs; 3) The playback mode of the audio application running in the terminal device changes; 4) The folding angle between the first screen and the second screen changes; 5) The application type corresponding to the first application identifier changes Change, and/or the application type corresponding to the second application identifier changes; 6) the first application identifier and the second application identifier are different, and the application types corresponding to the first application identifier and the second application identifier are both In the case of audio, the logo of the screen where the user's focus is located changes. Among them, the first three cases can refer to the specific description of step S201 in FIG. 2, which will not be repeated here.
  • the folding angle between the first screen and the second screen changes.
  • the activated sound configuration parameter group can be switched, which can increase the interest of the terminal device.
  • the folding angle between the first screen and the second screen changes, and the change of the folding angle is greater than the preset angle, so that the screen display parameters meet the sound adjustment condition.
  • the change of the folding angle is greater than the preset angle, which can prevent the terminal device from colliding or shaking the folding screen due to other reasons (the user does not want to adjust the sound effect of the terminal device at this time, that is, there is no need to switch the sound configuration enabled by the terminal device Parameter group), which results in a change in the folding angle between the first screen and the second screen, thereby causing the terminal device to switch the activated sound configuration parameter group, which is beneficial to avoid misoperation and resource consumption caused by misoperation.
  • the preset angle may be set by default by the terminal device, or may be determined according to user operations, and the preset angle may be changed according to user operations.
  • the preset angle can be 1°, 2° or other smaller angle values.
  • the type of the folding angle between the first screen and the second screen is changed, so that the screen display parameters can satisfy the sound adjustment condition.
  • the types of folding angles can be the first type of angle and the second type of angle.
  • the change in the type of the folding angle may include: the folding angle is changed from the first type of angle to the second type of angle, or the folding angle is changed from the second type of angle to the first type of angle.
  • the first type of angle may include 0°
  • the second type of angle may include angles other than 0°.
  • the type of the folding angle between the first screen and the second screen of the terminal device is the first type of angle; when the terminal device is in the folded state, the type of the folding angle is the first type of angle.
  • the second type of angle Taking the schematic diagram of the folding scene of the terminal device 100 shown in FIG. 3b as an example, by rotating the shaft 106 in the terminal device 100, the folding angle between the first screen 104 and the second screen 105 can be changed. When the first screen 104 and the second screen 105 are combined into a complete screen (that is, the first screen and the second screen are fully expanded), the folding angle is 0°. Rotate to the back of the screen to increase the folding angle.
  • rotating to the front of the screen can reduce the folding angle, and the folding angle is a negative number.
  • Switching the sound configuration parameter group enabled by the terminal device when the type of the folding angle changes is beneficial to saving the resources of the terminal device. For example, when the folding angle is changed from 15° to 30°, the sound configuration parameter group enabled by the terminal device is not changed, which can save resources.
  • the sound effects input through the sound input and output device group or The output sound effect will vary with the folding angle between the first screen and the second screen.
  • the sound effect may include, but is not limited to: one or more of stereo sound field position, power (rated output power, music output power, peak music output power), frequency range, and frequency response.
  • the rated output power refers to the maximum power that the power amplifier circuit can continuously output within the rated distortion range. Also called effective power.
  • Music output power refers to the instantaneous maximum output power of the power amplifier circuit when the distortion does not exceed the specified range.
  • Peak music output power refers to the instantaneous maximum output power of the power amplifier without considering distortion.
  • Frequency range and frequency response are the two basic parameters that identify the sound reproduction ability of a speaker. The former refers to the range between the lowest effective playback frequency and the highest effective playback frequency of the speaker, in hertz (Hz); the latter refers to a constant voltage
  • Hz hertz
  • the frequency response in decibels (dB).
  • the folding angle between the first screen 104 and the second screen (not shown in FIG. 3c) is 180°, and the terminal device 100 Only the first screen 104 is in the working state.
  • the sound field 107 black filled circle in FIG. 3c
  • the speaker 101 and the earpiece 102 in stereo is located at the center of the first screen 104.
  • the terminal device can play the cat and mouse video on the large screen composed of the first screen and the second screen.
  • a schematic diagram of the stereo sound field when the terminal device plays a video can be shown in Figure 3d. It can be seen from Fig. 3d that when the positions of the speaker 101 and the earpiece 102 are kept consistent with those in Fig. 3c, when the video is played on the large screen composed of the first screen 104 and the second screen 105, the sound field 107 played by the speaker 101 and the earpiece 102 in stereo is still Located in the center of the first screen 104. For the user, the sound of the video playback is felt from the left side of the big screen (at the left 1/4 of the big screen) instead of the center of the big screen, which makes the listening experience poor.
  • the terminal device can change the audio effect of the terminal device by changing the activated sound configuration parameter group.
  • the terminal device can change the audio effect of the terminal device by changing the position of the speaker, earpiece, and microphone in the sound input and output device group in the terminal device.
  • the embodiment of the present application uses changing the activated sound configuration parameter group to change the audio effect of the terminal device as an example for description.
  • the terminal device can switch the enabled sound configuration parameter group so that the terminal device in Figure 3d plays a video when the stereo sound field is located in the center of the big screen. . In this way, different application scenarios can be better matched, which is beneficial to improve the audio effect of the terminal device.
  • the terminal device shown in FIG. 3b includes a rotating shaft, and the intermediate position of the rotating shaft in the terminal device is only used for illustration.
  • the terminal device may include multiple rotating shafts. The two shafts can be set at any position in the terminal device as required.
  • the terminal device may include an unlimited number of rotating shafts, that is, the screen of the terminal device can be folded at any position.
  • the same size of the first screen and the second screen shown in FIG. 3b is only for example, and does not constitute a limitation to the embodiment of the present application.
  • the first screen and the second screen The size can be different.
  • the size of the screen may refer to one or more of the length, width, and aspect ratio of the screen.
  • the type of the folding angle between the first screen and the second screen changes, and the change of the folding angle is greater than the aforementioned preset angle, so that the screen display parameters can satisfy the sound adjustment condition. In this way, it is helpful to avoid misoperation and resource consumption caused by misoperation.
  • the first application identifier is the identifier of the application running on the first screen. It should be noted that when only system-related icons are displayed on the first screen, it can be considered that the system is running on the first screen. application. When the first screen is not in a working state (for example, no content is displayed), it can be considered that no application is running on the first screen.
  • the second application identifier is the same, and will not be repeated here.
  • the working screen is switched from the first screen to the second screen (that is, the first application identifier is changed from presence to absence), or the working screen is switched from the second screen It is the first screen (that is, the first application identifier changes from none to present), which can make the screen display parameters of the terminal device meet the sound adjustment condition.
  • the terminal device turns off the single-screen function, in any case, only one of the first screen or the second screen in the terminal device is in working state.
  • the terminal device is equivalent to not including folding Screen.
  • the terminal device can switch the activated sound configuration parameter group, so that the newly activated sound configuration parameter group is adopted so that the stereo sound field is located in the center of the current working screen, which is beneficial to improve the terminal device’s performance. Intelligence and flexibility.
  • the change of the application type corresponding to the first application identifier may include: the application type corresponding to the first application identifier is changed from an audio type to a non-audio type, or the application type corresponding to the first application identifier is changed from a non-audio type to a non-audio type.
  • the class becomes an audio class.
  • the terminal device When the application type of the application running on the terminal device is non-audio, the terminal device has lower requirements for sound effects, because the terminal device only needs to output a phone prompt tone, a short message prompt tone, etc. at this time.
  • the application type of the application running on the terminal device is audio
  • the terminal device has higher requirements for sound effects. For example, when playing movies, better sound effects are needed to increase the user's immersion. It should be noted that when using sound configuration parameters that make sound effects better, the resource consumption of the terminal device is higher; when using sound configuration parameters that make sound effects worse, the resource consumption of the terminal device is lower.
  • the terminal device can switch the activated sound configuration parameter group so that the newly activated The sound configuration parameter group makes the sound effect of the terminal device better, which is conducive to improving the user experience.
  • the terminal device can switch the activated sound configuration parameter group so that the sound effect of the terminal device using the newly activated sound configuration parameter group is appropriately reduced. Conducive to saving resources.
  • non-audio applications can be applications that do not have sound collection or playback functions, or non-audio applications can be applications to which the terminal device has not granted the sound collection function and sound playback function permissions. .
  • the identification of the screen where the user focuses is changed .
  • the application types of both video application a and video application b are audio
  • the user’s focus on the screen is identified by the first screen Change to the identifier of the second screen, it can indicate that the user is currently paying more attention to the content displayed on the second screen.
  • the terminal device can switch the activated sound configuration parameter group, so that the newly activated sound configuration parameter group can better match the current application scenario.
  • the terminal device can make the stereo sound field located in the center of the first screen through the activated sound configuration parameter group. After the terminal device switches the activated sound configuration parameter group, the terminal device can make the stereo sound field located in the center of the second screen through the newly activated sound configuration parameter group. In this way, the audio effects can be flexibly adjusted, and the intelligence and flexibility of the terminal device can be improved.
  • the terminal device when the terminal device determines that the screen where the user focuses on the second screen, the terminal device can output (eg play) the sound data of the application running on the second screen (ie, video application b), and cause the output The stereo sound field is located in the center of the second screen when the sound data is used.
  • the application running on the first screen that is, the video application a
  • the sound data of the video application a may be output in a different output manner from the sound data of the video application b.
  • the terminal device when the terminal device outputs the sound data of the video application b in an external format, the sound data of the video application a may be outputted silently, or the sound data of the video application a may be output through a headset. In this way, the sound data of the two video applications can be prevented from interfering with each other.
  • the terminal device can set multiple types of screen display parameters, for example, the screen mode, the playback mode of the audio application running in the terminal device, and the folding between the first screen and the second screen
  • the first application identifier corresponding to the content displayed on the first screen the second application identifier corresponding to the content displayed on the second screen, or the identifier of the screen where the user focuses.
  • the terminal device may use the current screen mode as the current screen display parameter.
  • the terminal device may use the current folding angle as the current screen display parameter.
  • the terminal device may use the current first application identifier as the current screen display parameter.
  • the terminal device can use the identification of the screen where the current user focus is located as the current screen display parameter.
  • the screen display parameters satisfying the sound adjustment condition may include one or more of the above cases.
  • the sound configuration parameter group enabled by the terminal device is switched , You can flexibly adjust the audio effects, so that you can better match different application scenarios, and help improve the intelligence and flexibility of the terminal device.
  • step S301 refers to the specific description of step S201 in FIG. 2, which will not be repeated here.
  • Step S302 The terminal device uses the sound configuration parameter group corresponding to the current folding angle among the multiple sound configuration parameter groups as the first sound configuration parameter group according to the correspondence between the folding angle and the sound configuration parameter group.
  • the terminal device may determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters.
  • the specific implementation manner for the terminal device to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters may be: according to the correspondence between the folding angle and the sound configuration parameter group, combine the aforementioned multiple sounds
  • the sound configuration parameter group corresponding to the current folding angle in the configuration parameter group serves as the first sound configuration parameter group.
  • the sound configuration parameter group can be dynamically adapted as the folding angle changes, and the sound configuration parameter group enabled by the terminal device can be switched.
  • one sound configuration parameter group may correspond to one or more angles.
  • Step S303 The terminal device updates the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • step S302 to step S303 please refer to the specific description of step S202 to step S203 in FIG. 2, which will not be repeated here.
  • the audio effect can be flexibly adjusted and the terminal can be improved.
  • the intelligence and flexibility of the equipment in the case of detecting that the folding angle between the first screen and the second screen changes, by switching the sound configuration parameter group enabled by the terminal device, the audio effect can be flexibly adjusted and the terminal can be improved.
  • FIG. 4a is a schematic flowchart of another sound processing method provided by an embodiment of the present application, and the method is applied to a terminal device including multiple sound configuration parameter groups.
  • This method describes in detail how the terminal device includes the first screen and the second screen, how to determine the third screen from the first screen and the second screen according to the current screen display parameters, and how to determine the third screen from the terminal device according to the third screen
  • the first sound configuration parameter group is determined from the included multiple sound configuration parameter groups.
  • the execution body of the sound processing method is a terminal device, or a chip in the terminal device. The following takes the terminal device as the execution body of the sound processing method as an example for description. As shown in Figure 4a, the method may include but is not limited to the following steps:
  • Step S401 When the screen display parameter of the terminal device meets the sound adjustment condition, the terminal device obtains the current screen display parameter, where the terminal device includes a first screen and a second screen.
  • the screen display parameters may include, but are not limited to: the folding angle between the first screen and the second screen, the first application identifier corresponding to the content displayed on the first screen, and the content displayed on the second screen One or more of the corresponding second application identifier or the identifier of the screen where the user focuses.
  • the screen display parameters satisfying the sound adjustment condition include one or more of the following situations: the folding angle changes; the type of the application corresponding to the first application identifier changes, and/or the status of the application corresponding to the second application identifier changes.
  • the type changes; in the case where the first application identifier and the second application identifier are different, and the types of applications corresponding to the first application identifier and the second application identifier are both audio types, the identification of the screen where the user focuses Variety.
  • step S401 refers to the specific description of step S301 in FIG. 3a, which will not be repeated here.
  • Step S402 The terminal device determines the third screen from the first screen and the second screen according to the current screen display parameters.
  • the specific implementation manner for the terminal device to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters may be: determining from the first screen and the second screen according to the current screen display parameters The third screen; and according to the third screen, the first sound configuration parameter group is determined from the aforementioned multiple sound configuration parameter groups.
  • the third screen may be a screen in a working mode in the terminal device, or a screen running an audio application, or a screen that the user pays more attention to.
  • the third screen may include one or both of the first screen and the second screen.
  • the first sound configuration parameter group can be determined according to the third screen.
  • the sound effect of the terminal device can be matched with the third screen. Matching the sound effect of the terminal device with the third screen can indicate that the stereo sound field is located in the center of the third screen when the sound is played.
  • the current screen display parameters may include, but are not limited to: one or more of the current first application identifier, the current second application identifier, or the current user focus screen identifier.
  • the current first application identifier is the identifier of the application running on the first screen when it is detected that the screen display parameter of the terminal meets the sound adjustment condition.
  • the current second application identifier is the identifier of the application running on the second screen when it is detected that the screen display parameters of the terminal meet the sound adjustment condition.
  • the specific implementation manner for the terminal device to determine the third screen from the first screen and the second screen according to the current screen display parameters may be: if the current first application identifier is application identifier a, and the current second application identifier is none ( That is, the second screen does not display any content), the first screen is used as the third screen. At this time, the third screen is the screen in the working mode in the terminal device.
  • the specific implementation manner for the terminal device to determine the third screen from the first screen and the second screen according to the current screen display parameters may be: if the current first application identifier is application identifier a, the current first application identifier The second application identifier is the application identifier b, and the application indicated by the application identifier a is in an active state, then the first screen is used as the third screen.
  • the number of applications in the active state in the terminal device is one, and the application in the active state may be an application currently used by the user, or an application recently used by the user. That is, in this case, the third screen is a screen running an application in an active state.
  • the specific implementation manner for the terminal device to determine the third screen from the first screen and the second screen according to the current screen display parameters may be: if the application type corresponding to the current first application identifier is the aforementioned audio type , And the application type corresponding to the current second application identifier is the aforementioned non-audio type, then the first screen is used as the third screen.
  • the terminal device can use the screen running the audio application as the third screen.
  • the third screen is a screen running audio applications.
  • the specific implementation manner for the terminal device to determine the third screen from the first screen and the second screen according to the current screen display parameters may be: if the current first application identifier corresponds to the current second application identifier If the application types of are all audio types, and the current first application identifier is the same as the current second application identifier, the first screen and the second screen are regarded as the third screen. If the application types corresponding to the current first application identifier and the current second application identifier are both audio, and the current first application identifier and the current second application identifier are the same, it can indicate that the terminal device is in an unfolded state , And output the data of an application in full-screen mode. For example, the terminal device in Figure 3d outputs data of cat and mouse videos in a video application in full-screen mode. At this time, the third screen is a screen running audio applications.
  • the specific implementation manner for the terminal device to determine the third screen from the first screen and the second screen according to the current screen display parameters may be: if the current first application identifier corresponds to the current second application identifier The application types of are all audio, and the current first application identifier is different from the current second application identifier, the screen indicated by the identifier of the screen where the current user focus is located is taken as the third screen, and the current user focus is the identifier of the screen where The indicated screen is the first screen or the second screen.
  • the video application a is running on the first screen and the video application b is running on the second screen, and the application type of video application a and the application type of video application b are both audio
  • the second screen can be used as the third screen.
  • the third screen is a screen that the user pays more attention to.
  • Step S403 The terminal device determines a first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the third screen.
  • the terminal device may use the sound configuration parameter group corresponding to the third screen as the first sound input and output device group according to the corresponding relationship between the screen and the sound configuration parameter group.
  • the corresponding relationship between the screen and the sound configuration parameter groups can be as shown in Table 3.
  • Using the sound configuration parameter group 1 to configure the terminal device can make the stereo sound field of the terminal device be located in the center of the first screen when the terminal device outputs sound.
  • Using the sound configuration parameter group 2 to configure the terminal device can make the stereo sound field of the terminal device located in the center of the second screen when the terminal device outputs sound.
  • the sound configuration parameter group 3 is used to configure the terminal device, so that when the terminal device outputs sound, the stereo sound field is located in the center of the large screen composed of the first screen and the second screen.
  • Second screen Sound configuration parameter group 2 First screen + second screen Sound configuration parameter group 3
  • the terminal device may include one or more sound input and output device groups, and the multiple sound input and output device groups may be distributed on one or more screens.
  • one or more sound input and output device groups may be configured on the first screen (or the second screen).
  • a sound input and output device group is configured on both the first screen and the second screen as an example for description.
  • the sound configuration parameter group corresponding to each sound input and output device group in the multiple sound input and output device groups may include a single-screen sound configuration parameter group and a full-screen sound configuration parameter group.
  • Using a single-screen sound configuration parameter group to configure the corresponding sound input and output device group can make the stereo sound field of the terminal device output sound at the center of the screen where the sound input and output device group is located.
  • the full-screen sound configuration parameter group is used to configure the corresponding sound input and output device group, so that when the terminal device outputs sound, the stereo sound field is located in the center of the large screen composed of the first screen and the second screen.
  • the specific implementation manner for the terminal device to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the third screen may be: according to the corresponding relationship between the screen and the sound input and output device group, the third screen corresponds to The sound input and output device group serves as the first sound input and output device group; if the third screen includes the first screen or the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is regarded as the first sound Configuration parameter group; if the third screen includes the first screen and the second screen, the full-screen sound configuration parameter group corresponding to each first sound input and output device group is taken as the first sound configuration parameter group.
  • the first screen may have a corresponding relationship with the sound input/output device group configured on the first screen
  • the second screen may have a corresponding relationship with the sound input/output device group configured on the second screen.
  • the sound input and output device group corresponding to the third screen ie, the first sound input and output device group
  • the sound input and output device group enabled by the terminal device can be the second sound input and output device group, that is, the second sound input and output device group is the sound input and output device currently enabled by the terminal device group.
  • the terminal device may update the second sound input and output device group to the first sound input and output device group.
  • the sound configuration parameter groups corresponding to different sound input and output device groups may be different. Take the corresponding relationship diagram between the screen and the sound input and output device group in the terminal device shown in FIG. 4b as an example.
  • the terminal device 100 includes a first screen 104 and a second screen 105.
  • the first screen can be changed by rotating the shaft 106.
  • the first screen 104 corresponds to the sound input and output device group a, and the sound input and output device group a is composed of a speaker 101, an earpiece 102 and a microphone 103; the second screen 105 corresponds to a sound input and output device group b, and the sound input and output device group b consists of a speaker 108 , Earpiece 109 and microphone 110.
  • the sound input and output device group a corresponds to the single-screen sound configuration parameter group a
  • the sound input and output device group b corresponds to the single-screen sound configuration parameter group b.
  • the terminal device may also configure the sound input and output device group b through the single-screen sound configuration parameter group c, so that the stereo sound field is located in the center of the first screen 104 when the terminal device outputs sound.
  • the distance between the center of the first screen 104 and the sound input/output device group b is greater than the distance between the center of the first screen 104 and the sound input/output device group a. Therefore, in order to make the stereo sound field located at the center of the first screen, compared to configuring the sound input and output device group a through the single-screen sound configuration parameter group a, the sound input and output device group a is configured through the single-screen sound configuration parameter group c. b.
  • the terminal device can enable the sound input and output device group a, that is, the sound input and output device group a as the first sound input and output device group, and then determine the first sound configuration parameter from the sound configuration parameter group corresponding to the first sound input and output device group group.
  • the third screen includes one of the first screen and the second screen
  • it can indicate that the number of screens in the working mode in the terminal device is one, or the number of screens running audio applications is one, or the user is more concerned The number of screens is one.
  • the sound effects generated by using the single-screen sound configuration parameter group to configure the terminal device can meet the user's needs. It is understandable that when the terminal device outputs data of a certain application in full-screen mode, the application has higher requirements for sound functions. In this scenario, the terminal device can load a sound configuration parameter group for better sound effects.
  • the terminal device consumes less resources than the same After the sound input and output device group is configured, the terminal device consumes resources when outputting sound data or collecting sound data. Therefore, when the third screen includes one of the first screen and the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is used as the first sound configuration parameter group, which is beneficial to ensure the Under the premise of sound effects, the resource consumption of terminal equipment is reduced.
  • the third screen includes the first screen and the second screen
  • the applications running on the terminal device occupy a larger screen area, and it can be considered that the user is currently paying more attention to the data of the audio applications running on the first screen and the second screen.
  • the terminal device can enable all sound input and output device groups on the first screen and the second screen, and use the full-screen sound configuration parameter groups corresponding to each sound input and output device group in all sound input and output device groups as
  • the first sound configuration parameter group is configured to configure the sound input and output device group through the full-screen sound configuration parameter group corresponding to each sound input and output device group. In this way, the audio effect can be flexibly adjusted, and the audio effect of the terminal device can be optimized, thereby helping to enhance the user's immersion, and improving the intelligence and flexibility of the terminal device.
  • the terminal device 100 includes a first screen 104 and a second screen 105.
  • the folding angle between the first screen 104 and the second screen 105 is 30°, and the folding angle can be changed by rotating the shaft 106.
  • the first screen 104 includes a sound input and output device group 1, and the sound input and output device group 1 includes a speaker 101, an earpiece 102 and a microphone 103;
  • the second screen 105 includes a sound input and output device group 2, and the sound input and output device group 2 includes a speaker 108.
  • Earpiece 109 and microphone 110 is an example.
  • both the sound input and output device group 1 and the sound input and output device group 2 can be determined as the first sound input and output device group, that is, the terminal device can be activated
  • the sound input and output device group 1 and the sound input and output device group 2 output the sound data of the cat and mouse video.
  • the sound input and output device group in FIG. 4c is filled with a grid pattern, it means that the sound input and output device group is activated by the terminal device.
  • the terminal device After the first sound input and output device group is determined, if the third screen includes the first screen and the second screen, and the folding angle between the first screen and the second screen is 0°, the terminal device
  • the full-screen sound configuration parameter group corresponding to each first sound input and output device group may be used as the first sound configuration parameter group.
  • the schematic diagram of the terminal device obtained after the folding angle between the first screen and the second screen in FIG. 4c becomes 0° may be as shown in FIG. 4d.
  • each sound input and output device group in the terminal device is configured through the corresponding full-screen sound configuration parameter group, and the audio effect obtained is superior.
  • each sound input and output device group in the terminal device is configured with the corresponding full-screen sound configuration parameter group to obtain the audio effect. 4c and 4d, it can be imagined that when the speaker 101 and the speaker 108 in FIGS.
  • the audio playback effect of the terminal device in FIG. 4d is better than the audio playback effect of the terminal device in FIG. 4c. This is because when the folding angle in Figure 4c is 30°, if the user is facing the first screen, the user can receive the sound played by the speaker 101 and earpiece 102 on the first screen to the greatest extent, but cannot receive the second screen to the greatest extent. The sound played by the speaker 108 and the earpiece 109 on the screen.
  • the steps related to sound output are similar to the steps related to collecting sounds, and the related steps of collecting sounds can be determined according to the related steps of sound output, which will not be repeated in the embodiments of the present application.
  • Step S404 The terminal device updates the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • the first sound configuration parameter group includes a sound configuration parameter group 1 and a sound configuration parameter group 2
  • the first sound input and output device group includes a sound input and output device group 1 and a first sound input and output device group 2.
  • the sound configuration parameter group 1 is the single-screen sound configuration parameter group or the full-screen sound configuration parameter group corresponding to the sound input and output device group 1
  • the sound configuration parameter group 2 is the single-screen sound configuration parameter group corresponding to the sound input and output device group 2 or The full-screen sound configuration parameter group
  • the terminal device can call the sound configuration parameter group 1 to configure the sound input and output device group 1, and call the sound configuration parameter group 2 to configure the sound input and output device group 2.
  • step S404 refers to the specific description of step S303 in FIG. 3a, which will not be repeated here.
  • the third screen when it is detected that the screen display parameters of the terminal device meet the sound adjustment conditions, the third screen can be determined from the first screen and the second screen according to the current screen display parameters, and the third screen can be determined according to the third screen.
  • the screen determines the first sound configuration parameter group from a plurality of sound configuration parameter groups included in the terminal device.
  • the third screen may be a screen in a working mode in the terminal device, or a screen running an audio application, or a screen that the user pays more attention to. In this way, the sound effect of the terminal device can be matched with the third screen.
  • FIG. 5 is a schematic structural diagram of a sound processing device provided by an embodiment of the present application.
  • the sound processing device 50 may be a terminal device or a device (such as a chip) with terminal device functions.
  • the terminal device may include multiple devices.
  • the sound processing device 50 is configured to execute the steps performed by the terminal device in the method embodiments corresponding to FIGS. 2 to 4a, and the sound processing device 50 may include:
  • the obtaining module 501 is configured to obtain the current screen display parameters when the screen display parameters of the terminal device meet the sound adjustment conditions;
  • the determining module 502 is configured to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters;
  • the update module 503 is configured to update the second sound configuration parameter group to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • the terminal device may include a first screen and a second screen; the screen display parameters may include a folding angle between the first screen and the second screen, and the first application identifier corresponding to the content displayed on the first screen , One or more of the second application identifier corresponding to the content displayed on the second screen or the identifier of the screen where the user's focus is located.
  • the screen display parameters satisfying the sound adjustment condition may include one or more of the following situations: the aforementioned folding angle changes; the application type corresponding to the first application identifier changes, and/or the second application identifier
  • the corresponding application type changes, the application type can be audio or non-audio; the first application identifier and the second application identifier are different, and the application types corresponding to the first application identifier and the second application identifier are both
  • the identity of the screen where the user's focus is located changes.
  • the current screen display parameters may include the current folding angle between the first screen and the second screen; the determining module 502 is configured to determine the first screen from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters.
  • a sound configuration parameter group it can be specifically used to set the sound configuration parameter group corresponding to the current folding angle among multiple sound configuration parameter groups as the first sound configuration parameter according to the corresponding relationship between the folding angle and the sound configuration parameter group group.
  • the determining module 502 when configured to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters, it can be specifically used to select the first sound configuration parameter group according to the current screen display parameters.
  • a third screen is determined from the second screen; and the first sound configuration parameter group is determined from a plurality of sound configuration parameter groups according to the third screen.
  • the current screen display parameters may include one or more of the current first application identifier, the current first application identifier, and the current user focus screen identifier.
  • the determining module 502 is configured to determine the third screen from the first screen and the second screen according to the current screen display parameters, which can be specifically used in any one of the following steps: if the current application type corresponding to the first application identifier is The aforementioned audio type, and the application type corresponding to the current second application identifier is the aforementioned non-audio type, then the first screen is used as the third screen; if the current first application identifier and the current second application identifier correspond to the application type All are audio types, and the current first application identifier and the current second application identifier are the same, the first screen and the second screen are regarded as the third screen; if the current first application identifier and the current second application identifier are different The application types are all audio types, and the current first application identifier is different from the current second application identifier, the screen indicated by the
  • the terminal device may include multiple sound input and output device groups, and the sound configuration parameter group corresponding to each sound input and output device group in the multiple sound input and output device groups may include a single-screen sound configuration parameter group and a full-screen sound configuration parameter group. Sound configuration parameter group.
  • the determining module 502 is configured to determine the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the third screen, and may be specifically configured to convert the third screen to the corresponding relationship between the screen and the sound input and output device group.
  • the corresponding sound input and output device group is regarded as the first sound input and output device group; if the third screen includes the first screen or the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is regarded as the first sound input and output device group.
  • the update module 503 may also be used to update the second sound input and output device group to the first sound input and output device group, and the second sound input and output device group is the sound input and output device currently enabled by the terminal device. group.
  • FIG. 6 is a schematic structural diagram of a sound processing device provided by an embodiment of the present application.
  • the sound processing device may be a terminal device or a device with terminal device functions (such as a chip), and the terminal device may include multiple sounds. Configure the parameter group.
  • the sound processing device 60 may include a processor 601, a memory 602, and an input-output module 603.
  • the processor 601, the memory 602, and the input-output module 603 may be connected to each other through one or more communication buses, or may be connected in other ways.
  • the related functions implemented by the acquiring module 501, the determining module 502, and the updating module 503 shown in FIG. 5 may be implemented by the same processor 601, or may be implemented by multiple different processors 601.
  • the processor 601 is configured to perform corresponding functions of the terminal device in the methods described in FIGS. 2 to 4a.
  • the processor 601 may include one or more processors.
  • the processor 601 may be one or more central processing units (CPUs), network processors (network processors, NPs), hardware chips, or any of them. combination.
  • the processor 601 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
  • the memory 602 is used to store program codes and the like.
  • the memory 602 may include a volatile memory (volatile memory), such as a random access memory (random access memory, RAM); the memory 602 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory).
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • read-only memory read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk drive
  • SSD solid-state drive
  • memory 602 may also include a combination of the foregoing types of memories.
  • the input and output module 603 may be used to output sound data or collect sound data.
  • the input and output module 603 may be composed of an input module and an output module, and the input module may include one or more of the receiver, microphone, or camera in FIG. 1b.
  • the output module may include one or more of the speaker, earphone interface, or display screen in FIG. 1b.
  • the processor 601 may call the program code stored in the memory 602 to perform the following operations:
  • the second sound configuration parameter group is updated to the first sound configuration parameter group, and the second sound configuration parameter group is the sound configuration parameter group currently enabled by the terminal device.
  • the terminal device may include a first screen and a second screen; the screen display parameters may include a folding angle between the first screen and the second screen, and the first application identifier corresponding to the content displayed on the first screen , One or more of the second application identifier corresponding to the content displayed on the second screen or the identifier of the screen where the user's focus is located.
  • the screen display parameters satisfying the sound adjustment condition may include one or more of the following situations: the aforementioned folding angle changes; the application type corresponding to the first application identifier changes, and/or the second application identifier
  • the corresponding application type changes, the application type can be audio or non-audio; the first application identifier and the second application identifier are different, and the application types corresponding to the first application identifier and the second application identifier are both
  • the identity of the screen where the user's focus is located changes.
  • the current screen display parameters may include the current folding angle between the first screen and the second screen; the processor 601 executes to determine the first from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters.
  • the sound configuration parameter group you can specifically perform the following operations: According to the corresponding relationship between the folding angle and the sound configuration parameter group, use the sound configuration parameter group corresponding to the current folding angle among the multiple sound configuration parameter groups as the first sound configuration Parameter group.
  • the processor 601 determines the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the current screen display parameters, it can specifically perform the following operations:
  • the third screen is determined from the screen and the second screen;
  • the first sound configuration parameter group is determined from the plurality of sound configuration parameter groups according to the third screen.
  • the current screen display parameter may include one or more of the current first application identifier, the current second application identifier, and the current user focus screen identifier.
  • the processor 601 executes to determine the third screen from the first screen and the second screen according to the current screen display parameters, it may specifically execute any one of the following steps: if the application type corresponding to the current first application identifier is the aforementioned audio Class, and the application type corresponding to the current second application identifier is the aforementioned non-audio type, then the first screen is used as the third screen; if the current first application identifier and the current second application identifier correspond to both Audio category, and the current first application identifier and the current second application identifier are the same, the first screen and the second screen are regarded as the third screen; if the current first application identifier and the current second application identifier correspond to the application The types are all audio types, and the current first application identifier is different from the current second application identifier, the screen indicated by the identifier of the screen
  • the terminal device may include multiple sound input and output device groups, and the sound configuration parameter group corresponding to each sound input and output device group in the multiple sound input and output device groups may include a single-screen sound configuration parameter group and a full-screen sound configuration parameter group. Sound configuration parameter group.
  • the processor 601 determines the first sound configuration parameter group from the aforementioned multiple sound configuration parameter groups according to the third screen, it can specifically perform the following operations: According to the corresponding relationship between the screen and the sound input and output device group, the third The sound input and output device group corresponding to the screen is regarded as the first sound input and output device group; if the third screen includes the first screen or the second screen, the single-screen sound configuration parameter group corresponding to the first sound input and output device group is regarded as A first sound configuration parameter group; if the third screen includes a first screen and a second screen, the full-screen sound configuration parameter group corresponding to each first sound input and output device group is taken as the first sound configuration parameter group.
  • the processor 601 may also perform the following operations: update the second sound input and output device group to the first sound input and output device group, and the second sound input and output device group is the sound input currently enabled by the terminal device. Output device group.
  • the processor 601 may also perform operations corresponding to the terminal device in the embodiment shown in FIG. 2 to FIG. 4a. For details, please refer to the description in the method embodiment, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, which can be used to store computer software instructions used by the sound processing device in the embodiment shown in FIG. .
  • the above-mentioned computer-readable storage medium includes, but is not limited to, flash memory, hard disk, and solid-state hard disk.
  • the embodiments of the present application also provide a computer program product.
  • the computer product When the computer product is run by a computing device, it can execute the method designed for the terminal device in the embodiment of FIG. 2 to FIG. 4a.
  • a chip including a processor and a memory.
  • the memory includes a processor and a memory.
  • the memory is used to store a computer program.
  • the processor is used to call and run the computer program from the memory.
  • the computer program is used to implement the method in the above method embodiment.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from a website site, computer, server, or data center to another website site via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) , Computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Abstract

本申请实施例公开了一种声音处理方法及其装置,应用于包括多个声音配置参数组的终端设备中,该终端设备可以是基于人工智能(artificial intelligence,AI)的终端设备。其中,该方法包括:在终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组;并将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为终端设备当前启用的声音配置参数组。通过实施本申请实施例,可以灵活地调节音频效果,提高终端设备的智能性、灵活性。

Description

一种声音处理方法及其装置
本申请要求于2019年10月30日提交中国专利局、申请号为201911048950.0、申请名称为“一种声音处理方法及其装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种声音处理方法及其装置。
背景技术
音效是指由声音所制造的效果,是指为增进场面之真实感、气氛或戏剧讯息,而加于声带上的杂音或声音。
目前,终端包括的音效参数是针对该终端单独调优的一套固定参数。例如,根据该终端的尺寸、该终端中扬声器的位置以及麦克风的位置中的一种或多种,设置一套固定的音效参数。通过该音效参数实现的音频效果不能满足不同应用场景下的需求。因此,如何丰富终端的音频效果以满足不同应用场景下的需求成为亟待解决的技术问题。
发明内容
本申请实施例提供一种声音处理方法及其装置,可以灵活地调节音频效果,提高终端设备的智能性、灵活性。
第一方面,本申请实施例提供了一种声音处理方法,该方法应用于包括多个声音配置参数组的终端设备,该终端设备可以是基于人工智能的终端设备,该方法包括:在终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组;将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为终端设备当前启用的声音配置参数组。
在该技术方案中,通过切换终端设备启用的声音配置参数组,可以使得该终端设备采集声音的效果和/或播放声音的效果不同,通过这种方式,可以灵活地调节音频效果,提高终端设备的智能性、灵活性。
在一种实现方式中,终端设备可以包括第一屏幕和第二屏幕;屏幕显示参数可以包括第一屏幕和第二屏幕之间的折叠角度,第一屏幕上显示的内容对应的第一应用标识,第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
在一种实现方式中,前述折叠角度发生变化,可以使得屏幕显示参数满足声音调整条件;第一应用标识对应的应用类型发生变化,和/或第二应用标识对应的应用类型发生变化,可以使得屏幕显示参数满足声音调整条件,其中,应用类型可以为音频类或非音频类;在该第一应用标识和该第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化,可以使得屏幕显示参数满足声音调整条件。
在该技术方案中,屏幕显示参数满足声音调整条件可以包括上述情况中的一种或多种, 在检测到屏幕显示参数满足声音调整条件的情况下,切换终端设备所启用的声音配置参数组,可以灵活地调节音频效果,并可以更好地匹配不同的应用场景,从而有利于提高终端设备的智能性、灵活性。
在一种实现方式中,当前的屏幕显示参数可以包括第一屏幕和第二屏幕之间当前的折叠角度;根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据折叠角度和声音配置参数组之间的对应关系,将多个声音配置参数组中与当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。
在该技术方案中,可以随着折叠角度的变化,动态适配声音配置参数组,并切换终端设备所启用的声音配置参数组。通过这种方式,可以灵活地调节音频效果,提高终端设备的智能性、灵活性,并有利于使用户获得更好的音频体验。
在一种实现方式中,根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕;根据该第三屏幕从多个声音配置参数组中确定第一声音配置参数组。
在该技术方案中,第三屏幕可以为终端设备中处于工作模式下的屏幕,运行有音频类应用的屏幕,也可以为用户较为关注的屏幕。通过这种方式,可以使得终端设备的音效与第三屏幕相匹配。
在一种实现方式中,当前的屏幕显示参数可以包括当前的第一应用标识,当前的第二应用标识或当前的用户焦点所在屏幕的标识中的一种或多种。根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为如下方式中的任一种:若当前的第一应用标识对应的应用类型为前述音频类,且当前的第二应用标识对应的应用类型为前述非音频类,则将该第一屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识相同,则将第一屏幕和第二屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识不同,则将当前的用户焦点所在屏幕的标识指示的屏幕作为第三屏幕,当前的用户焦点所在屏幕的标识指示的屏幕为第一屏幕或第二屏幕。
在一种实现方式中,终端设备可以包括多个声音输入输出设备组,多个声音输入输出设备组中的各个声音输入输出设备组对应的声音配置参数组可以包括单屏声音配置参数组和全屏声音配置参数组。根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据屏幕与声音输入输出设备组之间的对应关系,将第三屏幕对应的声音输入输出设备组作为第一声音输入输出设备组;若该第三屏幕包括第一屏幕或第二屏幕,则将该第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组;若该第三屏幕包括第一屏幕和第二屏幕,则将每个第一声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
在该技术方案中,第三屏幕包括第一屏幕和第二屏幕中的一个屏幕时,将第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组,有利于在确保终端设备的音效的前提下降低终端设备的资源消耗。第三屏幕包括第一屏幕和第二屏幕时,可以认为用户当前较为关注第一屏幕和第二屏幕中运行的应用的数据。在此情况下,启用第一 屏幕和第二屏幕上的所有声音输入输出设备组,并将所有声音输入输出设备组中的各个声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组,进而通过各个声音输入输出设备组对对应的全屏声音配置参数组对该声音输入输出设备组进行配置。通过这种方式,有利于最优化终端设备的音效,从而有利于增强用户的沉浸感。
在一种实现方式中,该方法还可以包括将第二声音输入输出设备组更新为第一声音输入输出设备组,该第二声音输入输出设备组为终端设备当前启用的声音输入输出设备组。
第二方面,本申请实施例提供了一种声音处理装置,该装置为终端设备或具有终端设备功能的装置(例如芯片)。该装置具有实现第一方面所提供的声音处理方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。
第三方面,本申请实施例提供另一种声音处理装置,该装置为终端设备或具有终端设备功能的装置(例如芯片)。该装置包括存储器和处理器,存储器中存储有程序指令,处理器通过总线与存储器连接,处理器调用存储器中存储的程序指令以使该装置执行第一方面所述的方法。
第四方面,本申请实施例提供一种计算机可读存储介质,用于储存为第二方面所述的声音处理装置所用的计算机程序指令,其包含用于执行上述第一方面所涉及的程序。
第五方面,本申请实施例提供一种计算机程序产品,该程序产品包括程序,所述程序被执行时实现上述第一方面所述的方法。
附图说明
图1a是本申请实施例提供的一种终端设备的屏幕显示参数满足声音调整条件的场景示意图;
图1b是本申请实施例公开的一种终端设备的结构示意图;
图1c是本申请实施例公开的一种终端设备的软件系统的示意图;
图2是本申请实施例公开的一种声音处理方法的流程示意图;
图3a是本申请实施例公开的另一种声音处理方法的流程示意图;
图3b是本申请实施例公开的一种对终端设备进行折叠的场景示意图;
图3c是本申请实施例公开的一种终端设备播放视频时立体声的声场示意图;
图3d是本申请实施例公开的另一种终端设备播放视频时立体声的声场示意图;
图4a是本申请实施例公开的又一种声音处理方法的流程示意图;
图4b是本申请实施例公开的一种屏幕和声音输入输出设备组在终端设备中的对应关系图;
图4c是本申请实施例公开的一种终端设备中声音输入输出设备组的使用情况的示意图;
图4d是本申请实施例公开的一种图4c中第一屏幕和第二屏幕之间的折叠角度变为0°后得到的终端设备的示意图;
图5是本申请实施例公开的一种声音处理装置的结构示意图;
图6是本申请实施例公开的另一种声音处理装置的结构示意图。
具体实施方式
为了更好的理解本申请实施例公开的一种声音处理方法,下面首先对本申请实施例适用的应用场景进行描述。
请参见图1a,为本申请实施例提供的一种终端设备的屏幕显示参数满足声音调整条件的场景示意图。其中,该终端设备可以包括多个声音配置参数组,该终端设备还可以包括一个或多个声音输入输出设备组,图1a中以终端设备包括一个声音输入输出设备组为例进行说明。每个声音配置参数组可以用于对对应的声音输入输出设备组进行配置,以使该声音输入输出设备组播放的声音效果或者采集的声音效果满足用户需求。需要说明的是,一个声音输入输出设备组可以对应多个声音配置参数组。
其中,声音配置参数组可以包括但不限于智能功率放大器(smart power amplifier,smartpa)的参数、升压参数(如boost参数)、数字化影院系统(digital theater systems,DTS)算法的参数或杜比音效算法的参数中的一种或多种。其中,DTS是一种用于电影和音乐的高质量多音轨环绕声技术。杜比音效(Dolby Audio)技术是一系列用于为影院、家庭和途中提供丰富、清晰且撼人心魄的音效的环绕声技术。杜比音效算法的参数可以包括但不限于实现降噪的相关参数、实现均衡的相关参数、实现定向环绕的相关参数或实现全景声的相关参数中的一种或多种。
声音输入输出设备组由声音输入设备和声音输出设备组成,一个声音输入输出设备组可以包括一个或多个声音输入设备,一个声音输入输出设备组可以包括一个或多个声音输出设备。其中,声音输入设备可以包括麦克风,声音输出设备可以包括扬声器。扬声器可以包括喇叭或听筒。需要说明的是,声音配置参数组可以包括对声音输入输出设备组中的各个设备进行配置所采用的参数,例如,声音配置参数组可以包括声音配置参数1、声音配置参数2和声音配置参数3。其中,声音配置参数1可以用于对喇叭进行配置,声音配置参数2可以用于对听筒进行配置,声音配置参数3可以用于对麦克风进行配置。
在本申请实施例中,终端设备可以检测终端设备的屏幕显示参数是否满足声音调整条件,并在检测到终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;然后根据当前的屏幕显示参数从终端设备中的多个声音配置参数组中确定第一声音配置参数组;并将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为该终端设备当前启用的声音配置参数组。
其中,终端设备的屏幕显示参数可以包括屏幕模式,该屏幕模式可以为竖屏模式或横屏模式。终端设备的屏幕显示参数满足声音调整条件可以表明:采用该终端设备当前启用的声音配置参数组对声音输入输出设备组进行配置后得到的声音效果与当前应用场景不匹配,即当前播放的音效或者采集的音效不是最佳音效,用户不能获得最佳的听感体验。因此,终端设备可以根据当前的屏幕显示参数从终端设备中的多个声音配置参数组中确定第一声音配置参数组,终端设备启用该第一声音配置参数组对声音输入输出设备组进行配置后得到的声音效果可以更好地匹配当前应用场景。通过这种方式,可以灵活地调节音频效果,提高终端设备的智能性、灵活性,还有利于提高用户的听感体验。终端设备的屏幕模式发生变化,可以使得该终端设备的屏幕显示参数满足声音调整条件。例如,该终端设备 的屏幕模式由横屏模式变为竖屏模式,或者,该终端设备的屏幕模式由竖屏模式变为横屏模式。前述当前的屏幕显示参数可以包括该终端设备的屏幕模式发生变化之后所采用的屏幕模式。
如图1a所示,终端设备100的屏幕模式由左图中的竖屏模式变化为右图中的横屏模式的情况下,该终端设备100的屏幕显示参数满足声音调整条件。图1a(左图和右图)中的终端设备100包括一个声音输入输出设备组(图未示),该声音输入输出设备组包括喇叭101、听筒102和麦克风103。终端设备100的屏幕还包括时间图标、通信信号图标、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络连接状态图标、电池图标以及播放视频时所显示的返回图标、播放进步图标、暂停图标、播放下一个视频的控制图标等。
由图1a中左图可知,此时,终端设备100以竖屏模式播放猫和老鼠视频。由图1a中右图可知,此时,终端设备100以横屏模式播放该视频。可以理解的是,终端设备处于横屏模式下,可以认为用户对终端设备的音频效果的要求高于处于竖屏模式下对终端设备的音频效果的要求。因此,终端设备处于横屏模式下,采用使得音效更好的声音配置参数组,有利于增强用户在横屏模式下的沉浸感。例如,若终端设备100包括声音配置参数组1和声音配置参数组2,使用声音配置参数组1对应产生的音效比使用声音配置参数组2对应产生的音效差。若终端设备100的当前屏幕模式为横屏模式,则终端设备100可以将声音配置参数组2作为第一声音配置参数组;若终端设备100的当前屏幕模式为竖屏模式,则终端设备100可以将声音配置参数组1作为第一声音配置参数组。相较于横屏模式,可以认为处于竖屏模式下用户对终端设备的音频效果的要求较低,因此,采用使音效效果一般的声音配置参数组1,用户几乎不会感觉到听感降低,而且采用使音效效果一般的声音配置参数组1,可以降低终端设备的资源消耗。
需要说明的是,图1a中终端设备100包括一个声音输入输出设备组仅用于举例,并不构成对本申请实施例的限定。在其他可行的实现方式中,终端设备100还可以包括多个声音输入输出设备组。图1a中一个声音输入输出设备组包括一个喇叭101、一个听筒102和一个麦克风103仅用于举例,并不构成对本申请实施例的限定。在其他可行的实现方式中,该声音输入输出设备组还可以包括副麦克风。还需要说明的是,图1a中喇叭101、听筒102和麦克风103在终端设备100中的位置仅用于举例,并不构成对本申请实施例的限定。
其中,该终端设备100可以是基于人工智能的终端设备,终端设备100也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。
人工智能(artificial intelligence,AI)是研究、开发用于模拟、延伸和扩展人的智能的 理论、方法、技术及应用系统的一门新的技术科学。AI的核心是使用机器学习技术,以允许机器模拟人类行为的某些核心方面。换言之,AI允许机器表现为能够在很少或没有人为干预的情况下感知、学习、做出决策、以及采取行动的自主系统。
可以理解的是,本申请实施例描述的网络架构是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的结构进行介绍:
图1b示出了终端设备100的结构示意图。终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标 识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终 端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所 述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如 借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100 根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备100 对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。
图1c是本申请实施例的终端设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图1c所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图1c所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动, 传感器驱动。
下面结合捕获拍照场景,示例性说明终端设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
下面结合附图对本申请提供的声音处理方法及其装置进行详细地介绍。
请参见图2,图2是本申请实施例提供的一种声音处理方法的流程示意图,该方法应用于包括多个声音配置参数组的终端设备。该声音处理方法的执行主体为终端设备,或者为终端设备中的芯片,以下以终端设备为声音处理方法的执行主体为例进行说明。如图2所示,该方法可以包括但不限于如下步骤:
步骤S201:在终端设备的屏幕显示参数满足声音调整条件的情况下,该终端设备获取当前的屏幕显示参数。
在本申请实施例中,终端设备可以实时、周期或不定期检测终端设备的屏幕显示参数是否满足声音调整条件,并在检测到终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数。
终端设备的屏幕显示参数满足声音调整条件可以包括:终端设备的屏幕显示参数发生变化,即终端设备的历史屏幕显示参数和当前的屏幕显示参数不同。终端设备的屏幕显示参数满足声音调整条件可以表明:采用该终端设备当前启用的声音配置参数组对该终端设备中的声音输入输出设备组进行配置后得到的声音效果与当前应用场景不匹配,即终端设备可以切换该终端设备当前启用的声音配置参数组,以调节终端设备的音频效果。换言之,终端设备的屏幕显示参数满足声音调整条件,表明需要切换终端设备当前启用的声音配置参数组。
具体的,屏幕显示参数可以包括屏幕模式。终端设备的屏幕模式发生变化,可以使得该终端设备的屏幕显示参数满足声音调整条件。在一种实现方式中,该终端设备在运行音频类应用的过程中该终端设备的屏幕模式发生变化,可以使得该终端设备的屏幕显示参数满足声音调整条件。音频类应用可以为具备声音采集功能和/或声音播放功能的应用,或者音频类应用可以为声音功能为应用的主要功能的应用(如通话应用),或者音频类应用可以为对声音要求较高的应用(如视频播放器、音乐播放器等)。非音频类应用可以既不具备声音采集功能也不具备声音播放功能。通过这种方式,在终端设备运行非音频类应用的过程中该终端设备的屏幕模式发生变化的情况下,该终端设备可以不用切换该终端设备当前启用的声音配置参数组。因为运行非音频类应用的过程中,终端设备除了输出消息提示音、电话响铃等不需要较高音效的声音外,不需要输出其他对于音效较高的声音,所以在该情况下,不切换该终端设备当前启用的声音配置参数组,有利于避免资源浪费。
在一种实现方式中,终端设备可以默认设置声音调整条件,也可以由用户自定义或者 更改设置的声音调整条件。在一种实现方式中,用户可以根据自身需要(如使用习惯)在终端设备中设置声音调整条件,即用户可以自定义在哪些情况下可以切换终端设备所启用的声音配置参数组。
在一种实现方式中,基于人工智能的终端设备可以根据用户在该终端设备上的历史操作信息,确定屏幕显示参数以及声音调整条件。例如,若历史操作信息指示终端设备的屏幕模式发生变化的情况下,用户在终端设备中输入预设操作以切换终端设备所启用的声音配置参数组。通过该历史操作信息,可以理解的是,终端设备的屏幕模式发生变化的情况下,用户希望改变终端设备所启用的声音配置参数组。基于此,基于人工智能的终端设备可以自动设置终端设备的屏幕显示参数满足声音调整条件包括:终端设备的屏幕模式发生变化。通过这种方式,可以使得设置的声音调整条件更好地匹配用户需求,避免用户手动切换终端设备所启用的声音配置参数组,即可以更加灵活地切换终端设备所启用的声音配置参数组,并能更快速地实现声音配置参数组的切换,从而有利于提高终端设备的智能性和灵活性。
需要说明的是,历史操作信息可以存储于云端也可以存储于终端设备。终端设备通过记录用户的历史操作信息,可以了解该用户使用该终端设备的习惯,而无需频繁调用云端中存储的数据。这样终端设备在不使用网络的情况下也可以确定用户的使用习惯。还需要说明的是,终端设备可以针对不同用户的历史操作信息,确定针对不同用户的声音调整条件。进而在不同用户使用该终端设备时通过对应的声音调整条件确定是否可以切换终端设备所启用的声音配置参数组。例如,两用户使用终端设备的习惯不同时,若终端设备的屏幕模式发生变化,且当前使用该终端设备的是第一个用户,则终端设备可以切换终端设备所启用的声音配置参数组;若当前使用该终端设备的是第二个用户,则终端设备可以不切换终端设备所启用的声音配置参数组。通过这种方式,可以提高终端设备的智能性和灵活性,使得终端设备可以更好地匹配不同用户的使用习惯,并使得不同用户在使用该终端设备时都能获得良好的使用体验。
在一种实现方式中,屏幕显示参数可以包括终端设备中运行的音频类应用的播放模式。例如,音频类应用为视频应用a时,视频应用a的播放模式可以为全屏播放模式或非全屏播放模式。播放模式为全屏播放模式时,视频应用a播放的内容可以占用或几乎占用(一小部分屏幕可以用于显示一些系统图标、应用图标)整个屏幕。如图1a中的右图所示。需要说明的是,即使终端设备处于竖屏模式,若该终端设备中运行的视频应用a处于全屏播放模式,那么该视频应用a的内容也可以占用整个屏幕。播放模式为非全屏播放模式时,视频应用a播放的内容占用部分屏幕。如图1a中的左图所示,终端设备的屏幕显示参数满足声音调整条件可以包括:该终端设备中运行的音频类应用(播放猫和老鼠的视频应用)的播放模式发生变化。例如,该音频类应用的播放模式由全屏播放模式变为非全屏播放模式,或者,该音频类应用的播放模式由非全屏播放模式变为全屏播放模式。
在本申请实施例中,终端设备可以通过获取当前的屏幕显示参数,并根据当前的屏幕显示参数从终端设备包括的多个声音配置参数组中确定第一声音配置参数组。具体的,当前的屏幕显示参数可以包括终端设备当前所处的屏幕模式。以图1a为例,左图中的终端设备100所处的屏幕模式(竖屏模式)为终端设备的历史屏幕模式,右图中的终端设备100 所处的屏幕模式(横屏模式)为终端设备当前所处的屏幕模式。或者,当前的屏幕显示参数可以包括终端设备中运行的音频类应用的当前播放模式。
需要说明的是,在本申请实施例中提及屏幕中运行的应用表示:终端设备中运行有该应用,且该应用的数据显示在终端设备的屏幕上。
步骤S202:终端设备根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组。
具体的,终端设备可以根据屏幕显示参数与声音配置参数组之间的对应关系,将前述多个声音配置参数组中与当前的屏幕显示参数对应的声音配置参数组作为第一声音配置参数组。
在本申请实施例中,终端设备可以设置多种类型的屏幕显示参数,并分别设置各种类型的屏幕显示参数与声音配置参数组之间的对应关系。例如,终端设备包括声音配置参数组1和声音配置参数组2,终端设备设置的两种类型的屏幕显示参数为屏幕模式和终端设备中运行的音频类应用的播放模式(如视频应用a的播放模式)时,终端设备针对这两种类型的屏幕显示参数设置的对应关系分别如表1、表2所示:
表1 屏幕模式与声音配置参数组之间的对应关系
屏幕模式 声音配置参数组
竖屏模式 声音配置参数组1
横屏模式 声音配置参数组2
表2 视频应用a的播放模式与声音配置参数组之间的对应关系
视频应用a的播放模式 声音配置参数组
非全屏播放模式 声音配置参数组1
全屏播放模式 声音配置参数组2
需要说明的是,当终端设备设置多种类型的屏幕显示参数(如屏幕模式和终端设备中运行的视频应用a的播放模式),且检测到终端设备的屏幕模式发生变化(即终端设备的屏幕显示参数满足声音调整条件)的情况下,终端设备可以获取当前的屏幕模式,并将当前的屏幕模式作为当前的屏幕显示参数。进而根据表1所示对应关系确定第一声音配置参数组。同理,若检测到终端设备中运行的视频应用a的播放模式发生变化(即终端设备的屏幕显示参数满足声音调整条件)的情况下,终端设备可以获取视频应用a当前的播放模式,并将视频应用a当前的播放模式作为当前的屏幕显示参数。进而根据表2所示对应关系确定第一声音配置参数组。
在本申请实施例中,终端设备可以预先设置屏幕显示参数与声音配置参数组之间的对应关系,终端设备也可以根据用户操作更改屏幕显示参数与声音配置参数组之间的对应关系。
步骤S203:终端设备将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为该终端设备当前启用的声音配置参数组。
其中,该第二声音配置参数组为检测到终端设备的屏幕显示参数满足声音调整条件时,该终端设备所启用的声音配置参数组。该第一声音配置参数组可以为检测到终端设备的屏 幕显示参数满足声音调整条件之后,该终端设备所启用的声音配置参数组。采用不同的声音配置参数组对终端设备进行配置,该终端设备采集声音的效果和/或播放声音的效果不同。因此,终端设备通过切换所启用的声音配置参数组,可以灵活地调节音频效果,使得终端设备的音频效果可以更好地适应不同的应用场景,从而有利于提高终端设备的智能性和灵活性,并有利于提高用户体验。
通过实施本申请实施例,在检测到终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;然后根据当前的屏幕显示参数从终端设备中的多个声音配置参数组中确定第一声音配置参数组;并将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为该终端设备当前启用的声音配置参数组。通过切换终端设备启用的声音配置参数组,可以使得该终端设备采集声音的效果和/或播放声音的效果不同,即可以灵活地调节音频效果,从而有利于提高终端设备的智能性和灵活性。
请参见图3a,图3a是本申请实施例提供的另一种声音处理方法的流程示意图,该方法应用于包括多个声音配置参数组的终端设备。该方法详细描述了终端设备包括折叠屏时,在何种情况下屏幕显示参数满足声音调整条件。其中,该声音处理方法的执行主体为终端设备,或者为终端设备中的芯片,以下以终端设备为声音处理方法的执行主体为例进行说明。如图3a所示,该方法可以包括但不限于如下步骤:
步骤S301:在终端设备的屏幕显示参数满足声音调整条件的情况下,该终端设备获取当前的屏幕显示参数,其中,该终端设备包括第一屏幕和第二屏幕;该屏幕显示参数包括该第一屏幕和该第二屏幕之间的折叠角度,该屏幕显示参数满足声音调整条件包括:该折叠角度发生变化;当前的屏幕显示参数包括第一屏幕和第二屏幕之间当前的折叠角度。
在本申请实施例中,该终端设备包括折叠屏,该折叠屏可以包括一个或多个屏幕,该折叠屏经过折叠之后可以呈现为两个或两个以上屏幕,本申请实施例以该折叠屏经过折叠之后呈现为两个屏幕(如第一屏幕和第二屏幕)为例进行介绍。
该屏幕显示参数可以包括但不限于:屏幕模式,该终端设备中运行的音频类应用的播放模式,该第一屏幕和该第二屏幕之间的折叠角度,该第一屏幕上显示的内容对应的第一应用标识,该第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
其中,屏幕模式和该终端设备中运行的音频类应用的播放模式可参见图2中步骤S201的具体描述,此处不再赘述。该第一屏幕和该第二屏幕之间的折叠角度可以是[-180°,180°]中的任意角度。该第一屏幕上显示的内容可以是第一应用的内容,该第一应用的标识为该第一应用标识。该第二屏幕上显示的内容可以是第二应用的内容,该第二应用的标识为该第二应用标识。用户焦点所在屏幕的标识用于唯一标识用户焦点所在的屏幕。用户焦点所在屏幕可以为用户当前较为关注的屏幕。在一种实现方式中,终端设备可以将用户最新操作的屏幕作为用户焦点所在屏幕,或者,终端设备可以通过用户眼球确定该用户当前查看的屏幕,并将用户当前查看的屏幕作为用户焦点所在屏幕,本申请实施例对确定用户焦点所在屏幕的方式不作限定。
该屏幕显示参数满足声音调整条件包括如下情况中的一种或多种:1)该终端设备的屏 幕模式发生变化;2)该终端设备在运行音频类应用的过程中,该终端设备的屏幕模式发生变化;3)该终端设备中运行的音频类应用的播放模式发生变化;4)第一屏幕和该第二屏幕之间的折叠角度发生变化;5)该第一应用标识对应的应用类型发生变化,和/或该第二应用标识对应的应用类型发生变化;6)在该第一应用标识和该第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化。其中,前3种情况可以参见图2中步骤S201的具体描述,此处不再赘述。
对于第4种情况:第一屏幕和第二屏幕之间的折叠角度发生变化。在一种实现方式中,只要第一屏幕和第二屏幕之间的折叠角度发生变化,即可以切换所启用的声音配置参数组,这样可以增加终端设备的趣味性。在一种实现方式中,第一屏幕和第二屏幕之间的折叠角度发生变化,且该折叠角度的变化量大于预设角度,可以使得屏幕显示参数满足声音调整条件。折叠角度的变化量大于预设角度,可以避免终端设备发生碰撞或因其他原因使折叠屏发生抖动时(此时用户并不希望调整终端设备的音效,即不需要切换终端设备所启用的声音配置参数组),导致第一屏幕和第二屏幕之间的折叠角度发生变化,进而使终端设备切换所启用的声音配置参数组的情况,有利于避免误操作以及误操作带来的资源消耗。其中,预设角度可以由终端设备默认设置,也可以根据用户操作确定,且可以根据用户操作更改预设角度。预设角度可以为1°、2°或者其他较小的角度值。
在一种实现方式中,第一屏幕和第二屏幕之间的折叠角度的类型发生变化,可以使得屏幕显示参数满足声音调整条件。折叠角度的类型可以为第一类角度和第二类角度。折叠角度的类型发生变化可以包括:该折叠角度由第一类角度变为第二类角度,或者,该折叠角度由第二类角度和第一类角度。其中,第一类角度可以包括0°,第二类角度可以包括除0°以外的其他角度。换言之,终端设备处于非折叠状态下时,该终端设备的第一屏幕和第二屏幕之间的折叠角度的类型为第一类角度;终端设备处于折叠状态下时,该折叠角度的类型为第二类角度。以图3b所示的对终端设备100进行折叠的场景示意图为例,通过转动终端设备100中的转轴106,可以使第一屏幕104和第二屏幕105之间的折叠角度发生变化。当第一屏幕104和第二屏幕105合成为一个完整的屏幕(即第一屏幕和第二屏幕完全展开)时,折叠角度为0°。往屏幕的后方旋转可以使折叠角度增大。在一种实现方式中,往屏幕的前方旋转可以使折叠角度减小,且折叠角度为负数。在折叠角度的类型发生变化的情况下切换终端设备所启用的声音配置参数组,有利于节省终端设备的资源。例如,折叠角度由15°变化为30°的情况下,不改变终端设备所启用的声音配置参数组,可以节省资源。
当终端设备包括一个声音输入输出设备组,且该声音输入输出设备组中的喇叭、听筒和麦克风在该终端设备中所处的位置不变时,通过该声音输入输出设备组输入的声音效果或者输出的声音效果会随着第一屏幕和第二屏幕之间的折叠角度变化。声音效果可以包括但不限于:立体声的声场位置、功率(额定输出功率、音乐输出功率、峰值音乐输出功率)、频率范围与频率响应中的一种或多种。其中,额定输出功率指功放电路在额定失真范围内,能够持续输出的最大功率。也称有效功率。音乐输出功率指在失真不超过规定范围的情况下,功放电路的瞬间最大输出功率。峰值音乐输出功率指完全不考虑失真的情况下,功放的瞬间最大输出功率。频率范围与频率响应是标识音箱声音还原能力的两个基本参数,前 者是指音箱最低有效回放频率与最高有效回放频率之间的范围,单位赫兹(Hz);后者是指将一个以恒电压输出的音频信号与音箱系统相连接时,音箱产生的声压随频率的变化而发生增大或衰减、相位随频率而发生变化的现象,这种声压和相位与频率的相关联的变化关系称为频率响应,单位分贝(dB)。
以图3c所示的终端设备播放视频时立体声的声场示意图为例,图3c中,第一屏幕104和第二屏幕(图3c未示)之间的折叠角度为180°,且终端设备100中只有第一屏幕104处于工作状态,在第一屏幕104中播放猫和老鼠视频时,喇叭101及听筒102立体声播放的声场107(图3c中黑色填充圆形)位于该第一屏幕104的中心。
当用户转动第二屏幕,使得第一屏幕和第二屏幕之间的折叠角度为0°之后,该终端设备可以在第一屏幕和第二屏幕组成的大屏幕上播放猫和老鼠视频,此时,该终端设备播放视频时立体声的声场示意图可以如图3d所示。由图3d可知,保持喇叭101及听筒102的位置与图3c中一致时,在第一屏幕104和第二屏幕105组成的大屏幕上播放视频时,喇叭101及听筒102立体声播放的声场107仍然位于第一屏幕104的中心。对于用户来说,会感觉视频播放的声音是从大屏幕的左侧(大屏幕左侧1/4处)发出的,而非该大屏幕的中心发出的,使得听感体验较差。
需要说明的是,终端设备通过改变启用的声音配置参数组,可以改变该终端设备的音频效果。或者,终端设备通过改变声音输入输出设备组中的喇叭、听筒、麦克风在终端设备中的位置,可以改变该终端设备的音频效果。本申请实施例以改变启用的声音配置参数组以改变该终端设备的音频效果为例进行说明。为了避免在图3d所示的场景示意图下用户的听感体验较差,终端设备可以切换所启用的声音配置参数组,以使图3d中的终端设备播放视频时立体声的声场位于大屏幕的中心。通过这种方式,可以更好地匹配不同的应用场景,有利于提高终端设备的音频效果。
还需要说明的是,图3b中所示终端设备包括一个转轴,且该转轴在终端设备的中间位置仅用于举例说明,在其他可行的实现方式中,终端设备可以包括多个转轴,该多个转轴可以按需设置在终端设备中的任意位置。可选的,终端设备可以包括无限个转轴,即可以在任意位置处折叠终端设备的屏幕。还需要说明的是,图3b所示第一屏幕和第二屏幕的尺寸相同仅用于举例,并不构成对本申请实施例的限定,在其他可行的实现方式中,第一屏幕和第二屏幕的尺寸可以不同。其中,屏幕的尺寸可以指屏幕的长度、宽度和长宽比中的一种或多种。
在一种实现方式中,第一屏幕和第二屏幕之间的折叠角度的类型发生变化,且该折叠角度的变化量大于前述预设角度,可以使得屏幕显示参数满足声音调整条件。通过这种方式,有利于避免误操作以及误操作带来的资源消耗。
对于第5种情况:第一应用标识为第一屏幕中运行的应用的标识,需要说明的是,当第一屏幕中仅显示系统相关的图标时,可以认为该第一屏幕中运行的是系统应用。当第一屏幕未处于工作状态(如不显示任何内容)时,可以认为该第一屏幕中未运行任何应用。第二应用标识同理,此处不再赘述。
在一种实现方式中,终端设备开启单屏功能的情况下,工作屏幕由第一屏幕切换为第二屏幕(即第一应用标识由有变为无),或者,工作屏幕由第二屏幕切换为第一屏幕(即 第一应用标识由无变为有),可以使得终端设备的屏幕显示参数满足声音调整条件。终端设备在关闭该单屏功能之前,在任何情况下,该终端设备中只有第一屏幕或第二屏幕中的一个屏幕处于工作状态,在开启单屏功能时,该终端设备相当于不包括折叠屏。例如,工作屏幕由第一屏幕切换为第二屏幕,且终端设备中的声音输入输出设备组配置于第一屏幕时,若在第二屏幕上运行视频应用,将使得立体声的声场位于第一屏幕,这样会使得终端设备的音频效果较差。因此,在工作屏幕发生变化时,终端设备可以切换所启用的声音配置参数组,以使得采用新启用的声音配置参数组使得立体声的声场位于当前的工作屏幕的中心,从而有利于提高终端设备的智能性以及灵活性。
在一种实现方式中,第一应用标识对应的应用类型发生变化可以包括:第一应用标识对应的应用类型由音频类变为非音频类,或者,第一应用标识对应的应用类型由非音频类变为音频类。
当终端设备所运行应用的应用类型为非音频类时,终端设备对音效的要求较低,因为此时终端设备仅需要输出电话提示音、短信提示音等。当终端设备所运行应用的应用类型为音频类时,终端设备对音效的要求较高。例如,播放电影时需要较好的音效以提高用户的沉浸感。需要说明的是,使用使得音效较好的声音配置参数时,终端设备的资源消耗较高;使用使得音效较差的声音配置参数时,终端设备的资源消耗较低。因此,当第一屏幕所运行应用的应用类型(即第一应用标识对应的应用类型)由非音频类变为音频类时,终端设备可以切换所启用的声音配置参数组,以使得采用新启用的声音配置参数组使得终端设备的音效较好,有利于提高用户体验。当第一应用标识对应的应用类型由音频类变为非音频类时,终端设备可以切换所启用的声音配置参数组,以使得采用新启用的声音配置参数组终端设备的音效适当降低,这样有利于节省资源。
第二应用标识对应的应用类型发生变化的情况与第一应用标识对应的应用类型发生变化的情况类似,此处不再赘述。需要说明的是,非音频类的应用可以是本身即不具备声音采集功能也不具备声音播放功能,或者,非音频类应用可以是终端设备未对其授予声音采集功能和声音播放功能权限的应用。
对于第6种情况:在第一应用标识和第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化。例如,第一屏幕中运行视频应用a,第二屏幕中运行视频应用b,且视频应用a和视频应用b的应用类型均为音频类时,若用户焦点所在屏幕的标识由第一屏幕的标识变为第二屏幕的标识,则可以表明用户当前较为关注第二屏幕中显示的内容。终端设备可以切换所启用的声音配置参数组,以使得采用新启用的声音配置参数组可以更好地匹配当前应用场景。例如,终端设备切换所启用的声音配置参数组之前,该终端设备通过所启用的声音配置参数组可以使得立体声的声场位于第一屏幕的中心。终端设备切换所启用的声音配置参数组之后,该终端设备通过新启用的声音配置参数组可以使得立体声的声场位于第二屏幕的中心。通过这种方式,可以灵活地调节音频效果,提高终端设备的智能性、灵活性。
在一种实现方式中,当终端设备确定用户焦点所在屏幕为第二屏幕时,终端设备可以输出(如播放)该第二屏幕中运行的应用(即视频应用b)的声音数据,并使得输出该声音数据时立体声的声场位于第二屏幕的中心。同时,可以暂停运行第一屏幕中运行的应用 (即视频应用a),或者,以不同于视频应用b的声音数据的输出方式输出视频应用a的声音数据。例如,终端设备以外放的形式输出视频应用b的声音数据时,可以静音输出视频应用a的声音数据,或者,通过耳机输出视频应用a的声音数据。通过这种方式,可以避免两个视频应用的声音数据相互干扰。
在本申请实施例中,终端设备可以设置多种类型的屏幕显示参数,例如,屏幕模式,该终端设备中运行的音频类应用的播放模式,该第一屏幕和该第二屏幕之间的折叠角度,该第一屏幕上显示的内容对应的第一应用标识,该第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识。在检测到终端设备的屏幕模式发生变化的情况下,终端设备可以将当前的屏幕模式作为当前的屏幕显示参数。在检测到第一屏幕和该第二屏幕之间的折叠角度发生变化的情况下,终端设备可以将当前的折叠角度作为当前的屏幕显示参数。在检测到第一应用标识对应的应用的类型发生变化的情况下,终端设备可以将当前的第一应用标识作为当前的屏幕显示参数。在第一应用标识和第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用的类型均为音频类的情况下,检测到用户焦点所在屏幕的标识发生变化的情况下,终端设备可以将当前的用户焦点所在屏幕的标识作为当前的屏幕显示参数。
在本申请实施例中,屏幕显示参数满足声音调整条件可以包括上述情况中的一种或多种,在检测到屏幕显示参数满足声音调整条件的情况下,切换终端设备所启用的声音配置参数组,可以灵活地调节音频效果,从而可以更好地匹配不同的应用场景,并有利于提高终端设备的智能性、灵活性。
需要说明的是,步骤S301的其余执行过程可参见图2中步骤S201的具体描述,此处不再赘述。
步骤S302:终端设备根据折叠角度和声音配置参数组之间的对应关系,将前述多个声音配置参数组中与当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。
具体的,终端设备获取当前的屏幕显示参数(如当前的折叠角度)之后,可以根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组。终端设备根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据折叠角度和声音配置参数组之间的对应关系,将前述多个声音配置参数组中与当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。通过这种方式,可以随着折叠角度的变化,动态适配声音配置参数组,并切换终端设备所启用的声音配置参数组。通过这种方式,可以灵活地调节音频效果,提高终端设备的智能性、灵活性,并有利于使用户获得更好的音频体验。在一种实现方式中,一个声音配置参数组可以对应一个或多个角度。
步骤S303:终端设备将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为该终端设备当前启用的声音配置参数组。
需要说明的是,步骤S302~步骤S303的执行过程可参见图2中步骤S202~步骤S203的具体描述,此处不再赘述。
通过实施本申请实施例,在检测到第一屏幕和该第二屏幕之间的折叠角度发生变化的情况下,通过切换终端设备所启用的声音配置参数组,可以灵活地调节音频效果,提高终 端设备的智能性、灵活性。
请参见图4a,图4a是本申请实施例提供的又一种声音处理方法的流程示意图,该方法应用于包括多个声音配置参数组的终端设备。该方法详细描述了终端设备包括第一屏幕和第二屏幕的情况下,如何根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕,以及如何根据该第三屏幕从终端设备包括的多个声音配置参数组中确定第一声音配置参数组。其中,该声音处理方法的执行主体为终端设备,或者为终端设备中的芯片,以下以终端设备为声音处理方法的执行主体为例进行说明。如图4a所示,该方法可以包括但不限于如下步骤:
步骤S401:在终端设备的屏幕显示参数满足声音调整条件的情况下,该终端设备获取当前的屏幕显示参数,其中,该终端设备包括第一屏幕和第二屏幕。
其中,该屏幕显示参数可以包括但不限于:该第一屏幕和该第二屏幕之间的折叠角度,该第一屏幕上显示的内容对应的第一应用标识,该第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
该屏幕显示参数满足声音调整条件包括如下情况中的一种或多种:该折叠角度发生变化;该第一应用标识对应的应用的类型发生变化,和/或该第二应用标识对应的应用的类型发生变化;在该第一应用标识和该第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用的类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化。
需要说明的是,步骤S401的执行过程可参见图3a中步骤S301的具体描述,此处不再赘述。
步骤S402:终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕。
具体的,终端设备根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕;并根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组。
其中,第三屏幕可以为终端设备中处于工作模式下的屏幕,也可以为运行有音频类应用的屏幕,也可以为用户较为关注的屏幕。第三屏幕可以包括第一屏幕和第二屏幕中的一个或两个屏幕。确定第三屏幕之后,可以根据第三屏幕确定第一声音配置参数组。终端设备启用第一声音配置参数组之后,可以使得终端设备的音效与第三屏幕相匹配。终端设备的音效与第三屏幕相匹配可以表示:播放声音时立体声的声场位于第三屏幕的中心。
在一种实现方式中,当前的屏幕显示参数可以包括但不限于:当前的第一应用标识,当前的第二应用标识或当前的用户焦点所在屏幕的标识中的一种或多种。其中,当前的第一应用标识为检测到终端的屏幕显示参数满足声音调整条件时,第一屏幕上运行的应用的标识。当前的第二应用标识为检测到终端的屏幕显示参数满足声音调整条件时,第二屏幕上运行的应用的标识。
终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为:若当前的第一应用标识为应用标识a,且当前的第二应用标识为无(即第二屏幕并未显示任何内容),则将该第一屏幕作为第三屏幕。此时,该第三屏幕为终端设备中处于工作模式下的屏幕。
在一种实现方式中,终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为:若当前的第一应用标识为应用标识a,当前的第二应用标识为应用标识b,且应用标识a指示的应用处于活跃状态,则将该第一屏幕作为第三屏幕。终端设备中处于活跃状态的应用的数量为一个,处于活跃状态的应用可以为用户当前使用的应用,或者,用户最近使用的应用。即在此情况下,第三屏幕为运行处于活跃状态下的应用的屏幕。
在一种实现方式中,终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为:若当前的第一应用标识对应的应用类型为前述音频类,且当前的第二应用标识对应的应用类型为前述非音频类,则将该第一屏幕作为第三屏幕。换言之,终端设备可以将运行有音频类应用的屏幕作为第三屏幕。此时,第三屏幕为运行有音频类应用的屏幕。
在一种实现方式中,终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为:若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识相同,则将第一屏幕和第二屏幕作为第三屏幕。当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识相同的情况下,可以表明该终端设备处于非折叠状态,且以全屏模式输出一个应用的数据。例如,图3d中终端设备以全屏模式输出视频应用中猫和老鼠视频的数据。此时,第三屏幕为运行有音频类应用的屏幕。
在一种实现方式中,终端设备根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕的具体实施方式可以为:若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识不同,则将当前的用户焦点所在屏幕的标识指示的屏幕作为第三屏幕,当前的用户焦点所在屏幕的标识指示的屏幕为第一屏幕或第二屏幕。例如,第一屏幕中运行视频应用a,第二屏幕中运行视频应用b,且视频应用a的应用类型和视频应用b的应用类型均为音频类时,若用户焦点所在屏幕的标识由第一屏幕的标识变为第二屏幕的标识,则可以将第二屏幕作为第三屏幕。此时,该第三屏幕为用户较为关注的屏幕。
步骤S403:终端设备根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组。
具体的,终端设备可以根据屏幕与声音配置参数组之间的对应关系,将与该第三屏幕对应的声音配置参数组作为第一声音输入输出设备组。当终端设备包括3个声音配置参数组时,屏幕与声音配置参数组之间的对应关系可以如表3所示。采用声音配置参数组1对终端设备进行配置,可以使得终端设备输出声音时立体声的声场位于第一屏幕的中心。采用声音配置参数组2对终端设备进行配置,可以使得终端设备输出声音时立体声的声场位于第二屏幕的中心。采用声音配置参数组3对终端设备进行配置,可以使得终端设备输出声音时立体声的声场位于第一屏幕和第二屏幕组成的大屏幕的中心。
表3 屏幕与声音配置参数组之间的对应关系
屏幕 声音配置参数组
第一屏幕 声音配置参数组1
第二屏幕 声音配置参数组2
第一屏幕+第二屏幕 声音配置参数组3
在一种实现方式中,终端设备可以包括一个或多个声音输入输出设备组,多个声音输入输出设备组可以分布于一个或多个屏幕上。在一种实现方式中,第一屏幕(或者第二屏幕)上可以配置一个或多个声音输入输出设备组。本申请实施例以第一屏幕和第二屏幕上均配置一个声音输入输出设备组为例进行说明。
多个声音输入输出设备组中的各个声音输入输出设备组对应的声音配置参数组可以包括单屏声音配置参数组和全屏声音配置参数组。采用单屏声音配置参数组对相应的声音输入输出设备组进行配置,可以使得终端设备输出声音时立体声的声场位于该声音输入输出设备组所在屏幕的中心。采用全屏声音配置参数组对相应的声音输入输出设备组进行配置,可以使得终端设备输出声音时立体声的声场位于第一屏幕和第二屏幕组成的大屏幕的中心。
终端设备根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组的具体实施方式可以为:根据屏幕与声音输入输出设备组之间的对应关系,将第三屏幕对应的声音输入输出设备组作为第一声音输入输出设备组;若该第三屏幕包括第一屏幕或第二屏幕,则将该第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组;若该第三屏幕包括第一屏幕和第二屏幕,则将每个第一声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
在本申请实施例中,第一屏幕与该第一屏幕上配置的声音输入输出设备组可以具有对应关系,第二屏幕与该第二屏幕上配置的声音输入输出设备组可以具有对应关系。第三屏幕对应的声音输入输出设备组(即第一声音输入输出设备组)可以为检测到屏幕显示参数满足声音调整条件之后,终端设备所启用的声音输入输出设备组。在检测到屏幕显示参数满足声音调整条件时,终端设备所启用的声音输入输出设备组可以为第二声音输入输出设备组,即第二声音输入输出设备组为终端设备当前启用的声音输入输出设备组。确定第一声音输入输出设备组之后,终端设备可以将第二声音输入输出设备组更新为第一声音输入输出设备组。
在本申请实施例中,不同声音输入输出设备组对应的声音配置参数组可以不同。以图4b所示的屏幕和声音输入输出设备组在终端设备中的对应关系图为例,图4b中,终端设备100包括第一屏幕104和第二屏幕105,通过转动转轴106可以改变第一屏幕104和第二屏幕105之间的折叠角度。第一屏幕104对应声音输入输出设备组a,声音输入输出设备组a由喇叭101、听筒102和麦克风103组成;第二屏幕105对应声音输入输出设备组b,声音输入输出设备组b由喇叭108、听筒109和麦克风110组成。当声音输入输出设备组a对应单屏声音配置参数组a,声音输入输出设备组b对应单屏声音配置参数组b时。通过单屏声音配置参数组a对声音输入输出设备组a进行配置,可以使得终端设备输出声音时立体声的声场位于第一屏幕的中心。通过单屏声音配置参数组b对声音输入输出设备组b进行配置,可以使得终端设备输出声音时立体声的声场位于第二屏幕的中心。
在一种实现方式中,终端设备也可以通过单屏声音配置参数组c对声音输入输出设备组b进行配置,以使得终端设备输出声音时立体声的声场位于第一屏幕104的中心。由图4b可知,第一屏幕104的中心与声音输入输出设备组b之间的距离大于第一屏幕104的中 心与声音输入输出设备组a之间的距离。因此,为使得立体声的声场位于第一屏幕的中心时,相较于通过单屏声音配置参数组a对声音输入输出设备组a进行配置,通过单屏声音配置参数组c对声音输入输出设备组b进行配置所消耗的资源更多。所以终端设备可以启用声音输入输出设备组a,即将声音输入输出设备组a作为第一声音输入输出设备组,进而从第一声音输入输出设备组对应的声音配置参数组中确定第一声音配置参数组。
第三屏幕包括第一屏幕和第二屏幕中的一个屏幕时,可以表明终端设备中处于工作模式下的屏幕数量为一个,或者,运行有音频类应用的屏幕数量为一个,或者,用户较为关注的屏幕数量为一个。在此情况下,使用单屏声音配置参数组对终端设备进行配置所产生的音效即可满足用户需求。可以理解的是,终端设备以全屏模式输出某应用的数据时,该应用对于声音功能的要求较高,在该场景下终端设备可以加载使音效较好的声音配置参数组。在本申请实施例中,采用单屏声音配置参数组对声音输入输出设备组进行配置之后,在输出声音数据或者采集声音数据时,终端设备消耗的资源低于采用全屏声音配置参数组对该同一声音输入输出设备组进行配置之后,在输出声音数据或者采集声音数据时,终端设备消耗的资源。因此,第三屏幕包括第一屏幕和第二屏幕中的一个屏幕时,将第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组,有利于在确保终端设备的音效的前提下降低终端设备的资源消耗。
第三屏幕包括第一屏幕和第二屏幕时,可以表明终端设备中处于工作模式下的屏幕数量为两个,或者,第一屏幕和第二屏幕共同运行一个音频类应用。此时,终端设备中运行的应用占用了较大的屏幕面积,可以认为用户当前较为关注第一屏幕和第二屏幕中运行的音频类应用的数据。在此情况下,终端设备可以启用第一屏幕和第二屏幕上的所有声音输入输出设备组,并将所有声音输入输出设备组中的各个声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组,进而通过各个声音输入输出设备组对应的全屏声音配置参数组对该声音输入输出设备组进行配置。通过这种方式,可以灵活地调节音频效果,并有利于最优化终端设备的音频效果,从而有利于增强用户的沉浸感,并有利于提高终端设备的智能性、灵活性。
以图4c所示的终端设备中声音输入输出设备组的使用情况的示意图为例。在图4c中,终端设备100包括第一屏幕104和第二屏幕105,第一屏幕104和第二屏幕105之间的折叠角度为30°,通过转动转轴106可以改变折叠角度。第一屏幕104包括一个声音输入输出设备组1,声音输入输出设备组1包括喇叭101、听筒102和麦克风103;第二屏幕105包括一个声音输入输出设备组2,声音输入输出设备组2包括喇叭108、听筒109和麦克风110。若确定出的第三屏幕包括第一屏幕104和第二屏幕105,则可以将声音输入输出设备组1和声音输入输出设备组2均确定为第一声音输入输出设备组,即终端设备可以启用声音输入输出设备组1和声音输入输出设备组2以输出猫和老鼠视频的声音数据。图4c中声音输入输出设备组以格纹填充时,表示该声音输入输出设备组被终端设备所启用。
在一种实现方式中,确定第一声音输入输出设备组之后,若第三屏幕包括第一屏幕和第二屏幕,且第一屏幕和第二屏幕之间的折叠角度为0°,则终端设备可以将每个第一声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
图4c中第一屏幕和第二屏幕之间的折叠角度变为0°后得到的终端设备的示意图可以 如图4d所示。在本申请实施例中,第一屏幕和第二屏幕之间的折叠角度为0°时,终端设备中的各个声音输入输出设备组通过对应的全屏声音配置参数组进行配置之后得到的音频效果优于折叠角度为除0°以外的其他角度时,终端设备中的各个声音输入输出设备组通过对应的全屏声音配置参数组进行配置之后得到的音频效果。参见图4c以及图4d可以想到,当图4c和图4d中的喇叭101、喇叭108通过相同的声音配置参数进行配置,且图4c和图4d中的听筒102、听筒109通过相同的声音配置参数进行配置时,图4d中终端设备的音频播放效果优于图4c中终端设备的音频播放效果。这是因为图4c中折叠角度为30°时,若用户正对第一屏幕,则该用户可以最大程度接收第一屏幕上的喇叭101和听筒102播放的声音,但不能以最大程度接收第二屏幕上的喇叭108和听筒109播放的声音。在图4d中,由于折叠角度为0°,若用户正对第一屏幕,则用户可以最大程度接收第一屏幕上的喇叭101和听筒102播放的声音以及以最大程度接收第二屏幕上的喇叭108和听筒109播放的声音。所以在第一屏幕和第二屏幕之间的折叠角度为0°的情况下,使用全屏声音配置参数组对相应的声音输入输出设备组进行配置,有利于最大程度地提高终端设备的音频效果。
需要说明的是,在本申请实施例中,声音输出的相关步骤与采集声音的相关步骤类似,根据声音输出的相关步骤可以确定采集声音的相关步骤,本申请实施例不再赘述。
步骤S404:终端设备将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为该终端设备当前启用的声音配置参数组。
在本申请实施例中,若第一声音配置参数组包括声音配置参数组1和声音配置参数组2;第一声音输入输出设备组包括声音输入输出设备组1和第一声音输入输出设备组2。并且,声音配置参数组1为声音输入输出设备组1对应的单屏声音配置参数组或者全屏声音配置参数组,声音配置参数组2为声音输入输出设备组2对应的单屏声音配置参数组或者全屏声音配置参数组,则终端设备可以调用声音配置参数组1对声音输入输出设备组1进行配置,并调用声音配置参数组2对声音输入输出设备组2进行配置。
需要说明的是,步骤S404的执行过程可参见图3a中步骤S303的具体描述,此处不再赘述。
通过实施本申请实施例,在检测到终端设备的屏幕显示参数满足声音调整条件的情况下,可以根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕,并根据该第三屏幕从终端设备包括的多个声音配置参数组中确定第一声音配置参数组。其中,第三屏幕可以为终端设备中处于工作模式下的屏幕,也可以为运行有音频类应用的屏幕,也可以为用户较为关注的屏幕。通过这种方式,可以使得终端设备的音效与第三屏幕相匹配。
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。
请参见图5,图5是本申请实施例提供的一种声音处理装置的结构示意图,该声音处理装置50可以为终端设备或具有终端设备功能的装置(例如芯片),该终端设备可以包括多个声音配置参数组。声音处理装置50用于执行图2-图4a对应的方法实施例中终端设备所执行的步骤,声音处理装置50可以包括:
获取模块501,用于在终端设备的屏幕显示参数满足声音调整条件的情况下,获取当 前的屏幕显示参数;
确定模块502,用于根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组;
更新模块503,用于将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为终端设备当前启用的声音配置参数组。
在一种实现方式中,终端设备可以包括第一屏幕和第二屏幕;屏幕显示参数可以包括第一屏幕和第二屏幕之间的折叠角度,第一屏幕上显示的内容对应的第一应用标识,第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
在一种实现方式中,屏幕显示参数满足声音调整条件可以包括如下情况中的一种或多种:前述折叠角度发生变化;第一应用标识对应的应用类型发生变化,和/或第二应用标识对应的应用类型发生变化,应用类型可以为音频类或非音频类;在该第一应用标识和该第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化。
在一种实现方式中,当前的屏幕显示参数可以包括第一屏幕和第二屏幕之间当前的折叠角度;确定模块502用于根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以用于根据折叠角度和声音配置参数组之间的对应关系,将多个声音配置参数组中与当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。
在一种实现方式中,确定模块502用于根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以用于根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕;根据该第三屏幕从多个声音配置参数组中确定第一声音配置参数组。
在一种实现方式中,当前的屏幕显示参数可以包括当前的第一应用标识,当前的第一应用标识和当前的用户焦点所在屏幕的标识中的一种或多种。确定模块502用于根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕时,具体可以用于如下步骤中的任一种:若当前的第一应用标识对应的应用类型为前述音频类,且当前的第二应用标识对应的应用类型为前述非音频类,则将该第一屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识相同,则将第一屏幕和第二屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识不同,则将当前的用户焦点所在屏幕的标识指示的屏幕作为第三屏幕,当前的用户焦点所在屏幕的标识指示的屏幕为第一屏幕或第二屏幕。
在一种实现方式中,终端设备可以包括多个声音输入输出设备组,多个声音输入输出设备组中的各个声音输入输出设备组对应的声音配置参数组可以包括单屏声音配置参数组和全屏声音配置参数组。确定模块502用于根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以用于根据屏幕与声音输入输出设备组之间的对应关系,将第三屏幕对应的声音输入输出设备组作为第一声音输入输出设备组;若该第三屏幕包括第一屏幕或第二屏幕,则将该第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组;若该第三屏幕包括第一屏幕和第二屏幕,则将每个第一声音输入 输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
在一种实现方式中,更新模块503还可以用于将第二声音输入输出设备组更新为第一声音输入输出设备组,该第二声音输入输出设备组为终端设备当前启用的声音输入输出设备组。
需要说明的是,图5对应的实施例中未提及的内容以及各个模块执行步骤的具体实现方式可参见图2-图4a所示实施例以及前述内容,这里不再赘述。
在一种实现方式中,图5中的各个模块所实现的相关功能可以结合处理器来实现。参见图6,图6是本申请实施例提供的一种声音处理装置的结构示意图,该声音处理装置可以为终端设备或具有终端设备功能的装置(例如芯片),该终端设备可以包括多个声音配置参数组。该声音处理装置60可以包括处理器601、存储器602和输入输出模块603,处理器601、存储器602和输入输出模块603可以通过一条或多条通信总线相互连接,也可以通过其它方式相连接。图5所示的获取模块501、确定模块502和更新模块503所实现的相关功能可以通过同一个处理器601来实现,也可以通过多个不同的处理器601来实现。
处理器601被配置为执行图2-图4a所述方法中终端设备相应的功能。该处理器601可以包括一个或多个处理器,例如该处理器601可以是一个或多个中央处理器(central processing unit,CPU),网络处理器(network processor,NP),硬件芯片或者其任意组合。在处理器601是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。
存储器602用于存储程序代码等。存储器602可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM);存储器602也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器602还可以包括上述种类的存储器的组合。
输入输出模块603可以用于输出声音数据或者采集声音数据。输入输出模块603可以由输入模块和输出模块组成,输入模块可以包括图1b中的受话器、麦克风或摄像头中的一种或多种。输出模块可以包括图1b中的扬声器、耳机接口或显示屏中的一种或多种。
处理器601可以调用存储器602中存储的程序代码以执行以下操作:
在终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;
根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组;
将第二声音配置参数组更新为该第一声音配置参数组,该第二声音配置参数组为终端设备当前启用的声音配置参数组。
在一种实现方式中,终端设备可以包括第一屏幕和第二屏幕;屏幕显示参数可以包括第一屏幕和第二屏幕之间的折叠角度,第一屏幕上显示的内容对应的第一应用标识,第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
在一种实现方式中,屏幕显示参数满足声音调整条件可以包括如下情况中的一种或多种:前述折叠角度发生变化;第一应用标识对应的应用类型发生变化,和/或第二应用标识对应的应用类型发生变化,应用类型可以为音频类或非音频类;在该第一应用标识和该第二应用标识不同,且该第一应用标识和该第二应用标识对应的应用类型均为音频类的情况下,用户焦点所在屏幕的标识发生变化。
在一种实现方式中,当前的屏幕显示参数可以包括第一屏幕和第二屏幕之间当前的折叠角度;处理器601执行根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以执行以下操作:根据折叠角度和声音配置参数组之间的对应关系,将多个声音配置参数组中与当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。
在一种实现方式中,处理器601执行根据当前的屏幕显示参数从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以执行以下操作:根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕;根据该第三屏幕从多个声音配置参数组中确定第一声音配置参数组。
在一种实现方式中,当前的屏幕显示参数可以包括当前的第一应用标识,当前的第二应用标识和当前的用户焦点所在屏幕的标识中的一种或多种。处理器601执行根据当前的屏幕显示参数从第一屏幕和第二屏幕中确定第三屏幕时,具体可以执行如下步骤中的任一种:若当前的第一应用标识对应的应用类型为前述音频类,且当前的第二应用标识对应的应用类型为前述非音频类,则将该第一屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识相同,则将第一屏幕和第二屏幕作为第三屏幕;若当前的第一应用标识和当前的第二应用标识对应的应用类型均为音频类,且当前的第一应用标识和当前的第二应用标识不同,则将当前的用户焦点所在屏幕的标识指示的屏幕作为第三屏幕,当前的用户焦点所在屏幕的标识指示的屏幕可以为第一屏幕或第二屏幕。
在一种实现方式中,终端设备可以包括多个声音输入输出设备组,多个声音输入输出设备组中的各个声音输入输出设备组对应的声音配置参数组可以包括单屏声音配置参数组和全屏声音配置参数组。处理器601执行根据该第三屏幕从前述多个声音配置参数组中确定第一声音配置参数组时,具体可以执行以下操作:根据屏幕与声音输入输出设备组之间的对应关系,将第三屏幕对应的声音输入输出设备组作为第一声音输入输出设备组;若该第三屏幕包括第一屏幕或第二屏幕,则将该第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组;若该第三屏幕包括第一屏幕和第二屏幕,则将每个第一声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
在一种实现方式中,处理器601还可以执行以下操作:将第二声音输入输出设备组更新为第一声音输入输出设备组,该第二声音输入输出设备组为终端设备当前启用的声音输入输出设备组。
进一步地,处理器601还可以执行图2-图4a所示实施例中终端设备对应的操作,具体可参见方法实施例中的描述,在此不再赘述。
本申请实施例还提供一种计算机可读存储介质,可以用于存储图5所示实施例中声音处理装置所用的计算机软件指令,其包含用于执行上述实施例中为终端设备所设计的程序。
上述计算机可读存储介质包括但不限于快闪存储器、硬盘、固态硬盘。
本申请实施例还提供一种计算机程序产品,该计算机产品被计算设备运行时,可以执行上述图2-图4a实施例中为终端设备所设计的方法。
在本申请实施例中还提供一种芯片,包括处理器和存储器,该存储器用包括处理器和 存储器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,该计算机程序用于实现上述方法实施例中的方法。
本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (11)

  1. 一种声音处理方法,其特征在于,所述方法应用于包括多个声音配置参数组的终端设备,所述方法包括:
    在所述终端设备的屏幕显示参数满足声音调整条件的情况下,获取当前的屏幕显示参数;
    根据所述当前的屏幕显示参数从所述多个声音配置参数组中确定第一声音配置参数组;
    将第二声音配置参数组更新为所述第一声音配置参数组,所述第二声音配置参数组为所述终端设备当前启用的声音配置参数组。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备包括第一屏幕和第二屏幕;所述屏幕显示参数包括所述第一屏幕和所述第二屏幕之间的折叠角度,所述第一屏幕上显示的内容对应的第一应用标识,所述第二屏幕上显示的内容对应的第二应用标识或用户焦点所在屏幕的标识中的一种或多种。
  3. 根据权利要求2所述的方法,其特征在于,所述屏幕显示参数满足声音调整条件包括如下情况中的一种或多种:
    所述折叠角度发生变化;
    所述第一应用标识对应的应用类型发生变化,和/或所述第二应用标识对应的应用类型发生变化,应用类型为音频类或非音频类;
    在所述第一应用标识和所述第二应用标识不同,且所述第一应用标识和所述第二应用标识对应的应用类型均为所述音频类的情况下,所述用户焦点所在屏幕的标识发生变化。
  4. 根据权利要求3所述的方法,其特征在于,所述当前的屏幕显示参数包括所述第一屏幕和所述第二屏幕之间当前的折叠角度;
    所述根据所述当前的屏幕显示参数从所述多个声音配置参数组中确定第一声音配置参数组,包括:
    根据折叠角度和声音配置参数组之间的对应关系,将所述多个声音配置参数组中与所述当前的折叠角度对应的声音配置参数组作为第一声音配置参数组。
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述当前的屏幕显示参数从所述多个声音配置参数组中确定第一声音配置参数组,包括:
    根据所述当前的屏幕显示参数从所述第一屏幕和所述第二屏幕中确定第三屏幕;
    根据所述第三屏幕从所述多个声音配置参数组中确定第一声音配置参数组。
  6. 根据权利要求5所述的方法,其特征在于,所述当前的屏幕显示参数包括当前的第一应用标识,当前的第二应用标识或当前的用户焦点所在屏幕的标识中的一种或多种;
    所述根据所述当前的屏幕显示参数从所述第一屏幕和所述第二屏幕中确定第三屏幕,包括如下步骤中的任一种:
    若所述当前的第一应用标识对应的应用类型为所述音频类,且所述当前的第二应用标识对应的应用类型为所述非音频类,则将所述第一屏幕作为第三屏幕;
    若所述当前的第一应用标识和所述当前的第二应用标识对应的应用类型均为所述音频类,且所述当前的第一应用标识和所述当前的第二应用标识相同,则将所述第一屏幕和所 述第二屏幕作为所述第三屏幕;
    若所述当前的第一应用标识和所述当前的第二应用标识对应的应用类型均为所述音频类,且所述当前的第一应用标识和所述当前的第二应用标识不同,则将所述当前的用户焦点所在屏幕的标识指示的屏幕作为所述第三屏幕,所述当前的用户焦点所在屏幕的标识指示的屏幕为所述第一屏幕或所述第二屏幕。
  7. 根据权利要求5或6所述的方法,其特征在于,所述终端设备包括多个声音输入输出设备组;所述多个声音输入输出设备组中的各个声音输入输出设备组对应的声音配置参数组包括单屏声音配置参数组和全屏声音配置参数组;
    所述根据所述第三屏幕从所述多个声音配置参数组中确定第一声音配置参数组,包括:
    根据屏幕与声音输入输出设备组之间的对应关系,将所述第三屏幕对应的声音输入输出设备组作为第一声音输入输出设备组;
    若所述第三屏幕包括所述第一屏幕或所述第二屏幕,则将所述第一声音输入输出设备组对应的单屏声音配置参数组作为第一声音配置参数组;
    若所述第三屏幕包括所述第一屏幕和所述第二屏幕,则将每个第一声音输入输出设备组对应的全屏声音配置参数组均作为第一声音配置参数组。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    将第二声音输入输出设备组更新为所述第一声音输入输出设备组,所述第二声音输入输出设备组为所述终端设备当前启用的声音输入输出设备组。
  9. 一种声音处理装置,其特征在于,包括用于执行如权利要求1~8任一项所述的方法的单元。
  10. 一种声音处理装置,其特征在于,包括处理器和存储器,所述存储器中存储有程序指令,所述处理器调用所述存储器中存储的程序指令以使所述声音处理装置执行如权利要求1~8任一项所述的方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时使所述处理器执行如权利要求1~8任一项所述的方法。
PCT/CN2020/123924 2019-10-30 2020-10-27 一种声音处理方法及其装置 WO2021083128A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20880523.4A EP4040284A4 (en) 2019-10-30 2020-10-27 CLAY PROCESSING METHOD AND APPARATUS THEREOF
US17/728,043 US20220248160A1 (en) 2019-10-30 2022-04-25 Sound processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911048950.0 2019-10-30
CN201911048950.0A CN110989961A (zh) 2019-10-30 2019-10-30 一种声音处理方法及其装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/728,043 Continuation US20220248160A1 (en) 2019-10-30 2022-04-25 Sound processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2021083128A1 true WO2021083128A1 (zh) 2021-05-06

Family

ID=70082779

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123924 WO2021083128A1 (zh) 2019-10-30 2020-10-27 一种声音处理方法及其装置

Country Status (4)

Country Link
US (1) US20220248160A1 (zh)
EP (1) EP4040284A4 (zh)
CN (1) CN110989961A (zh)
WO (1) WO2021083128A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109636A1 (zh) * 2021-12-17 2023-06-22 华为技术有限公司 应用卡片显示方法、装置、终端设备及可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989961A (zh) * 2019-10-30 2020-04-10 华为终端有限公司 一种声音处理方法及其装置
CN113556604B (zh) * 2020-04-24 2023-07-18 深圳市万普拉斯科技有限公司 音效调节方法、装置、计算机设备和存储介质
CN111756929A (zh) * 2020-06-24 2020-10-09 Oppo(重庆)智能科技有限公司 多屏终端音频播放方法、装置、终端设备以及存储介质
CN114489556B (zh) * 2021-05-21 2022-12-09 荣耀终端有限公司 一种播放声音的方法及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140179380A1 (en) * 2012-12-21 2014-06-26 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio signal in portable terminal
CN106997283A (zh) * 2016-01-22 2017-08-01 联想(北京)有限公司 一种信息处理方法及电子设备
CN110989961A (zh) * 2019-10-30 2020-04-10 华为终端有限公司 一种声音处理方法及其装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140098384A (ko) * 2013-01-31 2014-08-08 삼성전자주식회사 복수의 터치스크린을 가지는 휴대 장치 및 복수의 터치스크린을 가지는 휴대 장치의 사운드 출력방법
CN106550141A (zh) * 2016-10-27 2017-03-29 乐视控股(北京)有限公司 一种终端以及终端音频播放控制方法和装置
CN108132769A (zh) * 2017-01-03 2018-06-08 中兴通讯股份有限公司 一种音频数据播放方法和双屏移动终端
US10481856B2 (en) * 2017-05-15 2019-11-19 Microsoft Technology Licensing, Llc Volume adjustment on hinged multi-screen device
CN107450874B (zh) * 2017-07-24 2021-04-20 宇龙计算机通信科技(深圳)有限公司 一种多媒体数据双屏播放方法及系统
CN108958693B (zh) * 2018-06-22 2021-07-16 联想(北京)有限公司 一种音频控制方法及电子设备
CN109144249B (zh) * 2018-07-23 2021-09-14 Oppo广东移动通信有限公司 屏幕发声方法、装置、电子装置及存储介质
CN109947315A (zh) * 2019-03-04 2019-06-28 Oppo广东移动通信有限公司 分屏显示方法、装置、电子设备及计算机可读存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140179380A1 (en) * 2012-12-21 2014-06-26 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio signal in portable terminal
CN106997283A (zh) * 2016-01-22 2017-08-01 联想(北京)有限公司 一种信息处理方法及电子设备
CN110989961A (zh) * 2019-10-30 2020-04-10 华为终端有限公司 一种声音处理方法及其装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4040284A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109636A1 (zh) * 2021-12-17 2023-06-22 华为技术有限公司 应用卡片显示方法、装置、终端设备及可读存储介质

Also Published As

Publication number Publication date
EP4040284A4 (en) 2022-12-07
US20220248160A1 (en) 2022-08-04
CN110989961A (zh) 2020-04-10
EP4040284A1 (en) 2022-08-10

Similar Documents

Publication Publication Date Title
WO2020238871A1 (zh) 一种投屏方法、系统及相关装置
EP3974970A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021083128A1 (zh) 一种声音处理方法及其装置
WO2021042978A1 (zh) 一种主题切换方法以及主题切换装置
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
JP2023532078A (ja) ヘッドセットノイズ処理方法、装置及びヘッドセット
CN111628916B (zh) 一种智能音箱与电子设备协作的方法及电子设备
CN113923230B (zh) 数据同步方法、电子设备和计算机可读存储介质
WO2021023035A1 (zh) 一种镜头切换方法及装置
WO2021036785A1 (zh) 一种消息提醒方法及电子设备
CN113961157B (zh) 显示交互系统、显示方法及设备
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
CN112399390A (zh) 一种蓝牙回连的方法及相关装置
WO2021052407A1 (zh) 一种电子设备操控方法及电子设备
WO2021031865A1 (zh) 通话方法及装置
WO2023241209A9 (zh) 桌面壁纸配置方法、装置、电子设备及可读存储介质
CN114125793A (zh) 一种蓝牙数据传输方法及相关装置
CN114115770A (zh) 显示控制的方法及相关装置
CN113593567B (zh) 视频声音转文本的方法及相关设备
CN114064160A (zh) 应用图标布局方法及相关装置
CN113438366A (zh) 信息通知的交互方法、电子设备和存储介质
WO2021052408A1 (zh) 一种电子设备显示方法及电子设备
CN110737916A (zh) 通信终端及处理方法
WO2020062308A1 (zh) 位置信息处理方法及相关装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20880523

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020880523

Country of ref document: EP

Effective date: 20220503

NENP Non-entry into the national phase

Ref country code: DE