CN111683171A - Audio output method and electronic equipment - Google Patents

Audio output method and electronic equipment Download PDF

Info

Publication number
CN111683171A
CN111683171A CN202010465868.4A CN202010465868A CN111683171A CN 111683171 A CN111683171 A CN 111683171A CN 202010465868 A CN202010465868 A CN 202010465868A CN 111683171 A CN111683171 A CN 111683171A
Authority
CN
China
Prior art keywords
electronic equipment
audio data
sound transmission
directional sound
transmission mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010465868.4A
Other languages
Chinese (zh)
Inventor
杜莉莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010465868.4A priority Critical patent/CN111683171A/en
Publication of CN111683171A publication Critical patent/CN111683171A/en
Priority to PCT/CN2021/095471 priority patent/WO2021238844A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/19Arrangements of transmitters, receivers, or complete sets to prevent eavesdropping, to attenuate local noise or to prevent undesired transmission; Mouthpieces or receivers specially adapted therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an audio output method and electronic equipment, wherein the method comprises the following steps: the electronic equipment outputs audio data in a non-directional sound transmission mode; and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode. According to the invention, under the condition that a user needs to listen to audio data with higher privacy by approaching to the electronic equipment, the audio data is output by switching the directional sound transmission mode, so that the risk of privacy disclosure is reduced, and the privacy safety of audio output is improved.

Description

Audio output method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an audio output method and electronic equipment.
Background
The electronic device is basically provided with a loudspeaker and can achieve a better sound transmission effect by means of a customized chip and the like. At present, the sound transmission mode of a loudspeaker is generally based on a linear acoustic theory, air molecules are directly vibrated by a loudspeaker to generate sound, sound waves are transmitted to all directions, the sound field of the sound waves is approximately distributed in a spherical shape, namely, non-directional sound transmission is carried out, and the sound transmission mode is not beneficial to privacy protection when audio data are output due to the non-directivity of sound wave transmission in scenes such as a conversation mode or a voice chat mode.
Disclosure of Invention
The invention provides a control method of a voice transmission mode and electronic equipment, and aims to solve the problem that privacy protection is not facilitated when audio data are output in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an audio output method, which is applied to an electronic device, and the method includes:
the electronic equipment outputs audio data in a non-directional sound transmission mode;
and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the first output module is used for outputting audio data in a non-directional sound transmission mode;
and the second output module is used for outputting the audio data in a directional sound transmission mode under the condition that the distance between the electronic equipment and the target object is updated to a first preset range.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the audio output method described above.
In a fourth aspect, the embodiment of the present invention further 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 audio output method as described above.
In the embodiment of the invention, when the distance between the electronic equipment and the target object is updated to the first preset range, the electronic equipment outputs the audio data in a non-directional sound transmission mode and switches to output the audio data in a directional sound transmission mode, so that when a user needs to listen to the audio data with high privacy close to the electronic equipment, the risk of privacy disclosure can be reduced by switching to output the audio data in a directional sound transmission mode, and the privacy safety of audio output is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows one of the flow charts of the audio output method of the embodiment of the present invention;
FIG. 2 is a second flowchart of an audio output method according to an embodiment of the invention;
FIG. 3 shows a block diagram of an electronic device of an embodiment of the invention;
fig. 4 is a schematic diagram showing a hardware configuration of an electronic device according to an embodiment 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.
As shown in fig. 1, an embodiment of the present invention provides an audio output method applied to an electronic device, where the method includes:
step 11: the electronic equipment outputs audio data in a non-directional sound transmission mode.
Step 12: and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode.
Optionally, the electronic device has a sound transmission component, and the sound transmission component has a directional sound transmission mode (namely, audio data can be output in a directional sound transmission mode) and a non-directional sound transmission mode (namely, audio data can be output in a non-directional sound transmission mode). For example: the sound transmission assembly may comprise a directional sound transmission device and a non-directional sound transmission device, wherein the directional sound transmission device implements a directional sound transmission mode and the non-directional sound transmission device implements a non-directional sound transmission mode. For another example: the acoustic transmission assembly may include an acoustic transmission device having a non-directional acoustic transmission mode and a directional acoustic transmission mode.
Optionally, the sound transmission component may be an earpiece, a speaker, or the like in the electronic device, and the sound transmission component may modulate the audio signal into the ultrasonic signal, and self-demodulate an audible sound beam with high directivity by using a nonlinear interaction when the ultrasonic wave is transmitted in the air, that is, a directional sound transmission mode; the directional sound transmission mode is to limit the sound waves to be directionally transmitted in a certain direction, and the sound field is distributed in a long and narrow conical shape, so that the sound waves can be hardly acquired or only weak sound waves can be acquired in the area outside the sound field, and the privacy of sound transmission is ensured. The sound transmission component can also be provided with a non-directional sound transmission mode, the non-directional sound transmission mode directly generates sound through the vibration of air molecules of the loudspeaker according to the linear acoustic theory, so that sound waves are transmitted to all directions, and the sound field is approximately distributed in a spherical shape.
Optionally, the electronic device includes but is not limited to: the mobile phone, the tablet personal computer, the wearable device (such as a smart watch, a smart bracelet, an earphone and the like), the computer, the smart television and the like. For example: taking a mobile phone as an example, the sound transmission assembly may be disposed at any one or combination of the top, the bottom and the side of the mobile phone, and the embodiment of the present invention is not particularly limited.
Optionally, the electronic device defaults that the electronic device outputs the audio data in a non-directional sound transmission manner in a case where the electronic device outputs the audio data through a receiver, such as a voice call, a voice output in a video call, an audio output in an instant messaging application, and the like; when the distance between the electronic equipment and the target object is detected to be within a first preset range, if the electronic equipment is close to the ear of a person, the electronic equipment is switched to output audio data according to a directional sound transmission mode, so that privacy protection is achieved when the audio data are output through the earphone, and privacy safety of audio output is improved.
Optionally, after the step 11, the method may further include: when the distance between the electronic device and the target object is updated to a first predetermined range, if an earphone (such as a wired earphone or a wireless earphone) is connected to the electronic device, the electronic device outputs audio data through the earphone.
In the above scheme, when the distance between the electronic device and the target object is updated to the first predetermined range, the electronic device switches from outputting the audio data in the non-directional sound transmission mode to outputting the audio data in the directional sound transmission mode, so that when a user needs to listen to the audio data with high privacy close to the electronic device, the risk of privacy disclosure can be reduced by switching the directional sound transmission mode to output the audio data, and the privacy security of audio output is improved.
As shown in fig. 2, an embodiment of the present invention further provides an audio output method, including:
step 21: the electronic equipment outputs audio data in a non-directional sound transmission mode.
Step 22: and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode.
Step 23: and when the distance between the electronic equipment and the target object is updated to exceed the first preset range and the distance between the electronic equipment and the target object is updated to the first preset range again, the electronic equipment outputs audio data in a non-directional sound transmission mode.
Optionally, taking a voice call as an example, when the user answers the electronic device by approaching the electronic device to an ear, the electronic device outputs audio data in a directional sound transmission manner, so as to improve privacy security of audio data output; furthermore, the user can switch the electronic device to output the audio data in a non-directional sound transmission mode by keeping the electronic device away from the ear and getting close to the ear again, so that the output mode of the audio data can be switched quickly, and the complicated operation that the user needs to switch the output mode of the audio data through the input aiming at the display interface is avoided.
Optionally, the step 23 may further include:
when the distance between the electronic equipment and the target object is updated to exceed the first preset range and the time length exceeding the first preset range exceeds a first preset time period, the electronic equipment keeps outputting audio data in a directional sound transmission mode;
and after the distance between the electronic equipment and the target object is updated to exceed the first preset range, and under the condition that the distance between the electronic equipment and the target object is updated to the first preset range again in the first preset time period, the electronic equipment outputs audio data in a non-directional sound transmission mode.
For example: in a call mode, under the condition that the electronic equipment is close to an ear or is in an ear answering state, if the state that the electronic equipment is far away from the ear or not close to the ear is detected and a first preset time period is reached, the electronic equipment can keep outputting audio data in a directional sound transmission mode; if the electronic equipment is detected to be close to the ear or is already in the state of listening to the ear again within a first preset time period after the electronic equipment is detected to be away from the ear or not close to the ear, the electronic equipment is automatically switched to the previous mode, namely: outputting audio data in a non-directional sound transmission mode; or the audio data can be output through the earphone under the condition that the electronic equipment is connected with the earphone, so that the rapid switching of the output mode of the audio data is realized, and the timeliness of the response of the electronic equipment and the accuracy of the switching of the output mode of the audio data are favorably ensured by setting the time limit of the switching response.
Optionally, according to at least one of the above embodiments, the method may further include:
the method comprises the steps that when the distance between the electronic equipment and a target object is updated to a first preset range, the electronic equipment displays a first icon;
the first icon is used for instructing the electronic equipment to output audio data in a directional sound transmission mode.
For example: under the condition that the electronic equipment is in a call mode, if the current display interface is a telephone answering interface, the first icon can be displayed on the telephone answering interface; if the current telephone interface is in background operation, the first icon can be displayed in the top status bar; and if the current display interface is a screen locking interface, displaying the first icon on the screen locking interface. In this way, the first icon is displayed in the display screen, so that the user is prompted that the current electronic equipment outputs audio data in a directional sound transmission mode.
Optionally, after the step of displaying the first icon by the electronic device, the method may further include:
receiving a first input of the first icon by a user;
responding to the first input, the electronic equipment outputs audio data in a non-directional sound transmission mode, and updates the first icon to be a second icon;
the second icon is used for instructing the electronic equipment to output audio data in a non-directional sound transmission mode.
For example: the first input may be a click input for the first icon, or a slide input acting on the first icon and along a certain distance, or a slide input acting on the first icon and along a predetermined trajectory, and the like, which is not limited in this embodiment of the present invention.
Further, under the condition that the second icon is displayed in a display interface in the electronic equipment, second input of the user to the second icon can be received; and responding to the second input, the electronic equipment is switched to output audio data in a directional sound transmission mode, and the second icon is updated to be the first icon.
In this embodiment, a user switches an output mode of audio data of the electronic device by inputting the first icon displayed in the display interface of the electronic device, so that the user can perform manual switching when knowing the audio output mode of the current electronic device, and misoperation caused by blind switching is avoided.
Optionally, according to at least one of the above embodiments, in a case that the distance between the electronic device and the target object is updated to the first predetermined range, the step of outputting, by the electronic device, the audio data in a directional sound transmission manner may further specifically include:
and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode through the first sound transmission component.
Further, after the step of outputting, by the electronic device, audio data in a directionally-sound manner through the first sound-transmitting component in a case where the distance between the electronic device and the target object is updated to the first predetermined range, the method may further include:
and when the distance between the electronic equipment and the target object is updated to a second preset range, the electronic equipment is switched to output the audio data in a directional sound transmission mode through the second sound transmission component.
Alternatively, the first acoustic assembly may be an earpiece and the second acoustic assembly may be a speaker; for example: when the electronic equipment is in a call mode and audio data are output through an earphone in a directional sound transmission mode, if the fact that the distance from the electronic equipment to a user (such as the ear of the user) is updated to a second preset range is detected, the electronic equipment is directly switched to output the audio data through a loudspeaker; the second predetermined range may be a distance range in which the audio data output by the earphone does not satisfy the user listening condition, so that the user listening effect of the audio data is ensured by switching to the speaker to output the audio data.
Further, when the electronic device is switched to output the audio data through the loudspeaker, the loudspeaker outputs the audio data in a directional sound transmission mode to reduce the risk of privacy disclosure, and therefore the privacy safety of audio output is improved.
Optionally, an embodiment of the present invention further provides an audio output method, which is applied to an electronic device, and the method includes:
determining a current audio output mode of the electronic device.
Optionally, the audio output modes may include, but are not limited to: a call mode (such as a voice call mode and a video call mode), a voice chat mode (such as voice chat can be realized through a communication application with a voice conversation function), an audio play mode, a video play mode, and the like.
And under the condition that the current audio output mode is the target output mode, the electronic equipment outputs audio data in a directional sound transmission mode.
Optionally, the target output mode may be a preset audio output mode that requires outputting audio data in a directional sound transmission manner, for example: the user can preset any one or combination of a call mode, a voice chat mode, an audio playing mode, a video playing mode and the like as a target output mode according to the use requirement.
Of course, the target output mode may also be pre-configured by the system, for example: aiming at audio output modes with higher privacy requirements such as a call mode, a voice chat mode and the like, a target output mode can be preset by the system; therefore, when the electronic equipment is in the target output mode, the sound transmission component is controlled to be switched to the directional sound transmission mode, so that the audio signal in the target output mode can be directionally transmitted in the preset direction, and the risk of privacy disclosure can be reduced to a certain extent.
For another example: the system can also be configured with a target output mode in advance as an audio play mode, a video play mode and the like, so that when the electronic equipment is in the target output mode, the electronic equipment is switched to a directional sound transmission mode to output audio data, so that an audio signal in the target output mode can be directionally transmitted in a preset direction, and the interference to the external environment during audio/video play can be reduced to a certain extent.
Optionally, after the step of determining the current audio output mode of the electronic device, the method may further include: and under the condition that the current audio output mode is not the target output mode, acquiring audio data to be output.
Determining a target sound transmission mode of the electronic equipment for outputting the audio data according to the source application of the audio data and/or the content of the audio data; the target sound transmission mode is one of the directional sound transmission mode and the non-directional sound transmission mode.
Specifically, under the condition that the current audio output mode is not the target output mode, if the source application of the audio data and/or the content of the audio data meets a preset condition, the electronic device outputs the audio data in the directional sound transmission mode; and if the source application of the audio data and/or the content of the audio data do not meet the preset conditions, the electronic equipment outputs the audio data in a non-directional sound transmission mode.
For example: under the condition that the target output mode is a call mode or a voice chat mode, if it is detected that the audio data to be output is from applications such as a recording application and the like which may have privacy disclosure risks, and/or when the audio data to be output contains preset keywords (such as keywords carrying privacy information), outputting the audio data in a directional sound transmission mode when the audio data is played, so that the audio data can be directionally transmitted in a preset direction, and the risk of privacy disclosure can be reduced to a certain extent.
Optionally, the step of determining a target microphone transmission mode of the electronic device for outputting the audio data according to the source application of the audio data may specifically include:
acquiring a source application of the audio data;
under the condition that the source application is a target application, the electronic equipment outputs the audio data in a directional sound transmission mode;
in the case that the source application is not the target application, the electronic device outputs the audio data in the non-directional transaudient manner.
Wherein, the target application can be preset by a user or preset by a system; if the target application may be a recording application, an application that sends verification code information in a voice manner, and the like, which is not limited in the embodiments of the present invention.
Optionally, the step of determining, according to the content of the audio data, a target microphone manner in which the electronic device outputs the audio data may specifically include:
performing content identification processing on the audio data, and determining whether the content of the audio data contains preset keywords;
under the condition that the content of the audio data contains the preset keywords, the electronic equipment outputs the audio data in a directional sound transmission mode;
and under the condition that the content of the audio data does not contain the preset keywords, the electronic equipment outputs the audio data in a non-directional sound transmission mode.
The preset keywords can be set by a user in a self-defined mode, or are configured by the system in advance, or can be determined by the system in a big data processing mode; such as: the preset keyword may be verification code information, user identity information, property data information, and the like, which is not limited in the embodiments of the present invention.
Optionally, the step of determining a target microphone transmission mode of the electronic device for outputting the audio data according to the source application of the audio data and the content of the audio data may specifically include:
acquiring a source application of the audio data;
under the condition that the source application is a target application, the electronic equipment outputs the audio data in a directional sound transmission mode;
under the condition that the source application is not the target application, performing content identification processing on the audio data, and determining whether the content of the audio data contains a preset keyword or not;
under the condition that the content of the audio data contains the preset keywords, the electronic equipment outputs the audio data in a directional sound transmission mode;
and under the condition that the content of the audio data does not contain the preset keywords, the electronic equipment outputs the audio data in a non-directional sound transmission mode.
In this embodiment, only when the current audio output mode of the electronic device is not the target output mode and the source application of the audio data to be output is not the target application, whether the content of the audio data includes the preset keyword is determined through the content identification processing, so that the data processing amount of performing the content identification processing on each audio data can be reduced, and the processing efficiency can be improved to a certain extent.
Optionally, according to at least one of the above embodiments, when the current audio output mode is the target output mode, the step of outputting, by the electronic device, the audio data in the directional sound transmission manner may specifically include:
under the condition that the current audio output mode is a target output mode, if the fact that the distance between the electronic equipment and a target object is updated to a first preset range is detected, the electronic equipment outputs the audio data in a directional sound transmission mode;
further, after the electronic device outputs the audio data in the directional sound transmission manner, the method further includes:
and when the fact that the distance between the electronic equipment and the target object is updated to exceed the first preset range and the distance between the electronic equipment and the target object is updated to the first preset range again is detected, the electronic equipment switches from outputting the audio data in the directional sound transmission mode to outputting the audio data in the non-directional sound transmission mode.
Specifically, when the electronic device is in a call mode (such as just making a call or making a call), the electronic device defaults to outputting audio data in a non-directional sound transmission manner; if the electronic equipment is detected to be close to the ear or is already in the ear answering state, the electronic equipment is automatically switched to output the audio data in a directional sound transmission mode, and the rapid switching of the output mode of the audio data is realized.
Further, when the electronic device is in a call mode and the electronic device is close to an ear or already in an ear answering state, if it is detected that the electronic device is away from the ear or not and reaches a first preset time period, the electronic device can keep outputting the audio data in a current directional sound transmission manner; if the electronic equipment is detected to be away from the ear or not within the preset time period of the ear state, the electronic equipment is detected to be close to the ear again or is detected to be in the ear answering state, the electronic equipment is automatically switched to output the audio data in a non-directional sound transmission mode, so that the rapid switching of the output mode of the audio data of the electronic equipment in the conversation mode is realized, and the timeliness of the electronic equipment response and the accuracy of the output mode switching of the audio data are favorably ensured by setting the time limit of switching response.
Optionally, according to at least one of the above embodiments, when the current audio output mode is the target output mode, the step of the electronic device outputting the audio data in the directional sound transmission manner may specifically include:
and under the condition that the electronic equipment is in a target audio output mode and the electronic equipment is not connected with an earphone, the electronic equipment outputs the audio data in a directional sound transmission mode.
Specifically, as an implementation: when the electronic equipment is in a call mode (such as calling or putting through a call), detecting whether the electronic equipment is connected with an earphone (such as a Bluetooth earphone, a wired earphone and the like) currently; if the electronic equipment is detected to be connected with the earphone currently, outputting audio data through the earphone; and if the electronic equipment is detected not to be connected with the earphone currently, the electronic equipment outputs the audio data in the directional sound transmission mode.
Further, when the electronic device is in a call mode and the electronic device is close to an ear or is already in an ear answering state, if it is detected that the electronic device is away from the ear or not and reaches a first preset time period, the electronic device can keep outputting the audio data in a current directional sound transmission manner; if the electronic equipment is detected to be close to the ear or is already in the ear listening state within the preset time period when the electronic equipment is detected to be away from the ear or not, the electronic equipment is automatically switched to the previous mode (for example, the electronic equipment outputs the audio data in a non-directional sound transmission mode or outputs the audio data through an earphone), so that the rapid switching of the output mode of the audio data in the call mode is realized.
Specifically, as another implementation: when the electronic equipment is in a call mode (such as calling or putting through a call), detecting whether the electronic equipment is connected with an earphone (such as a Bluetooth earphone, a wired earphone and the like) currently; if the electronic equipment is detected to be connected with the earphone currently, outputting audio data through the earphone; if the electronic equipment is detected not to be connected with the earphone currently, the electronic equipment outputs audio data in a non-directional sound transmission mode in a default mode; and if the electronic equipment is detected to be close to the ear or is in an ear answering state, the electronic equipment automatically switches to output the audio data in a directional sound transmission mode.
Optionally, when the electronic device is in a call mode and after it is detected that the electronic device is currently connected with an earphone, if it is detected that the electronic device is switched from a state of being connected with the earphone to a state of not being connected with the earphone and the distance between the electronic device and the target object is greater than a second predetermined distance, the speaker is started to output the audio data in a directional sound transmission manner, so as to ensure that the user answers the audio data by switching to the speaker to output the audio data when the distance between the electronic device and the user does not meet the condition that the user answers through the earphone, and the speaker outputs the audio data in the directional sound transmission manner, which is further beneficial to reducing the risk of privacy disclosure, thereby improving the privacy security of audio output.
In the scheme, the electronic equipment can automatically switch different sound transmission modes to output audio data by identifying different audio output modes, and manual operation of a user can be reduced. In addition, the electronic equipment outputs the audio data in a directional sound transmission mode in a specific scene so as to reduce the privacy leakage risk during audio data output and improve the privacy security of audio data output.
As shown in fig. 3, an embodiment of the present invention further provides an electronic device 300, where the electronic device 300 includes:
a first output module 310, configured to output audio data in a non-directional sound transmission manner;
and a second output module 320, configured to output the audio data in a directional sound transmission manner when the distance between the electronic device and the target object is updated to the first predetermined range.
Optionally, the electronic device 300 further includes:
and the third output module is used for outputting audio data in a non-directional sound transmission mode under the condition that the distance between the electronic equipment and the target object is updated to exceed the first preset range and the distance between the electronic equipment and the target object is updated to the first preset range again.
Optionally, the electronic device 300 further includes:
the display module is used for displaying a first icon by the electronic equipment under the condition that the distance between the electronic equipment and the target object is updated to a first preset range;
the first icon is used for instructing the electronic equipment to output audio data in a directional sound transmission mode.
Optionally, the electronic device 300 further includes:
the first receiving module is used for receiving a first input of a user to the first icon;
the first response module is used for responding to the first input, outputting audio data in a non-directional sound transmission mode, and updating the first icon into a second icon;
the second icon is used for instructing the electronic equipment to output audio data in a non-directional sound transmission mode.
Optionally, the second output module 320 is further specifically configured to: under the condition that the distance between the electronic equipment and the target object is updated to a first preset range, outputting audio data in a directional sound transmission mode through a first sound transmission component;
the electronic device 300 further comprises:
and the fourth output module is used for switching the electronic equipment to output the audio data in a directional sound transmission mode through the second sound transmission assembly under the condition that the distance between the electronic equipment and the target object is updated to a second preset range.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the electronic device 300 according to the embodiment of the present invention, when the distance between the electronic device and the target object is updated to the first predetermined range, the electronic device switches from outputting the audio data in the non-directional sound transmission manner to outputting the audio data in the directional sound transmission manner, so that when a user needs to listen to audio data with high privacy close to the electronic device, the risk of privacy disclosure can be reduced by switching the directional sound transmission manner to output the audio data, and thus the privacy security of audio output can be improved.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The audio output unit 403 includes a sound transmission component, which has a directional sound transmission mode (i.e., audio data can be output in a directional sound transmission manner) and a non-directional sound transmission mode (i.e., audio data can be output in a non-directional sound transmission manner).
The processor 410 is configured to control a sound transmission component in the electronic device to output audio data in a non-directional sound transmission manner; and controlling a sound transmission component in the electronic equipment to output audio data in a directional sound transmission mode under the condition that the distance between the electronic equipment and the target object is updated to a first preset range.
In the electronic device 400 in the embodiment of the present invention, when the distance between the electronic device and the target object is updated to the first predetermined range, the electronic device switches from outputting the audio data in the non-directional sound transmission manner to outputting the audio data in the directional sound transmission manner, so that when a user needs to listen to audio data with high privacy close to the electronic device, the risk of privacy disclosure can be reduced by switching the directional sound transmission manner to output the audio data, thereby improving the privacy security of audio output.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 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 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an 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 posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 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 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. 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 408 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 electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 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 409 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 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 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 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 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 electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned control method for an acoustic transmission mode, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An 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 above-mentioned control method for an acoustic mode, 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 (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 (12)

1. An audio output method applied to an electronic device, the method comprising:
the electronic equipment outputs audio data in a non-directional sound transmission mode;
and when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode.
2. The audio output method according to claim 1, wherein after the electronic device outputs the audio data in a directional sound transmission manner, the method further comprises:
and when the distance between the electronic equipment and the target object is updated to exceed the first preset range and the distance between the electronic equipment and the target object is updated to the first preset range again, the electronic equipment outputs audio data in a non-directional sound transmission mode.
3. The audio output method according to claim 1, further comprising:
the method comprises the steps that when the distance between the electronic equipment and a target object is updated to a first preset range, the electronic equipment displays a first icon;
the first icon is used for instructing the electronic equipment to output audio data in a directional sound transmission mode.
4. The audio output method of claim 3, wherein after the electronic device displays the first icon, further comprising:
receiving a first input of the first icon by a user;
responding to the first input, the electronic equipment outputs audio data in a non-directional sound transmission mode, and updates the first icon to be a second icon;
the second icon is used for instructing the electronic equipment to output audio data in a non-directional sound transmission mode.
5. The audio output method according to claim 1, wherein in a case where the distance between the electronic device and the target object is updated to the first predetermined range, the electronic device outputs audio data in a directionally-sounding manner, including:
when the distance between the electronic equipment and the target object is updated to a first preset range, the electronic equipment outputs audio data in a directional sound transmission mode through a first sound transmission component;
when the distance between the electronic device and the target object is updated to the first predetermined range, after the electronic device outputs the audio data in a directional sound transmission manner, the method further includes:
and when the distance between the electronic equipment and the target object is updated to a second preset range, the electronic equipment is switched to output the audio data in a directional sound transmission mode through the second sound transmission component.
6. An electronic device, comprising:
the first output module is used for outputting audio data in a non-directional sound transmission mode;
and the second output module is used for outputting the audio data in a directional sound transmission mode under the condition that the distance between the electronic equipment and the target object is updated to a first preset range.
7. The electronic device of claim 6, further comprising:
and the third output module is used for outputting audio data in a non-directional sound transmission mode under the condition that the distance between the electronic equipment and the target object is updated to exceed the first preset range and the distance between the electronic equipment and the target object is updated to the first preset range again.
8. The electronic device of claim 6, further comprising:
the display module is used for displaying a first icon by the electronic equipment under the condition that the distance between the electronic equipment and the target object is updated to a first preset range;
the first icon is used for instructing the electronic equipment to output audio data in a directional sound transmission mode.
9. The electronic device of claim 8, further comprising:
the first receiving module is used for receiving a first input of a user to the first icon;
the first response module is used for responding to the first input, outputting audio data in a non-directional sound transmission mode, and updating the first icon into a second icon;
the second icon is used for instructing the electronic equipment to output audio data in a non-directional sound transmission mode.
10. The electronic device of claim 6, wherein the second output module is further specifically configured to: under the condition that the distance between the electronic equipment and the target object is updated to a first preset range, outputting audio data in a directional sound transmission mode through a first sound transmission component;
the electronic device further includes:
and the fourth output module is used for switching the electronic equipment to output the audio data in a directional sound transmission mode through the second sound transmission assembly under the condition that the distance between the electronic equipment and the target object is updated to a second preset range.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the audio output method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the audio output method according to one of claims 1 to 5.
CN202010465868.4A 2020-05-28 2020-05-28 Audio output method and electronic equipment Pending CN111683171A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010465868.4A CN111683171A (en) 2020-05-28 2020-05-28 Audio output method and electronic equipment
PCT/CN2021/095471 WO2021238844A1 (en) 2020-05-28 2021-05-24 Audio output method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010465868.4A CN111683171A (en) 2020-05-28 2020-05-28 Audio output method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111683171A true CN111683171A (en) 2020-09-18

Family

ID=72434761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010465868.4A Pending CN111683171A (en) 2020-05-28 2020-05-28 Audio output method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111683171A (en)
WO (1) WO2021238844A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021238844A1 (en) * 2020-05-28 2021-12-02 维沃移动通信有限公司 Audio output method and electronic device
CN117119092A (en) * 2023-02-22 2023-11-24 荣耀终端有限公司 Audio processing method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461022A (en) * 2022-02-09 2022-05-10 维沃移动通信有限公司 Separable module management method and device of terminal and terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774871A (en) * 2003-04-15 2006-05-17 专利创投公司 Directional speakers
CN105827793A (en) * 2015-05-29 2016-08-03 维沃移动通信有限公司 Voice directional output method and mobile terminal
CN105992099A (en) * 2015-02-03 2016-10-05 中兴通讯股份有限公司 Terminal and method for terminal to broadcast audio signals directionally
CN106973160A (en) * 2017-03-27 2017-07-21 广东小天才科技有限公司 A kind of method for secret protection, device and equipment
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional loudspeaker control method, directional loudspeaker control device and intelligent terminal
CN109217943A (en) * 2018-07-19 2019-01-15 珠海格力电器股份有限公司 Orient broadcasting method, device, household electrical appliance and computer readable storage medium
CN110430320A (en) * 2019-07-26 2019-11-08 北京小米移动软件有限公司 Voice directional spreading method and device
CN110855823A (en) * 2019-10-23 2020-02-28 深圳市沃特沃德股份有限公司 Call terminal, receiving mode selection method and computer equipment
CN110933558A (en) * 2019-12-17 2020-03-27 京东方科技集团股份有限公司 Directional sound production method and device, ultrasonic transducer and electronic equipment
WO2020087745A1 (en) * 2018-10-29 2020-05-07 歌尔股份有限公司 Directional sound generation method and device for audio apparatus, and audio apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002376B (en) * 2011-09-09 2015-11-25 联想(北京)有限公司 The method of sound directive sending and electronic equipment
KR101927819B1 (en) * 2017-12-06 2018-12-11 주식회사 피티지 Directional acoustic system for a vehicle
CN111683171A (en) * 2020-05-28 2020-09-18 维沃移动通信有限公司 Audio output method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774871A (en) * 2003-04-15 2006-05-17 专利创投公司 Directional speakers
CN105992099A (en) * 2015-02-03 2016-10-05 中兴通讯股份有限公司 Terminal and method for terminal to broadcast audio signals directionally
CN105827793A (en) * 2015-05-29 2016-08-03 维沃移动通信有限公司 Voice directional output method and mobile terminal
CN106973160A (en) * 2017-03-27 2017-07-21 广东小天才科技有限公司 A kind of method for secret protection, device and equipment
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional loudspeaker control method, directional loudspeaker control device and intelligent terminal
CN109217943A (en) * 2018-07-19 2019-01-15 珠海格力电器股份有限公司 Orient broadcasting method, device, household electrical appliance and computer readable storage medium
WO2020087745A1 (en) * 2018-10-29 2020-05-07 歌尔股份有限公司 Directional sound generation method and device for audio apparatus, and audio apparatus
CN110430320A (en) * 2019-07-26 2019-11-08 北京小米移动软件有限公司 Voice directional spreading method and device
CN110855823A (en) * 2019-10-23 2020-02-28 深圳市沃特沃德股份有限公司 Call terminal, receiving mode selection method and computer equipment
CN110933558A (en) * 2019-12-17 2020-03-27 京东方科技集团股份有限公司 Directional sound production method and device, ultrasonic transducer and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021238844A1 (en) * 2020-05-28 2021-12-02 维沃移动通信有限公司 Audio output method and electronic device
CN117119092A (en) * 2023-02-22 2023-11-24 荣耀终端有限公司 Audio processing method and electronic equipment
CN117119092B (en) * 2023-02-22 2024-06-07 荣耀终端有限公司 Audio processing method and electronic equipment

Also Published As

Publication number Publication date
WO2021238844A1 (en) 2021-12-02

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
US20230214175A1 (en) Prompting method and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN111459456B (en) Audio control method and electronic equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
CN111683171A (en) Audio output method and electronic equipment
CN111443815A (en) Vibration reminding method and electronic equipment
CN111124706A (en) Application program sharing method and electronic equipment
US20230037238A1 (en) Audio output mode switching method and electronic device
CN111459447B (en) Volume adjustment display method and electronic equipment
CN111078186A (en) Playing method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110413363B (en) Screenshot method and terminal equipment
CN109782970B (en) Display method and terminal
CN109005297B (en) Display method of navigation application and mobile terminal
CN109343811B (en) Display adjustment method and terminal equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN109062483B (en) Image processing method and terminal equipment
CN111443968A (en) Screenshot method and electronic equipment
CN111459323B (en) Control method, electronic device and medium

Legal Events

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

Application publication date: 20200918