WO2019041130A1 - Audio response method, terminal, and computer readable medium - Google Patents

Audio response method, terminal, and computer readable medium Download PDF

Info

Publication number
WO2019041130A1
WO2019041130A1 PCT/CN2017/099483 CN2017099483W WO2019041130A1 WO 2019041130 A1 WO2019041130 A1 WO 2019041130A1 CN 2017099483 W CN2017099483 W CN 2017099483W WO 2019041130 A1 WO2019041130 A1 WO 2019041130A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
volume
terminal
target process
current environment
Prior art date
Application number
PCT/CN2017/099483
Other languages
French (fr)
Chinese (zh)
Inventor
李晓亮
黄成钟
郑雪瑞
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/099483 priority Critical patent/WO2019041130A1/en
Publication of WO2019041130A1 publication Critical patent/WO2019041130A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to an audio response method, a terminal, and a computer readable medium.
  • One method currently used to operate the terminal with one hand is to place the terminal flat somewhere and operate with one hand.
  • the user needs to put the terminal to a certain place before the one-hand operation of the terminal, and the operation is cumbersome.
  • This solution cannot solve the problem that some operations are difficult to implement when the user single-handheld terminal is used.
  • the embodiment of the invention provides an audio response method, which can improve the efficiency of the one-hand operation terminal and is simple to implement.
  • an embodiment of the present invention provides an audio response method, where the method includes:
  • the terminal detects the volume in the current environment
  • determining in a case that the volume in the current environment reaches a target threshold, acquiring a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
  • the terminal controls the target process to perform a target operation.
  • an embodiment of the present invention provides a terminal, where the terminal includes a unit for performing the method of the foregoing first aspect.
  • an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage.
  • a computer program supporting a terminal for performing the above method the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer storage medium is stored.
  • a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
  • the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved.
  • FIG. 1 is a schematic flow chart of an audio response method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a receiving volume display instruction according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of displaying a detected volume according to an embodiment of the present invention.
  • FIG. 4A is a schematic structural diagram of a volume setting interface according to an embodiment of the present invention.
  • 4B is a schematic diagram of a setting interface according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an operation setting interface according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of an audio response method according to another embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic block diagram of a terminal according to another embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a terminal according to another embodiment of the present invention.
  • the term “if” can be interpreted as “when” or “on” or “in response to determining” or “in response to detecting” depending on the context. .
  • the phrase “if determined” or “if detected [condition or event described]” may be interpreted in context to mean “once determined” or “in response to determining” or “once detected [condition or event described] ] or “in response to detecting [conditions or events described]”.
  • the terminals described in this embodiment of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers or tablet computers having touch sensitive surfaces (eg, touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch sensitive surface (eg, a touch screen display and/or a touch pad).
  • the terminal including a display and a touch sensitive surface is described.
  • the terminal can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
  • the terminal supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
  • applications such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
  • Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch sensitive surface.
  • One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application.
  • the common physical architecture of the terminal eg, a touch-sensitive surface
  • FIG. 1 it is a schematic flowchart of an audio response method according to an embodiment of the present invention.
  • the method may include:
  • the terminal detects a volume in a current environment.
  • the above terminal may be a mobile phone, a tablet, a wearable device, a personal digital assistant, or the like.
  • the terminal detecting the volume in the current environment may be that the terminal detects the volume of the current environment through the earpiece; or the terminal may detect the volume of the current environment by using the sound sensor. It can be understood that the above terminal detecting the volume in the current environment may be detecting a decibel value of the sound in the surrounding environment. For example, the user speaks into the microphone of the terminal, and the terminal detects the volume of the user's speech. For another example, the user blows at the microphone of the terminal, and the terminal detects the volume of the sound emitted by the user. It can be understood that the terminal can detect the volume in the surrounding environment through the sound sensor.
  • the above target threshold may be a preset threshold such as 40 decibels, 50 decibels, 60 decibels, 90 decibels, or the like.
  • the target process is a process in the preset list, and the processes in the preset list are all application processes that can be controlled by touch operations.
  • the preset list may include 10 processes, which may be processes corresponding to 10 different applications, such as a mail application, a short message application, and a call application.
  • the obtaining target process may be to acquire a process that is currently running and located in the preset list.
  • the target process may be an incoming call process, a music playing process, a video requesting process, a reading process, a lock screen process, a call progress, a short message process, a mail process, and the like.
  • the incoming call process refers to the process corresponding to the incoming call request.
  • the terminal receives the incoming call, the incoming call process can be detected.
  • the terminal can connect the incoming call or hang up the incoming call by controlling the incoming call process.
  • the music playing process refers to the process of playing music.
  • the terminal can pause the playing of the currently playing music by controlling the music playing process, and can also play the next music of the music currently played by the above music process.
  • the video request process refers to a process corresponding to the video request.
  • the terminal detects the video request process, and the terminal can control the video request process to turn on the video request or reject the video request.
  • the reading process refers to the process of reading an e-book or browsing a webpage, and the terminal can turn the page by controlling the reading process, that is, switching from the current page to the next page of the current page.
  • the lock screen process refers to the process of controlling the terminal to perform the lock screen and the screen unlocking. The terminal can unlock the screen or lock the screen by controlling the lock screen process.
  • the call process refers to a process that supports the terminal to make a call, and the terminal can disconnect the call through the call process.
  • the short message process is a process indicating that the terminal currently includes an unreviewed short message, and the terminal can detect the short message process after receiving the short message.
  • the terminal can open the recently received unreviewed short message through the short message process.
  • the mail process is a process indicating that the terminal currently contains unreviewed mail. After receiving the mail, the terminal can detect the mail process, and the terminal can open the recently received unchecked mail through the mail process.
  • the user can control the above target process by touch operation.
  • the target process is coming During the process of receiving the incoming call, the user displays the answering option and the rejecting option on the screen of the mobile phone. The user can select the corresponding option by touch operation, answer the incoming call or reject the incoming call.
  • the target process is a music playing process, and the user can click the pause button in the music playing interface to pause the currently playing music.
  • the terminal controls the target process to perform a target operation.
  • the above target operation is an operation that can be implemented by the above target process.
  • the target process is an incoming call process, and the target operation may be to answer the incoming call corresponding to the incoming call process, or may be the call corresponding to rejecting the incoming call process.
  • the target process is a call process, and the target operation is to end the call corresponding to the call process.
  • the embodiment of the present invention provides an application scenario.
  • the specific implementation process is as follows: after receiving an incoming call, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold, and the terminal is connected. The call.
  • the embodiment of the present invention provides another application scenario.
  • the specific implementation process is as follows: after receiving the short message, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold, and the terminal displays The text message.
  • the embodiment of the present invention provides another application scenario.
  • the specific implementation process is as follows: when the terminal is currently playing music, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold. The terminal pauses to play music.
  • the embodiment of the present invention provides another application scenario.
  • the specific implementation process is as follows: when the terminal is in the lock screen state, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold. The terminal releases the lock screen status of the terminal.
  • the embodiment of the present invention provides another application scenario.
  • the specific implementation process is as follows: when the terminal currently displays a certain page of the e-book, the user blows the microphone of the terminal; the terminal detects the volume of the sound emitted by the user. Above the target threshold, the terminal displays the next page of the page.
  • the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved.
  • the method further includes:
  • the volume display instruction instructing the terminal to display the detected volume
  • the receiving volume display instruction may be that the terminal receives a voice command for starting the volume display function.
  • the volume display function is a function of displaying the detected volume to the display of the terminal.
  • the user can send a volume display instruction to the terminal through voice.
  • the voice corresponding to the volume display command is "display the volume of the surrounding environment".
  • Receiving sound may also be a target gesture operation detected.
  • the above target gesture operation may be a sliding operation of a specified direction in the preset area.
  • the above preset area is an area that the user's thumb can cover when operating with one hand.
  • the specified direction can be up and/or down. As shown in FIG. 2, an interface of the terminal is shown in the figure, the rectangular area in the figure is a preset area, and the direction of the sliding operation is upward sliding.
  • the above display of the volume in the current environment may be to display the currently detected volume on the display screen of the terminal.
  • the volume displayed by the above terminal can also be updated at a certain time interval, such as updating in 3 seconds.
  • the rectangular window in the figure shows the volume in the current environment, 50 decibels, indicating that the currently detected volume is 50 decibels.
  • the terminal after receiving the volume display instruction, displays the detected volume in the current environment, so that the user can know the volume of the sound emitted by the terminal, and the operation is simple.
  • the foregoing method further includes:
  • the above target threshold is set according to the above volume setting command.
  • the user can set the above target threshold through the volume setting interface.
  • the receiving volume setting command may be that the terminal receives a setting operation for a target threshold through the volume setting interface.
  • the volume setting interface is displayed in the figure, and the rectangular area in the figure is an input window of the target threshold through which the target threshold can be set.
  • the target thresholds required by different users may be different, some users prefer lower thresholds, and some users prefer higher thresholds.
  • the user can set a target threshold according to his own needs, meet the needs of different users, and improve the user experience.
  • the terminal sets the target threshold according to the received volume setting instruction, and the operation is simple, and can meet the requirements of different users.
  • the method before the foregoing terminal detects the volume in the current environment, the method further includes:
  • the volume detection command is received, and the volume detection command is used to instruct the terminal to detect the volume in the environment.
  • the terminal When the terminal detects the volume in the environment, it must consume a certain amount of power and needs to perform some operations.
  • the terminal can detect the volume in the environment only when needed, does not detect when it is not needed, reduces the consumption of power, and reduces the workload of the terminal. For example, when the user does not use the terminal, the setting terminal does not detect the volume in the environment.
  • the terminal can start detecting the volume in the environment after receiving the above volume detection command.
  • the terminal may stop detecting the volume in the environment after receiving the volume stop detection command, and the volume stop detection instruction indicates the above
  • the terminal stops detecting the volume in the environment.
  • the above received volume detection command may be a selection operation for receiving a volume detection option. As shown in FIG.
  • the rectangular area in the figure is a volume detection option
  • the circular area on the right side of the rectangular area is a selection interface of the volume detection option.
  • the terminal after receiving the volume detection command, the terminal starts detecting the volume in the current environment, and can detect the volume in the environment only when needed, and reduce the consumption of the power.
  • the method further includes:
  • the foregoing terminal controlling the target process execution target operation includes:
  • the terminal controls the target process to perform the target operation
  • the target process currently performs an operation other than the target operation, determining, according to the volume interval in which the volume in the current environment is located, an operation to be performed by the target process, and controlling the execution of the target process to execute the target process. Operation.
  • the foregoing determining whether the target process currently only performs the target operation may be determining whether the target event can only trigger a target operation in the target process, where the target event is an event that the volume in the current environment reaches a target threshold.
  • the target process is an incoming call process, and the target process may perform an operation of turning on the incoming call request, or may perform an operation of rejecting the incoming call request; if the terminal determines that the volume in the current environment reaches the target threshold, the terminal occurs.
  • Target event the target process can only perform one of the operations of turning on the incoming call request or rejecting the incoming call request; then the target process currently only performs the target operation, the target operation is the operation of turning on the incoming call request or rejecting One of the operations of the incoming call request; if the terminal determines that the volume in the current environment reaches the target threshold, the target event occurs, and the target process can perform both the operation of turning on the incoming call request and the rejecting the incoming call request. Action; the target process is currently not only an executable target operation.
  • the volume range is a range of volumes, such as 60 decibels to 90 decibels.
  • a volume interval greater than a target threshold may be divided into at least two different volume intervals.
  • the target threshold is 60 decibels
  • the volume interval greater than the target threshold may be divided into a first volume interval and a second volume interval, the first volume interval being 60-90 decibels, and the second volume region
  • the interval is greater than 90 decibels.
  • the volume range in which the volume in the current environment detected by the terminal is located is different, and the operation required to be performed by the target process is different. For example, if the volume in the current environment is in the first volume interval, the operation required to be performed by the target process is the first operation; otherwise, the target process performs the second operation.
  • the problem that the target process can perform multiple operations is solved, and the target process can be guaranteed to perform the required operations correctly.
  • the operation required to perform the target process according to the volume interval in which the volume in the current environment is determined is controlled, and the operations required to control the target process to execute the target process include:
  • the terminal controls the target process to perform the first target operation
  • the terminal controls the target process to perform a second target operation; the smaller lower boundary of the first volume interval and the lower boundary of the second volume interval is greater than Or equal to the target threshold, and the first volume interval does not intersect with the second volume interval.
  • the user's terminal receives an incoming call request, and the user inputs a sound through the handset of the terminal. If the volume of the sound is in the first volume range, the terminal turns on the incoming call; if the volume of the sound is at the second volume Interval, reject the call.
  • the operation required to be performed by the target process is determined according to the volume interval in which the detected volume is located, and the operation required to be performed by the target process can be quickly and accurately determined.
  • the method further includes:
  • the terminal may receive the first setting instruction and the second setting instruction by using an operation setting interface.
  • the user may set the first volume interval to correspond to the first target operation and the second volume interval to correspond to the second target operation by operating the setting interface.
  • FIG. 5 the figure shows an operation setting interface.
  • the operation option on the right side of the first volume interval in the figure includes at least one operation executable by the target process, and the first volume interval and the first target are set by clicking the first target operation. The operation corresponds.
  • the terminal can set the correspondence between the volume interval and the operation, and the operation is simple, and can meet the requirements of different users.
  • the target process is an incoming call process, and the target operation is to connect or hang up the current incoming call of the incoming call process;
  • the target process is a music playing process
  • the target operation is to pause playing the music currently played by the music process or playing the next music of the music currently played by the music process.
  • the target process is a video request process, and the target operation is to accept or reject the current video request;
  • the target process is a reading process, and the target operation is to initiate an automatic page turning function
  • the target process is a lock screen process, and the target operation is to cancel the lock screen state of the terminal;
  • the target process is a short message process, and the target operation is to display a short message that is not currently viewed;
  • the target process is a call process, and the target operation is to end the call process;
  • the target process is a mail process
  • the target operation is to display the currently viewed mail.
  • the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved.
  • FIG. 6 is a schematic flowchart of an audio response method according to an embodiment of the present invention, where the method may include:
  • the volume detection command is used to instruct the terminal to detect the volume in the environment.
  • the terminal detects a volume in a current environment.
  • the above target process is an application process that is currently running by the terminal and can be controlled by a touch operation.
  • 605. Determine, according to the volume interval in which the volume in the current environment is located, an operation performed by the target process, and control an operation performed by the target process to execute the target process.
  • the foregoing terminal controls the target process to perform a target operation.
  • the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, and the operation is simple, and the one-handed operation is improved.
  • the efficiency of operating the terminal after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, and the operation is simple, and the one-handed operation is improved. The efficiency of operating the terminal.
  • FIG. 7 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • the terminal in this embodiment includes:
  • a detecting unit 701 configured to detect a volume in a current environment
  • a determining unit 702 configured to determine a situation that the volume in the current environment reaches a target threshold
  • the obtaining unit 703 is configured to acquire a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
  • the control unit 704 is configured to control the target process to perform a target operation.
  • the foregoing terminal further includes:
  • the receiving unit 705 is configured to receive a volume display instruction, where the volume display instruction instructs the terminal to display the detected volume;
  • the display unit 706 is configured to display the volume in the current environment.
  • the terminal after receiving the volume display instruction, displays the detected volume in the current environment, so that the user can know the volume of the sound emitted by the terminal, and the operation is simple.
  • the receiving unit 705 is further configured to receive a volume setting instruction.
  • the terminal further includes: a setting unit 707, configured to set the target threshold according to the volume setting instruction.
  • the terminal sets the target threshold according to the received volume setting instruction, and the operation is simple, and can meet the requirements of different users.
  • the receiving unit 705 is further configured to receive a volume detection command, where the volume detection command is used to instruct the terminal to detect a volume in the environment.
  • the terminal after receiving the volume detection command, the terminal starts detecting the volume in the current environment, and can detect the volume in the environment only when needed, and reduce the consumption of the power.
  • the foregoing terminal further includes:
  • the determining unit 708 is configured to determine whether the target process currently only performs the foregoing target operation
  • the control unit 704 is further configured to control the target process to perform the foregoing target operation
  • the determining unit 702 is further configured to determine, according to the volume interval in which the volume in the current environment is located, an operation required to be performed by the target process;
  • the control unit 704 is further configured to control an operation performed by the target process to execute the target process.
  • the problem that the target process can perform multiple operations is solved, and the target process can be guaranteed to perform the required operations correctly.
  • the determining unit 702 is further configured to determine that the volume in the current environment is located in the first volume interval; and determine that the volume in the current environment is in the second volume interval;
  • the control unit 704 is specifically configured to: when determining that the volume in the current environment is located in the first volume interval, the terminal controls the target process to perform a first target operation; and determine that the volume in the current environment is located in the second volume interval In the case that the terminal controls the target process to perform a second target operation; a smaller lower boundary of the first volume interval and the lower boundary of the second volume interval is greater than or equal to the target threshold, and the first volume interval is There is no intersection of the above second volume sections.
  • the operation required to be performed by the target process is determined according to the volume interval in which the detected volume is located, and the operation required to be performed by the target process can be quickly and accurately determined.
  • the receiving unit 705 is further configured to receive a first setting instruction, and receive a second setting instruction;
  • the setting unit 707 is further configured to set the first volume interval to correspond to the first target operation; and set the second volume interval to correspond to the second target operation.
  • the terminal can set the correspondence between the volume interval and the operation, and the operation is simple, and can meet the requirements of different users.
  • the target process is an incoming call process, and the target operation is to connect or hang up the current incoming call of the incoming call process;
  • the target process is a music playing process
  • the target operation is to pause playing the music currently played by the music process or playing the next music of the music currently played by the music process.
  • the target process is a video request process, and the target operation is to accept or reject the current video request;
  • the target process is a reading process, and the target operation is to initiate an automatic page turning function
  • the target process is a lock screen process, and the target operation is to cancel the lock screen state of the terminal;
  • the target process is a short message process, and the target operation is to display a short message that is not currently viewed;
  • the target process is a call process, and the target operation is to end the call process;
  • the target process is a mail process
  • the target operation is to display the currently viewed mail.
  • the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved.
  • FIG. 8 is a schematic block diagram of a terminal according to another embodiment of the present invention.
  • the terminal in this embodiment as shown may include one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804.
  • the above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805.
  • the memory 802 is used to store a computer program, the computer program includes program instructions, and the processor 801 is configured to execute program instructions stored in the memory 802.
  • the processor 801 is configured to invoke the foregoing program instruction to: detect a volume in a current environment; and obtain a target process in a case where it is determined that a volume in the current environment reaches a target threshold, where the target process is that the terminal is currently running.
  • An application process that can be controlled by a touch operation; the terminal controls the target process to perform a target operation.
  • the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 802 may include a touchpad, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, and the like, and the output device 803 may include a display (LCD or the like), a speaker, and the like.
  • a touchpad for collecting fingerprint information of the user and direction information of the fingerprint
  • a microphone for collecting fingerprint information of the user and direction information of the fingerprint
  • the output device 803 may include a display (LCD or the like), a speaker, and the like.
  • the memory 804 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
  • the processor 801, the input device 802, and the output device 803 described in the embodiments of the present invention may implement the implementation manner described in the foregoing embodiment of the audio response method provided by the embodiment of the present invention, and may also perform the present invention.
  • the implementation manner of the terminal described in the embodiment is not described herein again.
  • a computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instructions are executed by a processor, detecting: in a current environment Volume; in the case where it is determined that the volume in the current environment reaches the target threshold, the target is acquired.
  • the target process is an application process that is currently running by the terminal and can be controlled by a touch operation; the terminal controls the target process to perform a target operation.
  • the computer readable storage medium may be an internal storage unit of the terminal described above in any of the foregoing embodiments, such as a hard disk or a memory of the terminal.
  • the computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk provided on the terminal, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card), etc.
  • the above computer readable storage medium may also include both an internal storage unit of the above terminal and an external storage device.
  • the above computer readable storage medium is for storing the above computer program and other programs and data required by the above terminal.
  • the computer readable storage medium described above can also be used to temporarily store data that has been output or is about to be output.
  • FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 980. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The use of mobile phones Built data (such as audio data, phone book, etc.).
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 930 may include a touch panel 931 and other input devices 932.
  • the touch panel 931 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 930 or near the touch panel 930. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 930 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 980 is provided and can receive commands from the processor 980 and execute them.
  • the touch panel 930 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display panel 941.
  • the display panel 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 930 can cover the display panel 941. When the touch panel 930 detects a touch operation thereon or nearby, the touch panel 930 transmits to the processor 980 to determine the type of the touch event, and then the processor 980 according to the touch event. The type provides a corresponding visual output on display panel 941.
  • touch panel 930 and the display panel 941 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 9, in some embodiments, the touch panel 930 can be integrated with the display panel 941. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may close the display panel 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen).
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 9 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the disclosed terminal and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the above units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs.
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the above-described integrated unit if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Abstract

An audio response method, a terminal, and a computer readable medium. The method comprises: a terminal measures sound volume in a current environment (101); when it is determined that the sound volume in the current environment reaches a target threshold, obtain a target process (102), the target process being an application process that is currently run by the terminal and may be controlled by means of a touch operation; the terminal controls the target process to execute a target operation (103). By measuring sound volume in a current environment, and after it is determined that the sound volume in the current environment reaches a target threshold, controlling a target process to execute a target operation, a terminal may be controlled by audio to execute the target operation. The operation is simple, and the efficiency of operating the terminal by one hand is improved.

Description

音频响应方法、终端及计算机可读介质Audio response method, terminal and computer readable medium 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种音频响应方法、终端及计算机可读介质。The present invention relates to the field of electronic technologies, and in particular, to an audio response method, a terminal, and a computer readable medium.
背景技术Background technique
目前,市场上部分终端会配置大屏幕,大屏幕的终端能带来更好的视效体验,但是用户在单手操作时,可能有些操作不好实现。例如用户单手操作平板电脑的时候,该用户难以实现滑动操作、手势解锁操作等。At present, some terminals in the market will be equipped with large screens, and large-screen terminals can bring a better visual effect experience, but when the user operates with one hand, some operations may be difficult to implement. For example, when the user operates the tablet with one hand, it is difficult for the user to implement a slide operation, a gesture unlock operation, and the like.
当前采用的一种单手操作终端的方法是将终端平放在某个地方,使用单手进行操作。这种方案中,用户在单手操作终端之前需要将终端放到某个地方,操作繁琐,该方案无法解决用户单手持终端时,某些操作难以实现的问题。One method currently used to operate the terminal with one hand is to place the terminal flat somewhere and operate with one hand. In this solution, the user needs to put the terminal to a certain place before the one-hand operation of the terminal, and the operation is cumbersome. This solution cannot solve the problem that some operations are difficult to implement when the user single-handheld terminal is used.
发明内容Summary of the invention
本发明实施例提供一种音频响应方法,可提高单手操作终端的效率,实现简单。The embodiment of the invention provides an audio response method, which can improve the efficiency of the one-hand operation terminal and is simple to implement.
第一方面,本发明实施例提供了一种音频响应方法,该方法包括:In a first aspect, an embodiment of the present invention provides an audio response method, where the method includes:
终端检测当前环境中的音量;The terminal detects the volume in the current environment;
在确定所述当前环境中的音量达到目标阈值的情况下,获取目标进程,所述目标进程为所述终端当前运行且可通过触摸操作进行控制的应用进程;And determining, in a case that the volume in the current environment reaches a target threshold, acquiring a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
所述终端控制所述目标进程执行目标操作。The terminal controls the target process to perform a target operation.
第二方面,本发明实施例提供了一种终端,该终端包括用于执行上述第一方面的方法的单元。In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes a unit for performing the method of the foregoing first aspect.
第三方面,本发明实施例提供了另一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used for storage. A computer program supporting a terminal for performing the above method, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机存储介质存储 有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer storage medium is stored. There is a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
本发明实施例通过检测当前环境中的音量,在确定当前环境中的音量达到目标阈值后,控制目标进程执行目标操作,可以通过音频控制终端执行目标操作,操作简单,提高单手操作终端的效率。In the embodiment of the present invention, after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved. .
附图说明DRAWINGS
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1是本发明实施例提供的一种音频响应方法的示意流程图;1 is a schematic flow chart of an audio response method according to an embodiment of the present invention;
图2是本发明实施例提供的一种接收音量显示指令的示意图;2 is a schematic diagram of a receiving volume display instruction according to an embodiment of the present invention;
图3是本发明实施例提供的一种显示检测到的音量的示意图;FIG. 3 is a schematic diagram of displaying a detected volume according to an embodiment of the present invention; FIG.
图4A是本发明实施例提供的一种音量设置界面的结构示意图;4A is a schematic structural diagram of a volume setting interface according to an embodiment of the present invention;
图4B是本发明实施例提供的一种设置界面的示意图;4B is a schematic diagram of a setting interface according to an embodiment of the present invention;
图5是本发明实施例提供的一种操作设置界面的结构示意图;FIG. 5 is a schematic structural diagram of an operation setting interface according to an embodiment of the present invention; FIG.
图6是本发明另一实施例提供的一种音频响应方法的示意流程图;FIG. 6 is a schematic flowchart of an audio response method according to another embodiment of the present invention; FIG.
图7是本发明实施例提供的一种终端的示意性框图;FIG. 7 is a schematic block diagram of a terminal according to an embodiment of the present disclosure;
图8是本发明另一实施例提供的一种终端示意性框图;FIG. 8 is a schematic block diagram of a terminal according to another embodiment of the present invention; FIG.
图9是本发明另一实施例提供的一种终端示意性框图。FIG. 9 is a schematic block diagram of a terminal according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、 整体、步骤、操作、元素、组件和/或其集合的存在或添加。The use of the terms "comprising", "comprising", "","," Multiple other features, The existence or addition of the whole, steps, operations, elements, components, and/or collections thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It is also to be understood that the terminology of the present invention is to be construed as a The singular forms "", ",",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It is further understood that the term "and/or" used in the description of the invention and the appended claims means any combination and all possible combinations of one or more of the associated listed items, .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "on" or "in response to determining" or "in response to detecting" depending on the context. . Similarly, the phrase "if determined" or "if detected [condition or event described]" may be interpreted in context to mean "once determined" or "in response to determining" or "once detected [condition or event described] ] or "in response to detecting [conditions or events described]".
具体实现中,本发明实施例中描述的终端包括但不限于诸如具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的移动电话、膝上型计算机或平板计算机之类的其它便携式设备。还应当理解的是,在某些实施例中,所述设备并非便携式通信设备,而是具有触摸敏感表面(例如,触摸屏显示器和/或触摸板)的台式计算机。In particular implementations, the terminals described in this embodiment of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers or tablet computers having touch sensitive surfaces (eg, touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch sensitive surface (eg, a touch screen display and/or a touch pad).
在接下来的讨论中,描述了包括显示器和触摸敏感表面的终端。然而,应当理解的是,终端可以包括诸如物理键盘、鼠标和/或控制杆的一个或多个其它物理用户接口设备。In the following discussion, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal can include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
终端支持各种应用程序,例如以下中的一个或多个:绘图应用程序、演示应用程序、文字处理应用程序、网站创建应用程序、盘刻录应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息收发应用程序、锻炼支持应用程序、照片管理应用程序、数码相机应用程序、数字摄影机应用程序、web浏览应用程序、数字音乐播放器应用程序和/或数字视频播放器应用程序。The terminal supports a variety of applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, phone applications Programs, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital camera applications, web browsing applications, digital music player applications, and / or digital video player app.
可以在终端上执行的各种应用程序可以使用诸如触摸敏感表面的至少一个公共物理用户接口设备。可以在应用程序之间和/或相应应用程序内调整和/或改变触摸敏感表面的一个或多个功能以及终端上显示的相应信息。这样,终端的公共物理架构(例如,触摸敏感表面)可以支持具有对用户而言直观且透明的用户界面的各种应用程序。Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed within the application and/or within the respective application. In this way, the common physical architecture of the terminal (eg, a touch-sensitive surface) can support a variety of applications with a user interface that is intuitive and transparent to the user.
参见图1,是本发明实施例提供一种音频响应方法的示意流程图,该方法可包括:Referring to FIG. 1 , it is a schematic flowchart of an audio response method according to an embodiment of the present invention. The method may include:
101、终端检测当前环境中的音量; 101. The terminal detects a volume in a current environment.
上述终端可以是手机、平板电脑、可穿戴设备、个人数字助理等。上述终端检测当前环境中的音量可以上述终端通过听筒检测当前环境的音量;也可以是上述终端通过声音传感器检测当前环境的音量。可以理解,上述终端检测当前环境中的音量可以是检测周围环境中声音的分贝值。举例来说,用户对着终端的话筒说话,终端检测该用户说话的音量。又举例来说,用户对着终端的话筒吹气,终端检测该用户吹气发出的声音的音量。可以理解,终端可以通过声音传感器检测周围环境中的音量。The above terminal may be a mobile phone, a tablet, a wearable device, a personal digital assistant, or the like. The terminal detecting the volume in the current environment may be that the terminal detects the volume of the current environment through the earpiece; or the terminal may detect the volume of the current environment by using the sound sensor. It can be understood that the above terminal detecting the volume in the current environment may be detecting a decibel value of the sound in the surrounding environment. For example, the user speaks into the microphone of the terminal, and the terminal detects the volume of the user's speech. For another example, the user blows at the microphone of the terminal, and the terminal detects the volume of the sound emitted by the user. It can be understood that the terminal can detect the volume in the surrounding environment through the sound sensor.
102、在确定上述当前环境中的音量达到目标阈值的情况下,获取目标进程,上述目标进程为上述终端当前运行且可通过触摸操作进行控制的应用进程;Obtaining, in a case that the volume in the current environment reaches a target threshold, acquiring a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
上述目标阈值可以是预先设置的阈值,如40分贝、50分贝、60分贝、90分贝等。上述目标进程为预置列表中的进程,且上述预置列表中的进程均为可通过触摸操作进行控制的应用进程。举例来说,预置列表中可以包含10个进程,这10个进程可以是邮件应用、短信应用、通话应用等10个不同的应用对应的进程。The above target threshold may be a preset threshold such as 40 decibels, 50 decibels, 60 decibels, 90 decibels, or the like. The target process is a process in the preset list, and the processes in the preset list are all application processes that can be controlled by touch operations. For example, the preset list may include 10 processes, which may be processes corresponding to 10 different applications, such as a mail application, a short message application, and a call application.
上述获取目标进程可以是获取当前运行且位于上述预置列表中的进程。上述目标进程可以是来电进程、音乐播放进程、视频请求进程、阅读进程、锁屏进程、通话进程、短信进程、邮件进程等。来电进程是指来电请求对应的进程,当终端接收到来电时,可以检测到来电进程,终端通过控制来电进程可以接通来电或者挂断来电。音乐播放进程是指播放音乐的进程,终端通过控制音乐播放进程可以暂停播放当前播放的音乐,也可以播放上述音乐进程当前播放的音乐的下一首音乐。视频请求进程是指视频请求对应的进程,当终端接收到视频请求时,终端检测到视频请求进程,终端通过控制视频请求进程可以接通该视频请求或者拒绝该视频请求。阅读进程是指阅读电子书或者浏览网页对应的进程,终端可以通过控制阅读进程进行翻页,即从当前页面切换到当前页面的下一页面。锁屏进程是指控制终端进行锁屏和屏幕解锁的进程,终端通过控制锁屏进程可以进行屏幕解锁或锁屏。通话进程是指支持终端进行通话的进程,终端通过通话进程可以断开通话连接。短信进程是指示终端当前包含未查看的短信的进程,终端在接收到短信后,可以检测到短信进程。终端通过短信进程可以打开最近接收到的未查看的短信。邮件进程是指示终端当前包含未查看的邮件的进程,终端在接收到邮件后,可以检测到邮件进程,终端通过邮件进程可以打开最近接收到的未查看的邮件。The obtaining target process may be to acquire a process that is currently running and located in the preset list. The target process may be an incoming call process, a music playing process, a video requesting process, a reading process, a lock screen process, a call progress, a short message process, a mail process, and the like. The incoming call process refers to the process corresponding to the incoming call request. When the terminal receives the incoming call, the incoming call process can be detected. The terminal can connect the incoming call or hang up the incoming call by controlling the incoming call process. The music playing process refers to the process of playing music. The terminal can pause the playing of the currently playing music by controlling the music playing process, and can also play the next music of the music currently played by the above music process. The video request process refers to a process corresponding to the video request. When the terminal receives the video request, the terminal detects the video request process, and the terminal can control the video request process to turn on the video request or reject the video request. The reading process refers to the process of reading an e-book or browsing a webpage, and the terminal can turn the page by controlling the reading process, that is, switching from the current page to the next page of the current page. The lock screen process refers to the process of controlling the terminal to perform the lock screen and the screen unlocking. The terminal can unlock the screen or lock the screen by controlling the lock screen process. The call process refers to a process that supports the terminal to make a call, and the terminal can disconnect the call through the call process. The short message process is a process indicating that the terminal currently includes an unreviewed short message, and the terminal can detect the short message process after receiving the short message. The terminal can open the recently received unreviewed short message through the short message process. The mail process is a process indicating that the terminal currently contains unreviewed mail. After receiving the mail, the terminal can detect the mail process, and the terminal can open the recently received unchecked mail through the mail process.
在实际应用中,用户可以通过触摸操作控制上述目标进程。举例来说,目标进程为来 电进程,用户在接收到来电时,手机的屏幕上显示接听选项和拒接选项,用户可以通过触摸操作选择相应的选项,接听该来电或者拒接该来电。又举例来说,目标进程为音乐播放进程,用户可以点击音乐播放界面中的暂停按键暂停播放当前播放的音乐。In practical applications, the user can control the above target process by touch operation. For example, the target process is coming During the process of receiving the incoming call, the user displays the answering option and the rejecting option on the screen of the mobile phone. The user can select the corresponding option by touch operation, answer the incoming call or reject the incoming call. For another example, the target process is a music playing process, and the user can click the pause button in the music playing interface to pause the currently playing music.
103、上述终端控制上述目标进程执行目标操作。103. The terminal controls the target process to perform a target operation.
上述目标操作为上述目标进程可以实现的操作。举例来说,目标进程为来电进程,目标操作可以是接听该来电进程对应的来电,也可以是拒接该来电进程对应的来电。又举例来说,目标进程为通话进程,目标操作为结束该通话进程对应的通话。The above target operation is an operation that can be implemented by the above target process. For example, the target process is an incoming call process, and the target operation may be to answer the incoming call corresponding to the incoming call process, or may be the call corresponding to rejecting the incoming call process. For another example, the target process is a call process, and the target operation is to end the call corresponding to the call process.
本发明实施例提供了一种应用场景,具体实现过程如下:用户在接收到来电后,对着终端的话筒进行吹气;终端检测到用户吹气发出的声音的音量大于目标阈值,终端接通该来电。本发明实施例提供了又一种应用场景,具体实现过程如下:用户在接收到短信后,对着终端的话筒进行吹气;终端检测到用户吹气发出的声音的音量大于目标阈值,终端显示该短信。The embodiment of the present invention provides an application scenario. The specific implementation process is as follows: after receiving an incoming call, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold, and the terminal is connected. The call. The embodiment of the present invention provides another application scenario. The specific implementation process is as follows: after receiving the short message, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold, and the terminal displays The text message.
本发明实施例提供了又一种应用场景,具体实现过程如下:终端当前在播放音乐时,用户对着该终端的话筒进行吹气;终端检测到用户吹气发出的声音的音量大于目标阈值,终端暂停播放音乐。本发明实施例提供了又一种应用场景,具体实现过程如下:终端处于锁屏状态时,用户对着该终端的话筒进行吹气;终端检测到用户吹气发出的声音的音量大于目标阈值,终端解除终端的锁屏状态。本发明实施例提供了又一种应用场景,具体实现过程如下:终端当前显示电子书的某个页面时,用户对着该终端的话筒进行吹气;终端检测到用户吹气发出的声音的音量大于目标阈值,终端显示该页面的下一页面。The embodiment of the present invention provides another application scenario. The specific implementation process is as follows: when the terminal is currently playing music, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold. The terminal pauses to play music. The embodiment of the present invention provides another application scenario. The specific implementation process is as follows: when the terminal is in the lock screen state, the user blows the microphone of the terminal; the terminal detects that the volume of the sound emitted by the user is greater than the target threshold. The terminal releases the lock screen status of the terminal. The embodiment of the present invention provides another application scenario. The specific implementation process is as follows: when the terminal currently displays a certain page of the e-book, the user blows the microphone of the terminal; the terminal detects the volume of the sound emitted by the user. Above the target threshold, the terminal displays the next page of the page.
本发明实施例通过检测当前环境中的音量,在确定当前环境中的音量达到目标阈值后,控制目标进程执行目标操作,可以通过音频控制终端执行目标操作,操作简单,提高单手操作终端的效率。In the embodiment of the present invention, after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved. .
在一种可选的实现方式中,上述终端检测当前环境中的音量之后,上述方法还包括:In an optional implementation manner, after the foregoing terminal detects the volume in the current environment, the method further includes:
接收音量显示指令,上述音量显示指令指示上述终端显示检测到的音量;Receiving a volume display instruction, the volume display instruction instructing the terminal to display the detected volume;
显示上述当前环境中的音量。The volume in the current environment above is displayed.
上述接收音量显示指令可以是上述终端接收到用于启动音量显示功能的语音指令。音量显示功能是指将检测到的音量显示到终端的显示屏的功能。用户可以通过语音向终端发送音量显示指令。例如,音量显示指令对应的语音为“显示周围环境的音量”。上述接收音 量显示指令还可以是检测到目标手势操作。上述目标手势操作可以是预设区域中指定方向的滑动操作。上述预设区域为单手操作时,用户的拇指可以覆盖的区域。指定方向可以是向上和/或向下。如图2所示,图中显示的是终端的一个界面,图中的矩形区域为预设区域,滑动操作的方向为向上滑动。The receiving volume display instruction may be that the terminal receives a voice command for starting the volume display function. The volume display function is a function of displaying the detected volume to the display of the terminal. The user can send a volume display instruction to the terminal through voice. For example, the voice corresponding to the volume display command is "display the volume of the surrounding environment". Receiving sound The volume display instruction may also be a target gesture operation detected. The above target gesture operation may be a sliding operation of a specified direction in the preset area. The above preset area is an area that the user's thumb can cover when operating with one hand. The specified direction can be up and/or down. As shown in FIG. 2, an interface of the terminal is shown in the figure, the rectangular area in the figure is a preset area, and the direction of the sliding operation is upward sliding.
上述显示上述当前环境中的音量可以是将当前检测到的音量显示到终端的显示屏上。上述终端显示的音量还可以按照一定的时间间隔进行更新,如3秒钟更新一次。如图3所示,图中的矩形窗口显示的内容为当前环境中的音量,50分贝,表示当前检测到的音量为50分贝。The above display of the volume in the current environment may be to display the currently detected volume on the display screen of the terminal. The volume displayed by the above terminal can also be updated at a certain time interval, such as updating in 3 seconds. As shown in Figure 3, the rectangular window in the figure shows the volume in the current environment, 50 decibels, indicating that the currently detected volume is 50 decibels.
本发明实施例中,终端在接收到音量显示指令后,显示检测到的当前环境中的音量,可以使得用户知道其所发出的声音的音量,操作简单。In the embodiment of the present invention, after receiving the volume display instruction, the terminal displays the detected volume in the current environment, so that the user can know the volume of the sound emitted by the terminal, and the operation is simple.
在一种可选的实现方式中,上述方法还包括:In an optional implementation manner, the foregoing method further includes:
接收音量设置指令;Receiving a volume setting command;
依据上述音量设置指令设置上述目标阈值。The above target threshold is set according to the above volume setting command.
用户可以通过音量设置界面设置上述目标阈值。上述接收音量设置指令可以是上述终端通过音量设置界面接收针对目标阈值的设置操作。如图4A所示,图中显示的为音量设置界面,图中的矩形区域为目标阈值的输入窗口,通过该输入窗口可以设置目标阈值。不同的用户所需的目标阈值可能不同,有些用户喜欢比较低的阈值,有些用户喜欢比较高的阈值。本发明实施例中,用户可以根据自己的需要设置目标阈值,满足不同用户的需求,提高用户体验。The user can set the above target threshold through the volume setting interface. The receiving volume setting command may be that the terminal receives a setting operation for a target threshold through the volume setting interface. As shown in FIG. 4A, the volume setting interface is displayed in the figure, and the rectangular area in the figure is an input window of the target threshold through which the target threshold can be set. The target thresholds required by different users may be different, some users prefer lower thresholds, and some users prefer higher thresholds. In the embodiment of the present invention, the user can set a target threshold according to his own needs, meet the needs of different users, and improve the user experience.
本发明实施例中,终端依据接收的音量设置指令设置目标阈值,操作简单,可以满足不同用户的需求。In the embodiment of the present invention, the terminal sets the target threshold according to the received volume setting instruction, and the operation is simple, and can meet the requirements of different users.
在一种可选的实现方式中,上述终端检测当前环境中的音量之前,上述方法还包括:In an optional implementation manner, before the foregoing terminal detects the volume in the current environment, the method further includes:
接收音量检测指令,上述音量检测指令用于指示上述终端检测环境中的音量。The volume detection command is received, and the volume detection command is used to instruct the terminal to detect the volume in the environment.
终端检测环境中的音量,必然需要消耗一定的电量,且需要执行一些操作。终端可以只在需要的时候检测环境中的音量,在不需要的时候不进行检测,减少电量的消耗,并减轻终端的工作负担。例如,用户在不使用终端的时候,设置终端不对环境中的音量进行检测。终端可以在接收到上述音量检测指令之后,开始检测环境中的音量。终端可以在接收到上述音量停止检测指令之后,停止检测环境中的音量,上述音量停止检测指令指示上述 终端停止检测环境中的音量。上述接收音量检测指令可以是接收到针对音量检测选项的选择操作。如图4B所示,图中矩形区域中为音量检测选项,该矩形区域右边的圆形区域为音量检测选项的选择接口,用户点击该选择接口后,该选择接口变为黑色,终端接收到音量检测指令。可以理解,用户点击被选中的选择接口后,该选择接口由黑色变为白色,终端接收到音量停止检测指令,停止检测环境中的音量。When the terminal detects the volume in the environment, it must consume a certain amount of power and needs to perform some operations. The terminal can detect the volume in the environment only when needed, does not detect when it is not needed, reduces the consumption of power, and reduces the workload of the terminal. For example, when the user does not use the terminal, the setting terminal does not detect the volume in the environment. The terminal can start detecting the volume in the environment after receiving the above volume detection command. The terminal may stop detecting the volume in the environment after receiving the volume stop detection command, and the volume stop detection instruction indicates the above The terminal stops detecting the volume in the environment. The above received volume detection command may be a selection operation for receiving a volume detection option. As shown in FIG. 4B, the rectangular area in the figure is a volume detection option, and the circular area on the right side of the rectangular area is a selection interface of the volume detection option. After the user clicks the selection interface, the selection interface becomes black, and the terminal receives the volume. Test instructions. It can be understood that after the user clicks on the selected selection interface, the selection interface changes from black to white, and the terminal receives the volume stop detection instruction and stops detecting the volume in the environment.
本发明实施例中,终端在接收音量检测指令后,开始检测当前环境中的音量,可以仅在需要的时候检测环境中的音量,减少电量的消耗。In the embodiment of the present invention, after receiving the volume detection command, the terminal starts detecting the volume in the current environment, and can detect the volume in the environment only when needed, and reduce the consumption of the power.
在一种可选的实现方式中,上述终端控制上述目标进程执行目标操作之前,上述方法还包括:In an optional implementation manner, before the foregoing terminal controls the target process to perform a target operation, the method further includes:
判断上述目标进程当前是否仅可执行上述目标操作;Determining whether the target process currently only performs the above target operation;
上述终端控制上述目标进程执行目标操作包括:The foregoing terminal controlling the target process execution target operation includes:
在上述目标进程当前仅可执行上述目标操作的情况下,上述终端控制上述目标进程执行上述目标操作;In the case that the target process currently only performs the above target operation, the terminal controls the target process to perform the target operation;
在上述目标进程当前可执行上述目标操作以外的操作的情况下,依据上述当前环境中的音量所处的音量区间确定上述目标进程所需执行的操作,控制上述目标进程执行上述目标进程所需执行的操作。In the case that the target process currently performs an operation other than the target operation, determining, according to the volume interval in which the volume in the current environment is located, an operation to be performed by the target process, and controlling the execution of the target process to execute the target process. Operation.
上述判断上述目标进程当前是否仅可执行上述目标操作可以是判断目标事件是否仅可触发上述目标进程中的目标操作,上述目标事件为上述当前环境中的音量达到目标阈值的事件。举例来说,目标进程为来电进程,该目标进程可以执行接通该来电请求的操作,也可以执行拒接该来电请求的操作;若终端在确定当前环境中的音量达到目标阈值后,即发生目标事件,目标进程仅可以执行接通该来电请求的操作或者拒接该来电请求的操作中的一个;则目标进程当前仅可执行目标操作,该目标操作为接通该来电请求的操作或者拒接该来电请求的操作中的一个;若终端在确定当前环境中的音量达到目标阈值后,即发生目标事件,目标进程既可以执行接通该来电请求的操作又可以执行拒接该来电请求的操作;则目标进程当前不是仅可执行目标操作。The foregoing determining whether the target process currently only performs the target operation may be determining whether the target event can only trigger a target operation in the target process, where the target event is an event that the volume in the current environment reaches a target threshold. For example, the target process is an incoming call process, and the target process may perform an operation of turning on the incoming call request, or may perform an operation of rejecting the incoming call request; if the terminal determines that the volume in the current environment reaches the target threshold, the terminal occurs. Target event, the target process can only perform one of the operations of turning on the incoming call request or rejecting the incoming call request; then the target process currently only performs the target operation, the target operation is the operation of turning on the incoming call request or rejecting One of the operations of the incoming call request; if the terminal determines that the volume in the current environment reaches the target threshold, the target event occurs, and the target process can perform both the operation of turning on the incoming call request and the rejecting the incoming call request. Action; the target process is currently not only an executable target operation.
音量区间是一个音量的范围,如60分贝到90分贝。可以将大于目标阈值的音量区间划分为至少两个不同的音量区间。举例来说,目标阈值为60分贝,大于该目标阈值的音量区间可以划分为第一音量区间和第二音量区间,第一音量区间为60-90分贝,第二音量区 间为大于90分贝。上述终端检测到的上述当前环境中的音量所处的音量区间不同,上述目标进程所需执行的操作不同。举例来说,若当前环境中的音量位于第一音量区间,则目标进程所需执行的操作为第一操作;否则,该目标进程执行第二操作。The volume range is a range of volumes, such as 60 decibels to 90 decibels. A volume interval greater than a target threshold may be divided into at least two different volume intervals. For example, the target threshold is 60 decibels, and the volume interval greater than the target threshold may be divided into a first volume interval and a second volume interval, the first volume interval being 60-90 decibels, and the second volume region The interval is greater than 90 decibels. The volume range in which the volume in the current environment detected by the terminal is located is different, and the operation required to be performed by the target process is different. For example, if the volume in the current environment is in the first volume interval, the operation required to be performed by the target process is the first operation; otherwise, the target process performs the second operation.
本发明实施例中,解决了目标进程可执行多个操作的问题,可以保证目标进程正确地执行所需的操作。In the embodiment of the present invention, the problem that the target process can perform multiple operations is solved, and the target process can be guaranteed to perform the required operations correctly.
在前述实施例的基础上,上述依据上述当前环境中的音量所处的音量区间确定上述目标进程所需执行的操作,控制上述目标进程执行上述目标进程所需执行的操作包括:On the basis of the foregoing embodiment, the operation required to perform the target process according to the volume interval in which the volume in the current environment is determined is controlled, and the operations required to control the target process to execute the target process include:
在确定上述当前环境中的音量位于第一音量区间的情况下,上述终端控制上述目标进程执行第一目标操作;In a case where it is determined that the volume in the current environment is located in the first volume interval, the terminal controls the target process to perform the first target operation;
在确定上述当前环境中的音量位于第二音量区间的情况下,上述终端控制上述目标进程执行第二目标操作;上述第一音量区间与上述第二音量区间的下边界中较小的下边界大于或者等于上述目标阈值,且上述第一音量区间与上述第二音量区间没有交集。In a case where it is determined that the volume in the current environment is located in the second volume interval, the terminal controls the target process to perform a second target operation; the smaller lower boundary of the first volume interval and the lower boundary of the second volume interval is greater than Or equal to the target threshold, and the first volume interval does not intersect with the second volume interval.
在实际应用中,用户的终端接收到来电请求,该用户通过该终端的听筒输入声音,若该声音的音量在第一音量区间,则终端接通该来电;若该声音的音量在第二音量区间,拒接该来电。In an actual application, the user's terminal receives an incoming call request, and the user inputs a sound through the handset of the terminal. If the volume of the sound is in the first volume range, the terminal turns on the incoming call; if the volume of the sound is at the second volume Interval, reject the call.
本发明实施例中,依据检测到的音量所处的音量区间确定目标进程所需执行的操作,可以快速、准确地确定目标进程所需执行的操作。In the embodiment of the present invention, the operation required to be performed by the target process is determined according to the volume interval in which the detected volume is located, and the operation required to be performed by the target process can be quickly and accurately determined.
在前述实施例的基础上,上述终端控制上述目标进程执行目标操作之前,上述方法还包括:On the basis of the foregoing embodiment, before the foregoing terminal controls the target process to perform the target operation, the method further includes:
在接收到第一设置指令后,设置上述第一音量区间与上述第一目标操作相对应;After receiving the first setting instruction, setting the first volume interval to correspond to the first target operation;
在接收到第二设置指令后,设置上述第二音量区间与上述第二目标操作相对应。After receiving the second setting instruction, setting the second volume interval to correspond to the second target operation.
上述终端可以通过操作设置界面接收上述第一设置指令和上述第二设置指令。用户可以通过操作设置界面设置上述第一音量区间与上述第一目标操作相对应以及设置上述第二音量区间与上述第二目标操作相对应。如图5所示,图中显示的为操作设置界面,图中第一音量区间右边的操作选项包含至少一个目标进程可执行的操作,通过点击第一目标操作设置第一音量区间与第一目标操作相对应。The terminal may receive the first setting instruction and the second setting instruction by using an operation setting interface. The user may set the first volume interval to correspond to the first target operation and the second volume interval to correspond to the second target operation by operating the setting interface. As shown in FIG. 5, the figure shows an operation setting interface. The operation option on the right side of the first volume interval in the figure includes at least one operation executable by the target process, and the first volume interval and the first target are set by clicking the first target operation. The operation corresponds.
本发明实施例中,终端可以设置音量区间与操作的对应关系,操作简单,可以满足不同用户的需求。 In the embodiment of the present invention, the terminal can set the correspondence between the volume interval and the operation, and the operation is simple, and can meet the requirements of different users.
在一种可选的实现方式中,上述目标进程为来电进程,上述目标操作为接通或挂断上述来电进程当前的来电;In an optional implementation manner, the target process is an incoming call process, and the target operation is to connect or hang up the current incoming call of the incoming call process;
或者,上述目标进程为音乐播放进程,上述目标操作为暂停播放上述音乐进程当前播放的音乐或者播放上述音乐进程当前播放的音乐的下一首音乐。Alternatively, the target process is a music playing process, and the target operation is to pause playing the music currently played by the music process or playing the next music of the music currently played by the music process.
或者,上述目标进程为视频请求进程,上述目标操作为接受或者拒绝当前的视频请求;Alternatively, the target process is a video request process, and the target operation is to accept or reject the current video request;
或者,上述目标进程为阅读进程,上述目标操作为启动自动翻页功能;Alternatively, the target process is a reading process, and the target operation is to initiate an automatic page turning function;
或者,上述目标进程为锁屏进程,上述目标操作为解除上述终端的锁屏状态;Alternatively, the target process is a lock screen process, and the target operation is to cancel the lock screen state of the terminal;
或者,上述目标进程为短信进程,上述目标操作为显示当前未查看的短信;Alternatively, the target process is a short message process, and the target operation is to display a short message that is not currently viewed;
上述目标进程为通话进程,上述目标操作为结束上述通话进程;The target process is a call process, and the target operation is to end the call process;
或者,上述目标进程为邮件进程,上述目标操作为显示当前为查看的邮件。Alternatively, the target process is a mail process, and the target operation is to display the currently viewed mail.
本发明实施例通过检测当前环境中的音量,在确定当前环境中的音量达到目标阈值后,控制目标进程执行目标操作,可以通过音频控制终端执行目标操作,操作简单,提高单手操作终端的效率。In the embodiment of the present invention, after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved. .
参见图6,是本发明实施例提供一种音频响应方法的示意流程图,该方法可包括:FIG. 6 is a schematic flowchart of an audio response method according to an embodiment of the present invention, where the method may include:
601、接收音量检测指令;601. Receive a volume detection instruction.
上述音量检测指令用于指示终端检测环境中的音量。The volume detection command is used to instruct the terminal to detect the volume in the environment.
602、终端检测当前环境中的音量;602. The terminal detects a volume in a current environment.
603、在确定上述当前环境中的音量达到目标阈值的情况下,获取目标进程;603. Acquire a target process when determining that the volume in the current environment reaches a target threshold.
上述目标进程为上述终端当前运行且可通过触摸操作进行控制的应用进程。The above target process is an application process that is currently running by the terminal and can be controlled by a touch operation.
604、判断上述目标进程当前是否仅可执行目标操作;604. Determine whether the target process currently only performs a target operation.
若是,执行607;若否,执行605。If yes, execute 607; if no, execute 605.
605、依据上述当前环境中的音量所处的音量区间确定上述目标进程所需执行的操作,控制上述目标进程执行上述目标进程所需执行的操作;605. Determine, according to the volume interval in which the volume in the current environment is located, an operation performed by the target process, and control an operation performed by the target process to execute the target process.
606、接收音量设置指令,依据上述音量设置指令设置上述目标阈值;606. Receive a volume setting command, and set the target threshold according to the volume setting instruction.
607、上述终端控制上述目标进程执行目标操作;607. The foregoing terminal controls the target process to perform a target operation.
608、在接收音量停止检测指令后,停止检测环境中的音量。608. After receiving the volume stop detection command, stop detecting the volume in the environment.
本发明实施例通过检测当前环境中的音量,在确定当前环境中的音量达到目标阈值后,控制目标进程执行目标操作,可以通过音频控制终端执行目标操作,操作简单,提高单手 操作终端的效率。In the embodiment of the present invention, after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, and the operation is simple, and the one-handed operation is improved. The efficiency of operating the terminal.
本发明实施例还提供一种终端,该终端用于执行前述任一项上述的方法的单元。具体地,参见图7,是本发明实施例提供的一种终端的示意框图。本实施例的终端包括:An embodiment of the present invention further provides a terminal, where the terminal is used to perform the foregoing method. Specifically, FIG. 7 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal in this embodiment includes:
检测单元701,用于检测当前环境中的音量;a detecting unit 701, configured to detect a volume in a current environment;
确定单元702,用于确定上述当前环境中的音量达到目标阈值的情况;a determining unit 702, configured to determine a situation that the volume in the current environment reaches a target threshold;
获取单元703,用于获取目标进程,上述目标进程为上述终端当前运行且可通过触摸操作进行控制的应用进程;The obtaining unit 703 is configured to acquire a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
控制单元704,用于控制上述目标进程执行目标操作。The control unit 704 is configured to control the target process to perform a target operation.
具体实现方法与图1中的方法相同,这里不作详述。The specific implementation method is the same as the method in FIG. 1, and will not be described in detail herein.
在一种可选的实现方式中,上述终端还包括:In an optional implementation manner, the foregoing terminal further includes:
接收单元705,用于接收音量显示指令,上述音量显示指令指示上述终端显示检测到的音量;The receiving unit 705 is configured to receive a volume display instruction, where the volume display instruction instructs the terminal to display the detected volume;
显示单元706,用于显示上述当前环境中的音量。The display unit 706 is configured to display the volume in the current environment.
本发明实施例中,终端在接收到音量显示指令后,显示检测到的当前环境中的音量,可以使得用户知道其所发出的声音的音量,操作简单。In the embodiment of the present invention, after receiving the volume display instruction, the terminal displays the detected volume in the current environment, so that the user can know the volume of the sound emitted by the terminal, and the operation is simple.
在一种可选的实现方式中,上述接收单元705,还用于接收音量设置指令;上述终端还包括:设置单元707,用于依据上述音量设置指令设置上述目标阈值。In an optional implementation manner, the receiving unit 705 is further configured to receive a volume setting instruction. The terminal further includes: a setting unit 707, configured to set the target threshold according to the volume setting instruction.
本发明实施例中,终端依据接收的音量设置指令设置目标阈值,操作简单,可以满足不同用户的需求。In the embodiment of the present invention, the terminal sets the target threshold according to the received volume setting instruction, and the operation is simple, and can meet the requirements of different users.
在一种可选的实现方式中,上述接收单元705,还用于接收音量检测指令,上述音量检测指令用于指示上述终端检测环境中的音量。In an optional implementation manner, the receiving unit 705 is further configured to receive a volume detection command, where the volume detection command is used to instruct the terminal to detect a volume in the environment.
本发明实施例中,终端在接收音量检测指令后,开始检测当前环境中的音量,可以仅在需要的时候检测环境中的音量,减少电量的消耗。In the embodiment of the present invention, after receiving the volume detection command, the terminal starts detecting the volume in the current environment, and can detect the volume in the environment only when needed, and reduce the consumption of the power.
在一种可选的实现方式中,上述终端还包括:In an optional implementation manner, the foregoing terminal further includes:
判断单元708,用于判断上述目标进程当前是否仅可执行上述目标操作;The determining unit 708 is configured to determine whether the target process currently only performs the foregoing target operation;
上述控制单元704,还用于控制上述目标进程执行上述目标操作;The control unit 704 is further configured to control the target process to perform the foregoing target operation;
上述确定单元702,还用于依据上述当前环境中的音量所处的音量区间确定上述目标进程所需执行的操作; The determining unit 702 is further configured to determine, according to the volume interval in which the volume in the current environment is located, an operation required to be performed by the target process;
上述控制单元704,还用于控制上述目标进程执行上述目标进程所需执行的操作。The control unit 704 is further configured to control an operation performed by the target process to execute the target process.
本发明实施例中,解决了目标进程可执行多个操作的问题,可以保证目标进程正确地执行所需的操作。In the embodiment of the present invention, the problem that the target process can perform multiple operations is solved, and the target process can be guaranteed to perform the required operations correctly.
在一种可选的实现方式中,上述确定单元702,还用于确定上述当前环境中的音量位于第一音量区间的情况;确定上述当前环境中的音量位于第二音量区间的情况;In an optional implementation manner, the determining unit 702 is further configured to determine that the volume in the current environment is located in the first volume interval; and determine that the volume in the current environment is in the second volume interval;
上述控制单元704,具体用于在确定上述当前环境中的音量位于第一音量区间的情况下,上述终端控制上述目标进程执行第一目标操作;在确定上述当前环境中的音量位于第二音量区间的情况下,上述终端控制上述目标进程执行第二目标操作;上述第一音量区间与上述第二音量区间的下边界中较小的下边界大于或者等于上述目标阈值,且上述第一音量区间与上述第二音量区间没有交集。The control unit 704 is specifically configured to: when determining that the volume in the current environment is located in the first volume interval, the terminal controls the target process to perform a first target operation; and determine that the volume in the current environment is located in the second volume interval In the case that the terminal controls the target process to perform a second target operation; a smaller lower boundary of the first volume interval and the lower boundary of the second volume interval is greater than or equal to the target threshold, and the first volume interval is There is no intersection of the above second volume sections.
本发明实施例中,依据检测到的音量所处的音量区间确定目标进程所需执行的操作,可以快速、准确地确定目标进程所需执行的操作。In the embodiment of the present invention, the operation required to be performed by the target process is determined according to the volume interval in which the detected volume is located, and the operation required to be performed by the target process can be quickly and accurately determined.
在一种可选的实现方式中,上述接收单元705,还用于接收第一设置指令;接收第二设置指令;In an optional implementation manner, the receiving unit 705 is further configured to receive a first setting instruction, and receive a second setting instruction;
上述设置单元707,还用于设置上述第一音量区间与上述第一目标操作相对应;设置上述第二音量区间与上述第二目标操作相对应。The setting unit 707 is further configured to set the first volume interval to correspond to the first target operation; and set the second volume interval to correspond to the second target operation.
本发明实施例中,终端可以设置音量区间与操作的对应关系,操作简单,可以满足不同用户的需求。In the embodiment of the present invention, the terminal can set the correspondence between the volume interval and the operation, and the operation is simple, and can meet the requirements of different users.
在一种可选的实现方式中,上述目标进程为来电进程,上述目标操作为接通或挂断上述来电进程当前的来电;In an optional implementation manner, the target process is an incoming call process, and the target operation is to connect or hang up the current incoming call of the incoming call process;
或者,上述目标进程为音乐播放进程,上述目标操作为暂停播放上述音乐进程当前播放的音乐或者播放上述音乐进程当前播放的音乐的下一首音乐。Alternatively, the target process is a music playing process, and the target operation is to pause playing the music currently played by the music process or playing the next music of the music currently played by the music process.
或者,上述目标进程为视频请求进程,上述目标操作为接受或者拒绝当前的视频请求;Alternatively, the target process is a video request process, and the target operation is to accept or reject the current video request;
或者,上述目标进程为阅读进程,上述目标操作为启动自动翻页功能;Alternatively, the target process is a reading process, and the target operation is to initiate an automatic page turning function;
或者,上述目标进程为锁屏进程,上述目标操作为解除上述终端的锁屏状态;Alternatively, the target process is a lock screen process, and the target operation is to cancel the lock screen state of the terminal;
或者,上述目标进程为短信进程,上述目标操作为显示当前未查看的短信;Alternatively, the target process is a short message process, and the target operation is to display a short message that is not currently viewed;
上述目标进程为通话进程,上述目标操作为结束上述通话进程;The target process is a call process, and the target operation is to end the call process;
或者,上述目标进程为邮件进程,上述目标操作为显示当前为查看的邮件。 Alternatively, the target process is a mail process, and the target operation is to display the currently viewed mail.
本发明实施例通过检测当前环境中的音量,在确定当前环境中的音量达到目标阈值后,控制目标进程执行目标操作,可以通过音频控制终端执行目标操作,操作简单,提高单手操作终端的效率。In the embodiment of the present invention, after detecting the volume in the current environment, after determining that the volume in the current environment reaches the target threshold, the target process is controlled to perform the target operation, and the target operation can be performed through the audio control terminal, the operation is simple, and the efficiency of the one-hand operation terminal is improved. .
参见图8,是本发明另一实施例提供的一种终端示意框图。如图所示的本实施例中的终端可以包括:一个或多个处理器801;一个或多个输入设备802,一个或多个输出设备803和存储器804。上述处理器801、输入设备802、输出设备803和存储器804通过总线805连接。存储器802用于存储计算机程序,上述计算机程序包括程序指令,处理器801用于执行存储器802存储的程序指令。其中,处理器801被配置用于调用上述程序指令执行:检测当前环境中的音量;在确定上述当前环境中的音量达到目标阈值的情况下,获取目标进程,上述目标进程为上述终端当前运行且可通过触摸操作进行控制的应用进程;上述终端控制上述目标进程执行目标操作。FIG. 8 is a schematic block diagram of a terminal according to another embodiment of the present invention. The terminal in this embodiment as shown may include one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805. The memory 802 is used to store a computer program, the computer program includes program instructions, and the processor 801 is configured to execute program instructions stored in the memory 802. The processor 801 is configured to invoke the foregoing program instruction to: detect a volume in a current environment; and obtain a target process in a case where it is determined that a volume in the current environment reaches a target threshold, where the target process is that the terminal is currently running. An application process that can be controlled by a touch operation; the terminal controls the target process to perform a target operation.
应当理解,在本发明实施例中,所称处理器801可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
输入设备802可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备803可以包括显示器(LCD等)、扬声器等。The input device 802 may include a touchpad, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, and the like, and the output device 803 may include a display (LCD or the like), a speaker, and the like.
该存储器804可以包括只读存储器和随机存取存储器,并向处理器801提供指令和数据。存储器804的一部分还可以包括非易失性随机存取存储器。例如,存储器804还可以存储设备类型的信息。The memory 804 can include read only memory and random access memory and provides instructions and data to the processor 801. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
具体实现中,本发明实施例中所描述的处理器801、输入设备802、输出设备803可执行本发明实施例提供的音频响应方法的前述实施例中所描述的实现方式,也可执行本发明实施例所描述的终端的实现方式,在此不再赘述。In a specific implementation, the processor 801, the input device 802, and the output device 803 described in the embodiments of the present invention may implement the implementation manner described in the foregoing embodiment of the audio response method provided by the embodiment of the present invention, and may also perform the present invention. The implementation manner of the terminal described in the embodiment is not described herein again.
在本发明的另一实施例中提供一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序包括程序指令,上述程序指令被处理器执行时实现:检测当前环境中的音量;在确定上述当前环境中的音量达到目标阈值的情况下,获取目标进 程,上述目标进程为上述终端当前运行且可通过触摸操作进行控制的应用进程;上述终端控制上述目标进程执行目标操作。In another embodiment of the present invention, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, the computer program comprising program instructions, when the program instructions are executed by a processor, detecting: in a current environment Volume; in the case where it is determined that the volume in the current environment reaches the target threshold, the target is acquired. The target process is an application process that is currently running by the terminal and can be controlled by a touch operation; the terminal controls the target process to perform a target operation.
上述计算机可读存储介质可以是前述任一实施例上述的终端的内部存储单元,例如终端的硬盘或内存。上述计算机可读存储介质也可以是上述终端的外部存储设备,例如上述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述计算机可读存储介质还可以既包括上述终端的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述终端所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the terminal described above in any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk provided on the terminal, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card. (Flash Card), etc. Further, the above computer readable storage medium may also include both an internal storage unit of the above terminal and an external storage device. The above computer readable storage medium is for storing the above computer program and other programs and data required by the above terminal. The computer readable storage medium described above can also be used to temporarily store data that has been output or is about to be output.
图9示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图9,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图9中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 9, the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 9 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图9对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 9:
RF电路910可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器980处理;另外,将设计上行的数据发送给基站。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 980. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创 建的数据(比如音频数据、电话本等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The use of mobile phones Built data (such as audio data, phone book, etc.). Moreover, memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控面板931以及其他输入设备932。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板930上或在触控面板930附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板930可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器980,并能接收处理器980发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板930。除了触控面板930,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 930 or near the touch panel 930. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 930 can include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 980 is provided and can receive commands from the processor 980 and execute them. In addition, the touch panel 930 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 930, the input unit 930 may also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。进一步的,触控面板930可覆盖显示面板941,当触控面板930检测到在其上或附近的触摸操作后,传送给处理器980以确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板930与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板930与显示面板941集成而实现手机的输入和输出功能。The display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 940 can include a display panel 941. Alternatively, the display panel 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 930 can cover the display panel 941. When the touch panel 930 detects a touch operation thereon or nearby, the touch panel 930 transmits to the processor 980 to determine the type of the touch event, and then the processor 980 according to the touch event. The type provides a corresponding visual output on display panel 941. Although the touch panel 930 and the display panel 941 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 9, in some embodiments, the touch panel 930 can be integrated with the display panel 941. Realize the input and output functions of the phone.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏 切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may close the display panel 941 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as well as other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. This will not be repeated here.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset. The audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961. On the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access. Although FIG. 9 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。The handset also includes a power source 990 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的终端和 单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be apparent to those skilled in the art that, for the convenience and brevity of the description, the terminal described above and For the specific working process of the unit, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs. The units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the above-described methods of various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种音频响应方法,其特征在于,包括:An audio response method, comprising:
    终端检测当前环境中的音量;The terminal detects the volume in the current environment;
    在确定所述当前环境中的音量达到目标阈值的情况下,获取目标进程,所述目标进程为所述终端当前运行且可通过触摸操作进行控制的应用进程;And determining, in a case that the volume in the current environment reaches a target threshold, acquiring a target process, where the target process is an application process that is currently running by the terminal and can be controlled by a touch operation;
    所述终端控制所述目标进程执行目标操作。The terminal controls the target process to perform a target operation.
  2. 根据权利要求1所述的方法,其特征在于,所述终端检测当前环境中的音量之后,所述方法还包括:The method according to claim 1, wherein after the terminal detects the volume in the current environment, the method further includes:
    接收音量显示指令,所述音量显示指令指示所述终端显示检测到的音量;Receiving a volume display instruction, the volume display instruction instructing the terminal to display the detected volume;
    显示所述当前环境中的音量。The volume in the current environment is displayed.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    接收音量设置指令;Receiving a volume setting command;
    依据所述音量设置指令设置所述目标阈值。The target threshold is set according to the volume setting instruction.
  4. 根据权利要求3所述的方法,其特征在于,所述终端检测当前环境中的音量之前,所述方法还包括:The method according to claim 3, wherein before the detecting the volume in the current environment, the method further comprises:
    接收音量检测指令,所述音量检测指令用于指示所述终端检测环境中的音量。A volume detection instruction is received, the volume detection instruction is used to instruct the terminal to detect a volume in the environment.
  5. 根据权利要求4所述的方法,其特征在于,所述终端控制所述目标进程执行目标操作之前,所述方法还包括:The method according to claim 4, wherein before the controlling the target process to perform a target operation, the method further comprises:
    判断所述目标进程当前是否仅可执行所述目标操作;Determining whether the target process currently only performs the target operation;
    所述终端控制所述目标进程执行目标操作包括:The terminal controlling the target process to perform a target operation includes:
    在所述目标进程当前仅可执行所述目标操作的情况下,所述终端控制所述目标进程执行所述目标操作;And in a case that the target process can only perform the target operation, the terminal controls the target process to perform the target operation;
    在所述目标进程当前可执行所述目标操作以外的操作的情况下,依据所述当前环境中的音量所处的音量区间确定所述目标进程所需执行的操作,控制所述目标进程执行所述目标进程所需执行的操作。In a case that the target process currently performs an operation other than the target operation, determining, according to a volume interval in which the volume in the current environment is located, an operation required to be performed by the target process, and controlling the target process execution The operations required to perform the target process.
  6. 根据权利要求5所述的方法,其特征在于,所述依据所述当前环境中的音量所处的音量区间确定所述目标进程所需执行的操作,控制所述目标进程执行所述目标进程所需执行的操作包括: The method according to claim 5, wherein said determining, according to a volume interval in which said volume in said current environment is located, an operation required to be performed by said target process, controlling said target process to execute said target process The actions to be performed include:
    在确定所述当前环境中的音量位于第一音量区间的情况下,所述终端控制所述目标进程执行第一目标操作;In a case of determining that the volume in the current environment is in the first volume interval, the terminal controls the target process to perform a first target operation;
    在确定所述当前环境中的音量位于第二音量区间的情况下,所述终端控制所述目标进程执行第二目标操作;所述第一音量区间与所述第二音量区间的下边界中较小的下边界大于或者等于所述目标阈值,且所述第一音量区间与所述第二音量区间没有交集。In a case of determining that the volume in the current environment is in the second volume interval, the terminal controls the target process to perform a second target operation; the first volume interval is lower than the lower boundary of the second volume interval The small lower boundary is greater than or equal to the target threshold, and the first volume interval does not intersect with the second volume interval.
  7. 根据权利要求6所述的方法,其特征在于,所述终端控制所述目标进程执行目标操作之前,所述方法还包括:The method according to claim 6, wherein the method further comprises: before the terminal controls the target process to perform a target operation, the method further comprises:
    在接收到第一设置指令后,设置所述第一音量区间与所述第一目标操作相对应;After receiving the first setting instruction, setting the first volume interval to correspond to the first target operation;
    在接收到第二设置指令后,设置所述第二音量区间与所述第二目标操作相对应。After receiving the second setting instruction, setting the second volume interval corresponds to the second target operation.
  8. 根据权利要求1至7任意一项所述的方法,其特征在于,所述目标进程为来电进程,所述目标操作为接通或挂断所述来电进程当前的来电;The method according to any one of claims 1 to 7, wherein the target process is an incoming call process, and the target operation is to turn on or hang up the current incoming call of the incoming call process;
    或者,所述目标进程为音乐播放进程,所述目标操作为暂停播放所述音乐进程当前播放的音乐或者播放所述音乐进程当前播放的音乐的下一首音乐;Or the target process is a music playing process, and the target operation is to pause playing the music currently played by the music process or playing the next music of the music currently played by the music process;
    或者,所述目标进程为视频请求进程,所述目标操作为接受或者拒绝当前的视频请求;Or the target process is a video request process, and the target operation is to accept or reject the current video request;
    或者,所述目标进程为阅读进程,所述目标操作为启动自动翻页功能;Alternatively, the target process is a reading process, and the target operation is to initiate an automatic page turning function;
    或者,所述目标进程为锁屏进程,所述目标操作为解除所述终端的锁屏状态;Or the target process is a lock screen process, and the target operation is to cancel the lock screen state of the terminal;
    或者,所述目标进程为短信进程,所述目标操作为显示当前未查看的短信;Or the target process is a short message process, and the target operation is to display a short message that is not currently viewed;
    所述目标进程为通话进程,所述目标操作为结束所述通话进程;The target process is a call process, and the target operation is to end the call process;
    或者,所述目标进程为邮件进程,所述目标操作为显示当前为查看的邮件。Alternatively, the target process is a mail process, and the target operation is to display a message that is currently viewed.
  9. 一种终端,其特征在于,包括用于执行如权利要求1-8任一权利要求所述的方法的单元。A terminal characterized by comprising means for performing the method of any of claims 1-8.
  10. 一种终端,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-8任一项所述的方法。 A terminal, comprising: a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program A program instruction is included, the processor being configured to invoke the program instructions to perform the method of any of claims 1-8.
PCT/CN2017/099483 2017-08-29 2017-08-29 Audio response method, terminal, and computer readable medium WO2019041130A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099483 WO2019041130A1 (en) 2017-08-29 2017-08-29 Audio response method, terminal, and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099483 WO2019041130A1 (en) 2017-08-29 2017-08-29 Audio response method, terminal, and computer readable medium

Publications (1)

Publication Number Publication Date
WO2019041130A1 true WO2019041130A1 (en) 2019-03-07

Family

ID=65524656

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099483 WO2019041130A1 (en) 2017-08-29 2017-08-29 Audio response method, terminal, and computer readable medium

Country Status (1)

Country Link
WO (1) WO2019041130A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412708A (en) * 2013-07-31 2013-11-27 华为技术有限公司 Terminal equipment and task management method applied to same
CN103826015A (en) * 2014-03-19 2014-05-28 广东欧珀移动通信有限公司 Method for switching songs through double MICs and mobile terminal
CN104461238A (en) * 2014-11-27 2015-03-25 广东欧珀移动通信有限公司 Application icon processing method and terminal
CN105338162A (en) * 2014-06-30 2016-02-17 展讯通信(上海)有限公司 Method and system for adaptively adjusting incoming call prompting modes of mobile phone
CN105549863A (en) * 2015-12-16 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal and page turning method thereof
CN106375566A (en) * 2016-08-31 2017-02-01 珠海格力电器股份有限公司 Mobile phone use method and apparatus, and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412708A (en) * 2013-07-31 2013-11-27 华为技术有限公司 Terminal equipment and task management method applied to same
CN103826015A (en) * 2014-03-19 2014-05-28 广东欧珀移动通信有限公司 Method for switching songs through double MICs and mobile terminal
CN105338162A (en) * 2014-06-30 2016-02-17 展讯通信(上海)有限公司 Method and system for adaptively adjusting incoming call prompting modes of mobile phone
CN104461238A (en) * 2014-11-27 2015-03-25 广东欧珀移动通信有限公司 Application icon processing method and terminal
CN105549863A (en) * 2015-12-16 2016-05-04 惠州Tcl移动通信有限公司 Mobile terminal and page turning method thereof
CN106375566A (en) * 2016-08-31 2017-02-01 珠海格力电器股份有限公司 Mobile phone use method and apparatus, and terminal

Similar Documents

Publication Publication Date Title
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
WO2019154181A1 (en) Display control method and mobile terminal
WO2019015404A1 (en) Method and apparatus for switching applications in split screen mode, and related device thereof
US20200133487A1 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
TWI520043B (en) Method, device and moving terminal for examining messages
WO2021017742A1 (en) Method for controlling application, and electronic apparatus
WO2014206101A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
WO2018049887A1 (en) Data transmission processing method and terminal device
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
WO2015043194A1 (en) Virtual keyboard display method and apparatus, and terminal
WO2019154182A1 (en) Method for setting volume of application program, and mobile terminal
CN108415641B (en) Icon processing method and mobile terminal
US20200174741A1 (en) Audio Playing Method and Electronic Device
WO2018049893A1 (en) Data transmission method and terminal device
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
WO2018209555A1 (en) Bluetooth device connection method and terminal device
WO2020156123A1 (en) Information processing method and terminal device
WO2021238719A1 (en) Information display method and electronic device
WO2013135169A1 (en) Method for adjusting input-method keyboard and mobile terminal thereof
WO2021036603A1 (en) Application program control method and terminal
WO2020238445A1 (en) Screen recording method and terminal
WO2017206853A1 (en) Swiping response acceleration method and related products
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
WO2016192518A1 (en) Method and device for interaction between terminals
TW201541337A (en) Method, device and system for displaying messages in mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17923962

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17923962

Country of ref document: EP

Kind code of ref document: A1