CN112988106A - Volume indicating method, head-mounted device and computer readable storage medium - Google Patents

Volume indicating method, head-mounted device and computer readable storage medium Download PDF

Info

Publication number
CN112988106A
CN112988106A CN202110403261.8A CN202110403261A CN112988106A CN 112988106 A CN112988106 A CN 112988106A CN 202110403261 A CN202110403261 A CN 202110403261A CN 112988106 A CN112988106 A CN 112988106A
Authority
CN
China
Prior art keywords
head
volume
mounted device
information
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110403261.8A
Other languages
Chinese (zh)
Inventor
潘丰繁
莫显凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN202110403261.8A priority Critical patent/CN112988106A/en
Publication of CN112988106A publication Critical patent/CN112988106A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a volume indicating method, a head-mounted device and a computer readable storage medium, wherein the volume indicating method comprises the following steps: when the head-mounted equipment is awakened, acquiring the current volume information of the head-mounted equipment; and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the current volume information. The invention can solve the problem of poor user experience.

Description

Volume indicating method, head-mounted device and computer readable storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a volume indicating method, a head-mounted device, and a computer-readable storage medium.
Background
At present, many head-mounted devices do not have a volume prompt function, and can not visually display the current volume of the head-mounted device, and if the current volume of the head-mounted device is too large and a user does not find the volume before wearing the head-mounted device, the too large volume can cause certain damage to the hearing of the user, so that the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a volume indicating method, a head-mounted device and a computer readable storage medium, and solves the problem of poor user experience.
In order to achieve the above object, the present invention provides a method for indicating a volume of a head-mounted device, including:
when the head-mounted equipment is awakened, acquiring the current volume information of the head-mounted equipment;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the current volume information.
Optionally, the volume indicator light is multiple, and the lighting parameters include at least one of:
the color of the volume indicator light;
the brightness of the volume indicator light;
the flashing frequency of the volume indicator light;
identification information of the volume indicator light.
Optionally, the step of lighting a volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information includes:
determining a volume interval corresponding to the current volume information according to the current volume information;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the volume interval.
Optionally, the step of acquiring the current volume information of the head-mounted device includes:
acquiring gain information in a volume control register of the head-mounted equipment;
determining the output voltage of an audio power amplifier module of the head-mounted equipment according to the gain information;
and determining the current volume information of the head-mounted equipment according to the output voltage.
Optionally, the step of acquiring current volume information of the head-mounted device when the head-mounted device is awakened includes:
after the head-mounted equipment is awakened, acquiring the state of the head-mounted equipment;
and when the head-mounted equipment is not in a wearing state, acquiring the current volume information of the head-mounted equipment.
Optionally, after the step of lighting the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information, the step of lighting the volume indicator lamp in the head-mounted device includes:
acquiring the duration of the head-mounted equipment in an unworn state;
and when the duration is longer than the preset duration, turning off the volume indicator lamp and controlling the head-mounted equipment to enter a dormant state.
Optionally, after the step of lighting the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information, the step of lighting the volume indicator lamp in the head-mounted device includes:
when volume adjustment operation of a user is detected, target volume information is obtained according to the volume adjustment operation;
and adjusting the current volume information of the head-mounted equipment to the target volume information, and executing the step of lighting a volume indicator lamp in the head-mounted equipment according to the lighting parameters corresponding to the current volume information.
Optionally, after the step of lighting the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information, the step of lighting the volume indicator lamp in the head-mounted device includes:
and when the head-mounted equipment is in a wearing state, the volume indicator lamp is turned off.
In addition, in order to achieve the above object, the present invention further provides a head-mounted device, where the head-mounted device includes a volume indicator, a memory, a processor, and a volume indicator program of the head-mounted device stored in the memory and executable on the processor, and the volume indicator program of the head-mounted device, when executed by the processor, implements the steps of the volume indicating method of the head-mounted device according to any one of the above items.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which a volume indicating program of a head-mounted device is stored, wherein the volume indicating program of the head-mounted device, when executed by a processor, implements the steps of the volume indicating method of the head-mounted device according to any one of the above items.
The invention provides a volume indicating method, a head-mounted device and a computer readable storage medium. Like this, this scheme sets up the volume indicator on the head-mounted device, the head-mounted device can automated inspection head-mounted device current volume information when awakening up, and through the audio-visual current volume information that shows head-mounted device of the parameter of lighting of volume indicator, the user can know and adjust head-mounted device's current volume information according to the state of volume indicator, the drawback of user's impaired hearing because of not knowing head-mounted device's current volume information has effectively been avoided, user experience has been improved, the problem that user experience is poor has been solved.
Drawings
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a hardware architecture of a head-mounted device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a volume indicating method for a head-mounted device according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a volume indicating method for a head-mounted device according to the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a volume indicating method for a head-mounted device according to the present invention;
fig. 5 is a flowchart illustrating a fourth embodiment of a volume indicating method for a head-mounted device according to the present invention;
fig. 6 is a schematic flow chart illustrating a fifth embodiment of a volume indicating method for a head-mounted device according to the present invention;
fig. 7 is a first schematic diagram of a volume indicator lamp according to an embodiment of the present invention;
fig. 8 is a second schematic diagram of a volume indicator lamp according to an embodiment of the present invention;
fig. 9 is a third schematic diagram of a volume indicator lamp according to an embodiment of the present invention;
fig. 10 is a fourth schematic diagram of a volume indicator lamp according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the head-mounted equipment is awakened, acquiring the current volume information of the head-mounted equipment; and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the current volume information. Like this, this scheme sets up the volume indicator on the head-mounted device, the head-mounted device can automated inspection head-mounted device current volume information when awakening up, and through the audio-visual current volume information that shows head-mounted device of the parameter of lighting of volume indicator, the user can know and adjust head-mounted device's current volume information according to the state of volume indicator, the drawback of user's impaired hearing because of not knowing head-mounted device's current volume information has effectively been avoided, user experience has been improved, the problem that user experience is poor has been solved.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
For better understanding of the above technical solutions, the following detailed descriptions will be provided in conjunction with the drawings and the detailed description of the embodiments.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a head-mounted device according to an embodiment of the present invention.
As shown in fig. 1, the head-mounted device may include: a processor 1001, such as a CPU, a network interface 1004, a volume indicator 1003, a memory 1005, and a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a non-volatile memory), such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the head-mounted device shown in FIG. 1 does not constitute a limitation of the head-mounted device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein a volume indication program of an operating system and a head-mounted device.
In the head mounted device shown in fig. 1, the processor 1001 may be configured to call a volume indication program of the head mounted device stored in the memory 1005, and perform the following operations:
when the head-mounted equipment is awakened, acquiring the current volume information of the head-mounted equipment;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the current volume information.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
determining a volume interval corresponding to the current volume information according to the current volume information;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the volume interval.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
acquiring gain information in a volume control register of the head-mounted equipment;
determining the output voltage of an audio power amplifier module of the head-mounted equipment according to the gain information;
and determining the current volume information of the head-mounted equipment according to the output voltage.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
after the head-mounted equipment is awakened, acquiring the state of the head-mounted equipment;
and when the head-mounted equipment is not in a wearing state, acquiring the current volume information of the head-mounted equipment.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
acquiring the duration of the head-mounted equipment in an unworn state;
and when the duration is longer than the preset duration, turning off the volume indicator lamp and controlling the head-mounted equipment to enter a dormant state.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
when volume adjustment operation of a user is detected, target volume information is obtained according to the volume adjustment operation;
and adjusting the current volume information of the head-mounted equipment to the target volume information, and executing the step of lighting a volume indicator lamp in the head-mounted equipment according to the lighting parameters corresponding to the current volume information.
Further, the processor 1001 may call a volume indication program of the head-mounted device stored in the memory 1005, and also perform the following operations:
and when the head-mounted equipment is in a wearing state, the volume indicator lamp is turned off.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a volume indicating method for a head-mounted device according to the present invention, where the volume indicating method for the head-mounted device includes the following steps:
step S10, when the head-mounted device is awakened, acquiring the current volume information of the head-mounted device;
in this embodiment, the volume indication method of the head-mounted device of the present invention may be applied to head-mounted devices, such as an earphone, a vr (augmented reality) device, an ar (visual reality) device, and an electronic device with a wearing detection scene and a speaker, such as smart glasses.
At present, many head-mounted devices do not have the function of volume indication, namely, the size of the current volume of the equipment can not be embodied visually by the head-mounted devices, only when the user wears the head-mounted devices, after the audio is played, the user can perceive the size of the current volume of the equipment, and the user can not know the size of the current volume of the head-mounted devices before wearing the head-mounted devices, under the condition, the current volume of the head-mounted devices is large, when the user wears the head-mounted devices to play the audio, the head-mounted devices play the audio according to the current volume, the large current volume can generate certain damage to the hearing of the user, and the user experience is reduced.
In order to solve the above problems, according to the volume indication method of the head-mounted device provided by the invention, the indication lamp module is added on the basis of the original hardware structure of the head-mounted device and is used for indicating the current volume of the head-mounted device, before a user wears the head-mounted device, the head-mounted device can automatically detect the current volume, the current volume of the head-mounted device is visually embodied through the indication lamp, the user can know the current volume of the head-mounted device through the indication state of the indication lamp, and then when the current volume of the head-mounted device is larger, the user can adjust the volume of the head-mounted device to a proper size and then wear the head-mounted device, so that hearing is prevented from being damaged due to the overhigh current volume of the head-mounted device.
In this embodiment, the headset is awakened, which means that the headset is turned on and can normally work, and specifically, the headset is awakened when a user picks up the headset, or, for a headset with a charging box, such as a wireless bluetooth headset, the charging box is awakened when turned on, where the headset is awakened to have two states, one of which is that the headset is turned on but is not worn, and at this time, an audio power amplifier module of the headset is turned off; the other is that the head-mounted device is opened but in a wearing state, and at the moment, an audio power amplifier module of the head-mounted device is opened. The audio power amplifier module is a component used for playing audio in the head-mounted equipment. The current volume information is volume information when the head mounted device is awakened, for example, a volume value when the head mounted device is awakened. In this embodiment, when the head-mounted device is awakened, the current volume information of the head-mounted device is obtained.
Specifically, when it is determined that the head mounted device is woken up, the head mounted device automatically acquires current volume information of the head mounted device.
Step S20, lighting a volume indicator in the head-mounted device according to the lighting parameter corresponding to the current volume information.
In this embodiment, the volume indicator is an indicator arranged in the head-mounted device and used for indicating the volume of the head-mounted device, and may be an LED lamp, and the volume indicator may be an LED lamp capable of emitting multiple colors, for example, a three-color lamp capable of emitting three colors of red, green, and blue, or a single-color lamp capable of emitting only one color; the lighting parameters are control parameters for lighting the volume indicator lamps, the volume indicator lamps are lighted according to the lighting parameters, wherein the lighting parameters comprise at least one of color of the volume indicator lamps, brightness of the volume indicator lamps, flashing frequency of the volume indicator lamps and identification information of the volume indicator lamps, the head-mounted device lights the volume indicator lamps according to the lighting parameters, for example, the head-mounted device lights the volume indicator lamps according to the color, the brightness or the flashing frequency of the volume indicator lamps, when the volume indicator lamps are multiple, each volume indicator lamp corresponds to identification information, and the head-mounted device lights the volume indicator lamps corresponding to the identification information according to the identification information of the volume indicator lamps. After the head-mounted device acquires the current volume information, the volume indicator lamp in the head-mounted device is lightened according to the lightening parameter corresponding to the current volume information.
In an optional implementation manner, referring to fig. 7, fig. 7 is a first schematic diagram of a volume indicator implementation according to an embodiment of the present invention, as shown in fig. 7, the volume indicator is a three-color lamp, the lighting parameter is a color of the volume indicator, the volume indicator can emit three colors, namely red (R), green (G), and blue (B), the volume indicator is connected to three GPIO ports of a Micro Controller Unit (MCU), each GPIO port controls the volume indicator to be lit in a color corresponding to the GPIO port, and the red, green, and blue colors of the volume indicator respectively correspond to three types of current volume information, namely high, medium, and low, of the MCU. After the head-mounted device acquires the current volume information, the color of the volume indicating lamp corresponding to the current volume information is determined according to the current volume information, and then the volume indicating lamp is lightened according to the GPIO port corresponding to the color. Specifically, if the current volume information is high volume, determining that the color of a volume indicator lamp corresponding to the current volume information is red, and lighting the volume indicator lamp according to a GPIO port corresponding to the red; if the current volume information is the middle volume, determining that the color of the volume indicating lamp corresponding to the current volume information is green, and lighting the volume indicating lamp according to the GPIO port corresponding to the green; and if the current volume information is low volume, determining that the color of the volume indicating lamp corresponding to the current volume information is blue, and lighting the volume indicating lamp according to the GPIO port corresponding to the blue.
In another optional implementation, referring to fig. 8, fig. 8 is a second schematic diagram of implementation of a volume indicator according to an embodiment of the present invention, as shown in fig. 8, the volume indicator is a monochromatic light, the lighting parameter is the brightness of the volume indicator, the volume indicator is connected to a GPIO port of a micro control unit of a headset, volume information with different volume sizes corresponds to different brightness of the volume indicator, and generally speaking, the higher the volume is, the higher the brightness of the volume indicator is; the lower the volume, the lower the brightness of the volume indicator light. The GPIO port can control the volume indicator lamp to light up at different brightness. After the current volume information of the head-mounted device is acquired, the brightness corresponding to the current volume information is determined, and the volume indicator lamp is turned on according to the brightness corresponding to the current volume information. Specifically, if the volume of the current volume information is higher, the brightness corresponding to the current volume information is higher, that is, the lighted volume indicator lamp is brighter; if the volume of the current volume information is lower, the brightness corresponding to the current volume information is lower, namely, the lighted volume indicator lamp is darker.
In another optional implementation, referring to fig. 9, fig. 9 is a third schematic diagram of implementation of a volume indicator light according to an embodiment of the present invention, as shown in fig. 9, the volume indicator light is a monochromatic light, a lighting parameter is a flashing frequency of the volume indicator light, the volume indicator light is connected to a GPIO port of a micro control unit of a headset, volume information with different volume sizes corresponds to different flashing frequencies of the volume indicator light, and generally speaking, the higher the volume is, the faster the flashing frequency of the volume indicator light is; the lower the volume, the slower the frequency of flashing of the volume indicator light. The GPIO port can control the volume indicator lamp to light at different flashing frequencies. After the current volume information of the head-mounted device is acquired, the flicker frequency corresponding to the current volume information is determined, and the volume indicator lamp is turned on according to the flicker frequency corresponding to the current volume information. Specifically, if the volume of the current volume information is higher, the flashing frequency corresponding to the current volume information is faster, that is, the flashing frequency of the lighted volume indicator lamp is faster; if the volume of the current volume information is lower, the flicker frequency corresponding to the current volume information is lower, namely the flicker frequency of the lighted volume indicator lamp is lower.
In another alternative implementation, referring to fig. 10, fig. 10 is a fourth schematic diagram of implementation of volume indicating lamps according to an embodiment of the present invention, as shown in fig. 10, the volume indicating lamps are three monochromatic lamps, the lighting parameter is identification information of the volume indicating lamps, the identification information of the three volume indicating lamps is LED1, LED2, and LED3, and the identification information of the three volume indicating lamps corresponds to three types of current volume information of the head-mounted device, namely high, medium, and low. The three volume indicating lamps are connected with three GPIO ports of a micro control unit of the head-mounted device, and each GPIO port controls the illumination of the volume indicating lamp corresponding to the identification information. After the current volume information of the head-mounted device is acquired, the identification information corresponding to the current volume information is determined, and the volume indicator lamp corresponding to the identification information is lightened according to the identification information corresponding to the current volume information. Specifically, if the current volume information is high volume, it is determined that the identification information corresponding to the current volume information is LED1, and the volume indicator LED1 is turned on according to the GPIO port corresponding to the LED 1; if the current volume information is the middle volume, determining that the identification information corresponding to the current volume information is the LED2, and lighting a volume indicator LED2 according to the GPIO port corresponding to the LED 2; if the current volume information is low volume, the identification information corresponding to the current volume information is determined to be the LED3, and the volume indicator LED3 is lightened according to the GPIO port corresponding to the LED 3.
In the technical scheme provided by this embodiment, when the head-mounted device is awakened, the current volume information of the head-mounted device is acquired, and the volume indicator lamp in the head-mounted device is turned on according to the lighting parameter corresponding to the current volume information. Like this, this scheme sets up the volume indicator on the head-mounted device, the head-mounted device can automated inspection head-mounted device current volume information when awakening up, and through the audio-visual current volume information that shows head-mounted device of the parameter of lighting of volume indicator, the user can know and adjust head-mounted device's current volume information according to the state of volume indicator, the drawback of user's impaired hearing because of not knowing head-mounted device's current volume information has effectively been avoided, user experience has been improved, the problem that user experience is poor has been solved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a volume indicating method for a head-mounted device according to the present invention, where based on the first embodiment, the step of S20 includes:
step S21, determining a volume interval corresponding to the current volume information according to the current volume information;
in this embodiment, the volume interval is a volume range composed of two different volume information, the volume is divided into a plurality of volume intervals in advance, the volume information in the different volume intervals corresponds to the volume sizes of different degrees, taking the volume sizes of high, medium, and low degrees as an example, three volume intervals are divided between the maximum volume and the minimum volume of the head-mounted device, the three volume intervals correspond to the volume sizes of high, medium, and low degrees, respectively, the volume interval near the side of the maximum volume represents a high volume interval, the volume interval near the side of the minimum volume represents a low volume interval, and the volume interval in the middle is a medium volume interval. The current volume information acquired by the head-mounted device is necessarily in one of the three volume intervals. It should be noted that the number of the divided volume intervals may be determined according to actual needs, and this embodiment does not limit this.
In this embodiment, after the head-mounted device acquires the current volume information, the volume interval in which the current volume information is located is determined, so as to determine the volume interval corresponding to the current volume information.
And step S22, lighting a volume indicator lamp in the head-mounted equipment according to the lighting parameters corresponding to the volume interval.
In this embodiment, after the volume section corresponding to the current volume information is determined, the volume indicator lamp in the head-mounted device is turned on according to the lighting parameter corresponding to the volume section. Specifically, the volume interval corresponds to the lighting parameter, for example, the volume indicator lamps are red, green and blue three-color lamps for three volume intervals corresponding to three different volume levels of high, medium and low, and the color of the volume indicator lamp corresponding to the volume interval corresponding to the high volume level is red; for the volume interval corresponding to the middle volume, the color of the corresponding volume indicator lamp is green; for the volume interval corresponding to the low volume, the color of the corresponding volume indicator lamp is blue. If the volume information acquired by the head-mounted equipment is in a volume interval corresponding to high volume, controlling a head-mounted equipment volume indicator lamp to be turned on in red; if the volume information acquired by the head-mounted equipment is in a volume interval corresponding to the medium volume, controlling a volume indicator lamp of the head-mounted equipment to be turned on in green; and if the current volume information acquired by the head-mounted equipment is in a volume interval corresponding to low volume, controlling a volume indicator lamp of the head-mounted equipment to be turned on in blue.
In the technical scheme provided by this embodiment, the head-mounted device determines a volume interval corresponding to the current volume information according to the current volume information, and lights a volume indicator lamp in the head-mounted device according to a lighting parameter corresponding to the volume interval. Therefore, the relative size of the volume information is reflected by dividing the volume interval, so that the current size of the volume information can be visually reflected by using less lighting parameters.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a volume indicating method for a head-mounted device according to the present invention, where based on the first embodiment, the step of S10 includes:
step S11, when the head-mounted device is awakened, gain information in the volume control register of the head-mounted device is obtained;
in this embodiment, the volume control register is a register for controlling the volume of the head-mounted device, the gain information is also called the amplification factor, and the volume of the head-mounted device is determined according to the gain information of the volume control register. The head-mounted device is provided with an audio power amplifier module, a volume control register is arranged on the audio power amplifier module, the audio power amplifier module is connected with a micro control unit of the head-mounted device, and a user can adjust the volume information of the head-mounted device by manually adjusting the gain information of the volume control register.
Specifically, after the head-mounted device is awakened, the micro control unit of the head-mounted device automatically reads the gain information of the volume control register.
Step S12, determining the output voltage of the audio power amplifier module of the head-mounted equipment according to the gain information;
in this embodiment, the output voltage of the audio power amplifier module is used to represent the volume of the head-mounted device, and generally, the larger the output voltage of the audio power amplifier module is, the higher the volume of the head-mounted device is; the smaller the output voltage of the audio power amplification module is, the lower the volume of the head-mounted device is.
Specifically, after the micro control unit of the head-mounted device acquires the gain information of the volume control register, the acquired gain information is processed to determine the output voltage of the audio power amplifier module.
And step S13, determining the current volume information of the head-mounted equipment according to the output voltage.
In this embodiment, after determining the output voltage of the audio power amplifier module, the micro control unit of the head-mounted device may determine the current volume information of the head-mounted device according to the output voltage of the audio power amplifier module.
In the technical scheme provided by this embodiment, the gain information in the volume control register of the head-mounted device is acquired, the output voltage of the audio power amplifier module of the head-mounted device is determined according to the gain information, and finally the current volume information of the head-mounted device is determined according to the output voltage. Therefore, the scheme designs the acquisition mode of the current volume information from the control principle of the volume of the head-mounted equipment, and improves the accuracy of acquiring the current volume information.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a volume indicating method for a head-mounted device according to the present invention, where based on the first embodiment, the step of S10 includes:
step S14, after the head-mounted device is awakened, acquiring the state of the head-mounted device;
in this embodiment, the state of the head-mounted device refers to whether the head-mounted device is in a worn state or an unworn state after the head-mounted device is in an awake state, and the state of the head-mounted device is acquired after the head-mounted device is awake.
Specifically, after the head-mounted device is awakened, the state of the head-mounted device is detected by the sensor to determine whether the head-mounted device is in a worn state or an unworn state, where the sensor may be at least one of a distance sensor, a pressure sensor, or an infrared sensor, and of course, in other embodiments, the sensor may also be determined according to actual needs, which is not limited in this embodiment.
Step S15, when the head-mounted device is in an unworn state, obtaining current volume information of the head-mounted device.
In this embodiment, when it is determined that the head-mounted device is in the unworn state, the current volume information of the head-mounted device is obtained, and the content of the current volume information of the head-mounted device is obtained. It is understood that when the head-mounted device is in the wearing state, the head-mounted device does not acquire the current volume information, which can reduce power consumption.
Further, after the head-mounted device is awakened and is in an unworn state for a long time, the head-mounted device can acquire the duration of the head-mounted device in the unworn state, and when the duration is longer than the preset duration, the volume indicator lamp is turned off, and the head-mounted device is controlled to enter a sleep state. The preset duration is critical duration for judging whether the head-mounted device enters the sleep state, the sleep state is a state that the head-mounted device is closed and is not awakened, when the duration of the head-mounted device in the non-wearing state is longer than the preset duration, it is determined that the head-mounted device is not worn by a user for a long time, at the moment, the volume indicator lamp is turned off, and the head-mounted device is controlled to enter the sleep state.
In the technical scheme provided by this embodiment, after the head-mounted device is awakened, through obtaining the state of the head-mounted device, when the head-mounted device is in the non-wearing state, obtain the current volume information of the head-mounted device, and simultaneously, when the head-mounted device is in the non-wearing state, count the duration when the head-mounted device is in the non-wearing state, when the duration is greater than the preset duration, extinguish the volume indicator, control the head-mounted device to enter the sleep state, thus, this scheme can prevent the head-mounted device from being awakened and then being in the non-wearing state for a long time and the power consumption loss that leads to, reduce the power consumption of the head-mounted device, and improve the service life of the head-mounted device.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of a volume indicating method for a head-mounted device according to the present invention, where based on the first embodiment, the step of S20 includes:
step S30, when detecting the volume adjustment operation of the user, obtaining the target volume information according to the volume adjustment operation;
in this embodiment, the target volume information is volume information that the user needs to adjust, and when the head-mounted device detects a volume adjustment operation of the user, the head-mounted device acquires the target volume information according to the volume adjustment operation.
Specifically, after the head-mounted device lights the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information, the user can judge the volume of the current volume information of the head-mounted device according to the indication state of the lighted volume indicator lamp, if the user considers that the volume of the current volume information is large, the hearing can be damaged or the user considers that the volume of the current volume information is too small and can not be heard, and the user can manually adjust the volume of the head-mounted device. The user may adjust the volume level of the headset by modifying the gain information of the volume register in the headset. After the adjustment operation is performed by the user, the head-mounted device may detect the adjustment operation of the user, and after the adjustment operation of the user is detected by the head-mounted device, target volume information adjusted by the user is acquired.
Step S40, adjusting the current volume information of the head-mounted device to the target volume information.
In this embodiment, after the head-mounted device acquires the target volume information, the current volume information of the head-mounted device is adjusted to the target volume information, that is, the current volume information is replaced by the acquired target volume information, the target volume information becomes new current volume information, after the current volume information of the head-mounted device is adjusted to the target volume information, the step of turning on the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information is executed, and the content of the first embodiment may be specifically referred to in the step of turning on the volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information, which is not described herein again.
Further, after the volume information of the head-mounted device is adjusted to the volume satisfied by the user, the user can wear the head-mounted device, and when the head-mounted device is detected to be in a wearing state, the volume indicator lamp is turned off, and the head-mounted device plays audio according to the volume information set by the user. The indicator light is turned off when the head-mounted device is in a wearing state, so that power consumption can be reduced.
In the technical scheme provided by this embodiment, when a volume adjustment operation of a user is detected, target volume information is obtained according to the volume adjustment operation, current volume information of the head-mounted device is adjusted to the target volume information, and a step of turning on a volume indicator lamp in the head-mounted device according to a lighting parameter corresponding to the current volume information is performed. Therefore, when the current volume information is not the volume information satisfied by the user, the target volume information is adjusted to be the current volume information and indicated by the indicating lamp, so that the user can timely and visually know the volume after adjustment.
Based on the foregoing embodiments, the present invention further provides a head-mounted device, where the head-mounted device may include a volume indicator, a memory, a processor, and a volume indicator program of the head-mounted device that is stored in the memory and is executable on the processor, and when the processor executes the volume indicator program of the head-mounted device, the steps of the volume indicating method of the head-mounted device according to any one of the foregoing embodiments are implemented.
Based on the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a volume indication program of a head-mounted device is stored, where the volume indication program of the head-mounted device, when executed by a processor, implements the steps of the volume indication method of the head-mounted device according to any one of the foregoing embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for indicating the volume of a head-mounted device is characterized by comprising the following steps:
when the head-mounted equipment is awakened, acquiring the current volume information of the head-mounted equipment;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the current volume information.
2. The method for indicating the volume of a head-mounted device according to claim 1, wherein the volume indicator lamp is a plurality of lamps, and the lighting parameter includes at least one of:
the color of the volume indicator light;
the brightness of the volume indicator light;
the flashing frequency of the volume indicator light;
identification information of the volume indicator light.
3. The method for indicating the volume of the head-mounted device according to claim 2, wherein the step of illuminating the volume indicator lamp in the head-mounted device according to the illumination parameter corresponding to the current volume information comprises:
determining a volume interval corresponding to the current volume information according to the current volume information;
and lightening a volume indicator lamp in the head-mounted equipment according to the lightening parameters corresponding to the volume interval.
4. The method for indicating the volume of a head-mounted device according to claim 1, wherein the step of obtaining the current volume information of the head-mounted device comprises:
acquiring gain information in a volume control register of the head-mounted equipment;
determining the output voltage of an audio power amplifier module of the head-mounted equipment according to the gain information;
and determining the current volume information of the head-mounted equipment according to the output voltage.
5. The method for indicating the volume of a head-mounted device according to claim 1, wherein the step of obtaining the current volume information of the head-mounted device when the head-mounted device is awakened comprises:
after the head-mounted equipment is awakened, acquiring the state of the head-mounted equipment;
and when the head-mounted equipment is not in a wearing state, acquiring the current volume information of the head-mounted equipment.
6. The method for indicating the volume of a head-mounted device according to claim 5, wherein the step of lighting a volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information comprises the following steps:
acquiring the duration of the head-mounted equipment in an unworn state;
and when the duration is longer than the preset duration, turning off the volume indicator lamp and controlling the head-mounted equipment to enter a dormant state.
7. The method for indicating the volume of a head-mounted device according to claim 1, wherein the step of lighting a volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information comprises the following steps:
when volume adjustment operation of a user is detected, target volume information is obtained according to the volume adjustment operation;
and adjusting the current volume information of the head-mounted equipment to the target volume information, and executing the step of lighting a volume indicator lamp in the head-mounted equipment according to the lighting parameters corresponding to the current volume information.
8. The method for indicating the volume of a head-mounted device according to claim 1, wherein the step of lighting a volume indicator lamp in the head-mounted device according to the lighting parameter corresponding to the current volume information comprises the following steps:
and when the head-mounted equipment is in a wearing state, the volume indicator lamp is turned off.
9. A head-mounted device comprising a volume indicator, a memory, a processor and a volume indicator program of the head-mounted device stored on the memory and executable on the processor, wherein the volume indicator program of the head-mounted device when executed by the processor implements the steps of the volume indicating method of the head-mounted device according to any one of claims 1 to 8.
10. A computer-readable storage medium, wherein a volume indicating program of a head-mounted device is stored on the computer-readable storage medium, and when executed by a processor, the volume indicating program of the head-mounted device implements the steps of the volume indicating method of the head-mounted device according to any one of claims 1 to 8.
CN202110403261.8A 2021-04-14 2021-04-14 Volume indicating method, head-mounted device and computer readable storage medium Pending CN112988106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110403261.8A CN112988106A (en) 2021-04-14 2021-04-14 Volume indicating method, head-mounted device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110403261.8A CN112988106A (en) 2021-04-14 2021-04-14 Volume indicating method, head-mounted device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112988106A true CN112988106A (en) 2021-06-18

Family

ID=76339853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110403261.8A Pending CN112988106A (en) 2021-04-14 2021-04-14 Volume indicating method, head-mounted device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112988106A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053083A (en) * 2013-03-11 2014-09-17 美律电子(深圳)有限公司 Earphone with volume prompting function and volume prompting method thereof
CN108401206A (en) * 2018-02-26 2018-08-14 北京小米移动软件有限公司 Luminous earphone and headset control method and device
US20190387304A1 (en) * 2018-06-19 2019-12-19 Merry Electronics (Suzhou) Co., Ltd. Hearing protection earphone, hearing protection method and computer program storage medium for the same
WO2020207380A1 (en) * 2019-04-12 2020-10-15 华为技术有限公司 Head-mounted electronic device and control method thereof
CN112118507A (en) * 2020-10-06 2020-12-22 哈尔滨理工大学 In-ear bluetooth headset with volume indicator lamp
CN112291665A (en) * 2020-10-30 2021-01-29 歌尔光学科技有限公司 Volume adjusting method, device and system of head-mounted display equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053083A (en) * 2013-03-11 2014-09-17 美律电子(深圳)有限公司 Earphone with volume prompting function and volume prompting method thereof
CN108401206A (en) * 2018-02-26 2018-08-14 北京小米移动软件有限公司 Luminous earphone and headset control method and device
US20190387304A1 (en) * 2018-06-19 2019-12-19 Merry Electronics (Suzhou) Co., Ltd. Hearing protection earphone, hearing protection method and computer program storage medium for the same
WO2020207380A1 (en) * 2019-04-12 2020-10-15 华为技术有限公司 Head-mounted electronic device and control method thereof
CN112118507A (en) * 2020-10-06 2020-12-22 哈尔滨理工大学 In-ear bluetooth headset with volume indicator lamp
CN112291665A (en) * 2020-10-30 2021-01-29 歌尔光学科技有限公司 Volume adjusting method, device and system of head-mounted display equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105580066B (en) Ambient light context aware display
CN104812127B (en) Light-emitting control method and device
KR101426707B1 (en) Wireless headset and method for displaying battery state
US10602585B2 (en) Devices having calibrated LEDs
WO2016112631A1 (en) Light control system and method
TW201424328A (en) System and method of adjusting lighting device
CN102783156A (en) Ambience lighting system using global content characteristics
CN110996477A (en) Air conditioner lamp control method, computer device and computer readable storage medium
CN104582192B (en) Remote control method for controlling backlight thereof and system
CN111083834B (en) LED calibration method, device, equipment and system
CN109803468A (en) A kind of intelligent illuminating system that can be automatically adjusted according to the emotional change of people
CN112988106A (en) Volume indicating method, head-mounted device and computer readable storage medium
JP5239710B2 (en) Projection apparatus, projection method, and program
US20200041082A1 (en) Adaptive Ambiance Lighting
KR101891294B1 (en) Device and method for controlling tv light
JP2006229736A (en) Mobile phone, method and program for controlling back light
CN115802538A (en) Light color control method, system, terminal and storage medium
US20230225035A1 (en) Controlling a pixelated lighting device based on a relative location of a further light source
CN113759272A (en) Intelligent lamp band length detection method and device and intelligent lamp band
JP6212845B2 (en) Display control device, display device, projection device, system, and display control method
CN112506411A (en) Display control method, device, equipment and storage medium for household electrical appliance
CN109348573B (en) Method and system for controlling LED night lamp capable of changing color by listening to voice
KR20040036770A (en) Method for display the battery discharging state by using LCD back light color
CN111262993A (en) Device and method for reflecting prompt event through prompt lamp flashing and mobile terminal
CN108811268A (en) Indoor electric lamps adjust system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618