CN110517711A - Playback method, device, storage medium and the electronic equipment of audio - Google Patents

Playback method, device, storage medium and the electronic equipment of audio Download PDF

Info

Publication number
CN110517711A
CN110517711A CN201810488714.XA CN201810488714A CN110517711A CN 110517711 A CN110517711 A CN 110517711A CN 201810488714 A CN201810488714 A CN 201810488714A CN 110517711 A CN110517711 A CN 110517711A
Authority
CN
China
Prior art keywords
audio
terminal
frequency
active user
target position
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
CN201810488714.XA
Other languages
Chinese (zh)
Inventor
张洲川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810488714.XA priority Critical patent/CN110517711A/en
Publication of CN110517711A publication Critical patent/CN110517711A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Abstract

This application discloses a kind of playback method of audio, device, storage medium and electronic equipments.This method comprises: obtaining the target position of active user;Obtain the first frequency for needing the audio played;According to the target position and the first frequency, at least two ultrasonic frequencies are determined, and distribute the different ultrasonic frequencies for preset component different in the terminal;It controls the preset component and issues sound wave towards the target position according to the ultrasonic frequency being assigned to, so that the ultrasonic frequency is mixed in the target position and parses the first frequency.The simplification of audio broadcast mode may be implemented in the present embodiment.

Description

Playback method, device, storage medium and the electronic equipment of audio
Technical field
The application belongs to field of terminal technology more particularly to a kind of playback method of audio, device, storage medium and electronics Equipment.
Background technique
With the development of technology, terminal has been not only a kind of means of communication, while being also a kind of converter tools.User Often using terminal listens to music or sees video etc..When user needs using terminal to play audio file, in order to avoid The sound put outside interferes other users or audio content is learnt by other users, and the user usually needs to use earphone Listen audio.However, listening its operation of audio relatively complicated using earphone.
Summary of the invention
The embodiment of the present application provides playback method, device, storage medium and the electronic equipment of a kind of audio, and sound may be implemented The simplification of frequency broadcast mode.
The embodiment of the present application provides a kind of playback method of audio, comprising:
Obtain the target position of active user;
Obtain the first frequency for needing the audio played;
According to the target position and the first frequency, at least two ultrasonic frequencies are determined, and be the terminal Middle different preset component distributes the different ultrasonic frequencies;
It controls the preset component and issues sound wave towards the target position according to the ultrasonic frequency being assigned to, with It is mixed the ultrasonic frequency in the target position and parses the first frequency.
The embodiment of the present application provides a kind of playing device of audio, comprising:
First obtains module, for obtaining the target position of active user;
Second obtains module, for obtaining the first frequency for needing the audio played;
Determining module, for determining at least two ultrasonic frequencies according to the target position and the first frequency, And the different ultrasonic frequencies is distributed for preset component different in the terminal;
Control module, for controlling the preset component according to the ultrasonic frequency being assigned to towards the target position Sending sound wave is set, so that the ultrasonic frequency is mixed in the target position and parses the first frequency.
The embodiment of the present application provides a kind of storage medium, is stored thereon with computer program, when the computer program exists When being executed on computer, so that the computer executes the step in the playback method of audio provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute The computer program stored in memory is stated, the step in playback method for executing audio provided by the embodiments of the present application.
In the present embodiment, since ultrasonic wave has very strong directionality, towards the target position where active user The ultrasonic wave of sending can be only mixed on direction of the terminal towards target position, so that only in terminal towards target position Region on the direction set, between terminal and target position can hear ultrasonic wave mixing audible sound obtained after parsing Wave, and will be unable to hear audible sound in other regions.Therefore, the present embodiment can make user be not required to wearing earphone i.e. audible To audio, keep the listening mode of audio simpler, user experience is more preferable.Also, since the user in other regions will not hear Sound wave, therefore the present embodiment will not interfere the user in other regions.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And its advantages are apparent.
Fig. 1 is the flow diagram of the playback method of audio provided by the embodiments of the present application.
Fig. 2 is another flow diagram of the playback method of audio provided by the embodiments of the present application.
Fig. 3 to Fig. 5 is the schematic diagram of a scenario of the playback method of audio provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of the playing device of audio provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
It is understood that the executing subject of the embodiment of the present application can be the end of smart phone or tablet computer etc. End equipment.
Referring to Fig. 1, Fig. 1 is the flow diagram of the playback method of audio provided by the embodiments of the present application, process can be with Include:
In step s101, the target position of active user is obtained.
With the development of technology, terminal has been not only a kind of means of communication, while being also a kind of converter tools.User Often using terminal listens to music or sees video etc..When user needs using terminal to play audio file, in order to avoid The sound put outside interferes other users or audio content is learnt by other users, and the user usually needs to use earphone Listen audio.However, listening its operation of audio relatively complicated using earphone.
In the step S101 of the embodiment of the present application, for example, terminal, which can be obtained first, to be worked as when needing to play audio file Position where preceding user, i.e. target position.
In step s 102, the first frequency for needing the audio played is obtained.
For example, after getting the target position of active user, the frequency of the available audio for needing to play of terminal, i.e., First frequency.
In step s 103, according to the target position and the first frequency, at least two ultrasonic frequencies are determined, and are Different preset components distributes the different ultrasonic frequencies in the terminal.
For example, terminal can after the first frequency for the audio that the target position and needs for getting active user play To determine at least two ultrasonic frequencies according to the target position and first frequency.Then, terminal can will be determined not Same ultrasonic frequency distributes to different preset components.That is, the number for the ultrasonic frequency determined and of preset component Number is equal.
In step S104, the preset component is controlled according to the ultrasonic frequency being assigned to towards the target position sending sound Wave, so that ultrasonic frequency is mixed in the target position and parses the first frequency.
For example, terminal can control each default portion after being assigned with different ultrasonic frequencies for different preset components Part issues sound wave according to the target position where the ultrasonic frequency towards active user being assigned to, so that all ultrasonic wave frequencies Rate is able to carry out mixing in the target location, and parses first frequency, so that active user be enable to hear terminal plays Audio.
For example, it is desired to which the frequency of the audio played is f1, it is to be understood that f1 is the audible sound that user can hear Wave.Then, terminal can according to where active user target position and frequency f1, determine two ultrasonic frequencies, example It is such as respectively f2 and f3, it is to be understood that f2 and f3 is the sound wave that can not be heard.Later, terminal can be by ultrasonic frequency F2 and f3 distributes to two loudspeakers that can issue ultrasonic wave, such as respectively loudspeaker A and loudspeaker B.Then, terminal can Frequency is issued as the ultrasonic wave of f2 to control loudspeaker A towards target position, while being controlled loudspeaker B and being issued towards target position Frequency is the ultrasonic wave of f3.The ultrasonic wave that loudspeaker A and loudspeaker B is issued can carry out ultrasonic wave mixing, band in target position Dynamic air pulsation, and parse the frequency that active user can hear and be the sound wave (audio) of f1, to make in target position Active user can hear that terminal needs the audio that plays.
It is understood that since ultrasonic wave has very strong directionality, towards the target position where active user The ultrasonic wave for setting sending can be only mixed on direction of the terminal towards target position, so that only in terminal towards target Region on the direction of position, between terminal and target position can hear ultrasonic wave mixing audible sound obtained after parsing Wave, and will be unable to hear audible sound in other regions.Therefore, the present embodiment can make user be not required to wearing earphone i.e. audible To audio, keep the listening mode of audio simpler, user experience is more preferable.Also, since the user in other regions will not hear Sound wave, therefore the present embodiment will not interfere the user in other regions.
Referring to Fig. 2, Fig. 2 is another flow diagram of the playback method of audio provided by the embodiments of the present application, process May include:
In step s 201, when detecting that active user needs to play the file comprising audio, when terminal obtains current Between.
For example, terminal is available first to be obtained currently when detecting that active user needs to play the file comprising audio Time.For example, terminal detects that active user picks up terminal, when having selected a song and click play button, terminal can be with First obtain current time.
After getting current time, terminal can detecte whether the current time belongs to preset working time section.Example Such as, preset working time section is workaday 9:00 to 18:00.It is understood that working time section can be by user certainly Row setting, such as also can be set as 08:30 to 17:30, etc., it is not specifically limited herein.
In one embodiment, calendar used in terminal has the mark on working day and festivals or holidays, then obtaining To after current time, terminal the current time corresponding date can be compared with the date in calendar, when judging current Between the corresponding date whether belong to working day.
If judging, current time is not belonging to preset working time section, for example current time is not belonging to workaday work Period, then terminal can directly play the file that this includes audio.For example, in the case where being not connected to earphone, eventually End directly can put the audio using loudspeaker outside.
If judging, current time belongs to preset working time section, then can enter step in S202.
In step S202, if detecting, the current time belongs to preset working time section, and terminal is taken the photograph by wide-angle As mould group obtains the image of this terminal surrounding.
For example, the current time that terminal is got is the morning 10:00 of Monday, belong to workaday working time section, that Terminal can obtain the image of this terminal surrounding by wide-angle imaging mould group.For example, active user's handheld terminal, and terminal Plane on the vertical direction at place and the plane on the vertical direction where user are close to parallel, then terminal can open Image around the shooting of wide-angle imaging mould group.
After getting the image of this terminal surrounding, terminal can judge that this terminal surrounding whether there is according to the image and work as Preceding other users with open air.
If judging this terminal surrounding, there is no other users outside active user, then terminal can execute other behaviour Make.For example, terminal directly can put the audio using loudspeaker outside in the case where being not connected to earphone.
If judging this terminal surrounding, there are other users outside active user, then can enter step in S203.
In step S203, if according to the image determine this terminal surrounding there are the other users outside active user, The noise figure of terminal acquisition environment.
For example, terminal by the image that wide-angle imaging mould group takes judges this terminal surrounding, there are other than active user Other users, in this case, the noise figure of the available ambient enviroment of terminal, and detect the noise figure whether be lower than it is pre- If threshold value.
If detecting the noise figure not less than preset threshold, then it is considered that active user is more noisy in one In environment.In this case, if detecting, terminal is not connected with earphone, then terminal can be directly by outside loudspeaker Playback frequency.
If detecting the noise lower than preset threshold, then can enter step in S204.
In step S204, if the noise figure is lower than preset threshold, terminal obtains the target position of active user.
For example, terminal detects the noise figure of ambient enviroment lower than preset threshold, then it is considered that active user is in In one quiet environment.That is, there are also other around one in the working time section of active user on weekdays In user and the quiet environment of comparison.In this case, it is interfered in order to avoid directly by playback frequency outside loudspeaker other User, the at this time target position of the available active user of terminal.
In one embodiment, the information of the target position of active user may include active user relative to terminal institute Direction and distance etc. information.
In step S205, terminal obtains the first frequency for needing the audio played.
For example, after getting the target position of active user, terminal is available need the audio played with frequency.
In step S206, according to target position and first frequency, terminal determines at least two ultrasonic frequencies, and is Different preset components distributes the different ultrasonic frequencies in terminal.
For example, behind the target position and first frequency for getting active user, terminal can according to the target position and First frequency determines at least two ultrasonic frequencies.For example, terminal can determine two ultrasonic frequencies, and will determine Ultrasonic frequency out is respectively allocated to two different preset components.
It should be noted that preset component can be the component that can send out ultrasonic frequency, for example, loudspeaker or Receiver or microphone etc..
In step S207, terminal control preset component is according to the ultrasonic frequency being assigned to towards target position sending sound Wave, so that ultrasonic frequency is mixed in the target position and parses first frequency.
For example, after two ultrasonic frequencies that will be determined are respectively allocated to two different preset components, terminal Each preset component be can control according to the ultrasonic frequency being assigned to simultaneously towards the target position sending sound where active user Wave so that all ultrasonic frequencies are able to carry out mixing in the target location, and parses first frequency, to make current User can hear the audio of terminal plays.
In the present embodiment, when obtaining the target position of active user, terminal is available to utilize range sensor, obtains Take the target range between active user and terminal.Then, terminal can be according to the target range and the audio for needing to play First frequency, to determine at least two ultrasonic frequencies.That is, the first frequency in the audio for needing to play is identical In the case where, if terminal is different from the distance between active user, then it is determined that the ultrasonic frequency come out is also different.For example, The first frequency for the audio for needing to play is f1, then when the distance between terminal and active user are 30 centimetres, terminal root According to first frequency f1 and 30 centimetres of distance, determine two ultrasonic frequencies, for example, the two ultrasonic frequencies be respectively f2 and f3.When the distance between terminal and active user are 40 centimetres, terminal is determined according to first frequency f1 and 40 centimetres of distance Two ultrasonic frequencies, such as the two ultrasonic frequencies are respectively f4 and f5.Wherein, the ultrasonic frequency group that f2 and f3 is constituted It closes and combines difference with the f4 and f5 ultrasonic frequency constituted.That is, terminal can according to its between active user away from From difference, adjustment ultrasonic frequency it is also different, to guarantee that active user can clearly hear in target location by surpassing The audio for the audible sound that sound wave mixing parses.
In one embodiment, it obtains and works as when detecting that active user needs to play the file comprising audio in S201 The step of preceding time, may include steps of:
When detecting that active user needs to play the file comprising audio, terminal obtains the class for needing the audio played Not;
If detecting, the classification for the audio that the needs play belongs to pre-set categories, and terminal obtains current time.
For example, terminal can first obtain the song when detecting that active user clicks the broadcast button of a certain song Classification, and whether the classification for detecting the song belongs to pre-set categories.In one embodiment, pre-set categories can be some sounds Adjust relatively high audio, for example, category Rock song or high pitch classification song.
If detecting the music for currently needing the song played to belong to preset category Rock or high pitch classification, due to This kind of song is larger to interference caused by other, therefore in such a case, it is possible to triggering terminal obtains current time, and can To determine that current time belongs to workaday preset operating time section, and there are other use outside active user for terminal surrounding When family, controlling terminal obtains the first frequency for needing the audio played.Then, terminal is further according to first frequency and active user It determines at least two ultrasonic frequencies, and the ultrasonic frequency determined is respectively allocated to not in the target position at place Same preset component.Later, terminal can control preset component and be assigned to simultaneously to the target position sending where active user Frequency ultrasonic wave so that these ultrasonic waves can be mixed in the target location where active user, and parse human ear Audible sound wave.
In one embodiment, different audio-frequency play modes, such as respectively ordinary playing also can be set in terminal Mode and orientation play mode.When user selects normal play modes, terminal can use loudspeaker to play audio, at this time Loudspeaker issues the sound wave for the frequency that human ear can be heard.When user selects orientation play mode, terminal can control loudspeaking The components such as device and/or receiver and/or microphone are simultaneously emitted by the high-frequency ultrasonic that human ear can't hear, these high frequency ultrasound wave energy Enough positions where user carry out ultrasonic wave mixing, drive air pulsation, and parse human ear to hear the sound wave of frequency.
In one embodiment, terminal can also judge it is using ordinary playing according to the place where active user Mode still plays audio using orientation play mode.For example, if it is determined that the place where active user at home, then Terminal can play audio using normal play modes.If it is determined that the place where active user is in company, then eventually End can play audio, etc. using orientation play mode.
Fig. 3 to Fig. 5 is please referred to, Fig. 3 to Fig. 5 is the scene signal of the playback method of audio provided by the embodiments of the present application Figure.
For example, terminal can detecte user's needs at this time as shown in figure 3, user clicks the broadcast button of XX song Play audio.At this point, the available current time of terminal.
For example, as shown in figure 3, current time is Wednesday morning 10:00 on January 10.After getting current time, eventually End can detecte whether current time is workaday working time section.For example, working time section is 09:00 to 18:00.
For example, terminal detects that current time is workaday working time section in the present embodiment.In this case, Terminal can obtain the image of this terminal surrounding by wide-angle imaging mould group, for example, terminal can shoot number frame about ring around Then the photo in border judges this terminal surrounding with the presence or absence of the other users outside active user by these photos.
For example, there are other users in the photo of wide-angle imaging mould group shooting, therefore terminal is according to wide-angle imaging mould group The photo that shooting obtains determines surrounding, and there is also the other users outside active user, and terminal can further acquire surrounding at this time The noise of environment, and the noise figure of ambient enviroment is obtained, as shown in Figure 4.Then, terminal can detecte whether the noise figure is lower than Preset threshold.Such as preset threshold is 40 decibels.
For example, the noise figure for the ambient enviroment that terminal is got in the present embodiment, which is 39 decibels, is lower than preset threshold, then It is considered that current environment belongs to quiet environment.
Judging that terminal is currently at quiet working environment, and surrounding can trigger end there is also when other users End obtain active user relative to where terminal direction and distance.For example, terminal get active user terminal just before 30 centimeters of side.
Then, the first frequency f1 of the available XX song for needing to play of terminal.Later, terminal can according to user with 30 centimetres of the distance between terminal and first frequency f1 determine two ultrasonic frequencies.For example, terminal determine this two A ultrasonic frequency is respectively f2 and f3.
Later, above-mentioned ultrasonic frequency f2 can be distributed to the receiver (earpiece) of terminal by terminal, by above-mentioned ultrasonic wave Frequency f3 distributes to the loudspeaker of terminal.
In the present embodiment, as shown in figure 5, the receiver 20 and range sensor 10 of terminal are distributed in screen upper position It sets.Terminal screen bottom and offer a gap with boundary frame area intersection, loudspeaker 30 is installed at the gap.It should The sound wave of human ear audible frequency all can both occur for receiver 20 and loudspeaker 30, can also issue the super of the non-audible frequency of human ear Sound wave.
Be respectively by ultrasonic frequency after f2 and f3 is respectively allocated to receiver and loudspeaker, terminal can control this by It talks about device and issues frequency towards the position of front active user as the ultrasonic wave of f2, while controlling the loudspeaker and working as towards front The position of preceding user issues the ultrasonic wave that frequency is f3.The ultrasonic wave that frequency is f2 and ultrasonic wave and frequency are f3 terminal just before It is able to carry out mixing at side 30 centimetres (i.e. active user positions), to drive air pulsation, and parses active user The sound wave for the first frequency that can be heard, to enable active user's uppick audio.
Later, active user has adjusted the distance between itself and terminal, at this time terminal detect its with active user away from From having become 40 centimetres.In this case, terminal can according to the frequency f1 and terminal of the audio for currently needing to play with 40 centimetres of the distance between active user, determine two ultrasonic frequencies f4 and f5.Then, terminal can control receiver court Frequency is issued to the position in 40 centimetres of front and is the ultrasonic wave of f4, while controlling position of the loudspeaker towards 40 centimetres of front Set the ultrasonic wave for issuing that frequency is f5.Wherein, the ultrasonic wave frequency that the ultrasonic frequency combination that f4 and f5 is constituted is constituted with f2 and f3 The combination of rate is different.Frequency is respectively that ultrasonic wave can occur is mixed for 40 centimetres of position immediately ahead of terminal for the ultrasonic wave of f4 and f5 Frequency simultaneously parses the audio that the frequency that active user can hear is f1.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of the playing device of audio provided by the embodiments of the present application.Audio is broadcast Putting device 300 may include: the first acquisition module 301, and second obtains module 302, determining module 303, control module 304.
First obtains module 301, for obtaining the target position of active user.
Second obtains module 302, for obtaining the first frequency for needing the audio played.
Determining module 303, for determining at least two ultrasonic wave frequencies according to the target position and the first frequency Rate, and the different ultrasonic frequencies is distributed for preset component different in the terminal.
Control module 304, for controlling the preset component according to the ultrasonic frequency being assigned to towards the mesh Cursor position issues sound wave, so that the ultrasonic frequency is mixed in the target position and parses the first frequency.
In one embodiment, the first acquisition module 301 executes the target position for obtaining active user When step, it can be used for:
By wide-angle imaging mould group, the image of the terminal surrounding is obtained;
If determining the terminal surrounding according to the image, there are the other users outside the active user, institute is obtained State the target position of active user.
In one embodiment, if the first acquisition module 301 execute it is described determined according to the image it is described It, can be with when the step for the target position that terminal surrounding then obtains the active user there are the other users outside the active user For:
If determining that the terminal surrounding there are the other users outside the active user, obtains ring according to the image The noise figure in border;
If the noise figure is lower than preset threshold, the target position of the active user is obtained.
In one embodiment, the first acquisition module 301 executes described by described in the acquisition of wide-angle imaging mould group When the step of the image of terminal surrounding, it can be used for:
When detecting that the active user needs to play the file comprising audio, current time is obtained;
If detecting, the current time belongs to preset working time section, obtains the end by wide-angle imaging mould group Image around holding.
In one embodiment, the first acquisition module 301 executes described when detecting active user's needs When obtaining the step of current time when playing the file comprising audio, it can be used for:
When detecting that the active user needs to play the file comprising audio, the audio for needing to play is obtained Classification;
If detecting, the classification for needing the audio played belongs to pre-set categories, obtains current time.
The embodiment of the present application provides a kind of computer-readable storage medium, computer program is stored thereon with, when described When computer program executes on computers, so that the computer executes in the playback method such as audio provided in this embodiment The step of.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute The computer program stored in memory is stated, the step in playback method for executing audio provided in this embodiment.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet computer or smart phone.Referring to Fig. 7, Fig. 7 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
The mobile terminal 400 may include the components such as loudspeaker 401, memory 402, processor 403.Those skilled in the art Member is appreciated that mobile terminal structure shown in Fig. 7 does not constitute the restriction to mobile terminal, may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
Loudspeaker 401 can convert electrical signals to voice signal, to send out sound wave.
Memory 402 can be used for storing application program and data.It include that can hold in the application program that memory 402 stores Line code.Application program can form various functional modules.Processor 403 is stored in the application journey of memory 402 by operation Sequence, thereby executing various function application and data processing.
Processor 403 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the application program being stored in memory 402, and is called and is stored in memory 402 Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
In the present embodiment, the processor 403 in mobile terminal can be according to following instruction, will be one or more The corresponding executable code of the process of application program is loaded into memory 402, and is run by processor 403 and be stored in storage Application program in device 402, to realize step:
Obtain the target position of active user;
Obtain the first frequency for needing the audio played;
According to the target position and the first frequency, at least two ultrasonic frequencies are determined, and be the terminal Middle different preset component distributes the different ultrasonic frequencies;
It controls the preset component and issues sound wave towards the target position according to the ultrasonic frequency being assigned to, with It is mixed the ultrasonic frequency in the target position and parses the first frequency.
Referring to Fig. 8, mobile terminal 500 may include loudspeaker 501, memory 502, processor 503, input unit 504, the components such as output unit 505, range sensor 506, receiver 507.
Loudspeaker 501 can convert electrical signals to voice signal, to send out sound wave.
Memory 502 can be used for storing application program and data.It include that can hold in the application program that memory 502 stores Line code.Application program can form various functional modules.Processor 503 is stored in the application journey of memory 502 by operation Sequence, thereby executing various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the application program being stored in memory 502, and is called and is stored in memory 502 Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
Input unit 504 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.
Output unit 505 can be used for showing information input by user or the information and mobile terminal that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Output unit may include display panel.
Range sensor 506 can be used for launching outward detectable signal, which can occur after encountering barrier Reflection, the detectable signal by reflection can be received by range sensor, what terminal can be received according to range sensor The power of signal is reflected to judge the distance between terminal and barrier.
Receiver 507 is a kind of electro-acoustic element that audio electrical signal is converted into voice signal.
In the present embodiment, the processor 503 in mobile terminal can be according to following instruction, will be one or more The corresponding executable code of the process of application program is loaded into memory 502, and is run by processor 503 and be stored in storage Application program in device 502, to realize step:
Obtain the target position of active user;
Obtain the first frequency for needing the audio played;
According to the target position and the first frequency, at least two ultrasonic frequencies are determined, and be the terminal Middle different preset component distributes the different ultrasonic frequencies;
It controls the preset component and issues sound wave towards the target position according to the ultrasonic frequency being assigned to, with It is mixed the ultrasonic frequency in the target position and parses the first frequency.
It in one embodiment, can be with when processor 503 executes the step of the target position for obtaining active user It executes: by wide-angle imaging mould group, obtaining the image of the terminal surrounding;If determining the terminal surrounding according to the image There are the other users outside the active user, then obtain the target position of the active user.
In one embodiment, if processor 503 executes and described determines that the terminal surrounding is deposited according to the image It when the step for the target position that the other users outside the active user then obtain the active user, can execute: if root Determining the terminal surrounding according to the image, there are the other users outside the active user, then obtain the noise figure of environment; If the noise figure is lower than preset threshold, the target position of the active user is obtained.
In one embodiment, processor 503, which executes, described obtains the terminal surrounding by wide-angle imaging mould group It when the step of image, can execute: when detecting that the active user needs to play the file comprising audio, when obtaining current Between;If detecting, the current time belongs to preset working time section, obtains the terminal week by wide-angle imaging mould group The image enclosed.
In one embodiment, processor 503 executes described when detecting that the active user needs to play comprising sound It when obtaining the step of current time when the file of frequency, can execute: include audio when detecting that the active user needs to play File when, obtain the classification of audio for needing to play;If it is pre- to detect that the classification for needing the audio played belongs to If classification then obtains current time.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description of the playback method above with respect to audio, details are not described herein again.
The playback method category of audio in the playing device and foregoing embodiments of the audio provided by the embodiments of the present application In same design, any provided in the playback method embodiment of the audio can be run on the playing device of the audio Method, specific implementation process are detailed in the playback method embodiment of the audio, and details are not described herein again.
It should be noted that for the playback method of the audio described in the embodiment of the present application, those of ordinary skill in the art It is understood that realize all or part of the process of the playback method of audio described in the embodiment of the present application, being can be by computer journey Sequence is completed to control relevant hardware, and the computer program can be stored in a computer-readable storage medium, such as deposit Storage in memory, and is executed by least one processor, in the process of implementation may include such as the playback method of the audio The process of embodiment.Wherein, the storage medium can be magnetic disk, CD, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the playing device of the audio of the embodiment of the present application, each functional module can integrate to be handled at one In chip, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module. Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It is described If integrated module is realized and when sold or used as an independent product in the form of software function module, also can store In a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
The playback method, device, storage medium and electronics of a kind of audio provided by the embodiment of the present application are set above Standby to be described in detail, used herein a specific example illustrates the principle and implementation of the invention, above The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as limiting the invention.

Claims (10)

1. a kind of playback method of audio characterized by comprising
Obtain the target position of active user;
Obtain the first frequency for needing the audio played;
According to the target position and the first frequency, determine at least two ultrasonic frequencies, and in the terminal not Same preset component distributes the different ultrasonic frequencies;
It controls the preset component and issues sound wave towards the target position according to the ultrasonic frequency being assigned to, so that institute Ultrasonic frequency is stated to be mixed in the target position and parse the first frequency.
2. the playback method of audio according to claim 1, which is characterized in that the target position for obtaining active user The step of, comprising:
By wide-angle imaging mould group, the image of the terminal surrounding is obtained;
If determining the terminal surrounding there are the other users outside the active user according to the image, obtain described in work as The target position of preceding user.
3. the playback method of audio according to claim 2, which is characterized in that if described determine institute according to the image The step of stating terminal surrounding there are the target positions that the other users outside the active user then obtain the active user, packet It includes:
If determining that the terminal surrounding there are the other users outside the active user, obtains environment according to the image Noise figure;
If the noise figure is lower than preset threshold, the target position of the active user is obtained.
4. the playback method of audio according to claim 2, which is characterized in that described to obtain institute by wide-angle imaging mould group The step of stating the image of terminal surrounding, comprising:
When detecting that the active user needs to play the file comprising audio, current time is obtained;
If detecting, the current time belongs to preset working time section, obtains the terminal week by wide-angle imaging mould group The image enclosed.
5. the playback method of audio according to claim 4, which is characterized in that described to detect that the active user needs Play the step of current time is obtained when including the file of audio, comprising:
When detecting that the active user needs to play the file comprising audio, the class of the audio for needing to play is obtained Not;
If detecting, the classification for needing the audio played belongs to pre-set categories, obtains current time.
6. a kind of playing device of audio characterized by comprising
First obtains module, for obtaining the target position of active user;
Second obtains module, for obtaining the first frequency for needing the audio played;
Determining module, for determining at least two ultrasonic frequencies, and be according to the target position and the first frequency Different preset components distributes the different ultrasonic frequencies in the terminal;
Control module is sent out according to the ultrasonic frequency being assigned to towards the target position for controlling the preset component Sound wave out, so that the ultrasonic frequency is mixed in the target position and parses the first frequency.
7. the playing device of audio according to claim 6, which is characterized in that described first obtains module, is used for:
By wide-angle imaging mould group, the image of the terminal surrounding is obtained;
If determining the terminal surrounding there are the other users outside the active user according to the image, obtain described in work as The target position of preceding user.
8. the playing device of audio according to claim 7, which is characterized in that described first obtains module, is used for:
If determining that the terminal surrounding there are the other users outside the active user, obtains environment according to the image Noise figure;
If the noise figure is lower than preset threshold, the target position of the active user is obtained.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program on computers When execution, so that the computer executes the method as described in any one of claims 1 to 5.
10. a kind of electronic equipment, including memory, processor, which is characterized in that the processor is by calling the memory The computer program of middle storage, for executing the method as described in any one of claims 1 to 5.
CN201810488714.XA 2018-05-21 2018-05-21 Playback method, device, storage medium and the electronic equipment of audio Pending CN110517711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810488714.XA CN110517711A (en) 2018-05-21 2018-05-21 Playback method, device, storage medium and the electronic equipment of audio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810488714.XA CN110517711A (en) 2018-05-21 2018-05-21 Playback method, device, storage medium and the electronic equipment of audio

Publications (1)

Publication Number Publication Date
CN110517711A true CN110517711A (en) 2019-11-29

Family

ID=68621898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810488714.XA Pending CN110517711A (en) 2018-05-21 2018-05-21 Playback method, device, storage medium and the electronic equipment of audio

Country Status (1)

Country Link
CN (1) CN110517711A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629300A (en) * 2020-05-29 2020-09-04 维沃移动通信有限公司 Signal processing method and device and electronic equipment
CN111917489A (en) * 2020-07-30 2020-11-10 维沃移动通信有限公司 Audio signal processing method and device and electronic equipment
CN113050076A (en) * 2021-03-25 2021-06-29 京东方科技集团股份有限公司 Method, device and system for sending directional audio information and electronic equipment
CN113628636A (en) * 2020-05-09 2021-11-09 阿里巴巴集团控股有限公司 Voice interaction method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683907A (en) * 2015-01-26 2015-06-03 电子科技大学 Directional transmission device
CN204518045U (en) * 2015-03-26 2015-07-29 联想(北京)有限公司 A kind of sound directional transmissions equipment and electronic equipment
CN105101004A (en) * 2015-08-19 2015-11-25 联想(北京)有限公司 Electronic device and audio directional transmission method
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus
CN105992099A (en) * 2015-02-03 2016-10-05 中兴通讯股份有限公司 Terminal and method for terminal to broadcast audio signals directionally
CN107153796A (en) * 2017-03-30 2017-09-12 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107318067A (en) * 2017-05-24 2017-11-03 广东小天才科技有限公司 The audio oriented player method and device of a kind of terminal device
CN107420848A (en) * 2017-08-28 2017-12-01 深圳传音通讯有限公司 The method that music lighting lamp and music lighting lamp orientation play music

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683907A (en) * 2015-01-26 2015-06-03 电子科技大学 Directional transmission device
CN105992099A (en) * 2015-02-03 2016-10-05 中兴通讯股份有限公司 Terminal and method for terminal to broadcast audio signals directionally
CN204518045U (en) * 2015-03-26 2015-07-29 联想(北京)有限公司 A kind of sound directional transmissions equipment and electronic equipment
CN105101004A (en) * 2015-08-19 2015-11-25 联想(北京)有限公司 Electronic device and audio directional transmission method
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus
CN107153796A (en) * 2017-03-30 2017-09-12 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107318067A (en) * 2017-05-24 2017-11-03 广东小天才科技有限公司 The audio oriented player method and device of a kind of terminal device
CN107420848A (en) * 2017-08-28 2017-12-01 深圳传音通讯有限公司 The method that music lighting lamp and music lighting lamp orientation play music

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113628636A (en) * 2020-05-09 2021-11-09 阿里巴巴集团控股有限公司 Voice interaction method, device and equipment
CN111629300A (en) * 2020-05-29 2020-09-04 维沃移动通信有限公司 Signal processing method and device and electronic equipment
CN111917489A (en) * 2020-07-30 2020-11-10 维沃移动通信有限公司 Audio signal processing method and device and electronic equipment
CN111917489B (en) * 2020-07-30 2022-01-25 维沃移动通信有限公司 Audio signal processing method and device and electronic equipment
CN113050076A (en) * 2021-03-25 2021-06-29 京东方科技集团股份有限公司 Method, device and system for sending directional audio information and electronic equipment

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
JP6489563B2 (en) Volume control method, system, device and program
CN110517711A (en) Playback method, device, storage medium and the electronic equipment of audio
US10051368B2 (en) Mobile apparatus and control method thereof
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN107483735A (en) Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal
WO2022252781A1 (en) Noise reduction control method, electronic device, and computer-readable storage apparatus
CN111033614A (en) Volume adjusting method and device, mobile terminal and storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
CN109067998A (en) Sound adjusting method, terminal device and the device with store function
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
EP1783600B1 (en) Method for arbitrating audio data output apparatuses
CN111698593B (en) Active noise reduction method and device, and terminal
CN105244037B (en) Audio signal processing method and device
CN105721710A (en) Recording method and apparatus, and electronic device
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN113905302B (en) Method and device for triggering prompt message and earphone
CN109218913A (en) Sound adjusting method, terminal device and the device with store function
CN111510824B (en) Audio processing circuit, audio processing method, electronic device, and computer-readable storage medium
CN113491097B (en) Voice broadcast control method and device, storage medium and electronic equipment
CN111324331A (en) Interactive message prompting method and device, electronic equipment and storage medium
CN115134711A (en) Noise reduction method and device for audio playing equipment, electronic equipment and storage medium
WO2023160204A1 (en) Audio processing method, and electronic device
TWI786678B (en) Headphone device with gesture recognition function

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

Application publication date: 20191129

RJ01 Rejection of invention patent application after publication