CN109982208B - Control method and terminal equipment - Google Patents

Control method and terminal equipment Download PDF

Info

Publication number
CN109982208B
CN109982208B CN201910222855.1A CN201910222855A CN109982208B CN 109982208 B CN109982208 B CN 109982208B CN 201910222855 A CN201910222855 A CN 201910222855A CN 109982208 B CN109982208 B CN 109982208B
Authority
CN
China
Prior art keywords
signal
audio
target
frequency
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910222855.1A
Other languages
Chinese (zh)
Other versions
CN109982208A (en
Inventor
覃宝强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910222855.1A priority Critical patent/CN109982208B/en
Publication of CN109982208A publication Critical patent/CN109982208A/en
Application granted granted Critical
Publication of CN109982208B publication Critical patent/CN109982208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a control method and terminal equipment, relates to the technical field of terminals, and aims to solve the problem that the conventional mode for controlling the terminal equipment to stop outputting audio is not convenient enough. The method comprises the following steps: controlling a first audio output module of the audio output device to output a preset signal; controlling an audio input module of the audio output device to collect signals, wherein the audio input module is electrically connected with a second audio output module of the audio output device; and outputting or stopping outputting the audio signal according to the parameters of the target signal acquired by the audio input module, wherein the target signal comprises a signal in a preset signal.

Description

Control method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a control method and terminal equipment.
Background
In general, the headset includes a wireless headset and a wired headset, and the terminal device may output audio in the terminal device through the headset.
At present, when a user listens to music using a headset, if the user wants to stop playing the music, the user needs to trigger the terminal device to display a playing interface, and then manually control the terminal device to stop playing the music on the playing interface.
However, in the above control method, if it is inconvenient for the user to operate the interface of the terminal device, the terminal device may not be controlled to stop playing music, so that the method of controlling the terminal device to stop outputting audio is not convenient at present.
Disclosure of Invention
The embodiment of the invention provides a control method and terminal equipment, and aims to solve the problem that the conventional mode for controlling the terminal equipment to stop outputting audio is not convenient enough.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a control method, where the method includes: controlling a first audio output module of the audio output device to output a preset signal; controlling an audio input module of the audio output device to collect signals, wherein the audio input module is electrically connected with a second audio output module of the audio output device; and outputting or stopping outputting the audio signal according to the parameters of the target signal acquired by the audio input module, wherein the target signal comprises the signal in the preset signal.
In a second aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a control module and an output module; the control module is used for controlling a first audio output module of the audio output equipment to output a preset signal and controlling an audio input module of the audio output equipment to acquire a signal, and the audio input module is electrically connected with a second audio output module of the audio output equipment; the output module is used for outputting or stopping outputting the audio signal according to the parameters of the target signal collected by the audio input module, wherein the target signal comprises the signal in the preset signal.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and operable on the processor, and when executed by the processor, the computer program implements the steps of the control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the control method according to the first aspect.
In the embodiment of the present invention, first, the terminal device controls a first audio output device of the audio output devices to output a preset signal, then, the terminal device controls an audio input module of the audio output device to collect a signal, and finally, the terminal device outputs or stops outputting an audio signal according to a parameter of a target signal collected by the audio input module, since the target signal includes a signal in the preset signal, that is, the terminal device can determine whether to output or stop outputting an audio signal according to the parameter of the preset signal collected by the audio input module, without manually controlling a control terminal to output or stop outputting an audio signal, and in a case where a user does not conveniently operate an interface of the terminal device, the terminal device can be conveniently controlled to output or stop outputting an audio, for example, stopping playing music, therefore, the control method provided by the embodiment of the present invention, the terminal equipment can be controlled to stop outputting the audio conveniently, and user experience is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
FIG. 2 is a block diagram of a control system according to an embodiment of the present invention;
fig. 3 is a first flowchart of a control method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a control method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a control method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device according to various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first audio output module and the second audio output module, etc. are used to distinguish different audio output modules, rather than to describe a particular order of the audio output modules.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the control method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the control method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the control method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the control method provided by the embodiment of the invention by running the software program in the android operating system.
Fig. 2 is a control system according to an embodiment of the present invention, where the control system includes a terminal device 200, and an audio output device 201 that establishes a communication connection with the terminal device 200, where the audio output device 201 includes a first audio output module 201a, a second audio output module 201b, and an audio input module 201c, and the audio input module 201c is electrically connected to the second audio output module 201b of the audio output device 201.
The terminal device 200 sends a preset signal to the first audio output module 201a, the audio input module 201c is used for acquiring a signal, and the first audio output module 201a and the second audio output module 201b are used for outputting an audio signal sent by the terminal device 200.
It can be understood that, when the terminal device executes the control method provided by the embodiment of the present invention, a communication connection for transmitting an audio signal is established between the terminal device and the audio output device, and the communication connection may be a wired connection or a wireless connection. For example, if the audio output device is a wired headset, the terminal device may establish a wired connection with the wired headset, and if the audio output device is a wireless headset, the terminal device may establish a wireless connection, for example, a bluetooth connection, with the wireless headset.
For example, the audio output device may be a headphone, the audio input module is a microphone, the first audio output module is an earphone of the two channels of the headphone that is not on the same side as the microphone, and the second audio output module is an earphone of the two channels of the headphone that is on the same side as the microphone.
The control method according to the embodiment of the present invention will be described with reference to fig. 3. Fig. 3 is a flowchart illustrating a control method according to an embodiment of the present invention, and as shown in fig. 3, the control method includes steps S301 to S303:
s301, the terminal device controls a first audio output module of the audio output device to output a preset signal.
Optionally, the preset signal may be sent to the audio output device by the terminal device first, and then the audio output device outputs the preset signal through the first audio output module; the preset signal may also be an output instruction sent by the terminal device to the audio output device, and the audio output device directly outputs the received output instruction sent by the first audio output module.
S302, the terminal device controls an audio input module of the audio output device to collect signals.
The audio input module is electrically connected with the second audio output module of the audio output device.
Optionally, the terminal device may send a collection instruction to the audio output device to control an audio output module of the audio output device to collect a signal.
And S303, the terminal equipment outputs or stops outputting the audio signal according to the parameters of the target signal acquired by the audio input module.
Wherein the target signal comprises a signal in the preset signal.
It can be understood that the terminal device outputs the audio signal to the audio output device, for example, playing music, playing video, voice call, video call, and the like, which is not limited in this embodiment of the present invention.
It should be noted that, when a wireless connection is established between the terminal device and the audio output device, the preset signal, the output instruction, the collecting instruction, the collected signal, and the like may be transmitted through the wireless connection, and when a wired connection is established between the terminal device and the audio output device, the preset signal, the output instruction, the collecting instruction, the collected signal, and the like may be transmitted through the wired connection, which is not specifically limited in the embodiment of the present invention.
It should be noted that, a setting option, such as "smart play," may be included in the terminal device, so that a user may conveniently determine whether to enable the smart output and stop the output function in the embodiment of the present invention.
Optionally, the intelligent output may be a play function, and the intelligent stop output may be a function of pausing play, stopping play, or the like.
The control method provided in this embodiment of the present invention includes first controlling, by a terminal device, a first audio output device of an audio output device to output a preset signal, then controlling, by the terminal device, an audio input module of the audio output device to collect a signal, and finally outputting or stopping outputting an audio signal by the terminal device according to a parameter of a target signal collected by the audio input module, where the target signal includes a signal in the preset signal, that is, the terminal device may determine whether to output or stop outputting the audio signal according to the parameter of the preset signal collected by the audio input module, and does not need to manually control a control terminal to output or stop outputting the audio signal, and may conveniently control the terminal device to output or stop outputting the audio, for example, stopping playing music, in a case where a user does not conveniently operate an interface of the terminal device, the terminal equipment can be controlled to stop outputting the audio conveniently, and user experience is improved.
Optionally, the parameters of the target signal include frequency and signal strength.
One possible implementation manner of S303 in the control method provided in the embodiment of the present invention may be specifically executed by the following S303a and S303b, or S303a and S303 c:
s303a, the terminal device determines whether the parameter of the target signal satisfies a preset condition.
Wherein the preset conditions are as follows: the frequency of the collected signal comprises a target frequency, the signal intensity of the collected signal with the target frequency is in a target interval, and the target frequency is the frequency of the signal in the preset signal.
It should be noted that the target interval may be configured or may be configured by a user, and this is not specifically limited in the embodiment of the present invention.
It should be noted that the signal intensity in the target interval is attenuated less, i.e., the audio output device may be considered not to be worn on the head of the user.
And S303b, if the parameter of the target signal meets the preset condition, the terminal equipment stops outputting the audio signal.
And S303c, if the parameter of the target signal does not meet the preset condition, the terminal equipment outputs the audio signal.
It should be noted that in S303c, the audio signal output by the terminal device may be a continuous output audio signal or a start of outputting the audio signal, which is not specifically limited in this embodiment of the present invention.
Based on the scheme, the terminal equipment can determine whether the preset condition is met or not according to the parameters of the target signal to determine whether to stop outputting the audio signal or output the audio signal, manual triggering of a user is not needed, and the mode of controlling the terminal to output or stop outputting is more convenient.
Specifically, S301 described above may be executed by S301 a:
s301a, the terminal device controls the first audio output module to output a preset signal according to a first period.
Specifically, S302 described above may be performed by S302 a:
s302a, the terminal device controls the audio input module to collect signals according to the second period.
Optionally, the first period may have the same duration and the same interval as the second period, or may be different from the second period, and the terminal device may use the same duration as the duration for outputting the preset signal and the duration for acquiring the signal, and use the same duration as the time interval for outputting the preset signal and the time interval for acquiring the signal.
It can be understood that, through the periodic output of the preset signal, the terminal device does not need to output the preset signal all the time, and through the periodic acquisition of the signal, the terminal device does not need to acquire the signal all the time, so that the occupation of the resources of the terminal device can be avoided.
A possible implementation manner of the control method provided in the embodiment of the present invention is that the step S303b may be specifically executed by the step S303b1, and the step S303c may be specifically executed by the step S303c 1:
and S303b1, if the number of times that the parameter of the target signal meets the preset condition exceeds a first threshold value in the first time length, the terminal equipment stops outputting the audio signal.
It should be noted that the first duration is the shortest duration that the number of times that the preset condition is met is equal to the first threshold, and the first duration is a preset duration, for example, 30 seconds, 1 minute, 2 minutes, and the like.
And S303c1, if the number of times that the parameter of the target signal does not meet the preset condition exceeds a second threshold value in the second time length, the terminal equipment outputs the audio signal.
Optionally, the first time period and the second time period may be the same or different, and this is not specifically limited in this embodiment of the present invention.
Optionally, the first threshold and the second threshold may be the same or different, and this is not specifically limited in this embodiment of the present invention.
Based on the scheme, whether the terminal equipment needs to stop outputting or output the audio signal can be judged more accurately by increasing the times of meeting the preset conditions, and the situation that the user just takes off the earphone and takes the earphone on the terminal equipment and the terminal equipment also stops outputting the audio signal is avoided.
Optionally, the preset signal may include M sub-signals, the target signal includes at least one of the M sub-signals, and M is a positive integer.
Optionally, the M sub-signals are all ultrasonic signals.
It can be understood that the ultrasonic signal is a signal outside the human hearing range, and when the user uses the audio output device, the preset signal output by the terminal device controlling the audio output device will not interfere with the playing of the normal audio.
It should be noted that when M is equal to 1, the target signal includes a signal of one frequency, and the target signal may be an ultrasonic signal. For example, an ultrasonic signal having a frequency of 40KHZ may be used.
Illustratively, assume that the predetermined signal includes signals of two frequencies, f1 and f2, respectively, and the signal strength is P0The preset condition is that the frequency of the detected signal includes at least one of f1 and f2, and the intensity of the signal is [ P ]0-ΔP,P0]And (4) the following steps. Assume that the predetermined signal includes two signals with frequencies f1 and f2, respectively, and the signal strength P is P with frequency f11The signal strength is P at frequency f22The preset condition is that the frequency of the detected signal includes at least one of f1 and f2, and if the frequency of the detected signal includes f1, the strength of the signal with the frequency of f1 is [ P1 ]1-ΔP1,P1]If the frequency of the detected signal includes f2The signal with frequency f2 has intensity [ P ]2-ΔP2,P2]And (4) the following steps.
Optionally, if the preset signal includes a plurality of sub-signals, the terminal device may send each sub-signal simultaneously, or may send the sub-signals sequentially, which is not specifically limited in this embodiment of the present invention.
It can be understood that the signals with multiple frequencies are used as the preset signal, so that the anti-interference performance of the terminal device can be increased, and the influence of the signals with the same frequency as the preset signal in the environment can be reduced by judging whether the signals with multiple frequencies meet the preset condition.
It should be noted that, the user may select only the function of intelligently stopping playing in the terminal device, that is, only determine whether a condition for stopping playing is satisfied, and if so, stop playing. Both of examples 1 and 2 below are used to describe the flow of stopping playback. In example 1, the conditions for stopping playing are as follows: the signals collected by the microphone comprise signals with the frequency f1, and the signal intensity of the signals with the frequency f1 is in an interval 1; in example 2, the conditions for stopping playback are: the signals acquired by the 5-time determination microphones include a signal with a frequency f1, and the signal strength of the signal with the frequency f1 is within the interval 1.
Example 1
Assuming that the frequency of the preset signal is f1 and the signal strength is P1, and the right earphone is provided with a microphone, as shown in fig. 4, the control method may specifically include the following steps:
s401, the terminal equipment is in transmission connection with the left earphone and the right earphone.
It can be understood that if the audio output device is a bluetooth headset, a bluetooth connection is established, and if the audio output device is a wired headset that can be connected to the terminal device, the transmission connection established between the terminal device and the left and right headsets is a wired connection established by inserting the headset into a headset hole of the terminal device.
And S402, the terminal equipment outputs audio signals to the left earphone and the right earphone.
It should be noted that, if the terminal device has output the audio signal before the transmission connection is established with the left earphone and the right earphone, the terminal device may start to output the audio signal to the left earphone and the right earphone after the transmission connection is established.
After the terminal device establishes transmission connection with the left earphone and the right earphone, the terminal device may also output the audio signal through the control of the user, or determine whether to output the audio signal according to the following steps, which is not specifically limited in the embodiment of the present invention.
That is, after S401, S402 may be executed first and then S403 may be executed, or S403 may be executed first without executing S402.
And S403, the terminal equipment transmits an ultrasonic signal with the frequency f1 and the signal strength P1 to the left earphone according to the first period.
And S404, the terminal equipment controls a microphone on the right earphone to collect signals according to a second period.
And then, the microphone collects signals and sends the signals to the terminal equipment.
S405, the terminal equipment determines whether the frequency of the collected signal comprises f 1.
If the frequency of the collected signal includes f1, the terminal device performs S406 described below, and if the collected signal does not include f1, the terminal device continues to perform S402.
S406, the terminal device determines whether the signal strength of the signal with the frequency f1 is within the interval 1.
Note that the signal strength attenuation in interval 1 is small, indicating that the headset may not be worn on the head of the user.
If the signal strength of the signal of the frequency f1 is within the section 1, the terminal device executes S407 described below, and if the signal strength of the signal of the frequency f1 is not within the section 1, the terminal device continues to execute S402.
And S407, the terminal equipment stops outputting audio signals to the left earphone and the earphone.
It is understood that in this example, the terminal device detects that the signal strength of the signal with the frequency f1 including f1 is within the interval 1, i.e., the output of the audio signal may be stopped.
Example 2
Assuming that the frequency of the preset signal is f1, the signal strength is P1, a microphone is disposed on the right earphone, the first threshold is 5, the second threshold is 1, and the first time duration is the time that the time taken by the terminal device to satisfy the condition for the 5 th time cannot exceed the preset condition after the terminal device establishes a transmission connection with the audio output device for the 1 st time and the preset condition is satisfied, as shown in fig. 5, the control method may specifically include the following steps:
S501-S504 refer to S401-S404 in example 1, and are not described herein again.
And S505, the terminal equipment determines whether the frequency of the acquired signal comprises f 1.
In the case where it is determined that the frequency of the acquired signal includes f1, the terminal device performs S506 described below, and in the case where it is determined that the frequency of the acquired signal does not include f1, performs S510 described below and S502 described above.
S506, the terminal device determines whether the signal strength of the signal with the frequency f1 is within the interval 1.
If the signal strength of the signal having the frequency f1 is determined to be within the section 1, the terminal device executes S507 and S508 described below, and if the signal strength of the signal having the frequency f1 is determined not to be within the section 1, the terminal device executes S510 described below and S502 described above.
And S507, adding 1 to a counter of the terminal equipment.
And S508, the terminal equipment determines whether the counter reaches 5.
If the value of the counter reaches 5, the terminal device executes S509, and if the value of the counter does not reach 5, the terminal device continues to execute S502.
And S509, the terminal equipment stops outputting audio signals to the left earphone and the right earphone, and clears the counter.
And S510, the terminal equipment clears the counter.
It is understood that, in this example, the terminal device detects that the signal strength of the signal with the frequency f1 including f1 is within the interval 1 5 times, and may stop outputting the audio signal.
Fig. 6 is a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device 600 includes: a control module 601 and an output module 602; the control module 601 is used for controlling a first audio output module of the audio output device to output a preset signal and controlling an audio input module of the audio output device to acquire a signal, and the audio input module is electrically connected with a second audio output module of the audio output device; the output module 602 is configured to output or stop outputting the audio signal according to the parameter of the target signal collected by the audio input module, where the target signal includes a signal in a preset signal.
Optionally, the parameters of the target signal include frequency and signal strength; the output module 602 is specifically configured to: if the parameters of the target signal meet the preset conditions, stopping outputting the audio signal; if the parameter of the target signal does not meet the preset condition, outputting an audio signal; wherein the preset conditions are as follows: the frequency of the collected signal comprises a target frequency, the signal intensity of the collected signal with the target frequency is in a target interval, and the target frequency is the frequency of the signal in the preset signal.
Optionally, the preset signal includes M sub-signals, the target signal includes at least one sub-signal of the M sub-signals, and M is a positive integer.
Optionally, the control module 601 is specifically configured to: and controlling the first audio output module to output a preset signal according to a first period.
Optionally, the control module 601 is specifically configured to: and controlling the audio input module to collect signals according to the second period.
Optionally, the output module 602 is specifically configured to: if the times that the parameters of the target signal meet the preset conditions within the first time span exceed a first threshold value, stopping outputting the audio signal; and if the frequency of the parameter of the target signal not meeting the preset condition exceeds a second threshold value within the second time length, outputting the audio signal.
Optionally, the M sub-signals are all ultrasonic signals.
The terminal device 600 provided by the embodiment of the present invention can implement each process implemented by the terminal device in the foregoing method embodiments, and for avoiding repetition, details are not described here again.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 110 is configured to control a first audio output module of the audio output device to output a preset signal; the audio output unit 103 outputs or stops outputting the audio signal according to the parameter of the target signal collected by the audio input module, and the target signal comprises a signal in a preset signal.
The terminal device provided in the embodiment of the present invention first controls a first audio output device of the audio output device to output a preset signal, then the terminal device controls an audio input module of the audio output device to collect a signal, and finally, the terminal device outputs or stops outputting an audio signal according to a parameter of a target signal collected by the audio input module, because the target signal includes a signal in the preset signal, that is, the terminal device can determine whether to output or stop outputting an audio signal according to the parameter of the preset signal collected by the audio input module, without manually controlling a control terminal to output or stop outputting an audio signal, and in a case where a user does not conveniently operate an interface of the terminal device, the terminal device can be conveniently controlled to output or stop outputting an audio, for example, stopping playing music, therefore, the control method provided in the embodiment of the present invention, the terminal equipment can be controlled to stop outputting the audio conveniently, and user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may 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 processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which, with reference to fig. 7, includes a processor 110, a memory 109, and a computer program that is stored in the memory 109 and is executable on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above control method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a terminal device, first, the terminal device controls a first audio output device of the audio output device to output a preset signal, then, the terminal device controls an audio input module of the audio output device to collect a signal, and finally, the terminal device outputs or stops outputting an audio signal according to a parameter of a target signal collected by the audio input module, because the target signal includes a signal in the preset signal, that is, the terminal device can determine whether to output or stop outputting the audio signal according to the parameter of the preset signal collected by the audio input module, without manually controlling the control terminal to output or stop outputting the audio signal, and under the condition that the user does not conveniently operate an interface of the terminal device, the terminal device can be conveniently controlled to output or stop outputting the audio, for example, stopping playing music, therefore, the control method provided by the embodiment of the present invention, the terminal equipment can be controlled to stop outputting the audio conveniently, and user experience is improved.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A control method, characterized in that the method comprises:
controlling a first audio output module of the audio output device to output a preset signal;
controlling an audio input module of the audio output device to collect signals, wherein the audio input module is electrically connected with a second audio output module of the audio output device;
outputting or stopping outputting audio signals according to parameters of target signals acquired by the audio input module, wherein the target signals comprise signals in the preset signals;
the parameters of the target signal include frequency and signal strength; the outputting or stopping of the audio signal according to the parameter of the target signal collected by the audio input module includes:
if the frequency of the parameter of the target signal meeting the preset condition exceeds a first threshold value within a first time length, stopping outputting the audio signal; if the frequency of the parameter of the target signal not meeting the preset condition exceeds a second threshold value within a second time length, outputting the audio signal;
wherein the preset conditions are as follows: the frequency of the collected signal comprises a target frequency, the signal intensity of the collected signal with the target frequency is within a target interval, and the target frequency is the frequency of the signal in the preset signal.
2. The method of claim 1, wherein the preset signal comprises M sub-signals, wherein the target signal comprises at least one of the M sub-signals, and wherein M is a positive integer.
3. The method of claim 1, wherein controlling the first audio output module of the audio output device to output the preset signal comprises:
and controlling the first audio output module to output a preset signal according to a first period.
4. The terminal equipment is characterized by comprising a control module and an output module;
the control module is used for controlling a first audio output module of audio output equipment to output a preset signal and controlling an audio input module of the audio output equipment to acquire a signal, and the audio input module is electrically connected with a second audio output module of the audio output equipment;
the output module is used for outputting or stopping outputting the audio signals according to the parameters of the target signals collected by the audio input module, wherein the target signals comprise signals in the preset signals;
the parameters of the target signal include frequency and signal strength; the output module is specifically configured to: if the frequency of the parameter of the target signal meeting the preset condition exceeds a first threshold value within a first time length, stopping outputting the audio signal; if the frequency of the parameter of the target signal not meeting the preset condition exceeds a second threshold value within a second time length, outputting the audio signal;
wherein the preset conditions are as follows: the frequency of the collected signal comprises a target frequency, the signal intensity of the collected signal with the target frequency is within a target interval, and the target frequency is the frequency of the signal in the preset signal.
5. The terminal device according to claim 4, wherein the preset signal comprises M sub-signals, the target signal comprises at least one of the M sub-signals, and M is a positive integer.
6. The terminal device of claim 4, wherein the control module is specifically configured to:
and controlling the first audio output module to output a preset signal according to a first period.
7. A terminal device, characterized in that the terminal device comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the control method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the control method according to any one of claims 1 to 3.
CN201910222855.1A 2019-03-22 2019-03-22 Control method and terminal equipment Active CN109982208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910222855.1A CN109982208B (en) 2019-03-22 2019-03-22 Control method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910222855.1A CN109982208B (en) 2019-03-22 2019-03-22 Control method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109982208A CN109982208A (en) 2019-07-05
CN109982208B true CN109982208B (en) 2021-07-30

Family

ID=67080114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910222855.1A Active CN109982208B (en) 2019-03-22 2019-03-22 Control method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109982208B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008085833A (en) * 2006-09-28 2008-04-10 Kyocera Corp Audio apparatus, placing base and mobile terminal device
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN104185105A (en) * 2013-05-27 2014-12-03 湖北文理学院 Earphone with function of automatic turning on and off of music
US10887165B2 (en) * 2014-01-22 2021-01-05 Zhenhua Li Personal working system available for dynamic combination and adjustment
CN107959903A (en) * 2016-10-18 2018-04-24 中兴通讯股份有限公司 Audio output switching method, feedback earphone wearing state method, apparatus and earphone
CN108737921B (en) * 2018-04-28 2020-05-22 维沃移动通信有限公司 Play control method, system, earphone and mobile terminal

Also Published As

Publication number Publication date
CN109982208A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN111565078B (en) Channel detection method in frequency division duplex mode, radio frequency circuit and electronic equipment
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
CN108319442B (en) Audio playing control method and mobile terminal
CN109639863B (en) Voice processing method and device
CN107785027B (en) Audio processing method and electronic equipment
CN107765251B (en) Distance detection method and terminal equipment
CN108681413B (en) Control method of display module and mobile terminal
CN108712555B (en) Method and device for sending alarm information
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN109089192B (en) Method for outputting voice and terminal equipment
CN109739300B (en) Antenna control method and terminal
CN108683980B (en) Audio signal transmission method and mobile terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111818657B (en) Uplink transmission discarding method, uplink transmission discarding configuration method and related equipment
CN109639738B (en) Voice data transmission method and terminal equipment
CN111343710A (en) Power adjustment method and electronic equipment
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN108307075B (en) Incoming call processing method and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN108955641B (en) Depth camera shooting method, depth camera shooting equipment and mobile terminal
CN110839108A (en) Noise reduction method and electronic equipment
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
US12082246B2 (en) Method for transmitting control signal, and transmission node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant