Atmosphere lamp control method and device, electronic equipment and storage medium
By analyzing user voice information and adjusting the color and brightness of the ambient lights according to semantics and loudness, the problem of insufficient interaction between the ambient lights in the car is solved, achieving higher intelligence and user experience.
Patent Information
- Application Number
- CN202311628751.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the in-car ambient lights have weak interactions with users and a single function, which cannot meet users' requirements for automotive intelligence, affecting the user experience.
By collecting user voice information, analyzing its semantics and loudness, adjusting the lighting color of the ambient light according to the semantics, adjusting the lighting brightness according to the loudness, and enhancing the intelligence and interactivity of the ambient lights.
Anthropomorphize the car, improve the intelligence level of the ambient lights in the car, enhance the interaction between the car and users, and improve the user experience.
Smart Images

Figure CN120076132A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive technologies, and particularly to a method, device, electronic device, and storage medium for controlling ambient lights. Background Art
[0002] With the progress of technology, people's requirements for the intelligence and comfort of automobiles are getting higher and higher. Currently, many automobile manufacturers have installed interior ambient lights in vehicles to improve the lighting environment inside the cabin.
[0003] However, due to the single method of controlling interior ambient lights and the single function of interior ambient lights, the interior ambient lights only provide a decorative function, have weak interactivity with users, cannot meet users' requirements for automotive intelligence, and affect users' experience.
[0004] It should be noted that the information disclosed in the background art part of this application is only intended to deepen the understanding of the general background art of this application, and should not be regarded as an admission or any form of suggestion that this information constitutes the prior art known to those skilled in the art. Summary of the Invention
[0005] In view of this, this application provides a method, device, electronic device, and storage medium for controlling ambient lights, which helps to solve the problem that the interior ambient lights in the prior art have weak interactivity with users and cannot meet users' requirements for automotive intelligence.
[0006] In a first aspect, an embodiment of this application provides a method for controlling ambient lights, including:
[0007] Collecting user voice information;
[0008] Analyzing the user voice information to obtain the semantics and loudness corresponding to the user voice information;
[0009] Adjusting the light color of the ambient lights according to the semantics corresponding to the user voice information;
[0010] Adjusting the light brightness of the ambient lights according to the loudness corresponding to the user voice information.
[0011] In a possible implementation manner, the adjusting the light color of the ambient lights according to the semantics corresponding to the user voice information includes:
[0012] Obtaining the user emotion type according to the semantics corresponding to the user voice information;
[0013] Adjusting the light color of the ambient lights according to the user emotion type.
[0014] In a possible implementation, adjusting the light color of the ambient light according to the user's emotion type includes:
[0015] If the user's emotion type is the first emotion type, adjust the light color of the ambient light to a warm color;
[0016] If the user's emotion type is the second emotion type, adjust the light color of the ambient light to a cool color.
[0017] In a possible implementation, if the user's emotion type is the first emotion type, adjusting the light color of the ambient light to a warm color includes:
[0018] If the user's emotion type is the first emotion type of the first level, adjust the light color of the ambient light to the warm color corresponding to the first level, where the level of the first emotion type is related to the depth of the light color.
[0019] In a possible implementation, if the user's emotion type is the second emotion type, adjusting the light color of the ambient light to a cool color includes:
[0020] If the user's emotion type is the second emotion type of the second level, adjust the light color of the ambient light to the cool color corresponding to the second level, where the level of the second emotion type is related to the depth of the light color.
[0021] In a possible implementation, adjusting the light brightness of the ambient light according to the loudness corresponding to the user's voice information includes:
[0022] If the loudness corresponding to the user's voice information is greater than or equal to a preset loudness threshold, adjust the light brightness of the ambient light to a first brightness;
[0023] If the loudness corresponding to the user's voice information is less than the loudness threshold, adjust the light brightness of the ambient light to a second brightness;
[0024] Wherein, the first brightness is greater than the second brightness.
[0025] In a possible implementation, the method further includes:
[0026] Generate a response voice message according to the semantics corresponding to the user's voice information;
[0027] Adjust the light color of the ambient light according to the semantics corresponding to the response voice message;
[0028] Adjust the light brightness of the ambient light according to the loudness corresponding to the response voice message.
[0029] Second aspect, an embodiment of the present application provides a device, including:
[0030] A user voice information acquisition module, configured to acquire user voice information;
[0031] An analysis module, configured to analyze the user voice information to obtain the semantics and loudness corresponding to the user voice information;
[0032] A light color adjustment module, configured to adjust the light color of the ambient light according to the semantics corresponding to the user voice information;
[0033] A light brightness adjustment module, configured to adjust the light brightness of the ambient light according to the loudness corresponding to the user voice information.
[0034] Third aspect, an embodiment of the present application provides an electronic device, including:
[0035] A processor;
[0036] A memory;
[0037] And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions that, when executed by the processor, cause the electronic device to execute the method described in the first aspect.
[0038] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein, when the program runs, it controls the device where the computer-readable storage medium is located to execute the method described in the first aspect.
[0039] Adopting the solution provided by the embodiment of the present application, when the user speaks, the ambient light in the vehicle adjusts the color and brightness of the light according to the semantics and loudness corresponding to the user voice information, personifies the car, improves the intelligent level of the ambient light in the vehicle, enhances the interaction between the car and the user, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0041] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0042] Figure 2 It is a schematic flowchart of a method for controlling an ambient light provided by an embodiment of the present application;
[0043] Figure 3 Schematic flow chart of another ambient light control method provided by an embodiment of the present application;
[0044] Figure 4 Schematic structural diagram of an ambient light control device provided by an embodiment of the present application;
[0045] Figure 5 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0046] For a better understanding of the technical solutions of the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0047] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.
[0048] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "the" and "said" used in the embodiments of the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0049] It should be understood that the term " / and / " used herein is only a description of the associated relationship of the associated objects, indicating that there can be three relationships. For example, a and / or b can represent: a exists alone, a and b exist simultaneously, and b exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after.
[0050] For ease of understanding, the following first gives an exemplary description of a specific application scenario.
[0051] See Figure 1 , which is a schematic diagram of an application scenario provided by an embodiment of the present application. As Figure 1 shown, in this application scenario, an ambient light control device 101, an ambient light 102, and a microphone 103 are shown. Among them, the ambient light 102 and the microphone 103 are respectively electrically connected to the ambient light control device 101. The ambient light control device 101 is not only used to control the ambient light 102 to adjust the light color and light brightness, but also used to control the microphone 103 to collect user voice information; the ambient light 102 is used to adjust the light color and light brightness; the microphone 103 is used to collect user voice information.
[0052] It should be noted that the ambient light control device 101, the ambient light 102, and the microphone 103 shown in 1 are only exemplary descriptions and should not be regarded as a limitation on the protection scope of this application. For example, in addition to the control box, the ambient light control device 101 can also be a control chip, a control circuit, etc.; the ambient light 102 can be an LED light strip or other types of ambient lights; the microphone 103 can be an in-vehicle microphone in a vehicle. For example, the microphone equipped with the in-vehicle intelligent voice assistant; it can also be other microphones electrically connected to the in-vehicle unit or connected to a wireless communication network. Among them, the wireless communication network between the in-vehicle unit and the microphone can be a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network, or a near field communication (NFC) network, etc.
[0053] In the related art, the in-vehicle ambient light is only equipped with an integrated microphone, and the light can be turned on or off according to the user's voice. It can be understood that the interaction between such an ambient light and the user is weak, and it only has the function of turning on or off the light, with a single function and cannot meet the requirements of users for vehicle intelligence.
[0054] In view of the above problems, the embodiments of this application provide an ambient light control method, device, electronic device, and storage medium. When the user speaks, the in-vehicle ambient light adjusts the color and brightness of the light according to the semantics and loudness corresponding to the user's voice information, personifies the vehicle, improves the intelligence level of the in-vehicle ambient light, enhances the interaction between the vehicle and the user, and improves the user experience. It will be described in detail below.
[0055] See Figure 2 , which is a schematic flowchart of an ambient light control method provided by the embodiments of this application. This method can be applied to Figure 1 the application scenario shown in Figure 2 as shown, and it mainly includes the following steps.
[0056] Step S201: Collect user voice information.
[0057] When the user starts the in-vehicle unit, the ambient light control device starts, and at the same time, the ambient light is turned on. In the embodiments of this application, if the user does not set the initial color of the ambient light, the initial color of the ambient light is purple. In a possible implementation, the ambient light is connected to the in-vehicle intelligent voice assistant, and the user can adjust the initial color of the ambient light through the in-vehicle intelligent voice assistant. For example, the user can say to the in-vehicle intelligent voice assistant "Adjust the initial color of the ambient light to green", so as to adjust the initial color of the ambient light to green.
[0058] When the user talks to the in-vehicle intelligent voice assistant, the microphone collects the user's voice information. Exemplarily, the user wakes up the in-vehicle intelligent voice assistant by calling its name, and then outputs a control instruction or other voice information to the in-vehicle device through voice.
[0059] Step S202: Analyze the user's voice information to obtain the semantics and loudness corresponding to the user's voice information.
[0060] Specifically, after the microphone collects the user's voice information, it sends the user's voice information to the ambient light control device. The ambient light control device analyzes the user's voice information to obtain the semantics and loudness corresponding to the user's voice information. Among them, the semantics corresponding to the user's voice information is used to represent the operation the user wants to perform and the user's current emotion; the loudness corresponding to the user's voice information is used to represent the size of the user's voice in the user's voice information and whether the user is speaking. It can be understood that when the user pauses while speaking, the loudness corresponding to the user's voice information is smaller or even zero; when the user speaks louder, the loudness corresponding to the user's voice information is larger.
[0061] Step S203: Adjust the light color of the ambient light according to the semantics corresponding to the user's voice information.
[0062] Specifically, according to the semantics corresponding to the user's voice information, analyze and obtain the user's emotion type, and adjust the light color of the ambient light according to the user's emotion type.
[0063] The user's voice information is what the user says to the in-vehicle intelligent voice assistant. By analyzing the semantics of the user's voice information, the user's current emotion can be obtained. Exemplarily, if the user says to the in-vehicle intelligent voice assistant "Take you out for a drive today", by analyzing the semantics of this user's voice information, it can be obtained that the user's current emotion is pleasant; similarly, if the user says to the in-vehicle intelligent voice assistant "Play a sad song", by analyzing the semantics of this user's voice information, it can be obtained that the user's current emotion is sad.
[0064] In a possible implementation, the user emotion types are divided into two categories, namely the first emotion type and the second emotion type. In the embodiments of the present application, the first emotion type indicates that the user is in a good mood. Exemplarily, according to the semantics corresponding to the user voice information "Navigate to the nearest scenic spot", it can be analyzed that the user is in a good mood, that is, the user emotion type is the first emotion type; similarly, according to the semantics corresponding to the user voice information "Take you out for a drive today", it can be analyzed that the user is in a good mood, that is, the user emotion type is the first emotion type; similarly, according to the semantics corresponding to the user voice information "Play a high-energy song", it can be analyzed that the user is in a good mood, that is, the user emotion type is the first emotion type. The second emotion type indicates that the user is in a low mood. Exemplarily, according to the user voice information "I'm in a bad mood. Tell me a joke", it can be analyzed that the user is in a bad mood, that is, the user emotion type is the second emotion type; similarly, according to the user voice information "Play a sad song", it can be analyzed that the user is in a bad mood, that is, the user emotion type is the second emotion type. Of course, those skilled in the art can set the user emotion represented by the first emotion type as the user being in a bad mood and the user emotion represented by the second emotion type as the user being in a good mood according to actual needs. The embodiments of the present application do not limit this.
[0065] In the embodiments of the present application, there is a corresponding mapping relationship between the user emotion type and the light color of the ambient light. After obtaining the user emotion type, the corresponding light color is found according to the mapping relationship between the emotion type and the light color of the ambient light, so as to adjust the light color of the ambient light to the corresponding color. If the user emotion type is the first emotion type, the light color of the ambient light is adjusted to a warm color; if the user emotion type is the second emotion type, the light color of the ambient light is adjusted to a cold color. Exemplarily, as shown in Table 1, it is a mapping relationship table between the user emotion type and the light color of the ambient light. According to the semantics corresponding to the user voice information "Take you out for a drive today", it can be analyzed that the user is in a good mood, that is, the user emotion type is the first emotion type. By looking up Table 1, it can be obtained that the light color of the ambient light corresponding to the first emotion type is a warm color, so as to adjust the light color of the ambient light to a warm color; according to the user voice information "I'm in a bad mood. Tell me a joke", it can be analyzed that the user is in a bad mood, that is, the user emotion type is the second emotion type. By looking up Table 1, it can be obtained that the light color of the ambient light corresponding to the second emotion type is a cold color, so as to adjust the light color of the ambient light to a cold color. Of course, those skilled in the art can set the light color of the ambient light corresponding to the first emotion type as a cold color and the light color of the ambient light corresponding to the second emotion type as a warm color according to actual needs.
[0066] Table 1:
[0067] User emotion type Light color of the atmosphere light First emotion type Warm color Second emotion type Cool color
[0068] In a possible implementation, the emotions of a user are divided into multiple levels. Therefore, each emotion type is further divided into multiple levels, and there is a corresponding mapping relationship between each user emotion level and the depth of the light color. As shown in Table 2, it is a mapping table of the emotion levels of the first emotion type and the depth of the light color of the corresponding atmosphere light. If the user emotion type is the first emotion type of the first level, the light color of the atmosphere light is adjusted to the warm color corresponding to the first level. Among them, the level of the first emotion type is related to the depth of the light color. In the embodiments of the present application, the first level is lower than the second level, and so on, increasing gradually. The higher the emotion level in the first emotion type, the deeper the light color of the atmosphere light, indicating that the user is in a better mood. Exemplarily, as described above, if the user voice message is "Navigate to the nearest scenic spot", by analyzing the semantics of the voice message, it can be determined that the user emotion is the first emotion type of the first level. By referring to Table 2, it can be obtained that the light color of the atmosphere light corresponding to the first emotion type of the first level is the warm color of the first depth. At this time, the light color of the atmosphere light is the warm color of the first depth; if the user voice message is "Take you out for a drive today", by analyzing the semantics of the voice message, it can be determined that the user emotion is the first emotion type of the second level. By referring to Table 2, it can be obtained that the light color of the atmosphere light corresponding to the first emotion type of the second level is the warm color of the second depth. At this time, the light color of the atmosphere light is the warm color of the second depth; if the user voice message is "Play a high-energy song", by analyzing the semantics of the voice message, it can be determined that the user emotion is the first emotion type of the third level. By referring to Table 2, it can be obtained that the light color of the atmosphere light corresponding to the first emotion type of the third level is the warm color of the third depth. At this time, the light color of the atmosphere light is the warm color of the third depth. Of course, those skilled in the art can set the emotion levels in each emotion type to other levels according to actual needs, and the embodiments of the present application do not limit this.
[0069] Table 2:
[0070] Emotion level Light color of the atmosphere light First level Warm color of the first depth Second level Warm color of the second depth Third level Warm color of the third depth
[0071] As shown in Table 3, it is a mapping table of the emotion levels of the second emotion type and the light color depth of the corresponding ambient light. If the user's emotion type is the second emotion type of the second level, the light color of the ambient light is adjusted to the cold color corresponding to the second level, where the level of the second emotion type is related to the depth of the light color. In the embodiments of the present application, the second emotion type is also divided into multiple levels, with the first level lower than the second level, and so on incrementally. The higher the emotion level in the second emotion type, the darker the light color of the ambient light, indicating that the user is in a worse mood. Exemplarily, as described above, if the user's voice message is "I'm in a bad mood. Tell me a joke", by analyzing the semantics of this voice message, it can be determined that the user's emotion is the second emotion type of the first level. By referring to Table 3, it can be obtained that the light color of the ambient light corresponding to the second emotion type of the first level is the cold color of the first depth. At this time, the light color of the ambient light is the cold color of the first depth; if the user's voice message is "Play a sad song", by analyzing the semantics of this voice message, it can be determined that the user's emotion is the second emotion type of the second level. By referring to Table 3, it can be obtained that the light color of the ambient light corresponding to the second emotion type of the second level is the cold color of the second depth. At this time, the light color of the ambient light is the cold color of the second depth. Of course, those skilled in the art can set the emotion levels in each emotion type to other levels according to actual needs, and the embodiments of the present application do not limit this. It should be noted that "the first level", "the second level" and "the third level" are only exemplary descriptions, and the meanings represented by each level are different in different emotion types. It can be understood that "the first emotion type of the first level" has no relation with "the second emotion type of the first level".
[0072] Table 3:
[0073] Emotion level Light color of the atmosphere light First level Cool color of the first depth Second level Cool color of the second depth
[0074] Step S204: Adjust the light brightness of the ambient light according to the loudness corresponding to the user's voice message.
[0075] Specifically, if the loudness corresponding to the user's voice message is greater than or equal to the preset loudness threshold, the light brightness of the ambient light is adjusted to the first brightness; if the loudness corresponding to the user's voice message is less than the loudness threshold, the light brightness of the ambient light is adjusted to the second brightness, where the first brightness is greater than the second brightness.
[0076] In the embodiment of the present application, when the loudness corresponding to the user's voice information is greater than or equal to the preset loudness threshold, it indicates that the user is having a conversation with the in-vehicle intelligent voice assistant. At this time, the brightness of the ambient light is adjusted to the first brightness. The preset loudness threshold is used to characterize that the user is having a conversation with the in-vehicle intelligent voice assistant. The first brightness is the brightness most suitable for the human eye, for example, 500 - 1000 lux. If the loudness corresponding to the user's voice information is less than the loudness threshold, it indicates that the user is not speaking at this time. At this time, the brightness of the ambient light is adjusted to the second brightness. The second brightness is less than the first brightness. It can be understood that when the user is speaking to the in-vehicle intelligent voice assistant, the brightness of the ambient light is relatively high, and when the user is not speaking, the brightness of the ambient light is relatively low, so that the user can feel that the in-vehicle intelligent voice assistant is listening to the user. Of course, those skilled in the art can set other corresponding relationships between the brightness of the ambient light and the loudness corresponding to the user's voice information according to actual needs. For example, when the loudness corresponding to the user's voice information is greater than or equal to the preset loudness threshold, the brightness of the ambient light is adjusted to a relatively dim brightness, and when the loudness corresponding to the user's voice information is less than the loudness threshold, the brightness of the ambient light is adjusted to a relatively bright brightness. The embodiment of the present application does not limit this.
[0077] In summary, when the user is speaking, the in-vehicle ambient light adjusts the color and brightness of the light according to the semantics and loudness corresponding to the user's voice information. By anthropomorphizing the car, the intelligent level of the in-vehicle ambient light is improved, the interaction between the car and the user is enhanced, and the user experience is improved.
[0078] In order to improve the user experience and enable the user to feel the interaction between the car and the user, after the ambient light control device analyzes the semantics corresponding to the user's voice information, according to the semantics corresponding to the user's voice information, a response voice information is generated and output, thereby enhancing the interaction between the car and the user and improving the user experience.
[0079] See Figure 3 , which is a schematic flowchart of another method for controlling the ambient light provided by the embodiment of the present application. As Figure 3 shown, on the basis of the embodiment shown in Figure 2 , this method further includes the following steps.
[0080] Step S301: Generate a response voice information according to the semantics corresponding to the user's voice information.
[0081] In a possible implementation manner, the ambient light control device is also electrically connected to a speaker. The speaker can be an in-vehicle speaker in the car, or other speakers electrically connected to the in-vehicle computer or connected to the wireless communication network. Specifically, the ambient light control device generates a corresponding response voice information according to the semantics corresponding to the user's voice information, and outputs the response voice information through the speaker.
[0082] Exemplarily, according to the semantics corresponding to the user voice information "Navigate to the nearest scenic spot", generate and output the response voice information "The nearest scenic spot has been searched for you. Please select a route"; similarly, according to the semantics corresponding to the user voice information "Take you for a drive today", generate and output the response voice information "Okay"; similarly, according to the semantics corresponding to the user voice information "Play a high-energy song", generate and output the response voice information "Okay"; similarly, according to the semantics corresponding to the user voice information "I'm in a bad mood. Tell a joke", generate and output the response voice information "Once upon a time, there was a tiger chasing a deer on the road! The deer was so frightened that it ran faster and faster, and finally it became an expressway"; similarly, according to the semantics corresponding to the user voice information "Play a sad song", generate and output the response voice information "If one day you are tired from struggling, remember to turn around, and I will be by your side".
[0083] Step S302: Adjust the light color of the ambient light according to the semantics corresponding to the response voice information.
[0084] In a possible implementation manner, adjust the light color of the ambient light according to the semantics corresponding to the response voice information. Exemplarily, according to the semantics corresponding to the response voice information "Once upon a time, there was a tiger chasing a deer on the road! The deer was so frightened that it ran faster and faster, and finally it became an expressway", it is determined that the user is in a relatively low mood at this time. In order to make the user feel comfortable, adjust the light color of the ambient light to a warm color; according to the semantics corresponding to the response voice information "If one day you are tired from struggling, remember to turn around, and I will be by your side", it is determined that the user is in a low mood at this time. In order to make the user feel warm, adjust the light color of the ambient light to a warm color, for example, pink or orange.
[0085] In a possible implementation manner, the user's mood at this time cannot be judged only by the semantics corresponding to the response voice information. At this time, adjusting the light color of the ambient light also needs to refer to the semantics corresponding to the corresponding user voice information, that is, adjust the light color of the ambient light through the Q&A information between the user and the in-vehicle computer. Exemplarily, according to the semantics corresponding to the user voice information "Navigate to the nearest scenic spot" and the response voice information "The nearest scenic spot has been searched for you. Please select a route", it is determined that the user is in a good mood at this time. Therefore, adjust the light color of the ambient light to the first depth of warm color; similarly, according to the semantics corresponding to the user voice information "Take you for a drive today" and the response voice information "Okay", it is determined that the user is in a happy mood at this time. Therefore, adjust the light color of the ambient light to the second depth of warm color; similarly, according to the user voice information "Play a high-energy song" and the response voice information "Okay", it is determined that the user is in a very good mood at this time. Therefore, adjust the light color of the ambient light to the third depth of warm color.
[0086] Step S303: Adjust the light brightness of the ambient light according to the loudness corresponding to the response voice information.
[0087] Specifically, if the loudness corresponding to the response voice message is greater than or equal to a preset loudness threshold, the light brightness of the ambient light is adjusted to a first brightness; if the loudness corresponding to the response voice message is less than the loudness threshold, the light brightness of the ambient light is adjusted to a second brightness, where the preset loudness threshold is used to characterize whether the speaker outputs sound, and the first brightness is greater than the second brightness.
[0088] To enable the user to feel the intelligence of the vehicle, when the speaker outputs sound, the light brightness of the ambient light is adjusted to the first brightness, that is, a relatively bright brightness; when the speaker does not output sound, the light brightness of the ambient light is adjusted to the second brightness, that is, a relatively dim brightness. Thus, when the user hears the in-vehicle computer's response, they can see the change in the light, and through the visual and auditory sensations, the in-vehicle computer shows corresponding emotions while answering the user's questions. Of course, those skilled in the art can set other corresponding relationships between the light brightness of the ambient light and the loudness of the response voice message according to actual needs. For example, when the loudness corresponding to the response voice message is greater than or equal to the preset loudness threshold, the light brightness of the ambient light is adjusted to a relatively dim brightness, and when the loudness corresponding to the response voice message is less than the loudness threshold, the light brightness of the ambient light is adjusted to a relatively bright brightness. The embodiments of the present application do not limit this.
[0089] In summary, according to the semantics of the user voice message, a response voice message is generated and output. While outputting the response voice message, the light color of the ambient light is adjusted according to the semantics of the response voice message, and the light brightness of the ambient light is adjusted according to the loudness of the response voice message. Through this solution, the intelligence of the ambient light is improved, enabling the user to feel that the ambient light is a "human-like" carrier and enhancing the user's comfort.
[0090] Corresponding to the above embodiments, the present application also provides an ambient light control device.
[0091] See Figure 4 , which is a schematic structural diagram of an ambient light control device provided by an embodiment of the present application. As Figure 4 shown, the ambient light control device may include: a user voice information acquisition module 401, an analysis module 402, a light color adjustment module 403, and a light brightness adjustment module 404. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the control device shown in the figure does not constitute a limitation on the embodiments of the present invention. It can be a bus structure, a star structure, and may also include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0092] Among them, the user voice information acquisition module 401 is used to acquire user voice information.
[0093] The analysis module 402 is configured to analyze the user voice information to obtain the semantics and loudness corresponding to the user voice information.
[0094] The lighting color adjustment module 403 is configured to adjust the lighting color of the ambient light according to the semantics corresponding to the user voice information.
[0095] The lighting brightness adjustment module 404 is configured to adjust the lighting brightness of the ambient light according to the loudness corresponding to the user voice information.
[0096] Corresponding to the above embodiments, the present application also provides an electronic device.
[0097] See Figure 5 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 5 shown, the electronic device 500 may include: a processor 501, a memory 502, and a communication unit 503. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure, a star structure, and may also include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0098] Among them, the communication unit 503 is configured to establish a communication channel, so that the electronic device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
[0099] The processor 501 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and lines. By running or executing software programs, instructions, and / or modules stored in the memory 502, and by calling data stored in the memory, to perform various functions of the electronic device and / or process data. The processor may be composed of an integrated circuit (IC). For example, it may be composed of a single packaged IC, or may be composed of connecting multiple packaged ICs with the same or different functions. For example, the processor 501 may only include a central processing unit (CPU). In the embodiment of the present application, the CPU may be a single operation core or may include multiple operation cores.
[0100] The memory 502 is used to store the execution instructions of the processor 501. The memory 502 can 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, magnetic disk or optical disc.
[0101] When the execution instructions in the memory 502 are executed by the processor 501, the electronic device 500 can be enabled to execute Figure 1 Some or all of the steps in the illustrated embodiments.
[0102] In a specific implementation, an embodiment of the present application further provides a computer storage medium. The computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the embodiments of the simulation scenario generation method provided in the embodiments of the present application. The storage medium can be a magnetic disk, an optical disc, a read-only memory (ROM), a random access memory (RAM), or the like.
[0103] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent the cases of A existing alone, A and B existing simultaneously, and B existing alone. Where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one of the following" and its similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple.
[0104] Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such an implementation should not be considered to exceed the scope of the present application.
[0105] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
[0106] In several embodiments provided by the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0107] For the same or similar parts among the various embodiments in this specification, reference can be made to each other. In particular, for the device embodiments and the terminal embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the descriptions in the method embodiments for the relevant parts.
Claims
1. A method for controlling an ambient light, characterized in that, it includes: Collecting user voice information; Analyzing the user voice information to obtain the semantics and loudness corresponding to the user voice information; Adjusting the light color of the ambient light according to the semantics corresponding to the user voice information; Adjusting the light brightness of the ambient light according to the loudness corresponding to the user voice information.
2. The method according to claim 1, characterized in that, the adjusting the light color of the ambient light according to the semantics corresponding to the user voice information includes: Obtaining the user emotion type according to the semantics corresponding to the user voice information; Adjusting the light color of the ambient light according to the user emotion type.
3. The method according to claim 2, characterized in that, the adjusting the light color of the ambient light according to the user emotion type includes: If the user emotion type is the first emotion type, adjusting the light color of the ambient light to a warm color; If the user emotion type is the second emotion type, adjusting the light color of the ambient light to a cold color.
4. The method according to claim 3, characterized in that, the if the user emotion type is the first emotion type, adjusting the light color of the ambient light to a warm color includes: If the user emotion type is the first emotion type of the first level, adjusting the light color of the ambient light to the warm color corresponding to the first level, wherein the level of the first emotion type is related to the depth of the light color.
5. The method according to claim 3, characterized in that, the if the user emotion type is the second emotion type, adjusting the light color of the ambient light to a cold color includes: If the user emotion type is the second emotion type of the second level, adjusting the light color of the ambient light to the cold color corresponding to the second level, wherein the level of the second emotion type is related to the depth of the light color.
6. The method according to claim 1, characterized in that, the adjusting the light brightness of the ambient light according to the loudness corresponding to the user voice information includes: If the loudness corresponding to the user voice information is greater than or equal to a preset loudness threshold, adjusting the light brightness of the ambient light to a first brightness; If the loudness corresponding to the user voice information is less than the loudness threshold, adjusting the light brightness of the ambient light to a second brightness; wherein, the first brightness is greater than the second brightness.
7. The method according to claim 1, characterized in that, the method further includes: Generating response voice information according to the semantics corresponding to the user voice information; Adjusting the light color of the ambient light according to the semantics corresponding to the response voice information; Adjusting the light brightness of the ambient light according to the loudness corresponding to the response voice information.
8. An ambient light control device, characterized in that, it includes: A user voice information collection module for collecting user voice information; An analysis module for analyzing the user voice information to obtain the semantics and loudness corresponding to the user voice information; A light color adjustment module for adjusting the light color of the ambient light according to the semantics corresponding to the user voice information; A lighting brightness adjustment module, configured to adjust the lighting brightness of the ambient light according to the loudness corresponding to the user voice information.
9. An electronic device, characterized in that, comprising: a processor; a memory; and a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, when the instructions are executed by the processor, causing the electronic device to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, the computer-readable storage medium includes a stored program, wherein, when the program runs, it controls the device where the computer-readable storage medium is located to execute the method according to any one of claims 1 to 7.