Terminal control method and device, electronic equipment and storage medium
By automatically identifying the environment type and switching the sound effect mode by the speaker, the poor playback effect caused by the user's manual switching of the sound effect mode is solved, and the optimized playback effect and user experience of audio in different scenarios is achieved.
Patent Information
- Application Number
- CN202410132755.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2025-08-01
AI Technical Summary
Existing speakers require users to manually switch the sound effect mode in different usage scenarios, resulting in poor playback effects and affecting the user experience.
By obtaining the sound signal of the environment in which the terminal is located, determining the target environment type, and automatically switching the sound effect mode according to this type, the acoustic scene recognition model and position information are used to improve the accuracy of the environment type determination.
Automatically adjust the sound effect mode in different environments to improve the audio playback effect, adapt to more application scenarios, without the need for manual operation of users, and improve user experience.
Smart Images

Figure CN120406216A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of audio technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for controlling a terminal. Background Art
[0002] Currently, there are various types of speakers. According to functions, they can be divided into smart speakers and traditional speakers. According to usage scenarios, they can be divided into outdoor speakers, home speakers, multimedia speakers, etc. These speakers can be used indoors by connecting to a power supply, or can be carried outdoors for use.
[0003] In order to enable the speakers to achieve better playback effects in different usage scenarios, multiple sound effect modes are usually preset in the speakers to adapt to different usage scenarios such as indoor scenarios or outdoor scenarios. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for controlling a terminal, which are used to improve the audio playback effect of the terminal and enhance the user experience.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for controlling a terminal, the method including:
[0006] Obtaining a sound signal of the environment where the terminal is located;
[0007] Determining a target environment type of the environment where the terminal is located according to the sound signal;
[0008] Determining a sound effect mode of the terminal according to the target environment type;
[0009] Outputting audio information according to the sound effect mode.
[0010] Optionally, the determining the target environment type of the environment where the terminal is located according to the sound signal includes:
[0011] Taking the sound signal as an input of a preset type determination model, and obtaining the target environment type output by the preset type determination model.
[0012] Optionally, the method further includes:
[0013] Obtaining location information of the terminal;
[0014] The determining the target environment type of the environment where the terminal is located according to the sound signal includes:
[0015] Determining the target environment type of the environment where the terminal is located according to the location information and the sound signal.
[0016] Optionally, determining the target environment type of the environment where the terminal is located based on the position information and the sound signal includes:
[0017] When it is determined according to the position information that the terminal is in a moving state, determining the target environment type of the environment where the terminal is located according to the sound signal.
[0018] Optionally, the position information includes the current position of the terminal and the target position at the next moment; determining that the terminal is in a moving state according to the position information includes:
[0019] When the current position is different from the target position, and the residence time of the terminal at the target position is greater than or equal to a first preset time range, it is determined that the terminal is in the moving state.
[0020] Optionally, determining the sound effect mode of the terminal according to the target environment type includes:
[0021] Determining the sound effect mode corresponding to the target environment type from multiple preset sound effect modes; different preset sound effect modes correspond to different environment types.
[0022] Optionally, obtaining the sound signal of the environment where the terminal is located includes:
[0023] Obtaining multiple sound signals of the environment where the terminal is located within a second preset time range;
[0024] Determining the target environment type of the environment where the terminal is located according to the sound signal includes:
[0025] When it is determined that the sound characteristics of each sound signal are all within a preset characteristic range, determining the target environment type of the environment where the terminal is located according to the multiple sound signals.
[0026] According to a second aspect of the embodiments of the present disclosure, there is provided a device for terminal control, and the device includes:
[0027] An acquisition module, configured to acquire environment information of the environment where the terminal is located;
[0028] An acquisition module, configured to acquire a sound signal of the environment where the terminal is located;
[0029] A first determination module, configured to determine the target environment type of the environment where the terminal is located according to the sound signal;
[0030] A second determination module, configured to determine the sound effect mode of the terminal according to the target environment type;
[0031] An output module, configured to output audio information according to the sound effect mode.
[0032] Optionally, the first determination module is configured to use the sound signal as an input to a preset type determination model to obtain the target environment type output by the preset type determination model.
[0033] Optionally, the device further includes a target acquisition module:
[0034] The target acquisition module is configured to acquire the location information of the terminal;
[0035] The first determination module is configured to determine the target environment type of the environment where the terminal is located according to the location information and the sound signal.
[0036] Optionally, the first determination module is configured to determine the target environment type of the environment where the terminal is located according to the sound signal when it is determined that the terminal is in a moving state according to the location information.
[0037] Optionally, the location information includes the current location of the terminal and the target location at the next moment; the first determination module is configured to determine that the terminal is in the moving state when the current location is different from the target location and the residence time of the terminal at the target location is greater than or equal to a first preset time range.
[0038] Optionally, the second determination module is configured to determine the sound effect mode corresponding to the target environment type from a plurality of preset sound effect modes; different preset sound effect modes correspond to different environment types.
[0039] Optionally, the acquisition module is configured to acquire a plurality of sound signals of the environment where the terminal is located within a second preset time range;
[0040] The first determination module is configured to determine the target environment type of the environment where the terminal is located according to a plurality of the sound signals when it is determined that the sound characteristics of each of the sound signals are within a preset characteristic range.
[0041] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0042] A processor;
[0043] A memory for storing instructions executable by the processor;
[0044] Wherein, the processor is configured to execute the steps of the method for controlling a terminal provided in the first aspect of the present disclosure when executed.
[0045] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the steps of the method for controlling a terminal provided in the first aspect of the present disclosure.
[0046] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: Audio information in different sound effect modes can be output in different environmental types, enabling the audio information to adapt to more application scenarios, improving the audio playback effect, and eliminating the need for manual operation by the user, thereby enhancing the user experience.
[0047] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used in conjunction with the specification to explain the principles of the present disclosure.
[0049] Figure 1 is a flowchart of a method for controlling a terminal shown according to an exemplary embodiment.
[0050] Figure 2 is a block diagram of the structure of a preset type determination model shown according to an exemplary embodiment.
[0051] Figure 3 is a flowchart of another method for controlling a terminal shown according to an exemplary embodiment.
[0052] Figure 4 is a flowchart of yet another method for controlling a terminal shown according to an exemplary embodiment.
[0053] Figure 5 is a block diagram of a device for controlling a terminal shown according to an exemplary embodiment.
[0054] Figure 6 is a block diagram of an electronic device shown according to an exemplary embodiment.
[0055] Figure 7 is a block diagram of another electronic device shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0056] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0057] First, the application scenarios of the present disclosure are introduced. The present disclosure is applied in a scenario where audio information is output through a terminal. Exemplarily, the terminal may be a speaker. Currently, there are various types of speakers, which can be classified into smart speakers and traditional speakers according to their functions, and can be classified into outdoor speakers, home speakers, multimedia speakers, etc. according to their usage scenarios. These speakers can be used indoors by connecting to a power supply, or can be carried outdoors for use.
[0058] In order to enable the speaker to achieve better playback effects in different usage scenarios, multiple sound effect modes are usually pre-set in the speaker to adapt to different usage scenarios such as indoor or outdoor scenarios. If the user wants to switch the sound effect mode of the terminal, manual operation is required. For example, triggering a switching button on the terminal, or triggering a control instruction of a software program, etc. However, users often forget to switch the sound effect mode, resulting in poor playback effects of the audio information, thereby affecting the user experience.
[0059] To solve the above problems, the present disclosure provides a method, device, electronic device, and storage medium for terminal control; obtaining a sound signal of the environment where the terminal is located; determining a target environment type of the environment where the terminal is located according to the sound signal; determining a sound effect mode of the terminal according to the target environment type; outputting audio information according to the sound effect mode; through the above technical solutions, audio information with different sound effect modes can be output under different environment types, enabling the audio information to adapt to more application scenarios, improving the playback effect of the audio, and eliminating the need for manual operation by the user, thus improving the user experience.
[0060] Figure 1 is a flowchart of a method for terminal control shown according to an exemplary embodiment. As Figure 1 shown, the method is used in a terminal and includes the following steps.
[0061] S101. Obtain a sound signal of the environment where the terminal is located.
[0062] Exemplarily, the sound signal can be obtained through a microphone on the terminal.
[0063] S102. Determine a target environment type of the environment where the terminal is located according to the sound signal.
[0064] Exemplarily, the target environment type may include an indoor environment, an outdoor environment, a daytime environment, a nighttime environment, a learning environment, etc.
[0065] S103. Determine the sound effect mode of the terminal according to the target environment type.
[0066] In some embodiments, the sound effect mode corresponding to the target environment type may be determined from multiple preset sound effect modes; different preset sound effect modes correspond to different environment types. Exemplarily, the preset sound effect mode may include an indoor sound effect mode, an outdoor sound effect mode, a daytime sound effect mode, a nighttime sound effect mode, a learning sound effect mode, etc. In this way, the sound effect mode corresponding to the environment type can be quickly determined, improving work efficiency.
[0067] S104. Output audio information according to the sound effect mode.
[0068] Through the above technical solution, audio information with different sound effect modes can be output under different environment types, enabling the audio information to adapt to more application scenarios, improving the audio playback effect, and eliminating the need for manual operation by the user, thus enhancing the user experience.
[0069] In some embodiments, determining the target environment type of the environment where the terminal is located according to the sound signal may include: using the sound signal as the input of a preset type determination model, and obtaining the target environment type output by the preset type determination model. Exemplarily, the preset type determination model may be an acoustic scene recognition model; the acoustic scene recognition model may adopt a fully convolutional neural network (FCNN), as Figure 2 shown, the preset type determination model (acoustic scene recognition model) may include multiple stacked convolutional layers, and a batch processing layer and an activation function layer are connected after each convolutional layer; in order to alleviate the overfitting problem, a dropout layer is added to some layers; in order to reduce the computational amount and complexity, a pooling layer is added to some layers. The acoustic scene recognition model uses a global average + Softmax function as the output layer to output the environment type. In addition, other neural network structures may also be adopted, or more or fewer network layers may be used, which is not limited herein.
[0070] Exemplarily, feature extraction may be performed on the sound signal to obtain a target sound signal; using the target sound signal as the input of the preset type determination model, and obtaining the target environment type output by the preset type determination model.
[0071] It should be noted that the above target sound signal can be an audio feature. Extracting features from the sound signal can refer to extracting features from the sound signal through mathematical means to obtain audio features represented by mathematical means. Exemplarily, the audio features can include one or more of log Mel spectrogram, Mel Frequency Cepstrum Coefficient (MFCC), Inverted MFCC (IMFCC), Gammatone Frequency Cepstrum Coefficient (GFCC), Linear Frequency Cepstrum Coefficient (LFCC), Power-Normalized Coefficients (PNCC), and Perceptual Linear Predictive (PLP).
[0072] For example, when the audio feature is a log Mel spectrogram, the audio signal can be first framed and windowed to extract the magnitude spectrum feature. Then, a square root operation is performed on the magnitude spectrum feature to obtain the energy spectrum, and the energy spectrum is Mel-filtered to obtain the Mel spectrogram. Further, a logarithmic operation is performed on the Mel spectrogram and regularized to obtain the regularized log Mel spectrogram.
[0073] In some other embodiments, the method may further include: obtaining the location information of the terminal; determining the target environment type of the environment where the terminal is located according to the location information and the sound signal.
[0074] Exemplarily, the area type where the terminal is located can be determined according to the location information, the sound signal, and the preset map information; the target environment type of the environment where the terminal is located can be determined according to the area type.
[0075] Exemplarily, the preset map information can be high-precision map information. The area type can include indoor area type or outdoor area type, etc. The area type corresponding to the location information can be determined from the preset area correspondence according to the position of the location information in the preset map information; the preset area correspondence can include the correspondence between the location information and the area type, where each area type can correspond to multiple location information. In this way, the environment type can also be determined according to the location of the terminal, improving the accuracy of type determination.
[0076] In some implementations, when it is determined that the terminal is in a moving state based on the location information, the target environment type of the environment where the terminal is located can be determined according to the sound signal. Since the environment type may change when the terminal is in a moving state, it is possible to determine whether the terminal has moved based on the location information, so as to more accurately determine the environment type of the environment where the terminal is located.
[0077] In some other embodiments, the location information may include the current location of the terminal and the target location at the next moment; it can be determined that the terminal is in the moving state when the current location is different from the target location and the residence time of the terminal at the target location is greater than or equal to the first preset time range.
[0078] Exemplarily, the first preset time range may be within the range of 1 min - 8 min, for example, 1 min, 2 min, 5 min, or 8 min, etc. The location information of the terminal can be periodically obtained every third preset time range; the third preset time range may be within the range of 100 ms - 300 ms, for example, 100 ms, 200 ms, or 300 ms, etc. In this way, it can be determined that the terminal is in a moving state, and there is no need to obtain location information for a long time, reducing the device power consumption.
[0079] It should be noted that it can be determined that the terminal is in a stationary state when the current location is different from the target location and the residence time of the terminal at the target location is less than the first preset time range. Since the terminal does not move at this time, there is no need to determine the environment type where the terminal is currently located, reducing the device power consumption.
[0080] In some embodiments, the above method may include: obtaining a plurality of sound signals of the environment where the terminal is located within a second preset time range; when it is determined that the sound characteristics of each of the sound signals are within a preset characteristic range, determining the target environment type of the environment where the terminal is located according to the plurality of sound signals.
[0081] Exemplarily, the second preset time range may be 40 s - 90 s, for example, 40 s, 60 s, or 90 s, etc. Through the above technical solution, it can be determined that the terminal is in the same scene according to a plurality of sound signals within the preset time range, that is, the scene where the terminal is located does not change within the preset time range. Thus, the target environment type where the terminal is located is determined according to the sound signal to perform the switching of the sound effect mode. In this way, the sound effect mode can be switched when the terminal is in a stable and unchanged scene, avoiding the interference caused by the scene change due to the movement of the terminal to the determination of the sound effect mode, and improving the accuracy of the sound effect mode determination process.
[0082] It should be noted that in the case where the sound characteristics of the sound signal are not within the preset characteristic range, it is determined that the terminal is not in the same scene, that is, the scene where the terminal is located is in a changing state within the preset time range. At this time, the target environment type where the terminal is located cannot be determined based on the sound signal. In this way, the influence of terminal movement on the determination of the environment type can be avoided, the accuracy of sound effect mode determination can be effectively improved, and the work efficiency can be further improved.
[0083] In some other embodiments, the candidate sound effect mode corresponding to the audio information may be determined according to the attribute information of the audio information; the audio information may be output according to the candidate sound effect mode and the sound effect mode.
[0084] Exemplarily, the attribute information may include the audio style of the audio information, etc. The audio characteristics of the audio information may be obtained, and the attribute information of the audio information may be determined according to the audio characteristics; the audio characteristics may include parameters such as the amplitude or spectrum of the audio. Since different audio information may include different audio styles, the corresponding sound effect mode may be determined according to the audio style to obtain a better playback effect.
[0085] In some embodiments, the outputting the audio information according to the candidate sound effect mode and the sound effect mode may include: using the candidate sound effect mode and the sound effect mode as the input of a target preset type determination model, and obtaining the target sound effect mode output by the target preset type determination model; outputting the audio information according to the target sound effect mode. Exemplarily, the target preset type determination model may be a model obtained by training a neural network model. In this way, the sound effect mode of the audio information can be quickly determined, improving the work efficiency.
[0086] In some other embodiments, the sound signal of the environment where the terminal is located may be obtained in response to receiving a sound effect mode control instruction from the user. In this way, the acquisition method of the sound signal can be flexibly set according to the user's needs, improving the work efficiency.
[0087] In some embodiments, the sound effect mode may include target sound effect parameters, and the above step S103 may include: setting the target sound effect parameters of the sound effect mode as the sound effect parameters of the audio information.
[0088] Exemplarily, the sound effect parameters may include one or more of a volume parameter, a sound effect enhancement parameter, an equalizer (EQ) parameter, and a dynamic range compression (DRC) parameter. The target sound effect parameters may be set to run in the controller of the terminal. For example, the volume parameter may be set to run in a preset volume control algorithm, the equalizer parameter may be set to run in a preset equalizer control algorithm, and the dynamic range control parameter may be set to run in a preset dynamic range control algorithm, etc.
[0089] It should be noted that the preset volume control algorithm is an algorithm for adjusting the sound loudness. The preset equalizer control algorithm is an algorithm for separately adjusting the amplification amounts of electrical signals of various frequency components. By adjusting the electrical signals of various different frequencies, the defects of the speaker and the sound field are compensated, and various sound sources are compensated and modified. The preset equalizer control algorithm parameters are to adjust the type and parameters of the filter (such as frequency, gain, or quality factor, etc.).
[0090] The preset dynamic range control algorithm is an algorithm for dynamically controlling the signal amplitude of the audio output signal, which can adjust the compression and amplification capabilities of the output audio, making small-amplitude sounds sound louder or making large-amplitude sounds sound softer; and, it can filter out some low-level noises. The dynamic range control parameters include one or more of the enhancement threshold, the limiting threshold, or the noise threshold. By adjusting the above sound effect parameters, the terminal can output audio information in different sound effect modes in different environment types, improving the playback effect and thus enhancing the user experience.
[0091] Figure 3 It is a flowchart of another method for controlling a terminal shown according to an exemplary embodiment. Referring to Figure 3 , the method may include the following steps:
[0092] S301. In response to a touch operation of a user on the terminal, control the terminal to enter the power-on state from the power-off state.
[0093] S302. Output audio information according to a specified sound effect mode.
[0094] Wherein, the specified sound effect mode may be a pre-set sound effect mode; for example, an indoor sound effect mode, an outdoor sound effect mode, a daytime sound effect mode, a nighttime sound effect mode, or a learning sound effect mode, etc., which is not limited herein.
[0095] S303. Obtain the sound signal of the environment where the terminal is located.
[0096] S304. Determine the target environment type of the environment where the terminal is located according to the sound signal.
[0097] Wherein, the target environment type may include an indoor environment, an outdoor environment, a daytime environment, a nighttime environment, or a learning environment, etc.
[0098] S305. Determine the sound effect mode of the terminal according to the target environment type.
[0099] Wherein, the sound effect mode may include an indoor sound effect mode, an outdoor sound effect mode, a daytime sound effect mode, a nighttime sound effect mode, or a learning sound effect mode, etc., which is not limited herein.
[0100] S306. Determine whether the sound effect mode is the same as the specified sound effect mode.
[0101] In the case where it is determined that the sound effect mode is not the same as the specified sound effect mode, execute step S307; in the case where it is determined that the sound effect mode is the same as the specified sound effect mode, execute step S308.
[0102] S307. Output audio information according to the sound effect mode.
[0103] S308. Output audio information according to the specified sound effect mode.
[0104] Through the above technical solution, audio information in different sound effect modes can be output under different environmental types, enabling the audio information to adapt to more application scenarios, improving the audio playback effect, and eliminating the need for manual operation by the user, thus enhancing the user experience.
[0105] Figure 4 It is a flowchart of another method for terminal control shown according to an exemplary embodiment. Refer to Figure 4 , the method may include the following steps:
[0106] S401. In the case where it is determined that the terminal is in the boot state, determine the specified sound effect mode of the terminal.
[0107] S402. Obtain the location information of the terminal.
[0108] S403. Determine whether the terminal is in a moving state according to the location information.
[0109] In the case where it is determined that the terminal is in a moving state, execute step S404; in the case where it is determined that the terminal is not in a moving state, execute step S409.
[0110] S404. Obtain the sound signal of the environment where the terminal is located.
[0111] S405. Determine the target environment type of the environment where the terminal is located according to the sound signal.
[0112] Among them, the target environment type may include an indoor environment, an outdoor environment, a daytime environment, a nighttime environment, a learning environment, etc.
[0113] S406. Determine the sound effect mode of the terminal according to the target environment type.
[0114] S407. Determine whether the sound effect mode is the same as the specified sound effect mode.
[0115] When it is determined that the sound effect mode is different from the specified sound effect mode, step S408 is executed; when it is determined that the sound effect mode is the same as the specified sound effect mode, step S409 is executed.
[0116] S408. Output audio information according to this sound effect mode.
[0117] S409. Output audio information according to this specified sound effect mode.
[0118] Through the above technical solution, audio information in different sound effect modes can be output under different environmental types, enabling the audio information to adapt to more application scenarios, improving the audio playback effect, and without the need for manual operation by the user, thus enhancing the user experience.
[0119] Figure 5 It is a block diagram of a terminal control device shown according to an exemplary embodiment. As Figure 5 shown, the device 500 may include an acquisition module 510, a first determination module 520, a second determination module 530, and an output module 540;
[0120] The acquisition module 510 is configured to acquire the sound signal of the environment where the terminal is located;
[0121] The first determination module 520 is configured to determine the target environment type of the environment where the terminal is located according to the sound signal;
[0122] The second determination module 530 is configured to determine the sound effect mode of the terminal according to the target environment type;
[0123] The output module 540 is configured to output audio information according to the sound effect mode.
[0124] Through the above technical solution, audio information in different sound effect modes can be output under different environmental types, enabling the audio information to adapt to more application scenarios, improving the audio playback effect, and without the need for manual operation by the user, thus enhancing the user experience.
[0125] Optionally, the first determination module 520 is configured to use the sound signal as the input of a first preset type determination model, and obtain the target environment type output by the preset type determination model.
[0126] Optionally, the device further includes a target acquisition module 550:
[0127] The target acquisition module 550 is configured to acquire the location information of the terminal;
[0128] The first determination module 520 is configured to determine the target environment type of the environment where the terminal is located according to the location information and the sound signal.
[0129] Optionally, the first determination module 520 is configured to determine the target environment type of the environment where the terminal is located according to the sound signal when it is determined according to the location information that the terminal is in a moving state.
[0130] Optionally, the location information includes the current location of the terminal and the target location at the next moment; the first determination module 520 is configured to determine that the terminal is in the moving state when the current location is different from the target location and the residence time of the terminal at the target location is greater than or equal to a first preset time range.
[0131] Optionally, the second determination module 530 is configured to determine the sound effect mode corresponding to the target environment type from a plurality of preset sound effect modes; different preset sound effect modes correspond to different environment types.
[0132] Optionally, the acquisition module 510 is configured to acquire a plurality of sound signals of the environment where the terminal is located within a second preset time range;
[0133] The first determination module 520 is configured to determine the target environment type of the environment where the terminal is located according to a plurality of the sound signals when it is determined that the sound characteristics of each of the sound signals are within a preset characteristic range.
[0134] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0135] The present disclosure further provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method for controlling a terminal provided by the present disclosure are implemented.
[0136] In summary, the present disclosure provides a method, device, electronic device and storage medium for controlling a terminal; acquiring a sound signal of the environment where the terminal is located; determining a target environment type of the environment where the terminal is located according to the sound signal; determining a sound effect mode of the terminal according to the target environment type; outputting audio information according to the sound effect mode; through the above technical solution, audio information with different sound effect modes can be output under different environment types, so that the audio information can adapt to more application scenarios, improving the playing effect of the audio, and without the need for manual operation by the user, improving the user experience.
[0137] Figure 6 FIG. 600 is a block diagram of an electronic device 600 shown according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0138] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output interface 612, a sensor component 614, and a communication component 616.
[0139] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method for controlling the terminal. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0140] The memory 604 is configured to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0141] The power supply component 606 provides power to various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
[0142] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0143] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 further includes a speaker for outputting audio signals.
[0144] The input / output interface 612 provides an interface between the processing component 602 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0145] The sensor component 614 includes one or more sensors for providing a status assessment of various aspects of the electronic device 600. For example, the sensor component 614 can detect the on / off state of the electronic device 600, the relative positioning of components, such as the display and the keypad of the electronic device 600. The sensor component 614 can also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor component 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 614 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 614 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0146] The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0147] In an exemplary embodiment, the electronic device 600 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method for terminal control.
[0148] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 604 including instructions, and the above instructions can be executed by the processor 620 of the electronic device 600 to complete the above-described method for terminal control. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0149] Figure 7 is a block diagram of an electronic device 700 shown according to an exemplary embodiment. For example, the electronic device 700 can be provided as a server. Referring to Figure 7 , the electronic device 700 includes a processing component 722, which further includes one or more processors, and memory resources represented by the memory 732 for storing instructions executable by the processing component 722, such as application programs. The application programs stored in the memory 732 can include one or more modules each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the above-described method for terminal control.
[0150] The electronic device 700 can also include a power component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output interface 758. The electronic device 700 can operate based on an operating system stored in the memory 732, such as Windows Server TM, Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.
[0151] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known or customary technical means in the art not disclosed herein. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0152] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for terminal control, characterized in that, The method includes: Obtaining a sound signal of the environment where the terminal is located; Determining a target environment type of the environment where the terminal is located according to the sound signal; Determining a sound effect mode of the terminal according to the target environment type; Outputting audio information according to the sound effect mode.
2. The method according to claim 1, wherein The determining the target environment type of the environment where the terminal is located according to the sound signal includes: Using the sound signal as an input to a preset type determination model, and obtaining the target environment type output by the preset type determination model.
3. The method according to claim 1, characterized in that The method further includes: Obtaining location information of the terminal; The determining the target environment type of the environment where the terminal is located according to the sound signal includes: Determining the target environment type of the environment where the terminal is located according to the location information and the sound signal.
4. The method according to claim 3, wherein The determining the target environment type of the environment where the terminal is located according to the location information and the sound signal includes: When it is determined according to the location information that the terminal is in a moving state, determining the target environment type of the environment where the terminal is located according to the sound signal.
5. The method according to claim 4, wherein The location information includes the current location of the terminal and the target location at the next moment; the determining that the terminal is in a moving state according to the location information includes: When the current location is different from the target location, and the residence time of the terminal at the target location is greater than or equal to a first preset time range, determining that the terminal is in the moving state.
6. The method according to claim 1, characterized in that, The determining the sound effect mode of the terminal according to the target environment type includes: Determining, from multiple preset sound effect modes, the sound effect mode corresponding to the target environment type; different preset sound effect modes correspond to different environment types.
7. The method according to any one of claims 1-6, characterized in that, The obtaining the sound signal of the environment where the terminal is located includes: Obtaining multiple sound signals of the environment where the terminal is located within a second preset time range; The determining the target environment type of the environment where the terminal is located according to the sound signal includes: When it is determined that the sound characteristics of each sound signal are within a preset characteristic range, determining the target environment type of the environment where the terminal is located according to the multiple sound signals.
8. A device for controlling a terminal, characterized in that The device includes: An obtaining module configured to obtain a sound signal of the environment where the terminal is located; A first determination module configured to determine a target environment type of the environment where the terminal is located according to the sound signal; A second determination module configured to determine a sound effect mode of the terminal according to the target environment type; An output module configured to output audio information according to the sound effect mode.
9. An electronic device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to implement the steps of the method according to any one of claims 1-7 when executed.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method according to any one of claims 1-7 are implemented.