Sound effect control method, device and electronic device
By using sensors in electronic devices to detect changes in form and automatically switch sound effects, the problem of difficulty in flexibly switching sound effects is solved, the automatic matching of sound effects and environmental adaptation is achieved, and the flexibility of user experience and sound effects switching is improved.
Patent Information
- Application Number
- CN202410928643.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-07-11
AI Technical Summary
When existing electronic devices play audio and video, it is difficult to achieve flexible switching of sound effects. Users need to manually enter the user interface settings, and the set sound effects are only suitable for a single application and cannot be used across applications.
By introducing sensors to electronic devices to detect changes in shapes, automatically switch sound effects, establish a correspondence between multiple forms and sound effects, realize automatic matching and switching of sound effects, and enhance the flexibility of sound effects switching.
Flexible switching of sound effects can be achieved without manual settings by users, improving user experience, providing rich auditory effects, and adjusting audio parameters according to the intensity of the ambient noise to match the current environment.
Smart Images

Figure CN118466894B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sound effect control, and more specifically, to a method, device and electronic device for sound effect control. Background Art
[0002] When users use electronic devices to play audio and video, they will set the corresponding sound effects. If the user wants to adjust the sound effects, they need to enter the user interface of the application to set it, or enter the user interface to set the sound effects through the system settings. Among them, the sound effects set in the application are only applicable to the application and cannot be applied to other applications. This makes it difficult to flexibly switch the sound effects used by electronic devices to play audio and video. Summary of the invention
[0003] The present application provides a method, device and electronic device for controlling sound effects. Through the method, the electronic device can automatically switch the sound effects according to its own different forms, which can improve the flexibility of sound effect switching.
[0004] In a first aspect, a method for sound effect control is provided, which is applied to an electronic device, the method comprising: when the electronic device is in a first form, using a first sound effect to play a first audio; after the form of the electronic device is switched from the first form to a second form, the electronic device uses a second sound effect to play a second audio, wherein the first form and the second form are different, and the first sound effect and the second sound effect are different.
[0005] In the present application, the electronic device can detect changes in its own shape through its own sensors and automatically switch the sound effects according to the changes in shape. The user does not need to manually switch the sound effect settings, thereby improving the flexibility of sound effect switching.
[0006] In combination with the first aspect, in a possible implementation, when the electronic device is in a first form, a first sound effect is used to play a first audio, including: when the form of the electronic device is the first form, determining the first sound effect according to the first form and a first mapping relationship, the first mapping relationship including a correspondence between multiple forms of the electronic device and multiple sound effects; the electronic device uses the first sound effect to play the first audio.
[0007] The correspondence between multiple forms of an electronic device and multiple sound effects may be set in advance by the user through the user interface of the electronic device, or may be determined by the electronic device based on the user's historical usage habits, or may be set by the electronic device when it leaves the factory, or may be determined by the electronic device obtaining updated data from a server; it may also be determined by other methods, which is not limited in this application.
[0008] Since there is a correspondence between multiple forms of the electronic device and multiple sound effects, when the form of the electronic device changes, the electronic device can determine the sound effect corresponding to the switched form according to the correspondence between its own form and the sound effect, and switch the sound effect of the electronic device. In this way, the sound effect can be automatically switched according to the form of the electronic device without the need for manual setting by the user, thereby improving the flexibility of sound effect switching.
[0009] In combination with the first aspect, in a possible implementation, when the electronic device is in a first form, a first audio is played using a first sound effect, including: when the form of the electronic device is the first form, displaying a first boot animation on a display interface of the electronic device; receiving a first input from a user based on the first boot animation; in response to the first input, the electronic device uses the first sound effect to play audio.
[0010] The first input includes an input operation of a user setting a first sound effect according to a first guide animation.
[0011] In response to the first input, the electronic device may save the correspondence between the first sound effect, the first form, and the first sound effect.
[0012] When the form of an electronic device changes, if the electronic device does not store the sound effect parameters corresponding to the form, the electronic device can guide the user to set the sound effect corresponding to the form. After the setting is completed, the audio is played using the set sound effect. The user does not need to actively set it through the user interface of the electronic device, thereby improving the flexibility of sound effect switching. In addition, since the electronic device can flexibly switch sound effects in different forms, it can also bring a rich auditory experience to the user.
[0013] In combination with the first aspect, in a possible implementation, the loudness of the second audio played by the second sound effect is the first loudness, and the method also includes: when it is detected that the noise intensity of the environment in which the electronic device is located changes, the electronic device adjusts the loudness of the second audio from the first loudness to the second loudness according to the noise intensity.
[0014] When the noise intensity of the environment in which the electronic device is located increases, the first loudness is smaller than the second loudness; when the noise intensity of the environment in which the electronic device is located decreases, the first loudness is larger than the second loudness.
[0015] When playing audio, the electronic device can adjust the audio parameters according to the noise intensity of the current environment, so that the effect of the audio played by the electronic device is more in line with the current environment, thereby improving the user experience.
[0016] In combination with the first aspect, in a possible implementation, the method also includes: when the electronic device uses the first sound effect to play the first audio, the electronic device controls the operation of the atmosphere light of the electronic device through a first lighting method; and / or when the electronic device uses the second sound effect to play the second audio, the electronic device controls the operation of the atmosphere light of the electronic device through a second lighting method, and the first lighting method and the second lighting method are different.
[0017] The first sound effect corresponds to the first lighting mode of the atmosphere light, and the second sound effect corresponds to the second lighting mode of the atmosphere light.
[0018] When electronic devices are in different forms, they can not only present different sound effects, but also different atmosphere lighting effects, enabling users to have a better experience both in hearing and vision.
[0019] In combination with the first aspect, in a possible implementation, the method further includes: when the electronic device switches from playing the first audio using the first sound effect to playing the second audio using the second sound effect, the electronic device issues a first prompt to the user.
[0020] In combination with the first aspect, in a possible implementation, the electronic device issues a first prompt to the user, including: the electronic device issues the first prompt to the user by means of an interface display; or the electronic device issues the first prompt to the user by means of voice; or the electronic device issues the first prompt to the user by means of vibration.
[0021] When the sound effect of the electronic device switches, a prompt of the sound effect switching can be sent to the user so that the user can intuitively perceive the current sound effect switching.
[0022] In combination with the first aspect, in a possible implementation, the electronic device uses a first sound effect to play a first audio, including: the electronic device controls a first device to use the first sound effect to play the first audio, and the electronic device establishes a communication connection with the first device; the electronic device switches from using the first sound effect to playing the first audio to using the second sound effect to playing the second audio, including: the electronic device controls the first device to switch from using the first sound effect to playing the second audio.
[0023] The communication connection established between the electronic device and the first device may be a near field communication connection such as a Bluetooth connection or a WIFI connection.
[0024] In some embodiments, the electronic device controls the first device to play the first audio using the first sound effect. This may be that the electronic device sends the first audio data corresponding to the first sound effect to the first device, and the first device plays the first audio according to the first audio data. It may also be that the electronic device sends the original audio data and sound parameters corresponding to the first sound effect to the first device, and the first device adjusts the received original audio data according to the received sound parameters, and plays the second audio according to the adjusted audio data.
[0025] Among them, the sound parameters can also be described as sound effect parameters.
[0026] In combination with the first aspect, in a possible implementation, when the electronic device is a foldable device, the electronic device includes a first display screen and a second display screen, and the angle formed by the first display screen and the second display screen is α. The method also includes: the electronic device determines the shape of the electronic device based on the angle α and the screen orientation of the electronic device.
[0027] In combination with the first aspect, in a possible implementation, the form of the electronic device includes an unfolded state, a hovering state, a straddled state and a closed state, and the electronic device determines the form of the electronic device according to the angle α and the orientation of the screen of the electronic device, including: when α=180°, the electronic device determines that the form of the electronic device is the unfolded state; when 0°<α<180° and the screen of the electronic device is facing upward, the electronic device determines that the form of the electronic device is the hovering state; when 0°<α<180° and the screen of the electronic device is facing downward, the electronic device determines that the form of the electronic device is the straddled state; when α=0°, the electronic device determines that the form of the electronic device is the closed state.
[0028] When one of the first display screen and the second display screen of the electronic device faces upward, the screen of the electronic device faces upward; when both the first display screen and the second display screen of the electronic device face downward, the screen of the electronic device faces downward.
[0029] In combination with the first aspect, in a possible implementation, before the electronic device determines the shape of the electronic device based on the angle α and the screen orientation of the electronic device, the method also includes: the electronic device determines the angle α and the screen orientation of the electronic device through one or more sensors, wherein the one or more sensors include one or more of a gravity sensor, an acceleration sensor, a gyroscope sensor, a light sensor, and an ultrasonic sensor.
[0030] In combination with the first aspect, in one possible implementation method, the difference between the first sound effect and the second sound effect is reflected in that the sound parameters corresponding to the first sound effect and the sound parameters corresponding to the second sound effect are different, and the sound parameters include one or more of frequency response, loudness, audio dynamics, reverberation amount, reverberation time, and audio sampling rate.
[0031] In a second aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0032] In a third aspect, a computer-readable storage medium is provided, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method in the above-mentioned first aspect or any possible implementation manner of the first aspect is implemented.
[0033] In a fourth aspect, a chip is provided, in which instructions are stored. When the instructions are executed on a device, the chip executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0034] In a fifth aspect, a computer program product is provided, in which a computer program or instructions are stored. When the computer program or instructions are executed, the method in the above-mentioned first aspect or any possible implementation manner of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0036] Figure 2 is a software structure block diagram of the electronic device provided in the embodiment of the present application;
[0037] Figure 3 is a schematic diagram of different forms of electronic devices provided in embodiments of the present application;
[0038] Figure 4 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0039] Figure 5 This is a schematic diagram of sound effect switching in a multi-device scenario provided by an embodiment of the present application;
[0040] Figure 6 is a schematic flow chart of a method for sound effect control provided in an embodiment of the present application;
[0041] Figure 7 is a schematic flow chart of another method for sound effect control provided in an embodiment of the present application;
[0042] Figure 8 This is a schematic diagram of an interface for sound effect settings provided in an embodiment of the present application;
[0043] Fig. 9It is a module diagram corresponding to a device for sound effect control provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solution in the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0045] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" or "multiple" refers to two or more than two.
[0046] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0047] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0048] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "one embodiment", "some embodiments", "another embodiment", "some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0049] The method provided in the embodiments of the present application can be applied to electronic devices with a time display function or a time recognition function, for example, it can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart home devices and other electronic devices. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0050] For example, Figure 1 The structure diagram of the electronic device 100 is shown. The electronic 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, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0051] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0052] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0053] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0054] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0055] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0056] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0057] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0058] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0059] 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 external memory, 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0060] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0061] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0062] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0063] 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-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then 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 a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be set in the same device as the mobile communication module 150 or other functional modules.
[0064] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0065] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic 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), 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 (QZSS) and / or satellite based augmentation system (SBAS).
[0066] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects 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 that execute program instructions to generate or change display information.
[0067] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0068] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0069] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0070] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0071] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0072] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0073] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. NPU can realize applications such as intelligent cognition of electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0074] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0075] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one App required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0076] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0077] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0078] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0079] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0080] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0081] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0082] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0083] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0084] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0085] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 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 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0086] It should be understood that the phone card in the embodiments of the present application includes but is not limited to a SIM card, an eSIM card, a universal subscriber identity module (USIM), a universal integrated circuit card (UICC), and the like.
[0087] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0088] Figure 21 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
[0089] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0090] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0091] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0092] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0093] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0094] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0095] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0096] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0097] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0098] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0099] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0100] 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.
[0101] The system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0102] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0103] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0104] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0105] A 2D graphics engine is a drawing engine for 2D drawings.
[0106] 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.
[0107] It should be understood that the technical solutions in the embodiments of the present application can be used in Android, IOS, Hongmeng and other systems.
[0108] The technical solution of the embodiment of the present application can be applied to electronic devices with audio playback functions. Exemplarily, it can be applied to headphones, televisions, desktop computers, laptops, portable electronic devices such as mobile phones, folding screens, smart bracelets, tablet computers, smart home devices such as smart monitoring, smart doorbells, smart speakers, sweepers, etc. It can also be applied to electronic devices in future networks or electronic devices in future evolving public land mobile communication networks (PLMN), etc. It can be specifically applied to audio playback scenarios of electronic devices with variable shapes, and the main application scenario can be to switch the audio output effect of the electronic device according to the shape of the electronic device.
[0109] Below, the sound effects described in the embodiments of the present application are first described in detail.
[0110] The different sound effects of electronic devices are reflected in the different setting parameters corresponding to the sound effects (which can be called sound effect parameters). The different sound effect parameters lead to different sound effects.
[0111] In some embodiments, the sound effect parameters of the electronic device may include frequency response, loudness, audio dynamics (e.g., dynamic range), reverberation amount, reverberation time, audio sampling rate, etc. In addition, the sound effect may be set by adding or reducing sound elements.
[0112] In some embodiments, frequency response, loudness, and audio dynamics can be used as basic adjustments to sound effects; reverberation amount and reverberation time can be used in combination to create a specific sound style; the audio sampling rate can be used to adjust the clarity of the sound, for example, lowering the audio sampling rate increases the fuzziness of the sound to make the sound more vintage; adding sound elements can be used to create a sound style, and adding sound elements can be done by splicing and adding on the basis of the original audio, or by adding on the basis of the original audio.
[0113] Among them, sound elements may include, for example, the sound of a car passing by, the sound of explosion debris splashing, the sound of wind blowing through the grass, the sound of scene transitions, the sound of people applauding, the sound of keyboard tapping, the sound of a 2-second cheerful ending, the sound of waves and seagulls, the sound of thunder and rain, the crisp tinkling sound of wind chimes, etc.
[0114] It can be understood that when setting the sound effect for an electronic device, the user can set the sound effect parameters corresponding to the shape of the electronic device, thereby matching the shape of the electronic device with the sound effect.
[0115] The sound effect parameters will affect the electrical signals of the sound, and the electrical signals of the sound will affect the sound effects.
[0116] In one example, changes in parameters such as the frequency response of sound will cause changes in electrical signals, and speakers driven by different electrical signals will output different sounds. After the electronic device switches from a first form to a second form, the electrical signal of the sound corresponding to the first form is different from the electrical signal of the sound corresponding to the second form, resulting in different sound effects corresponding to the first form and the second form.
[0117] In some embodiments, the electrical signal may be an analog signal.
[0118] The following is a detailed introduction to the above sound effect parameters:
[0119] 1. Frequency response
[0120] Frequency response is the abbreviation of frequency response, which is an important parameter to describe the performance of electronic equipment or sound system.
[0121] 2. Loudness
[0122] Loudness is also called volume. Loudness describes the loudness of a sound and represents the subjective feeling of the human ear to the sound. In actual measurement, loudness is usually expressed in decibels (dB).
[0123] 3. Audio dynamics
[0124] Audio dynamics refers to the difference between the loudest and quietest signals in an audio signal, also known as dynamic range. Dynamic range is usually measured in decibels (dB), which indicates the contrast between the loudest and quietest sounds in a piece of music.
[0125] 4. Reverb Amount
[0126] The amount of reverberation, also known as reverberation intensity, refers to the ratio of reverberation sound to direct sound. The reverberation sound is the result of the addition of all primary and multiple reflected sounds when the sound in the room reaches a steady state.
[0127] 5. Reverberation time
[0128] The time required for the sound pressure level to decrease by 60dB after the sound source stops making sound is the reverberation time, measured in seconds.
[0129] 6. Audio sampling rate
[0130] The audio sampling rate refers to how many times an electronic device samples an analog signal per unit time. The higher the sampling frequency, the more real and natural the waveform of the mechanical wave will be.
[0131] Currently, users can adjust the sound effects of electronic devices through a user interface, where the user interface can exist in the application settings or in the system settings of the electronic device. The sound effects adjusted through the user interface of the application settings are only effective for that application and cannot be synchronized to other applications, and the user needs to trigger the change of the sound effects through manual settings. Although the sound effects set through the system can take effect on all applications installed on the electronic device, the user also needs to trigger the change of the sound effects through manual settings. In addition, the current user interface for sound effect adjustment is relatively deep, resulting in low user usage of the interface and making it difficult to flexibly switch the sound effects.
[0132] With the development of intelligence of electronic devices, the form of electronic devices is no longer limited to a single form. Taking a foldable mobile phone as an example, its form can include an unfolded state and a folded state with different folding angles (for example, the folding angle of the screen is greater than or equal to 0° and less than 180°).
[0133] After the user sets the sound effect parameters through the user interface, when the shape of the electronic device changes, the sound effect parameters do not change. Due to the influence of the shape change of the electronic device, it is easy for the sound effect presentation effect to no longer meet the user's needs. At this time, if the user wants to switch the sound effect, he needs to enter the user interface again to set the sound effect parameters, which makes it difficult to achieve flexible switching of the sound effects.
[0134] The embodiments of the present application provide a method, device and electronic device for controlling sound effects. Through the method, the electronic device can automatically select and switch sound effects according to changes in its own form. When a change in its own form is detected, the sound effect can be automatically switched to a sound effect that matches the form. In this way, the user does not need to adjust through the user interface when the form of the electronic device changes, which can make the sound effect switching more flexible.
[0135] For example, taking the electronic device as a folding screen as an example, Figure 3 Schematic diagrams showing different forms of electronic devices provided by embodiments of the present application.
[0136] For a foldable electronic device, the screen of the electronic device includes two split screens, such as Figure 3 As shown, the electronic device may have various shapes. For example, the shape of the electronic device may be determined based on the angle formed by the two split screens of the electronic device and the screen orientation of the electronic device.
[0137] Among them, the screen orientation of the electronic device includes the screen facing upward and the screen facing downward. The screen facing upward of the electronic device may refer to that at least one of the two split screens of the electronic device is oriented upward, that is, the display direction of at least one of the two split screens of the electronic device is away from the ground plane; the screen facing downward of the electronic device may refer to that both split screens of the electronic device are oriented downward, that is, the display directions of both split screens of the electronic device are away from the ground plane.
[0138] In some embodiments, the two split screens are connected by a connection structure (eg, a rotating shaft), and the two split screens can rotate around the connection structure. In one division method, the form of the electronic device may include an unfolded state, a hovering state, a straddled state, and a closed state.
[0139] In some embodiments, the electronic device determines the unfolded state and the closed state of the electronic device based on the angle formed by the two split screens of the electronic device; the electronic device determines the hovering state and the straddled state of the electronic device based on the angle formed by the two split screens and the screen orientation.
[0140] Figure 3 (a) shows a schematic diagram of the unfolded state of several electronic devices provided in an embodiment of the present application.
[0141] like Figure 3 As shown in (a), 301 is a schematic diagram of the front unfolded state of an electronic device that folds left and right; 302 is a schematic diagram of the back unfolded state of an electronic device that folds left and right; 303 is a schematic diagram of the back unfolded state of an electronic device that folds up and down; 304 is a schematic diagram of the front unfolded state of an electronic device that folds up and down; 305 is a schematic diagram of the side unfolded state of an electronic device that folds up and down; 306 is a schematic diagram of the side unfolded state of another electronic device that folds up and down.
[0142] When the electronic device is in the unfolded state, the angle formed by the two split screens is 180°, or close to 180° (for example, within a certain error range, the angle may be between 160° and 180°).
[0143] In some embodiments, when the electronic device detects that the angle formed by the two split screens is 180° or close to 180°, it determines that the state of the electronic device is the unfolded state.
[0144] Figure 3 (b) shows a closed state schematic diagram of several electronic devices provided in embodiments of the present application.
[0145] like Figure 3 As shown in (b), 307 and 308 are schematic diagrams of the electronic device folded left and right in a closed state; 309 and 310 are schematic diagrams of the electronic device folded up and down in a closed state.
[0146] When the electronic device is in a closed state, the angle formed by the two split screens is 0°, or close to 0° (for example, within a certain error range, the angle may be between 0° and 10°).
[0147] In some embodiments, when the electronic device detects that the angle formed by the two split screens is 0° or close to 0°, it determines that the state of the electronic device is a closed state.
[0148] In some other embodiments, when the electronic device is in a closed state, the angle formed by the two split screens is smaller than a first angle threshold.
[0149] In some embodiments, when the electronic device detects that the angle formed by the two split screens of the electronic device is less than a first angle threshold, it determines that the state of the electronic device is a closed state.
[0150] Figure 3 (c) shows schematic diagrams of the hovering state of several electronic devices provided in embodiments of the present application.
[0151] like Figure 3 As shown in (c), 311 is a schematic diagram of a hovering state of an electronic device, in which the angle formed by the two split screens of the electronic device is ∠A1O1B1, and the size range of ∠A1O1B1 can be greater than 0° and less than or equal to 90°; 312 is a schematic diagram of a hovering state of another electronic device, in which the angle formed by the two split screens of the electronic device can be ∠A2O2B2, and the size range of ∠A2O2B2 is less than 180° and greater than 90°.
[0152] In some embodiments, when the electronic device detects that the angle formed by the two split screens of the electronic device is greater than 0° and less than 180° (or the angle formed by the two split screens is greater than threshold 1 and less than threshold 2, threshold 1 can be an angle between 0° and 10°, and threshold 2 can be an angle between 160° and 180°), the screen orientation of the electronic device is further detected to determine the shape of the electronic device.
[0153] In one example, when the electronic device detects that the screen of the electronic device is facing upward (for example, at least one of two split screens of the electronic device is facing upward), it is determined that the state of the electronic device is in the hovering state.
[0154] In some embodiments, the electronic device may detect the orientation of the electronic device screen through a gravity sensor, a gyroscope sensor, etc. For example, a first gravity sensor and / or a first gyroscope sensor is provided on the first split screen. A second gravity sensor and / or a second gyroscope sensor is provided on the second split screen. The first gravity sensor and / or the first gyroscope sensor determines the orientation of the first split screen based on the detected data. The second gravity sensor and / or the second gyroscope sensor determines the orientation of the second split screen based on the detected data; then the electronic device determines the orientation of the screen of the electronic device based on the orientation of the first split screen and the orientation of the second split screen.
[0155] Figure 3 (d) shows a schematic diagram of a straddling state of several electronic devices provided in an embodiment of the present application.
[0156] like Figure 3 As shown in (d), 313 is a schematic diagram of a straddled state of an electronic device, in which the two split screens of the electronic device are straddled and placed on a plane, with the two split screens facing downward relative to the plane, and an angle formed between the two split screens is ∠A3O3B3, and the range of ∠A3O3B3 is greater than 0° and less than or equal to 180°; 314 is a schematic diagram of a straddled state of the electronic device corresponding to a side viewing angle, and an angle formed between the two split screens of the electronic device is α.
[0157] In some embodiments, when the electronic device detects that the angle formed by the two split screens of the device is greater than 0° and less than 180° (or the angle formed by the two split screens is greater than threshold 1 and less than threshold 2, threshold 1 can be an angle between 0° and 10°, and threshold 2 can be an angle between 160° and 180°), the shape of the electronic device is further determined according to the screen orientation of the electronic device.
[0158] In one example, when the electronic device detects that the screen of the electronic device is facing downward (for example, both split screens of the electronic device are facing downward), it is determined that the state of the electronic device is the straddle state.
[0159] In some embodiments, the electronic device can detect the screen orientation of the electronic device through a gravity sensor, a gyroscope sensor, etc. of the electronic device.
[0160] In some embodiments, the electronic device may also directly detect the shape of the electronic device through a Hall effect sensor.
[0161] For example, Figure 4 A schematic diagram of an application scenario provided by an embodiment of the present application is shown.
[0162] like Figure 4As shown in (a), the electronic device 400 is in an unfolded state, and the electronic device 400 is currently using a first sound effect to play a first audio.
[0163] When the electronic device 400 is configured as follows Figure 4 The expanded state shown in (a) is switched to Figure 4 In the hovering state shown in (b) in FIG. 1 , the electronic device 400 switches from playing the first audio using the first sound effect to playing the second audio using the second sound effect.
[0164] The first sound effect and the second sound effect are different.
[0165] In some embodiments, the electronic device can switch the first sound effect to the second sound effect by switching the sound effect parameters.
[0166] In one example, the electronic device may switch a first sound effect to a second sound effect by modifying a frequency response and a reverberation amount in the sound effect parameters.
[0167] In some embodiments, the first audio and the second audio are the same, and the first audio and the second audio can be, for example, the same music 1. When the electronic device is in the first form, the electronic device detects the user's input and stops playing the music 1; when the electronic device detects that the form of the electronic device is switched to the second form, the electronic device restarts playing the music 1 using the second sound effect.
[0168] In some other embodiments, the first audio and the second audio are the same, and the first audio and the second audio may be, for example, the same piece of music 1. When the electronic device is in the first form, the electronic device detects that the form of the electronic device is switched to the second form, and the electronic device plays the music 1 again using the second sound effect.
[0169] In some other embodiments, the first audio and the second audio are different. The first audio and the second audio may be, for example, the continuous (or discontinuous) first part and second part of the same piece of music 1, respectively. When the electronic device is in the first form, the electronic device uses the first audio to play the first part of the music 1. When the electronic device detects that the form of the electronic device is switched to the second form, the electronic device switches to using the second sound effect to play the second part of the music 1.
[0170] In some other embodiments, the first audio and the second audio may be unrelated. For example, the first audio and the second audio may be Music 1 and Music 2, respectively, and Music 1 and Music 2 are two different songs.
[0171] Optionally, when the sound effect currently used by the electronic device 400 is switched to the second sound effect, a prompt message 401 may be displayed on the screen of the electronic device to prompt that the current sound effect has been switched to the second sound effect. The prompt message 401 may, for example, be "You have entered the second sound effect mode!"; a special icon corresponding to the second sound effect (not shown in the figure) may also be displayed on the screen of the electronic device, such as a phonograph icon, a concert hall icon, etc.
[0172] When the electronic device 400 is configured as follows Figure 4 The hover state shown in (b) is switched to Figure 4 In the straddling state shown in (c) in FIG. 1 , the electronic device 400 switches from playing the second audio using the second sound effect to playing the third audio using the third sound effect.
[0173] Among them, the second sound effect and the third sound effect are different.
[0174] In some embodiments, the electronic device can switch the second sound effect to the third sound effect by switching the sound effect parameters.
[0175] In one example, the electronic device can switch the second sound effect to the third sound effect by modifying the reverberation time and loudness in the sound effect parameters. The relationship between the second audio and the third audio is similar to the relationship between the first audio and the second audio, and will not be described here for brevity.
[0176] Optionally, when the sound effect currently used by the electronic device 400 is switched to the third sound effect, a prompt message 402 may be displayed on the screen of the electronic device to prompt that the current sound effect has been switched to the third sound effect. The prompt message 402 may, for example, be "You have entered the third sound effect mode!"; a special icon corresponding to the third sound effect (not shown in the figure) may also be displayed on the screen of the electronic device, such as a phonograph icon, a concert hall icon, etc.
[0177] When the electronic device 400 is configured as follows Figure 4 The straddle state shown in (c) is switched to Figure 4 In the closed state shown in (d) in FIG. 1 , the electronic device 400 switches from playing the third audio using the third sound effect to playing the fourth audio using the fourth sound effect.
[0178] Among them, the third sound effect and the fourth sound effect are different.
[0179] In some embodiments, the electronic device can switch the third sound effect to the fourth sound effect by switching the sound effect parameters.
[0180] In one example, the electronic device can switch the third sound effect to the fourth sound effect by modifying the frequency response, loudness, and reverberation amount in the sound effect parameters.
[0181] The relationship between the third audio and the fourth audio is similar to the relationship between the first audio and the second audio, and will not be described again for the sake of brevity.
[0182] Similarly, when the sound effect currently used by the electronic device 400 is switched to the fourth sound effect, a prompt message 403 for prompting that the current sound effect has been switched to the fourth sound effect may be displayed on the external screen of the electronic device.
[0183] In some embodiments, the above-mentioned prompt information for prompting that the current sound effect has been switched may not be displayed. For example, the user may be prompted by voice, or by a specific prompt sound (such as a "beep beep" prompt sound, etc.), or by a display interface, or by other forms that can be perceived by the user, such as vibration. This application does not limit this.
[0184] Among them, the first sound effect corresponds to the expanded state; the second sound effect corresponds to the hovering state; the third sound effect corresponds to the straddle state; the fourth sound effect corresponds to the closed state; the correspondence between the form of the electronic device and the sound effect can be set in advance by the user or by the system default setting.
[0185] In some embodiments, the hovering state of the electronic device can be further subdivided. According to the different angles between the two split screens of the electronic device 400, the state of the electronic device can be divided into different hovering states. Different hovering states can correspond to different sound effects. When the state of the electronic device switches between different hovering states, the electronic device can switch different sound effect parameters.
[0186] In one example, when the angle between two split screens of the electronic device is greater than 0° and less than or equal to 60°, and the screen of the electronic device is facing upward, the shape of the electronic device is determined to be a first hovering state; when the angle between the two split screens of the electronic device is greater than 60° and less than or equal to 120°, and the screen of the electronic device is facing upward, the shape of the electronic device is determined to be a second hovering state; when the angle between the two split screens of the electronic device is greater than 120° and less than 180°, and the screen of the electronic device is facing upward, the shape of the electronic device is determined to be a third hovering state; wherein, when the shape of the electronic device switches between the first hovering state, the second hovering state, and the third hovering state, the electronic device can switch different sound effect parameters, which is reflected in the electronic device switching between different sound effects.
[0187] In another example, the angle formed by the two split screens corresponding to the first hovering state of the electronic device is 30°, and the sound effect corresponding to the first hovering state is sound effect 1; the angle formed by the two split screens corresponding to the second hovering state of the electronic device is 60°, and the sound effect corresponding to the second hovering state is sound effect 2; when the form of the electronic device switches from the first hovering state to the second hovering state, the sound effect currently used by the electronic device switches from sound effect 1 to sound effect 2.
[0188] It can be understood that the above method of determining the shape of an electronic device by the angle between the two split screens of the electronic device and the screen orientation of the electronic device is only an exemplary description. The embodiment of the present application can also determine the shape of the electronic device by other means, such as by integrating the information of the sensor and judging by artificial intelligence (AI), or by other means, and the present application does not limit this.
[0189] It can also be understood that: the embodiment of the present application takes a folding device with two split screens as an example, and the method provided in the embodiment of the present application can also be applied to a folding device with more than two split screens.
[0190] Similarly, the straddle-state morphology of electronic devices can be further subdivided.
[0191] In some embodiments, during audio playback by the electronic device, the electronic device may also adjust the sound effect currently used according to the usage scenario. For example, the electronic device may adjust the loudness corresponding to the sound effect currently used according to the noise value of the current environment.
[0192] In one example, when the noise intensity of the environment in which the electronic device is currently located increases, the electronic device increases the loudness corresponding to the sound effect currently used; when the noise intensity of the environment in which the electronic device is currently located decreases, the electronic device decreases the loudness corresponding to the sound effect currently used.
[0193] It should be understood that the embodiments of the present application are merely illustrative descriptions of the application scenarios of the present application scheme, and do not limit the scope of the application scenarios of the present application scheme. The methods provided in the embodiments of the present application can also be applied to other electronic devices with variable form factors, such as sliding phones, flip phones, tri-fold / multi-fold devices, etc.
[0194] For example, taking the electronic device as a folding screen as an example, Figure 5 A schematic diagram of sound effect switching in a multi-device scenario provided in an embodiment of the present application is shown.
[0195] like Figure 5 As shown in (a), the electronic device 510 is in an unfolded state, and the electronic device 510 is connected to the speaker 520 via near field communication (such as Bluetooth, WIFI, etc.). Depending on the communication connection between the electronic device 510 and the speaker 520, the electronic device 510 controls the speaker 520 to play the first audio using the first sound effect.
[0196] like Figure 5 As shown in (b) of FIG. 1 , when the electronic device 510 is configured as follows Figure 5 The expanded state shown in (a) is switched to Figure 5In the hovering state shown in (b) in FIG. 5 , the speaker 520 switches from playing the first audio using the first sound effect to playing the second audio using the second sound effect.
[0197] Among them, the first sound effect, the correspondence between the first sound effect and the unfolded state of the electronic device 510, the second sound effect, the correspondence between the second sound effect and the hovering state of the electronic device 510, can be preset by the user through the electronic device 510, can be the factory setting of the electronic device 510, or can be determined by the electronic device 510 according to the user's setting habits, and this application does not limit this.
[0198] It should be understood that the embodiments of the present application are illustrative of the communication connection scenario between a foldable device and a speaker, but this does not constitute a limitation on the scenarios to which the embodiments of the present application are applicable. The embodiments of the present application can also be applicable to the interconnection scenarios between a form-changeable electronic device and one or more other electronic devices, for example, the interconnection scenarios between a foldable device and other electronic devices such as speakers, tablets, mobile phones, headphones, and car computers, the interconnection scenarios between a sliding phone and other electronic devices such as speakers, tablets, mobile phones, headphones, and car computers, etc.
[0199] For example, Figure 6 FIG. 6 is a schematic flow chart of a method 600 for controlling sound effects provided in an embodiment of the present application. Figure 6 As shown, the method 600 includes:
[0200] When the form of the electronic device is the first form, the electronic device uses the first sound effect to play the first audio.
[0201] S601: When the electronic device detects that the state of the electronic device is switched from the first state to the second state, the electronic device switches from playing the first audio using the first sound effect to playing the second audio using the second sound effect.
[0202] In some embodiments, the first sound effect corresponds to the first form, and the second sound effect corresponds to the second form.
[0203] In some embodiments, the first sound effect, the correspondence between the first sound effect and the first form, the second sound effect, and the correspondence between the second sound effect and the second form can be preset by the user. For example, the user can set it in advance through the sound effect setting interface of the electronic device, or it can be set by the electronic device at the factory, or it can be determined by the electronic device according to the user's sound effect setting habits. This application does not limit this.
[0204] In some embodiments, the state of the electronic device may include any two or more of an unfolded state, a closed state, a hovering state, and a straddled state.
[0205] Among them, the unfolded state, closed state, hovering state and straddling state of the electronic device are Figure 3 A detailed description has been given in the illustrated embodiment, which will not be repeated here for the sake of brevity.
[0206] In some embodiments, the first state is one of an expanded state, a closed state, a hovering state, and a straddled state, the second state is one of an expanded state, a closed state, a hovering state, and a straddled state, and the first state and the second state are different.
[0207] In some embodiments, taking the electronic device as a foldable device as an example, the shape of the electronic device is determined according to the angle formed by the two split screens of the electronic device and the screen orientation of the electronic device. For specific determination methods, see Figure 3 For the sake of brevity, the description in the illustrated embodiment will not be repeated here.
[0208] Among them, regarding the process of detecting the shape of the electronic device through the sensor, Figure 3 A detailed description has been given in the illustrated embodiment, which will not be repeated here for the sake of brevity.
[0209] In some embodiments, the sound effect currently in use can also be adjusted according to the usage scenario of the electronic device. For example, after the form of the electronic device is switched to the second form and the sound effect of the electronic device is switched to the second sound effect, the second sound effect currently in use can be adjusted according to the current usage scenario of the electronic device. For example, when the environmental noise of the electronic device is currently large, the loudness corresponding to the second sound effect is increased.
[0210] In the embodiment of the present application, the sound effects can be automatically switched according to the form of the electronic device, thereby improving the flexibility of the sound effect switching.
[0211] For example, Figure 7 FIG. 7 is a schematic flow chart of another method 700 for controlling sound effects provided in an embodiment of the present application. Figure 7 As shown, the method 700 includes:
[0212] When the form of the electronic device is the first form, the electronic device uses the first sound effect to play the first audio.
[0213] S701: When the electronic device detects that the form of the electronic device is switched from the first form to the second form, the electronic device switches from playing the first audio using the first sound effect to playing the second audio using the second sound effect.
[0214] The description of this step is as follows Figure 6 The description of S601 in the illustrated embodiments is the same and will not be repeated here for the sake of brevity.
[0215] S702: After the electronic device switches to playing the second audio using the second sound effect, when it is detected that the use scenario of the electronic device has changed, the second sound effect is adjusted.
[0216] In some embodiments, the usage scenario of the electronic device may include the noise intensity of the environment in which the electronic device is located.
[0217] In one example, when the electronic device detects that the noise intensity of the environment in which the electronic device is located increases, the electronic device may increase the loudness corresponding to the second sound effect.
[0218] The noise intensity of the environment in which the electronic device is located can be detected by a microphone of the electronic device.
[0219] S703: When it is detected that the form of the electronic device is switched from the second form to the third form, the electronic device switches from playing the second audio using the second sound effect to playing the third audio using the third sound effect.
[0220] In some embodiments, the third state is one of an expanded state, a closed state, a hovering state, and a straddled state, and the third state is different from the second state.
[0221] Among them, the third sound effect corresponds to the third form.
[0222] In some embodiments, the correspondence between the third sound effect, the third sound effect and the third form can be preset by the user, for example, the user can set it in advance through the sound effect setting interface of the electronic device; it can also be factory set by the electronic device; it can also be determined by the electronic device according to the user's sound effect setting habits, and this application does not limit this.
[0223] More explanation of this step is available in Figure 6 The explanation of S601 in the illustrated embodiment is similar and will not be repeated here for the sake of brevity.
[0224] For example, Figure 8 A schematic diagram of an interface for sound effect settings provided in an embodiment of the present application is shown.
[0225] like Figure 8 As shown in (a) in the figure, the sound effect setting entrance of the electronic device can be located in the sound and vibration setting interface of the electronic device, in which the ringtone theme, sound mode, volume, ringtone and sound effect can be set, wherein the sound effect setting entrance can include at least one of the sound effect setting entrance when expanding, the sound effect setting entrance when hovering, the sound effect setting entrance when standing and the sound effect setting entrance when closing. In some embodiments, the current sound effect setting entrance can also be included. It can be seen that the sound effect when expanding is sound effect 1, the sound effect when hovering is sound effect 2, the sound effect when standing is sound effect 3, and the sound effect when closing is sound effect 4, wherein sound effect 1, sound effect 2, sound effect 3 and sound effect 4 can be different from each other, can be exactly the same, or can be not exactly the same.
[0226] In some embodiments, the setting interface of the hover sound effect is as follows: Figure 8 As shown in (b) in the figure, in this interface, the user can set the sound effect when hovering, for example, the user can choose the sound effect style as reverberation; in addition, the user can also set the atmosphere light style that is presented simultaneously with the sound effect when hovering, and can also set the external audio changes, feature do not disturb, speaker blocking prompts, external screen display, etc.
[0227] In one example, a user can Figure 8 The interface shown in (b) turns on the ambient light and sets the ambient light style to style 1. The ambient light is displayed by the inner screen and the outer screen. In this case, if the electronic device plays music in the hovering state, the sound effect corresponding to the music is the sound effect set by the user through the sound effect setting interface during the hovering state, and the electronic device presents the ambient light effect of style 1 through the inner screen and the outer screen.
[0228] Among them, the atmosphere light style can be set by the user according to the current sound effect, the current scene or his own preferences. For example, the atmosphere light style can be presented in the form of a light strip or a full-screen light on the inner screen and / or the outer screen. The light strip or the full-screen light can flash to the rhythm of the current sound effect, and dynamic images such as water ripples can also be displayed on the inner screen and / or the outer screen to form an atmosphere light style.
[0229] In one example, a user can Figure 8 The interface shown in (b) turns on the change of peripheral sound effects. In this case, if the electronic device is connected to other devices and controls other devices to play music, when the electronic device is switched to a hovering state, the sound effects of the other devices playing music are switched to the sound effects set by the user through the hovering sound effect setting interface.
[0230] In one example, a user can Figure 8 The interface shown in (b) turns on the Do Not Disturb feature. In this case, if the electronic device plays music in the hovering state, the sound effect corresponding to the music is the sound effect set by the user through the hovering sound effect setting interface, and when the electronic device receives a call or message during music playback, the music playback will not be interrupted, and only the interface prompt can be displayed.
[0231] In one example, a user can Figure 8 The interface shown in (b) turns on the speaker blocking prompt. In this case, if the electronic device plays music in the hovering state, the sound effect corresponding to the music is the sound effect set by the user through the hovering sound effect setting interface, and when the electronic device detects that the speaker of the electronic device is blocked, it can automatically adjust the current sound effect and can also prompt the user that the speaker is blocked.
[0232] In one example, a user can Figure 8The interface shown in (b) in the figure sets the external screen display. The setting of the external screen display can be that the user selects one or more external screen display styles from a variety of external screen display styles according to the sound effect style when hovering or his own preferences. For example, the user selects the external screen display style as phonograph. In this case, if the electronic device plays music in the hovering state, the sound effect corresponding to the music is the sound effect set by the user through the sound effect setting interface when hovering, and the electronic device displays the external screen display "phonograph" icon on the external screen.
[0233] Optionally, when music is playing in the hover state, song information and / or lyrics etc. may also be displayed on the external screen of the electronic device, and the orientation of the content displayed on the external screen is adapted to the user's viewing angle.
[0234] Among them, the external screen of the electronic device refers to a smaller display screen located on the back of the electronic device. The external screen can be circular or oval, for example, and can be used to display time or incoming call information when the electronic device is in a closed state.
[0235] In some embodiments, the setting interface of the cross-time sound effect is as follows: Figure 8 As shown in (c) in the figure, in this interface, the user can set the sound effects when crossing the stand, for example, the user can choose the sound effect style as broadcast; in addition, the user can also set the atmosphere light style that is presented simultaneously with the sound effects when crossing the stand, and can also set the external audio changes, characteristic do not disturb, speaker blocking prompts, external screen display, etc.
[0236] In one example, a user can Figure 8 The interface shown in (c) turns on the ambient light and sets the ambient light style to style 2. The ambient light is set to be displayed on the external screen. In this case, if the electronic device plays music in the standing state, the sound effect corresponding to the music is the sound effect set by the user through the standing sound effect setting interface, and the electronic device presents the ambient light effect of style 2 through the external screen.
[0237] In one example, a user can Figure 8 The interface shown in (c) turns on the change of peripheral sound effects. In this case, if the electronic device is connected to other devices and controls other devices to play music, when the form of the electronic device is switched to the stand-up state, the sound effects of the other devices playing music are switched to the sound effects set by the user through the stand-up sound effect setting interface.
[0238] In one example, a user can Figure 8The interface shown in (c) turns on the Do Not Disturb feature. In this case, if the electronic device plays music in the standing state, the sound effect corresponding to the music is the sound effect set by the user through the standing sound effect setting interface, and when the electronic device receives a call or message during music playback, the music playback will not be interrupted, and only the interface prompt can be displayed.
[0239] In one example, a user can Figure 8 The interface shown in (c) in the figure turns on the speaker blocking prompt. In this case, if the electronic device plays music in the standing state, the sound effect corresponding to the music is the sound effect set by the user through the standing sound effect setting interface. Moreover, when the electronic device detects that the speaker of the electronic device is blocked, it can automatically adjust the current sound effect and can also prompt the user that the speaker is blocked, for example, by issuing a reminder message through interface display and / or voice, "It is detected that you are blocking the speaker. For better results, remove the obstruction!".
[0240] In one implementation, when the electronic device is in a straddle state, the microphone of the electronic device can be triggered to turn on, and the microphone can detect whether the speaker is blocked through ultrasound; in addition, other sensors can also be used to detect whether the speaker is blocked, such as through a light sensor.
[0241] In one example, a user can Figure 8 The interface shown in (c) in the figure sets the external screen display. The setting of the external screen display can be that the user selects one or more external screen display styles from a variety of external screen display styles according to the sound effect style when standing still or the user's own preferences. For example, the user selects the external screen display style as a speaker. In this case, if the electronic device plays music in the standing still state, the sound effect corresponding to the music is the sound effect set by the user through the sound effect setting interface when standing still, and the electronic device displays the external screen display "speaker" icon on the external screen.
[0242] Optionally, when music is played in a standing position, song information and / or lyrics etc. may also be displayed on the external screen of the electronic device, and the orientation of the content displayed on the external screen is adapted to the viewing angle of the user.
[0243] In some embodiments, the user can Figure 8 In (a), click "Current Sound Effect" (not shown in the figure) to enter the "Current Sound Effect Page". In some embodiments, the setting interface and setting method of the current sound effect can refer to the following. Figure 8The sound effect setting interface and setting method when hovering as shown in (b) in FIG. In this interface, the user can set the current sound effect. In some embodiments, the "current sound effect page" or other pages entered from the "current sound effect page" can also display the sound effect parameters corresponding to the current sound effect, such as frequency response, dynamic range, loudness, etc. It should be understood that the user interface for displaying the sound effect parameters corresponding to the current sound effect is not limited to this, as long as the electronic device can provide a user interface display.
[0244] In some embodiments, after the shape of the electronic device changes, the sound effect parameters displayed in the "current sound effect page" change.
[0245] It should be understood that the embodiments of the present application are merely exemplary descriptions of the sound effect setting interface, and the present application does not limit the entrance to the sound effect setting interface, the layout of the sound effect setting interface, the setting functions, etc.
[0246] It should be understood that the above-mentioned atmosphere lighting, peripheral audio changes, feature do not disturb, speaker blocking prompts, external screen display and other settings are optional settings.
[0247] It can be understood that the setting interface of the expanded state sound effect and the closed state sound effect can refer to the hovering state sound effect setting interface and the straddling state sound effect setting interface. Among them, the corresponding sound effect settings may be different for different electronic device forms, and the corresponding external screen / internal screen displays may also be different.
[0248] In one example, the expanded sound effect can present left and right stereo sound field effects at the user level; the hovering / straddling sound effect can present high reverberation / low-frequency enhancement effects at the user level, and can also present other sound effect styles, such as: broadcast style, phonograph style, etc.
[0249] In some embodiments, when the shape of the electronic device changes, a guide animation may be displayed on the inner screen and / or outer screen of the electronic device. The guide animation is used to remind the user that a shape change of the electronic device is detected, and guide the user to set the sound effect parameters. After the user completes the setting of the sound effect parameters according to the guidance, the electronic device switches the sound effects according to the set sound effect parameters, and reminds the user that the sound effect switching is completed.
[0250] In some embodiments, when the electronic device turns on the music playback function, a guide animation can be displayed on the inner screen and / or outer screen of the electronic device. The guide animation is used to guide the user to set the sound effect parameters for different forms of the electronic device. After the user completes the sound effect parameter setting according to the guidance, when the form of the electronic device switches during music playback, the electronic device switches the sound effects according to the corresponding set sound effect parameters.
[0251] In some embodiments, after the user presets the sound effect parameters under different usage modes through the user interface, a mapping relationship is established between different usage modes and different sound effect parameters. For example, after the user presets the sound effect parameters of the hovering state through the user interface, a mapping relationship is established between the sound effect parameters of the hovering state and the hovering state.
[0252] In some embodiments, when the electronic device is in a first form, the electronic device can determine a first sound effect based on the first form and a first mapping relationship, wherein the first mapping relationship includes a correspondence between multiple forms of the electronic device and multiple sound effects, or the first mapping relationship includes a correspondence between multiple forms of the electronic device and multiple sets of sound effect parameters.
[0253] In some embodiments, the electronic device may store a set of sound effect parameters to be used. When the form of the electronic device is a first form, the sound effect parameters to be used correspond to the first form. When the form of the electronic device is switched from the first form to the second form, the electronic device modifies the sound effect parameters to be used to sound effect parameters corresponding to the second form, and the electronic device uses the sound effect parameters corresponding to the second form to play the second audio.
[0254] For example, Fig. 9 FIG. 9 is a functional module diagram of a device 900 for controlling sound effects provided in an embodiment of the present application. Fig. 9 As shown, the device 900 includes a detection module 910 and a switching module 920, wherein:
[0255] The detection module 910 is used to detect the shape of the electronic device.
[0256] In some embodiments, the detection module 910 can detect the shape of the electronic device through one or more sensors, which may include one or more of a gravity sensor, an acceleration sensor, a gyroscope sensor, a light sensor, and an ultrasonic sensor, and may also include other sensors, which are not limited in this application.
[0257] In some embodiments, the state of the electronic device may include any two or more of an unfolded state, a closed state, a hovering state, and a straddled state.
[0258] Among them, the explanation of the unfolded state, closed state, hovering state and straddling state of electronic devices is in Figure 3 A detailed description has been given in the illustrated embodiment, which will not be repeated here for the sake of brevity.
[0259] The switching module 920 is used to switch the electronic device from playing the first audio using the first sound effect to playing the second audio using the second sound effect when detecting that the electronic device is switched from the first state to the second state.
[0260] In some embodiments, the first state is one of an expanded state, a closed state, a hovering state, and a straddled state, the second state is one of an expanded state, a closed state, a hovering state, and a straddled state, and the first state and the second state are different.
[0261] Among them, the first sound effect corresponds to the first form, and the second sound effect corresponds to the second form.
[0262] In some embodiments, the first sound effect, the correspondence between the first sound effect and the first form, the second sound effect, and the correspondence between the second sound effect and the second form can be preset by the user. For example, the user can set them in advance through the sound effect setting interface of the electronic device; they can also be factory settings of the electronic device; they can also be determined by the electronic device based on the user's sound effect setting habits, and this application does not limit this.
[0263] In some embodiments, the device 900 also includes an adjustment module, which is used to adjust the currently used sound effect according to the usage scenario of the electronic device. For example, after the form of the electronic device is switched to the second form and the sound effect of the electronic device is switched to the second sound effect, the adjustment module can adjust the loudness corresponding to the second sound effect when the noise intensity of the environment in which the electronic device is located changes.
[0264] In the embodiment of the present application, the sound effects can be automatically switched according to the form of the electronic device, thereby improving the flexibility of the sound effect switching.
[0265] One or more of the modules or units described herein can be implemented in software, hardware, or a combination of the two. When any of the above modules or units are implemented in software, the software exists in the form of computer program instructions and is stored in a memory, and the processor can be used to execute the program instructions and implement the above method flow. The processor may include but is not limited to at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor and other types of computing devices that run software, each of which may include one or more cores for executing software instructions for calculation or processing. The processor may be built into an SoC (system on chip) or an application specific integrated circuit (ASIC), or it may be an independent semiconductor chip. In addition to the core used to execute software instructions for calculation or processing in the processor, it may further include necessary hardware accelerators, such as field programmable gate arrays (FPGA), PLDs (programmable logic devices), or logic circuits that implement dedicated logic operations.
[0266] When the modules or units described in this document are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, an NPU, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or not rely on the software to execute the above method flow.
[0267] When the modules or units described herein are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0268] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0269] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0270] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0271] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0272] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0273] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0274] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for sound effect control, characterized in that: The method is applied to an electronic device, the electronic device is a foldable device, the electronic device includes a first display screen and a second display screen, the angle formed by the first display screen and the second display screen is a first angle, and the method includes: When the electronic device is in a first state, playing a first audio using a first sound effect, the first state being a hovering state; After the form of the electronic device is switched from the first form to the second form, the electronic device plays a second audio using a second sound effect, the second form is a straddling state, wherein the first sound effect is different from the second sound effect, and the difference between the first sound effect and the second sound effect is achieved by changing the electrical signal output by the electronic device, and during the process of switching the form of the electronic device from the first form to the second form, the first angle does not change; The method further comprises: The electronic device determines the shape of the electronic device according to the first angle and the orientation of the screen of the electronic device, wherein the orientation of the screen of the electronic device is the orientation of the entire screen of the electronic device relative to a ground plane; The electronic device determines the shape of the electronic device according to the first angle and the screen orientation of the electronic device, including: When the first angle is greater than 0° and less than 180°, and the screen of the electronic device is facing upward, the electronic device determines that the state of the electronic device is a hovering state; When the first angle is greater than 0° and less than 180°, and the screen of the electronic device faces downward, the electronic device determines that the state of the electronic device is a straddle state.
2. The method according to claim 1, characterized in that When the electronic device is in the first state, playing the first audio using the first sound effect includes: When the electronic device is in the first form, determining the first sound effect according to the first form and a first mapping relationship, wherein the first mapping relationship includes a correspondence between multiple forms of the electronic device and multiple sound effects; The electronic device plays the first audio using the first sound effect.
3. The method according to claim 1 or 2, characterized in that: When the electronic device is in the first state, playing the first audio using the first sound effect includes: When the electronic device is in the first state, displaying a first guide animation on the display interface of the electronic device; receiving a first input from a user based on the first guide animation; In response to the first input, the electronic device plays audio using the first sound effect.
4. The method according to claim 1 or 2, characterized in that: The loudness of the second audio played by the second sound effect is the first loudness, and the method further includes: When it is detected that the noise intensity of the environment in which the electronic device is located changes, the electronic device adjusts the loudness of the second audio from the first loudness to a second loudness according to the noise intensity.
5. The method according to claim 1 or 2, characterized in that: The method further comprises: During the process in which the electronic device plays the first audio using the first sound effect, the electronic device controls the atmosphere light of the electronic device through a first lighting mode; and / or When the electronic device plays the second audio using the second sound effect, the electronic device controls the atmosphere light of the electronic device through the second lighting mode; The first lighting mode and the second lighting mode are different.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: When the electronic device plays the second audio using the second sound effect, the electronic device issues a first prompt.
7. The method according to claim 6, characterized in that The electronic device issues a first prompt, including: The electronic device issues the first prompt by displaying the first prompt on an interface; or The electronic device issues the first prompt by voice; or The electronic device issues the first prompt by vibration.
8. The method according to claim 1 or 2, characterized in that: The electronic device plays a first audio using a first sound effect, including: The electronic device controls the first device to play the first audio using the first sound effect, wherein the electronic device establishes a communication connection with the first device; The electronic device plays the second audio using the second sound effect, including: The electronic device controls the first device to play the second audio using the second sound effect.
9. The method according to claim 1 or 2, characterized in that: Before the electronic device determines the shape of the electronic device according to the first angle and the orientation of the screen of the electronic device, the method further includes: The electronic device determines the first angle and the screen orientation of the electronic device through one or more sensors, wherein the one or more sensors include one or more of a gravity sensor, an acceleration sensor, a gyroscope sensor, a light sensor, and an ultrasonic sensor.
10. The method according to claim 1 or 2, characterized in that: The difference between the first sound effect and the second sound effect is reflected in that the sound parameters corresponding to the first sound effect and the sound parameters corresponding to the second sound effect are different, and the sound parameters include one or more of frequency response, loudness, audio dynamics, reverberation amount, reverberation time, and audio sampling rate.
11. An electronic device, characterized in that: include: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to perform the method as described in any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The storage medium stores a program or an instruction, and when the program or the instruction is executed, the method according to any one of claims 1 to 10 is implemented.
13. A chip, characterized in that: Instructions are stored in the chip, and when the instructions are executed, the method according to any one of claims 1 to 10 is implemented.
14. A computer program product, characterized in that The computer program product stores a program or an instruction, and when the program or the instruction is executed, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Sound processing method and device thereof
CN110989961A
Sound channel switching method and device and electronic equipment
CN113630695A