CN117873416A - Equipment control method, device, electronic equipment, computer readable medium and product - Google Patents

Equipment control method, device, electronic equipment, computer readable medium and product Download PDF

Info

Publication number
CN117873416A
CN117873416A CN202211236268.6A CN202211236268A CN117873416A CN 117873416 A CN117873416 A CN 117873416A CN 202211236268 A CN202211236268 A CN 202211236268A CN 117873416 A CN117873416 A CN 117873416A
Authority
CN
China
Prior art keywords
mode
electronic device
multimedia file
playing
user
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
CN202211236268.6A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211236268.6A priority Critical patent/CN117873416A/en
Priority to PCT/CN2023/117520 priority patent/WO2024078215A1/en
Publication of CN117873416A publication Critical patent/CN117873416A/en
Pending legal-status Critical Current

Links

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a device control method, a device, an electronic device, a computer readable medium and a product, wherein the method is applied to the electronic device and comprises the following steps: playing the multimedia file; if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition; and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition. According to the embodiment provided by the application, when the multimedia file is played, different working states can be determined, and the sound volume value of the played multimedia file can be adjusted or the playing and suspension of the multimedia file can be controlled based on different conditions, so that user intervention is not needed, the operation burden of a user is reduced, and the use convenience is improved.

Description

Equipment control method, device, electronic equipment, computer readable medium and product
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a device control method, an apparatus, an electronic device, a computer readable medium, and a product.
Background
Currently, with the development of electronic information technology, electronic devices are capable of playing multimedia files such as audio content and picture content. When the electronic equipment plays the multimedia file content, the electronic equipment is operated, and the related parameters for playing the multimedia file content can be adjusted. However, the current method for adjusting the parameters related to playing the multimedia file content by the electronic device is less convenient.
Disclosure of Invention
The application provides a device control method, a device, an electronic device, a computer readable medium and a product, so as to improve the convenience of the device in use.
In a first aspect, an embodiment of the present application provides a device control method, applied to an electronic device, where the method includes: playing the multimedia file; if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition; and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
In a second aspect, an embodiment of the present application further provides an apparatus control device, which is applied to an electronic apparatus, where the apparatus includes: the device comprises a playing unit, a first control unit and a second control unit. The playing unit is used for playing the multimedia file; the first control unit is used for adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition if the working mode of the electronic equipment is a first mode; and the second control unit is used for controlling the playing or suspending of the multimedia file based on a second condition if the working mode of the electronic equipment is a second mode.
In a third aspect, an embodiment of the present application further provides an electronic device, including: one or more processors; a memory; one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors to cause the electronic device to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium storing program code executable by a processor, the program code when executed by the processor causing the processor to perform the method of the first aspect.
In a fifth aspect, embodiments of the present application also provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the method of the first aspect.
The method comprises the steps of playing a multimedia file, and if the working mode of the electronic device is a first mode, adjusting the volume value of the multimedia file played by the electronic device based on a first condition; and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition. Therefore, when the multimedia file is played, different working states can be determined, and the sound volume value of the played multimedia file can be adjusted or the playing and suspension of the multimedia file can be controlled based on different conditions, so that user intervention is not needed, the operation burden of a user is reduced, and the use convenience is improved.
Additional features and advantages of embodiments of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of embodiments of the application. The objectives and other advantages of the embodiments of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows an application scenario diagram of an apparatus control method provided in an embodiment of the present application;
fig. 2 shows a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 shows a method flowchart of a device control method provided in an embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a selection control provided by an embodiment of the present application;
FIG. 5 shows a method flow diagram of a device control method provided by a further embodiment of the present application;
FIG. 6 shows a diagram of one embodiment of step S220;
FIG. 7 is a flow chart illustrating a method of controlling a device according to yet another embodiment of the present application;
FIG. 8 is a flow chart illustrating a method of controlling a device according to yet another embodiment of the present application;
FIG. 9 shows a schematic diagram of a designated interface provided by an embodiment of the present application;
FIG. 10 is a flow chart illustrating a method of controlling a device according to another embodiment of the present application;
FIG. 11 illustrates a schematic diagram of a designated interface provided by yet another embodiment of the present application;
FIG. 12 is a flow chart illustrating a method of controlling a device according to another embodiment of the present application;
FIG. 13 shows a diagram of one embodiment of step S620;
FIG. 14 shows a schematic view of a graphic provided by an embodiment of the present application;
fig. 15 shows a block diagram of a device control apparatus provided in an embodiment of the present application;
fig. 16 shows a block diagram of an electronic device according to an embodiment of the present application;
FIG. 17 shows a block diagram of a computer-readable storage medium provided by an embodiment of the present application;
fig. 18 shows a block diagram of a computer program product provided by an embodiment of the present application.
Detailed Description
In order to better understand the embodiments of the present application, the following description will clearly and completely describe the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Currently, with the development of electronic information technology, electronic devices are capable of playing audio content and picture content. When the electronic equipment plays the multimedia file content, the electronic equipment is operated, and the related parameters for playing the multimedia file content can be adjusted. However, the current method for adjusting the parameters related to playing the multimedia file content by the electronic device is less convenient. How to reasonably adjust relevant parameters of audio content and picture content played by electronic equipment and improve convenience is a problem to be solved urgently.
Currently, when a user uses an electronic device, for example, when the user uses the electronic device to play video, the screen of the electronic device can play the picture content, and if the user needs to complete other things at this time, the user can manually control the electronic device to pause playing the picture. For another example, while a user is playing audio content using an electronic device, the user may manually control the electronic device to adjust the volume value of the audio content being played by the electronic device.
However, the inventor found in the study that the above method for controlling the electronic device requires user intervention, and the user needs to perform complicated operations, which is less convenient. Accordingly, to overcome the above-described drawbacks, the present application provides a device control method, apparatus, electronic device, and computer-readable medium and product.
Referring to fig. 1, fig. 1 shows an application scenario diagram, that is, an apparatus control scenario 100, of an apparatus control method according to an embodiment of the present application. In fig. 1, a user 101 is playing a multimedia file through an electronic device 102, specifically, watching a video through a video playing application running on the electronic device 102, watching a picture corresponding to the video through a screen of the electronic device 102, and listening to an audio content corresponding to the video, where the user 101 may control the pause of the multimedia file if the user 101 needs to leave temporarily. Optionally, the electronic device 102 may also replay the multimedia file when the user 101 is ready to continue watching the screen before returning to the electronic device 102 again.
Referring to fig. 2, the electronic device 200 shown in fig. 2 is a smart phone, where the electronic device 200 may include a rotation axis 201, and a first portion 202 and a second portion 203 that may be relatively folded or unfolded along the rotation axis 201. For some embodiments, the electronic device 200 may further include an image acquisition module, such as a camera 204, where the camera 204 may be disposed on the first portion 202. Among them, the first portion may include a first screen 2021, the second portion may include a second screen 2031, and the first screen 2021 and the second screen 2031 may be used for displaying images, text information, and the like.
Referring to fig. 3, fig. 3 illustrates a device control method according to an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S110 to S130.
Step S110: and playing the multimedia file.
The electronic device can be used for running different application programs so as to realize different functions and meet different requirements of users. In some implementations, the electronic device may play the multimedia file, for example, may run some video play-related application, such as the electronic device playing video through a video play application. Because the video is played, the picture content and the audio content corresponding to the video are displayed on the screen at the same time, the electronic equipment can play the audio and the picture through the screen. Thus, the multimedia file may include audio content, may include visual content, and may include both audio content and visual content.
For some users, the attention at this time can be focused on the picture content displayed by the screen when the electronic equipment plays the multimedia file; other users' attention may also focus on the audio content that the electronic device plays when playing multimedia files. Therefore, for different attention of users, the electronic equipment can enter different working modes, so that the related parameters of the multimedia file are adjusted. For example, the multimedia file, such as a picture in a pause or play screen, can be paused or played, and the volume value of the played multimedia file can be adjusted, so that the use experience of the user can be improved without active intervention of the user, and convenience is provided.
Therefore, in the case that the electronic device plays the multimedia file, the operation mode of the electronic device may be first acquired, wherein the operation mode may include the first mode and the second mode, and thus it may be first determined that the electronic device is operated in the first mode or the second mode. Wherein the user's attention to the display content of the screen in the first mode is lower than the user's attention to the display content of the screen in the second mode. For example, the first mode may correspond to audio content in the multimedia file with focus of attention of the user, and the second mode may correspond to visual content in the electronic device multimedia file with focus of attention of the user on screen display.
Specifically, when the electronic device plays the multimedia file, a selection control can be displayed on a screen of the electronic device; the user may select an operating mode of the electronic device based on the selection control. The electronic equipment can acquire the first mode or the second mode selected by the user based on the selection control as the working mode of the electronic equipment. Referring to fig. 4 for an exemplary illustration, fig. 4 shows a schematic diagram of a selection control displayed by the electronic device 200. The electronic device 200 may display a screen corresponding to the video that is played through the first screen 2021 set in the first portion 202, and display a selection control 2032 on the second screen 2031 set in the second portion 203 to prompt the user to select the operation mode. The selection control 2032 may include text prompt information and a click box corresponding to the text prompt information, and the user may select the corresponding working mode by touching the corresponding click box. With continued reference to fig. 4, the selection control shown in fig. 4 includes text prompting information of "first mode" and "second mode", and a click box corresponding to "first mode" and a click box corresponding to "second mode". For example, the user may touch a click box corresponding to the first mode, thereby selecting the first mode.
Alternatively, the user may also select the first mode or the second mode by voice. After the electronic equipment displays the selection control, the voice instruction of the user can be continuously acquired, and the user can send out the voice instruction of the first mode or the second mode, so that the electronic equipment is controlled to work in a corresponding working mode.
Optionally, when the electronic device plays the multimedia file, the electronic device may monitor the screen played picture and determine whether the screen played picture has an association relationship with the audio content. If the screen played picture and the audio content do not have an association relationship, the user attention is considered to be focused on the audio content played by the electronic equipment, and the working mode can be directly determined to be the first mode. In one exemplary embodiment, if the electronic device plays the audio content through the music application program and simultaneously displays the screen on the desktop of the system through the screen, the displayed screen will not change with the playing of the audio content, so that it may be determined that the screen played screen has no association with the audio content, and then it may be determined that the working mode is the first mode directly.
Step S120: and if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition.
Further, if the working mode of the electronic device is the first mode, the audio content played when the focus of the user is on the playing of the multimedia file by the electronic device is characterized. For example, the user can listen to the audio content played when the electronic device plays the video while cooking, so it is known that the user is less interested in the screen content displayed by the electronic device at this time. Furthermore, when the working mode is the first mode, the electronic equipment can adjust the volume value of the multimedia file played by the electronic equipment based on the first condition, so that better audio content experience is provided for the user, the operation burden of the user is reduced, and certain convenience is provided.
Wherein for some embodiments, the first condition may be set by a distance between the electronic device and the user, thereby adjusting the volume value based on the first condition. For other embodiments, the first condition may also be set based on the volume of ambient sound surrounding the electronic device, and the volume value may be adjusted by the first condition. Reference is made in detail to the following examples.
Step S130: and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
Further, if the working mode of the electronic device is the second mode, the user attention is represented to the screen content displayed on the screen when the electronic device plays the multimedia file. For example, a user may watch screen displayed picture content in a video played by an electronic device while eating. At this time, the electronic device may control the playing or suspending of the picture based on the second condition. Therefore, better picture content experience is provided for the user, the operation burden of the user is reduced, and certain convenience is provided.
In some embodiments, the second condition may be set by determining whether the image to be detected includes a portrait, and further controlling playing or pausing of the picture based on the second condition. Reference is made in detail to the following examples.
The method comprises the steps of playing a multimedia file, and if the working mode of the electronic device is a first mode, adjusting the volume value of the multimedia file played by the electronic device based on a first condition; and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition. Therefore, when the multimedia file is played, different working states can be determined, and the sound volume value of the played multimedia file can be adjusted or the playing and suspension of the multimedia file can be controlled based on different conditions, so that user intervention is not needed, the operation burden of a user is reduced, and the use convenience is improved.
Referring to fig. 5, fig. 5 illustrates a device control method according to an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S210 to S240.
Step S210: and playing the multimedia file.
The step S210 is described in detail in the foregoing embodiments, and will not be described herein.
Step S220: and if the working mode of the electronic equipment is a first mode, adjusting the volume value according to the distance between the electronic equipment and the user.
For some embodiments, when the electronic device works in the first mode, the foregoing analysis can determine that the attention of the user is focused on the audio content played when the electronic device plays the multimedia file, and the distance between the electronic device and the user can affect the quality of the audio content heard by the user, thereby affecting the use experience of the user. Therefore, the first condition can be constructed through the distance between the electronic device and the user, so that the sound volume value when the electronic device plays the audio can be adjusted based on the distance between the electronic device and the user. The method can realize the adjustment of the play quantity value of the electronic equipment based on the distance between the electronic equipment and the user without intervention of the user, and improve the use experience of the user.
Thus, the distance between the electronic device and the user may be acquired first. One exemplary method may obtain a first location where a user is located and a second location where an electronic device is located, and determine a distance between the electronic device and the user based on the first location and the second location. In another example, the distance between the user and the electronic device may also be determined directly.
Specifically, the first position where the user is located may be obtained through a wearable device worn by the user. The wearable device may have previously established a communication connection with the electronic device, for example, a connection may be established through Bluetooth or wireless communication technology Wi-Fi. For example, the wearable device may be provided with a global positioning system (Global Positioning System, GPS) by which the first location where the user is located may be obtained. Further, the electronic device may also be provided with a global positioning system GPS, so that a second location of the electronic device may be obtained. Further, after the first position and the second position are acquired, a distance between the electronic device and the user may be determined based on the first displacement and the second position.
It should be noted that, after the first position is acquired by the wearable device worn by the user, the first position may be sent to the electronic device through a pre-established communication connection, the electronic device acquires the second position, and after the first position sent by the wearable device is received, the first position and the second position may be calculated, so as to determine the positions of the user and the electronic device.
For other embodiments, the distance between the electronic device and the user may also be determined directly, without determining the distance between the electronic device and the user by separately obtaining the first location of the user and the second location of the electronic device. An exemplary wearable device worn by an electronic device or a user may be further provided with an ultrasonic transceiver module through which an ultrasonic signal may be transmitted and the reflected ultrasonic signal may be received, and a distance between the electronic device and the user may be determined based on a time difference between the transmission and the reception. For example, the ultrasonic transceiver module may be disposed in a wearable device, if the wearable device transmits an ultrasonic signal at time t1, the ultrasonic signal is transmitted to an electronic device, and the time when the ultrasonic signal is received again by the wearable device after being reflected is t2, the distance d between the electronic device and the user may be calculated by a speed-time formula to be approximately v×2 (t 2-t 1)/2, where v is the propagation speed of the ultrasonic signal. For another example, the ultrasonic transceiver module may be disposed in an electronic device, and if the electronic device transmits an ultrasonic signal at time t1, the ultrasonic signal is transmitted to a user, and the time when the ultrasonic signal is received again by the electronic device after being reflected by the user is t2, the distance between the electronic device and the user may be calculated by a speed time formula. An exemplary wearable device may be a smart watch, smart bracelet, smart glasses, or the like.
Further, after the distance between the electronic device and the user is obtained, the volume value may be adjusted based on the distance, specifically referring to fig. 6, fig. 6 shows an embodiment diagram of step S220, including step S221 and step S222.
Step S221: and if the working mode of the electronic equipment is a first mode and the distance is smaller than a distance threshold, adjusting the volume value according to the distance, wherein the distance is positively correlated with the volume value.
Step S222: and if the distance is greater than or equal to the distance threshold, suspending playing the multimedia file.
For some embodiments, the distance between the electronic device and the user should be within a distance threshold, and if the distance threshold is exceeded, there is a high probability that the user does not need to use the electronic device at this time, so that the electronic device does not need to continue playing the audio of the multimedia file. Therefore, a distance threshold may be preset, and the acquired distance between the electronic device and the user may be compared with the distance threshold. The first condition may thus be determined based on the distance and the magnitude relation of the distance threshold. If the distance is less than a distance threshold, adjusting the volume value based on the distance; if the distance is greater than the distance threshold, the electronic device can be controlled to pause playing the video, so that the electronic device is controlled without active intervention of a user.
For some embodiments, the further the distance between the electronic device and the user, the greater the volume value the user needs to obtain an approximate audio, and thus the distance is positively correlated with the volume value. For example, when the distance is smaller than the distance threshold, the larger the distance, the larger the volume value can be set, so that the volume value of the audio heard by the user is ensured to be approximate as much as possible.
Further, if the distance is greater than or equal to the distance threshold, playing of the multimedia file may be paused. Optionally, before the playing of the multimedia file is paused, a first voice prompt may be output to prompt the user that the playing of the multimedia file is paused. The first voice prompt may be, for example, "over-distance, play paused".
Optionally, before outputting the first voice prompt information, query information may be further sent, and feedback information of the user based on the query information may be obtained. For example, because the distance is detected to be greater than the distance threshold, the user is typically not able to enter instructions directly through a touch screen or key, at which point the electronic device may issue an audio query, such as query the user "detect too great a distance, is it paused? ". At this time, the user may send feedback information based on the audio query information of the electronic device, and similarly, the feedback information may also be a voice signal, for example, the user may send a "pause" voice signal, and the electronic device pauses playing of the multimedia file after receiving the "pause" voice signal sent by the user. For another example, the user may send out an "unpause" voice signal, and the electronic device may continue playing the multimedia file after receiving the "unpause" voice signal sent by the user.
Further, after the electronic device sends out the audio query information, if the user is far away from the electronic device at this time, the user cannot respond to the audio query information sent out by the electronic device in time to send out feedback information. Therefore, the electronic device can also set a first time threshold, and after the electronic device sends out the audio inquiry information and passes through the first time threshold, if feedback information sent by the user is not obtained yet, the playing of the multimedia file can be directly paused.
Step S30: and if the working mode of the electronic equipment is a second mode, controlling the playing or suspending of the multimedia file picture based on a second condition.
The step S230 is described in detail in the foregoing embodiments, and will not be described herein.
Step S240: and if the appointed operation of the user is acquired, the adjustment of the volume value is canceled.
In some embodiments, after adjusting the volume value of the audio when playing the multimedia file on the electronic device, if the specified operation of the user is obtained, the adjustment of the volume value may be cancelled. The designating operation may be a preset operation of inputting through a touch screen of the electronic device. For example, the designating operation may be sliding the touch screen of the electronic device to the right, at which time the adjustment of the volume value may be reversed. For another example, the designating operation may also be sliding left, sliding down, or the like on a touch screen of the electronic device.
Alternatively, the designating operation may also be sliding from left to right, or sliding from right to left at a certain preset position in the screen of the electronic device, which is not limited in the embodiment of the present application.
For another example, after the volume value is adjusted, a text box may be displayed on the screen, with text in the text box being used to indicate that the volume value has been adjusted (increased or decreased). If the user wants to undo the adjustment made by the electronic device to the volume value, the user may slide the text box, e.g., to the right or left, indicating that the electronic device was undone the previously made volume value adjustment operation.
The method, the device, the electronic equipment, the computer readable medium and the product for controlling the equipment provided by the application play the multimedia file, further, the embodiment of the application obtains the distance between the electronic equipment and the user, and if the working mode of the electronic equipment is a first mode, the volume value is adjusted according to the distance between the electronic equipment and the user; and controlling the playing and suspending of the multimedia file based on the second condition, so that the volume value played by the electronic equipment can be flexibly adjusted when the distance between the user and the electronic equipment is changed, the use experience of the user is improved, and the user is more constant in media accompanying sense.
Referring to fig. 7, fig. 7 shows a device control method according to an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S310 to S340.
Step S310: and playing the multimedia file.
Step S320: and if the working mode is a first mode and the distance between the electronic equipment and the user is changed, adjusting the volume value, wherein the change amplitude of the distance between the electronic equipment and the user is positively correlated with the adjustment amplitude of the volume value.
Step S330: and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
The steps S310 and S330 are described in the foregoing embodiments, and are not described herein.
For some embodiments, when the electronic device works in the first mode, the foregoing analysis can determine that the attention of the user is focused on the audio content played when the electronic device plays the multimedia file, and the distance between the electronic device and the user can affect the quality of the audio content heard by the user, thereby affecting the use experience of the user. Therefore, the first condition can be constructed through the distance between the electronic device and the user, so that the sound volume value when the electronic device plays the audio can be adjusted based on the distance between the electronic device and the user. The method can realize the adjustment of the play quantity value of the electronic equipment based on the distance between the electronic equipment and the user without intervention of the user, and improve the use experience of the user.
An exemplary electronic device may be playing at a volume value when playing audio of a multimedia file. At this time, if it is detected that the distance between the electronic device and the user is changed, the volume value may be adjusted. The adjustment of the volume value may be decreased if the distance becomes smaller, and the adjustment of the volume value may be increased if the distance becomes larger. It will be appreciated that the magnitude of the change in distance between the electronic device and the user is positively correlated with the magnitude of the adjustment of the volume value. For example, if the distance is smaller, the range of change of the distance is 1 meter, the volume value may be reduced by 10 units, and if the distance is larger, the range of change of the distance is 3 meters, the volume value may be increased by 30 units.
Step S340: and if the appointed operation of the user is acquired, the adjustment of the volume value is canceled.
The step S340 is described in detail in the foregoing embodiments, and will not be described herein.
The method comprises the steps of playing a multimedia file, and further adjusting the volume value if the working mode is a first mode and the distance between the electronic equipment and a user is changed, wherein the change amplitude of the distance between the electronic equipment and the user is positively correlated with the adjustment amplitude of the volume value; and controlling the playing and suspending of the multimedia file based on the second condition, so that the volume value can be adjusted based on the change amplitude of the distance when the distance between the user and the electronic equipment is changed, the use experience of the user is improved, and the user is more constantly presented with media accompanying feeling.
Referring to fig. 8, fig. 8 shows a device control method according to an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S410 to S430.
Step S410: and playing the multimedia file.
The step S410 is described in detail in the foregoing embodiments, and will not be described herein.
Step S420: and if the working mode is a first mode, adjusting the sound volume value according to the volume of surrounding environment sounds of the electronic equipment.
For some embodiments, when the electronic device plays the multimedia file, for example, when audio is played and a picture is played through a screen, other sounds, such as noise generated when the large-scale engineering device works, or sounds generated by other electronic devices, exist in the environment where the electronic device is located. In the environment where the electronic device is located, the sum of the sounds that can be detected can be used as the surrounding sound of the electronic device. It is easy to understand that when the working mode of the electronic device is the first mode, the attention of the user is focused on the audio content played by the electronic device, and if the environmental sound is large, the user can be influenced to normally listen to the audio content played by the electronic device, so that the user can manually adjust the sound volume value of the multimedia file played by the electronic device in order to obtain the better audio content played by the electronic device. However, the user is required to actively intervene by manually controlling the volume value of the electronic device to play the multimedia file by the user, and the operation burden of the user is increased, so that convenience is not provided.
Therefore, the electronic equipment can also acquire the volume of surrounding environment sounds, and then adjust the volume value of the multimedia file played by the electronic equipment based on the volume of the surrounding environment sounds, so that the use experience of a user is improved, the operation burden of the user is reduced, and the method has certain convenience under the condition that the user does not need to actively intervene.
It should be noted that, because the user plays the multimedia file using the electronic device, for example, plays the corresponding audio content in the video through the video playing application running in the electronic device, the user is generally in the same environment as the electronic device, for example, in the same room. Thus, the ambient sound heard by the user can be approximately equal to the ambient sound that can be collected by the electronic device.
Specifically, ambient sound around the electronic device can be collected through a microphone or a microphone array and the like arranged on the electronic device, and the volume of the ambient sound is obtained through analysis of a processor in the electronic device.
Optionally, similar to the previous embodiments, the user may also wear a wearable device, on which a microphone or a microphone array or the like may be provided, so that ambient sounds may also be collected by the wearable device worn by the user. Further, the collected ambient sound can be analyzed by a processor in the wearable device to obtain the volume of the ambient sound, and then the volume of the ambient sound is sent to the electronic device through the pre-established communication connection. In another exemplary embodiment, the collected ambient sound may be directly transmitted to the electronic device through a pre-established communication connection, and then the ambient sound is analyzed by a processor in the electronic device, so as to determine the volume of the ambient sound.
It will be readily appreciated that the sound signal heard by the user is essentially a superposition of the ambient sound and the audio content output by the electronic device. Therefore, when the volume of surrounding environment sounds is smaller, the volume value of the audio content output by the electronic equipment is only required to be smaller, and a user can obtain better use experience; when the volume of surrounding environment sound is large, the volume value of the audio content output by the electronic equipment needs to be correspondingly increased, and a user can obtain better use experience.
Therefore, the intensity threshold value can be preset, after the electronic device acquires the volume of the surrounding environment sound, the volume of the surrounding environment sound is compared with the preset intensity threshold value, if the volume of the surrounding environment sound is smaller than the intensity threshold value, the condition that the volume of the surrounding environment sound is smaller at the moment is indicated, and the electronic device can be controlled to output the audio signal with a smaller volume value at the moment. The first condition may thus be determined based on the magnitude relation of the volume value of the ambient sound and the intensity threshold. If the volume of the surrounding sound is larger than the intensity threshold, the surrounding sound is larger, and the electronic device can be controlled to output the audio signal with a larger volume value.
Optionally, the preset intensity threshold may be multiple, where each intensity threshold corresponds to a volume value of a multimedia file played by an electronic device, and the intensity threshold is positively correlated with the volume value. In one example, if the intensity threshold includes a first intensity threshold, a second intensity threshold, and a third intensity threshold, the first intensity threshold corresponds to the first volume value, the second intensity threshold corresponds to the second volume value, and the third intensity threshold corresponds to the third volume value, wherein the first intensity threshold, the second intensity threshold, and the third intensity threshold increase in sequence. If the volume of the surrounding environment sound is smaller than or equal to the first intensity threshold value, controlling the electronic equipment to play the audio signal with the first volume value; if the volume value of the surrounding environment sound is smaller than or equal to the second intensity threshold and larger than the first intensity threshold, controlling the electronic equipment to play the audio signal at the second volume value; and if the volume value of the surrounding environment sound is smaller than or equal to the third intensity threshold and larger than the second intensity threshold, controlling the electronic equipment to output the audio signal at the third volume value.
It is easy to understand that in order to make the sound of the multimedia file heard by the user not disturbed by the ambient sound, the magnitude of the change in the volume of the ambient sound may be positively correlated with the magnitude of the change in the volume value of the multimedia file played by the electronic device. I.e. the greater the volume change of the ambient sound, the greater the magnitude of the change in the volume value of the multimedia file played by the electronic device. For example, if the volume of the environmental sound is detected to be changed from 40dB to 60dB, the change width is 20dB, and the volume value of the multimedia file can be controlled to be increased by 10 volume units, and if the volume of the environmental sound is changed from 40dB to 70dB, the change width is 30dB, and the volume value of the multimedia file can be controlled to be increased by 20 volume units.
Optionally, after the electronic device adjusts the volume value of the electronic device based on the volume of the surrounding environment sound, the electronic device may also prompt the user in the text display form on the designated interface. For example, referring to fig. 9, fig. 9 shows a schematic diagram of a designated interface of the electronic device 200, where the electronic device 200 may display a screen corresponding to a video being played through a first screen 2021 set by the first portion 202, and a second screen 2031 set by the second portion 203 displays a designated interface 2033 to prompt, through text information displayed by the designated interface 2033, that a user has adjusted a volume value of the electronic device based on a volume of surrounding sounds. For example, the indication interface 2033 in fig. 9 may be displayed with "volume value has been adjusted based on ambient sound".
Furthermore, after the text information is displayed through the appointed interface to prompt the user that the volume value is adjusted, the user can actively intervene to cancel the adjustment of the volume value by the electronic equipment. For example, the user may control the electronic device to cancel the adjustment of the volume value through a voice command; for another example, the user may also input a cancel instruction on the electronic device, thereby controlling the electronic device to cancel the adjustment of the volume value. For example, the cancel instruction may be a slide in a designated area, for example, please refer to fig. 9, and further includes a designated area 2034 in fig. 9, and the user may slide in the designated area 2034 to cancel the adjustment of the volume value, for example, from one side to the other side of the designated area 2034.
Step S430: and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
The step S430 is described in detail in the foregoing embodiments, and will not be described herein.
According to the device control method, the device, the electronic device, the computer readable medium and the product, when the electronic device plays audio and plays a picture through a screen, the working mode of the electronic device is obtained, wherein the working mode comprises a first mode and a second mode, and the attention of a user to the display content of the screen in the first mode is lower than the attention of the user to the display content of the screen in the second mode. The embodiment of the application provides a method for determining different working modes through the attention of a user to the display content of a screen. Further, the embodiment of the application may further obtain the volume of the environmental sound around the electronic device; adjusting the volume value based on the volume of the ambient sound; and controlling the playing and suspending of the picture based on the second condition, thereby realizing the adjustment of the volume value played by the electronic equipment in combination with the surrounding environment sound and improving the use experience of the user.
Referring to fig. 10, fig. 10 illustrates a device control method provided in an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S510 to S560.
Step S510: and playing the multimedia file.
Step S520: and if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition.
The steps S510 and S520 are described in detail in the foregoing embodiments, and will not be described herein.
Optionally, if the working mode of the electronic device is the first mode, it is stated that the focus of the user is not in the picture displayed on the screen of the electronic device at this time, so for some embodiments, the screen of the electronic device can be directly turned off, and the audio content can be continuously played, thereby greatly reducing the power consumption of the electronic device on the premise of not affecting the user experience.
Step S530: and if the working mode is the second mode and the portrait of the user is not detected, suspending playing of the multimedia file.
For some embodiments, if the operation mode of the electronic device is the second mode, it is known that the focus of the user is on the content of the screen displayed when the electronic device plays the multimedia file. Since the user needs to view the picture content played by the electronic device through the screen provided to the electronic device, the second condition can be set based on whether or not the area in front of the screen of the electronic device includes a portrait. Whether the image to be detected does not include the image of the user can be detected, and if the image to be detected does not include the image of the user, the multimedia file is controlled to pause playing.
For example, an image acquisition module may be disposed on an electronic device, for example, with continued reference to fig. 2, a camera 204 may be included in the electronic device 200 shown in fig. 2, where the camera 204 may be disposed in a portion for displaying screen content, i.e., the first portion 202. Thus, the electronic apparatus 200 can acquire an image to be detected of the area in front of the screen through the camera 204.
Further, after the image to be detected is obtained, whether the image to be detected includes the portrait of the user or not may be analyzed and judged, if the image to be detected does not include the portrait of the user, it is indicated that the user is not located in the front area of the screen of the electronic device for displaying the picture content at this time, so that the user has a high probability of not needing to watch the picture content at this time, and therefore, the electronic device may be controlled to pause the playing of the multimedia file. If the image to be detected comprises the portrait of the user, the situation that the user has a high probability of being in the front area of the screen of the electronic equipment for displaying the picture content is indicated, so that the user needs to watch the picture content at the moment, and the electronic equipment can be controlled to keep the multimedia file in a playing state.
Optionally, if the working mode is the second mode and the portrait of the user is not detected, a second voice prompt message may be output before the electronic device is controlled to pause the playing of the multimedia file, so as to ask the user whether to pause the playing, where the second voice prompt message is used to prompt that the playing of the multimedia file is to be paused. For example, the second voice prompt may be "whether the control screen is required to pause playing".
Further, after the second voice prompt information is output, whether the specified voice information is acquired can be detected. The specific voice information may be voice information replied by the user based on the second voice prompt information, for example, may be "pause" or "no pause". When the specified voice information is detected, the electronic device can be controlled based on the specified voice information of the user, for example, if the specified voice information is 'pause', the picture can be controlled to pause playing at the moment; if the appointed voice information is 'not paused', the multimedia file can be controlled to be not paused and played continuously.
Further, if the specified voice information matched with the second voice prompt information is not detected, the picture can be controlled to pause playing. For some embodiments, a second time threshold may be set, after outputting the second voice prompt information, if the specified voice information matched with the second voice prompt information is not detected after the second time threshold passes, the multimedia file may be controlled to pause playing.
Step S540: if the working mode is the second mode and the portrait of the user is detected, generating corresponding first text information based on control operation of the electronic equipment in a playing state of the multimedia file, and displaying the first text information.
For some embodiments, the user may also control the electronic device through a voice assistant while viewing screen content displayed on the screen in the electronic device. Wherein, the user can wake up the voice assistant through the wake-up operation first. One exemplary user may wake up the voice assistant by continuously tapping a specified number of times on the screen of the electronic device, for example, three times. The user may wake up the voice assistant by a preset voice command, for example, the voice command may include "hello phone", and the user may wake up the voice assistant only by speaking "hello phone" after the electronic device detects the voice command.
Further, if the working mode is the second mode and the portrait of the user is detected, the user may send out a voice control instruction at this time to implement a control operation on the electronic device. For example, the user may issue a control instruction to "decrease the volume value" at this time, thereby decreasing the volume value of the electronic device; at this time, the user can also send a control instruction of 'fast forward for 30 seconds', so that the picture content played by the electronic equipment is fast forward for 30 seconds.
It is easy to understand that the focus of the user is on the screen content displayed on the screen when the electronic device plays the multimedia file at this time, and if the voice assistant sends out the voice prompt information after responding to the control instruction of the user, the screen content displayed on the screen will be temporarily interrupted, which will cause negative influence on the user experience. Therefore, at this time, the first text information corresponding to the control operation of the multimedia file in the playing state may be generated based on the control operation, and displayed, for example, on the screen of the electronic device. Referring to fig. 11, fig. 11 is a schematic diagram showing a specific interface of the electronic device 200, where the electronic device 200 may display a screen corresponding to a video played through a first screen 2021 set in the first portion 202, and a second screen 2031 set in the second portion 203 displays a specific interface 2033 to prompt a user with first text information displayed through the specific interface 2033. Wherein the first text information displayed in the designated interface 2033 may include conversion of voice information generated by the voice assistant into first text information. For example, after the user sends a control operation of "fast forwarding for 30 seconds", the electronic device fast forwards the played screen content for 30 seconds in response to the control operation, at this time, the voice assistant may generate the first text information corresponding to the control operation, so as to prompt the user that the played screen content has been fast forwarded for 30 seconds, and display the screen content. For example, "the screen content has been fast-forwarded for 30 seconds" may be displayed through the designation interface 2033 of the second screen 2031.
Step S550: and acquiring an image to be detected of a front area of a screen of the electronic equipment.
Step S560: and if the image to be detected comprises a portrait, controlling the multimedia file to continue playing.
For some embodiments, if the working mode is the second mode and the image to be detected of the user does not include the image, the control pauses the playing of the image multimedia file, and then the user may return to the front area of the screen of the electronic device after a period of time, and at this time, the electronic device may be controlled to play the image again. Therefore, the image to be detected in the front area of the screen can be obtained through the camera of the electronic equipment, and if the image to be detected comprises a portrait, the multimedia file is controlled to be replayed.
The method, the device, the electronic equipment, the computer readable medium and the product for controlling the equipment provided by the application play the multimedia file, further, the embodiment of the application obtains the distance between the electronic equipment and the user, and if the working mode of the electronic equipment is a first mode, the volume value is adjusted according to the distance between the electronic equipment and the user; if the working mode is the second mode and the portrait of the user is detected, the multimedia file is kept in a playing state; and if the working mode is the second mode and the portrait of the user is not detected, suspending playing of the multimedia file. Therefore, the multimedia file played by the electronic equipment can be adjusted without active intervention of the user, the operation burden of the user is reduced, and the convenience is improved. And the method can also acquire the image to be detected of the area in front of the screen through the camera of the electronic equipment after controlling the multimedia file to pause playing, and if the image to be detected comprises a portrait, the multimedia file is controlled to play again, so that the use experience of a user can be further improved.
Referring to fig. 12, fig. 12 shows a device control method according to an embodiment of the present application, where the method may be applied to the electronic device 200 in the foregoing embodiment, and specifically may be a processor in the electronic device as an execution body. Specifically, the method includes steps S610 to S670.
Step S610: and playing the multimedia file.
Step S620: and if the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, waking up the voice assistant and displaying a selection control.
For some embodiments, the electronic device may include a screen and a camera disposed on the same side as the screen. An exemplary electronic device 200 shown in fig. 2 includes a first screen 2021 and a camera 204, where the camera 204 and the first screen 2021 are disposed on the same side.
As can be seen from the description of the foregoing embodiments, in some cases, the voice assistant may obtain the image to be detected in the front area of the screen of the electronic device through the camera, so as to play or pause the multimedia file according to whether the image to be detected includes a portrait. Therefore, whether to wake up the voice assistant can be determined by determining whether or not the angle characteristic information of the screen provided on the same side as the camera satisfies the target condition. The voice assistant may be configured to output the first voice information, the second voice information, the first text information, or the like described in the foregoing embodiments.
In some embodiments, the angle characteristic information corresponding to the screen may be an included angle between the direction in which the screen faces and the horizon direction, and it is understood that the included angle generally ranges from 0 degrees to 90 degrees. For example, the target condition may be 0 to 60 degrees, for example, if the angle feature information corresponding to the screen of the electronic device is 45 degrees, the target condition is satisfied, and at this time, the voice assistant may be awakened and the selection control may be displayed. The selection control may be displayed on the screen of the electronic device, and the user may select the working mode of the electronic device based on the selection control, specifically, refer to the description related to fig. 4 in the foregoing embodiment, which will not be described herein.
For other embodiments, the angle feature information corresponding to the screen may also be in a direction perpendicular to the direction in which the screen faces, so that the target condition may be set based on the angle feature information, which is similar to the foregoing target condition, and will not be described herein.
For some embodiments, referring to fig. 13, fig. 13 shows an embodiment diagram of step S620, specifically including step S621 and step S622.
Step S621: and if the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, waking up the voice assistant and displaying a selection control.
Step S622: displaying second text information and playing third voice prompt information, wherein the second text information is used for representing that the voice assistant is awakened, and the third voice prompt information is used for prompting that the voice assistant is awakened.
Further, after the electronic device wakes up the voice assistant, the electronic device may also display the second text information, e.g., the second text information may be displayed through a screen of the electronic device. Wherein the second text message may be used to characterize that the voice assistant has been awakened, and, illustratively, the second text message may be "voice assistant has been awakened".
Optionally, after the electronic device wakes up the voice assistant, a third voice prompt may be played, where the third voice prompt is used to prompt the voice assistant to wake up.
It is easy to understand that after the electronic device wakes up the voice assistant, the second text information may be displayed, and the third voice prompt may be played. Only the second text information may be displayed, or only the third voice prompt may be played.
Step S630: and acquiring a first mode or a second mode selected by a user based on the selection control as a working mode of the electronic equipment.
Further, the user can select the first working mode or the second working mode based on the selection control, so that the working mode selected by the user can be used as the working mode of the electronic equipment.
Step S640: and if the angle characteristic information corresponding to the screen of the electronic equipment no longer meets the target condition, closing the voice assistant.
For some embodiments, if the angle feature information corresponding to the screen of the electronic device no longer satisfies the target condition, the voice assistant may be turned off.
In an exemplary embodiment, if the target condition is 0 to 60 degrees, if the angle feature information corresponding to the screen of the electronic device is changed from 45 degrees to 90 degrees, the angle feature information corresponding to the screen of the electronic device does not meet the target condition any more, and the voice assistant may be turned off.
Step S650: and if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition.
Step S660: and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
The steps S650 and S660 are described in detail in the foregoing embodiments, and are not described herein.
Step S670: and if the camera is started, displaying a graph in a specified mode at a specified position, wherein the graph displayed in the specified mode is used for representing that the camera is started, and the specified position is determined based on the position of the camera.
In some embodiments, if the camera of the electronic device is turned on, the graphics can be displayed in a specified manner through the screen of the electronic device, so as to prompt the user. Optionally, the camera of the electronic device may be turned on when the voice assistant is awakened, may be turned on when the voice assistant is used to acquire the image to be detected, and may be turned on when any other time is required.
Wherein the graphics displayed in a specified manner are used to characterize the camera as turned on. Specifically, the graphic may be displayed at a designated location in the screen of the electronic device. Alternatively, the specified location may be determined based on the location of the camera. For example, the specified position may be a position in the screen close to the camera; the designated position may be a position in the screen at a distance from the camera.
Further, the figure may be a circular ring shape similar to the shape of the camera, or may be a rectangle.
Referring to fig. 14 for an exemplary embodiment, fig. 14 shows a graphic 205, where the graphic 205 is located on a first screen 2021 of the electronic device 200, and the electronic device 200 further includes a camera 204, and the camera 204 is disposed on the first screen 2021. Wherein the graphic 205 is a ring. The first screen 2021 may display the graphic 205 when the camera 204 is turned on, so that the user may be prompted that the camera 204 is turned on.
Further, the graphics may also be displayed in a designated manner, which may include displaying the graphics in different colors. For example, the graphic may be pink, red, purple, yellow, etc. The designation may also include blinking display at intervals, for example, a pattern may be blinking displayed at intervals of 1 s. The designation may also include displaying the graphic in a dynamic manner, e.g., the graphic may be rotated while the graphic is displayed.
Optionally, for further embodiments, the designation may also include a progress bar form. At this time, the graphics may be displayed in the form of a progress bar, and the state of the camera may be represented by the graphics in the form of the progress bar. For example, when the electronic device controls the camera to be started, displaying a graph of the progress bar through a screen, wherein the progress bar can be in an initial state; the progress bar may be in a terminated state when the camera has been turned on. The progress bar is in a revealing state and can indicate that the camera is ready to be started, and the progress bar is in a termination state and indicates that the camera is started.
According to the equipment control method, the equipment control device, the electronic equipment, the computer readable medium and the product, the method plays the multimedia file, when the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, a voice assistant is awakened, a selection control is displayed, and further a first mode or a second mode selected by a user based on the selection control is acquired and used as a working mode of the electronic equipment; when the angle characteristic information corresponding to the screen of the electronic equipment no longer meets the target condition, closing the voice assistant; if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition; if the working mode of the electronic equipment is the second mode, controlling playing or pausing of the multimedia file based on a second condition; and if the camera is started, displaying the graph at the designated position in a designated mode. Therefore, when the multimedia file is played, whether the voice assistant is awakened or not can be judged through the angle characteristic information corresponding to the screen of the electronic equipment, and when the voice assistant is awakened, the voice value of the played multimedia file can be adjusted or the playing and the suspension of the multimedia file can be controlled based on different conditions, so that the user is not required to intervene, the operation burden of the user is reduced, and the use convenience is improved. Moreover, when the camera is turned on, the embodiment of the application can prompt the user that the camera is turned on in a mode that the screen displays the graph in a specified mode.
Referring to fig. 15, a block diagram of a device control apparatus 1500 according to an embodiment of the present application is shown, including: a playback unit 1510, a first control unit 1520, and a second control unit 1530.
A playing unit 1510 for playing the multimedia file.
Further, the playing unit 1510 may also be used to play the multimedia file; if the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, waking up a voice assistant and displaying a selection control; and acquiring a first mode or a second mode selected by a user based on the selection control as a working mode of the electronic equipment.
Further, the playing unit 1510 may be further configured to wake up the voice assistant and display a selection control if the angle feature information corresponding to the screen of the electronic device meets the target condition; displaying second text information and playing third voice prompt information, wherein the second text information is used for representing that the voice assistant is awakened, and the third voice prompt information is used for prompting that the voice assistant is awakened.
Further, the playing unit 1510 may be further configured to close the voice assistant if the angle feature information corresponding to the screen of the electronic device no longer meets the target condition.
Further, the playing unit 1510 may be further configured to display third text information if the camera is awakened, where the third text information is used to indicate that the camera is awakened.
The first control unit 1520 is configured to adjust a volume value of the electronic device playing the multimedia file based on a first condition if the working mode of the electronic device is a first mode.
Further, the first control unit 1520 may be further configured to adjust the volume value according to a distance between the electronic device and the user if the operation mode of the electronic device is the first mode. .
Further, the first control unit 1520 may be further configured to adjust the volume value according to the distance if the working mode of the electronic device is a first mode and the distance is less than a distance threshold, where the distance is positively related to the volume value; and if the distance is greater than or equal to the distance threshold, suspending playing the multimedia file.
Further, the first control unit 1520 may be further configured to output a first voice prompt if the distance is greater than or equal to the distance threshold, and pause playing the multimedia file, where the first voice prompt is used to prompt the multimedia file to be paused.
Further, the first control unit 1520 may be further configured to adjust the volume value if the operation mode is a first mode and the distance between the electronic device and the user is changed, where the change range of the distance between the electronic device and the user is positively correlated with the adjustment range of the volume value.
Further, the first control unit 1520 may be further configured to cancel the adjustment of the volume value if the designated operation of the user is acquired.
Further, the first control unit 1520 may be further configured to adjust the volume value according to the volume of the environmental sound around the electronic device if the operation mode is the first mode. The change amplitude of the volume of the surrounding environment sound is positively correlated with the change amplitude of the volume value of the multimedia file played by the electronic equipment.
And a second control unit 1530, configured to control playing or pausing of the multimedia file based on a second condition if the working mode of the electronic device is a second mode.
Further, the second control unit 1530 may be further configured to keep the multimedia file in a playing state if the working mode is the second mode and the portrait of the user is detected; and if the working mode is the second mode and the portrait of the user is not detected, suspending playing of the multimedia file. Further, the second control unit 1530 may be further configured to generate corresponding first text information and display the first text information based on a control operation performed on the electronic device in the playing state of the multimedia file if the working mode is the second mode and the portrait of the user is detected.
Further, the second control unit 1530 may be further configured to output a second voice prompt if the working mode is a second mode and the portrait of the user is not detected, where the second voice prompt is used to prompt that the multimedia file is to be paused; and if the appointed voice information is not detected, suspending the playing of the multimedia file, wherein the appointed voice information is used for indicating to cancel suspending the playing of the multimedia file.
Further, the second control unit 1530 may be further configured to acquire an image to be detected of a front area of a screen of the electronic device; and if the image to be detected comprises a portrait, controlling the multimedia file to continue playing.
Further, the second control unit 1530 may also be configured to display a selection control on the screen when the electronic device plays audio and plays a picture through the screen; and acquiring a first mode or a second mode selected by a user based on the selection control as a working mode of the electronic equipment.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus and unit may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided herein, the coupling of the units to each other may be electrical, mechanical, or other.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Referring to fig. 16, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 1600 may be a smart phone, tablet computer, or the like capable of running computer programs. The electronic device 1600 in this application may include one or more of the following components: processor 1610 and memory 1620, and one or more application programs, wherein processor 1610 is electrically connected to memory 1610, one or more programs configured to perform the methods described in the foregoing method embodiments.
Processor 1610 may include one or more processing cores. Processor 1610 uses various interfaces and lines to connect various portions of the overall electronic device 1600, performing various functions of electronic device 100 and processing data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 1620, and invoking data stored in memory 1620. Alternatively, the processor 1610 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 160 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. Wherein, the CPU mainly processes an operating system, a user interface, a computer program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1610, but may be implemented solely by a single communication chip. The methods described in the previous embodiments may be performed by the one or more processors 1610.
For some embodiments, memory 1620 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). The memory 1620 may be used to store instructions, programs, code sets, or instruction sets. The memory 1620 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing various method embodiments described below, and the like. The storage data area may also store data or the like created by the electronic device 1600 in use.
Referring to fig. 17, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. Stored in the computer readable medium 1700 is program code that can be invoked by a processor to perform the methods described in the method embodiments above.
The computer readable storage medium 1700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, computer readable storage medium 1700 includes non-volatile computer readable media (non-transitory computer-readable storage medium). The computer readable storage medium 1700 has storage space for program code 1710 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code 1710 may be compressed, for example, in a suitable form.
Referring to fig. 18, a block diagram 1800 of a computer program product according to an embodiment of the present application is shown. Included in the computer program product 1800 are computer programs/instructions 1810 which when executed by a processor implement the steps of the methods described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

1. A device control method, characterized by being applied to an electronic device, the method comprising:
playing the multimedia file;
if the working mode of the electronic equipment is a first mode, adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition;
and if the working mode of the electronic equipment is a second mode, controlling playing or pausing of the multimedia file based on a second condition.
2. The method of claim 1, wherein adjusting the volume value of the electronic device for playing the multimedia file based on the first condition if the operating mode of the electronic device is the first mode comprises:
and if the working mode of the electronic equipment is a first mode, adjusting the volume value according to the distance between the electronic equipment and the user.
3. The method of claim 2, wherein adjusting the volume value based on the distance between the electronic device and the user if the operating mode of the electronic device is the first mode comprises:
if the working mode of the electronic equipment is a first mode and the distance is smaller than a distance threshold, adjusting the sound volume value according to the distance, wherein the distance is positively related to the sound volume value;
and if the distance is greater than or equal to the distance threshold, suspending playing the multimedia file.
4. The method of claim 3, wherein the suspending playing the multimedia file if the distance is greater than or equal to the distance threshold comprises:
and if the distance is greater than or equal to the distance threshold, outputting first voice prompt information and suspending playing of the multimedia file, wherein the first voice prompt information is used for prompting that the multimedia file is suspended.
5. The method of claim 1, wherein if the operating mode of the electronic device is the first mode, adjusting the volume value of the electronic device for playing the multimedia file based on the first condition:
and if the working mode is a first mode and the distance between the electronic equipment and the user is changed, adjusting the volume value, wherein the change amplitude of the distance between the electronic equipment and the user is positively correlated with the adjustment amplitude of the volume value.
6. The method according to claim 2 or 3 or 5, further comprising:
and if the appointed operation of the user is acquired, the adjustment of the volume value is canceled.
7. The method of claim 1, wherein adjusting the volume value of the electronic device for playing the multimedia file based on the first condition if the operating mode of the electronic device is the first mode comprises:
and if the working mode is a first mode, adjusting the sound volume value according to the volume of surrounding environment sounds of the electronic equipment.
8. The method of claim 7, wherein the magnitude of the change in volume of the ambient sound is positively correlated with the magnitude of the change in volume value of the multimedia file played by the electronic device.
9. The method of claim 1, wherein if the operating mode of the electronic device is the second mode, controlling playing or pausing of the multimedia file based on a second condition comprises:
if the working mode is the second mode and the portrait of the user is detected, the multimedia file is kept in a playing state;
and if the working mode is the second mode and the portrait of the user is not detected, suspending playing of the multimedia file.
10. The method as recited in claim 9, further comprising:
if the working mode is the second mode and the portrait of the user is detected, generating corresponding first text information based on control operation of the electronic equipment in a playing state of the multimedia file, and displaying the first text information.
11. The method of claim 9, wherein suspending the playing of the multimedia file if the operation mode is the second mode and the portrait of the user is not detected, comprising:
if the working mode is a second mode and the figure of the user is not detected, outputting second voice prompt information, wherein the second voice prompt information is used for prompting that the multimedia file is to be paused;
And if the appointed voice information is not detected, suspending the playing of the multimedia file, wherein the appointed voice information is used for indicating to cancel suspending the playing of the multimedia file.
12. The method of claim 9, wherein if the operation mode is the second mode and no portrait of the user is detected, further comprising, after suspending playing of the multimedia file:
acquiring an image to be detected of a screen front area of the electronic equipment;
and if the image to be detected comprises a portrait, controlling the multimedia file to continue playing.
13. The method of any of claims 1-12, wherein the electronic device comprises a screen and a camera, the camera being disposed on a same side as the screen, the playing the multimedia file comprising:
playing the multimedia file;
if the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, waking up a voice assistant and displaying a selection control;
and acquiring a first mode or a second mode selected by a user based on the selection control as a working mode of the electronic equipment.
14. The method of claim 13, wherein waking up the voice assistant and displaying the selection control if the angle characteristic information corresponding to the screen of the electronic device satisfies the target condition comprises:
If the angle characteristic information corresponding to the screen of the electronic equipment meets the target condition, waking up a voice assistant and displaying a selection control;
displaying second text information and playing third voice prompt information, wherein the second text information is used for representing that the voice assistant is awakened, and the third voice prompt information is used for prompting that the voice assistant is awakened.
15. The method of claim 13, wherein the method further comprises:
and if the angle characteristic information corresponding to the screen of the electronic equipment no longer meets the target condition, closing the voice assistant.
16. The method of claim 13, wherein the method further comprises:
and if the camera is started, displaying a graph in a specified mode at a specified position, wherein the graph displayed in the specified mode is used for representing that the camera is started, and the specified position is determined based on the position of the camera.
17. A device control apparatus, characterized by being applied to an electronic device, comprising:
a playing unit for playing the multimedia file;
the first control unit is used for adjusting the sound volume value of the electronic equipment for playing the multimedia file based on a first condition if the working mode of the electronic equipment is a first mode;
And the second control unit is used for controlling the playing or suspending of the multimedia file based on a second condition if the working mode of the electronic equipment is a second mode.
18. An electronic device, comprising: one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-16.
19. A computer readable storage medium having stored therein program code which is callable by a processor to perform the method of any one of claims 1-16.
20. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1-16.
CN202211236268.6A 2022-10-10 2022-10-10 Equipment control method, device, electronic equipment, computer readable medium and product Pending CN117873416A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211236268.6A CN117873416A (en) 2022-10-10 2022-10-10 Equipment control method, device, electronic equipment, computer readable medium and product
PCT/CN2023/117520 WO2024078215A1 (en) 2022-10-10 2023-09-07 Device control method and apparatus, and electronic device, computer-readable medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211236268.6A CN117873416A (en) 2022-10-10 2022-10-10 Equipment control method, device, electronic equipment, computer readable medium and product

Publications (1)

Publication Number Publication Date
CN117873416A true CN117873416A (en) 2024-04-12

Family

ID=90579821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211236268.6A Pending CN117873416A (en) 2022-10-10 2022-10-10 Equipment control method, device, electronic equipment, computer readable medium and product

Country Status (2)

Country Link
CN (1) CN117873416A (en)
WO (1) WO2024078215A1 (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606721B2 (en) * 2013-07-22 2017-03-28 Lg Electronics Inc. Mobile terminal and control method thereof
KR20160045441A (en) * 2014-10-17 2016-04-27 삼성전자주식회사 Method and apparatus for playing video
US9747068B2 (en) * 2014-12-22 2017-08-29 Nokia Technologies Oy Audio processing based upon camera selection
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device
CN105224234B (en) * 2015-10-28 2019-06-07 努比亚技术有限公司 Content of text selection method and mobile terminal
CN106331371A (en) * 2016-09-14 2017-01-11 维沃移动通信有限公司 Volume adjustment method and mobile terminal
US20210191491A1 (en) * 2016-10-24 2021-06-24 Hewlett-Packard Development Company, L.P. Awakening electronic devices in selected modes of operation
CN108966067B (en) * 2018-06-07 2020-07-10 Oppo广东移动通信有限公司 Play control method and related product
CN110377213B (en) * 2019-07-12 2021-04-09 Oppo广东移动通信有限公司 Control method of electronic device, and computer-readable storage medium
CN115065914A (en) * 2022-06-06 2022-09-16 杭州海康威视数字技术股份有限公司 Volume adjusting method of audio playing device, electronic device and storage medium

Also Published As

Publication number Publication date
WO2024078215A1 (en) 2024-04-18

Similar Documents

Publication Publication Date Title
CN108055569B (en) Live broadcast room barrage sending method and device and corresponding terminal
US10642574B2 (en) Device, method, and graphical user interface for outputting captions
US10360876B1 (en) Displaying instances of visual content on a curved display
WO2021088514A1 (en) Method for pre-loading content data, and electronic device and storage medium
JP6365939B2 (en) Sleep assist system
WO2021104271A1 (en) Control method, stylus, and electronic assembly
US20220374197A1 (en) Systems, Methods, and Graphical User Interfaces for Selecting Audio Output Modes of Wearable Audio Output Devices
CN116048451A (en) Automatic audio routing
CN107743178B (en) Message playing method and mobile terminal
WO2020211607A1 (en) Video generation method, apparatus, electronic device, and medium
KR20210007289A (en) Electronic device and method for outputting audio signal
US20220019403A1 (en) Systems, Methods, and Graphical User Interfaces for Selecting Audio Output Modes of Wearable Audio Output Devices
US11363382B2 (en) Methods and user interfaces for audio synchronization
WO2016119165A1 (en) Chat history display method and apparatus
WO2020042815A1 (en) Text editing method and mobile terminal
KR20140129508A (en) Method and apparatus for processing function of a user device
US20230164296A1 (en) Systems and methods for managing captions
US20130159400A1 (en) User device, server, and operating conditions setting system
CN117873416A (en) Equipment control method, device, electronic equipment, computer readable medium and product
CN111918139B (en) Video playing method, device, equipment and storage medium
US11991263B2 (en) Notification delivery in a virtual space based on a user being in a flow state
US11630557B2 (en) Alerts for virtual meetings
JP7121780B2 (en) User interface for voice messages
WO2022059707A1 (en) Information processing device, information processing method, and information processing program
CN117119343A (en) Earphone control method and device and electronic equipment

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