CN109361994A - Speaker control method, mobile terminal and computer readable storage medium - Google Patents
Speaker control method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109361994A CN109361994A CN201811190840.3A CN201811190840A CN109361994A CN 109361994 A CN109361994 A CN 109361994A CN 201811190840 A CN201811190840 A CN 201811190840A CN 109361994 A CN109361994 A CN 109361994A
- Authority
- CN
- China
- Prior art keywords
- loudspeaker
- mobile terminal
- user
- volume
- target
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/32—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
- H04R1/323—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only for loudspeakers
Abstract
The application belongs to technical field of mobile terminals, provide a kind of speaker control method, mobile terminal and computer readable storage medium, the mobile terminal includes multiple loudspeakers, the speaker control method includes: to obtain user's currently location information relative to the mobile terminal when receiving the instruction for opening loudspeaker;According to the current location information relative to the mobile terminal of the user, the selection target loudspeaker from the multiple loudspeaker;Open the target loudspeaker.Loudspeaker can be automatically selected relative to the location information of mobile terminal according to user by the application, export sound towards user's direction, obtain preferable audio.
Description
Technical field
The application belongs to technical field of mobile terminals more particularly to a kind of speaker control method, mobile terminal and calculating
Machine readable storage medium storing program for executing.
Background technique
With the development of communication technology, the mobile terminals such as mobile phone, tablet computer are more more and more universal, the function of mobile terminal
It is stronger and stronger.Using raising when mobile terminal user plays music, the audio files such as video or call commonly using loudspeaker
Sound reproduction sound etc. outside sound device.However, mobile terminal is commonly installed a loudspeaker in the prior art, the position of the loudspeaker is fixed
(such as positioned at mobile phone bottom), export the direction of sound be also it is fixed, not the user of the direction possibly can not be preferable
Receive the sound of loudspeaker output.
Summary of the invention
In view of this, this application provides a kind of speaker control method, mobile terminal and computer readable storage medium,
To automatically select loudspeaker relative to the location information of mobile terminal according to user, sound is exported towards user's direction, is obtained
Obtain preferable audio.
The first aspect of the application provides speaker control method, is applied to mobile terminal, and the mobile terminal includes
Multiple loudspeakers, the speaker control method include:
When receiving the instruction for opening loudspeaker, user's currently location information relative to the mobile terminal is obtained;
According to the current location information relative to the mobile terminal of the user, mesh is selected from the multiple loudspeaker
Mark loudspeaker;
Open the target loudspeaker.
The second aspect of the application provides a kind of mobile terminal, and the mobile terminal includes multiple loudspeakers, the shifting
Dynamic terminal includes:
Position acquisition module, for when receiving the instruction for opening loudspeaker, obtaining user currently relative to the shifting
The location information of dynamic terminal;
Loudspeaker selecting module, for according to the current location information relative to the mobile terminal of the user, from institute
State selection target loudspeaker in multiple loudspeakers;
Loudspeaker opening module, for opening the target loudspeaker.
The third aspect of the application provides a kind of mobile terminal, including memory, processor and is stored in described deposit
In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program
The step of speaker control method described in above-mentioned first aspect.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, the loudspeaker controlling party as described in above-mentioned first aspect is realized when the computer program is executed by processor
The step of method.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer
Program realizes the loudspeaker controlling party as described in above-mentioned first aspect when the computer program is executed by one or more processors
The step of method.
Therefore application scheme receive open loudspeaker instruction when, available user currently relative to
The location information of mobile terminal, selection target loudspeaker, control from multiple loudspeakers of mobile terminal according to the location information
Target loudspeaker work.Application scheme by the way that multiple loudspeakers are arranged in the terminal, can according to user relative to
The location information of mobile terminal selection target loudspeaker from multiple loudspeakers, it is defeated towards user direction using the target loudspeaker
Sound out makes user obtain preferable audio.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the speaker control method that the embodiment of the present application one provides;
Fig. 2 is the implementation process schematic diagram for the speaker control method that the embodiment of the present application two provides;
Fig. 3 is the implementation process schematic diagram for the speaker control method that the embodiment of the present application three provides;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides;
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
In the specific implementation, mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage
Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application
Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on mobile terminals
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process
Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It is the implementation process schematic diagram for the speaker control method that the embodiment of the present application one provides, the loudspeaker referring to Fig. 1
Control method is applied to mobile terminal, and the mobile terminal includes multiple loudspeakers, and the speaker control method as shown in the figure can
With the following steps are included:
Step S101 obtains user currently relative to the position of mobile terminal when receiving the instruction for opening loudspeaker
Information.
In the embodiment of the present application, in mobile terminal playing audio file, if detecting, mobile terminal is not inserted into earphone,
Then trigger the instruction for opening loudspeaker;Or when mobile terminal is conversed, if detecting to the loudspeaker of call interface
Clicking operation then triggers the instruction for opening loudspeaker.It should be noted that the mode of the instruction of loudspeaker is opened in other triggerings
Within the scope of protection of this application.In the embodiment of the present application, mobile terminal, can be with when receiving the instruction for opening loudspeaker
Obtain location information of user's current time relative to mobile terminal.Wherein, the location information includes but is not limited to orientation letter
Breath, the azimuth information can refer to direction of the user position relative to mobile terminal.
Optionally, the mobile terminal includes ultrasonic sensor, and the acquisition user is currently relative to described mobile whole
The location information at end includes:
Location information of the user currently relative to the mobile terminal is obtained by the ultrasonic sensor.
In the embodiment of the present application, ultrasonic sensor can be set in the terminal, and the ultrasonic sensor can
To include at least one transmitting terminal and at least one receiving end, transmitting terminal for emitting ultrasonic wave, receiving end for receive by with
The ultrasonic wave of family reflection.When receiving the instruction for opening loudspeaker, the ultrasonic sensor in mobile terminal, the ultrasound are opened
Wave sensor generates sound field, and user can be obtained according to the variation of sound field currently relative to the location information of mobile terminal.Transmitting
The top half (such as at the top of mobile terminal) in mobile terminal screen can be set in end, and receiving end can be set in mobile terminal
The lower half portion (such as mobile terminal bottom) of screen, is not limited thereto.
Step S102, according to the current location information relative to the mobile terminal of the user, from multiple loudspeakers
Selection target loudspeaker.
It in the embodiment of the present application, can be true according to the current location information relative to the mobile terminal of the user
Determine user's direction, selected from multiple loudspeakers of mobile terminal voice directions user's direction loudspeaker as
Target loudspeaker.Wherein, the multiple loudspeaker can be distributed in any position of mobile terminal, such as the four of mobile terminal
A side, front (i.e. face where mobile terminal screen) and the back side (i.e. the opposing face in face where mobile terminal screen) are set respectively
A loudspeaker is set, is not limited thereto.The target loudspeaker can refer to be needed when receiving the instruction for opening loudspeaker
The loudspeaker of unlatching, such as voice directions are towards the loudspeaker of user's direction.
Optionally, according to the current location information relative to the mobile terminal of the user, from the multiple loudspeaking
In device before selection target loudspeaker, further includes:
The different location information that the user is established relative to the mobile terminal is raised with difference in the multiple loudspeaker
The corresponding relationship of sound device;
Correspondingly, it is described according to the current location information relative to the mobile terminal of the user, it is raised from the multiple
Selection target loudspeaker includes: in sound device
Different location information and different loudspeakings in the multiple loudspeaker from the user relative to the mobile terminal
In the corresponding relationship of device, search with the user currently relative to the corresponding loudspeaker of the location information of the mobile terminal.
In the embodiment of the present application, the user can be pre-established in the terminal relative to the mobile terminal
The corresponding relationship of different location information and different loudspeakers in the multiple loudspeaker, get the user currently relative to
After the location information of the mobile terminal, the use can be searched from the corresponding relationship of above-mentioned location information and loudspeaker
Currently relative to the corresponding loudspeaker of location information of the mobile terminal, which is target loudspeaker at family.For example, side
Position A corresponds to the loudspeaker of mobile phone first side, and orientation B corresponds to the loudspeaker of mobile phone second side, and orientation C corresponds to mobile phone third side
The loudspeaker on side, orientation D correspond to the loudspeaker of mobile phone four side, are currently relative to the location information of mobile terminal in user
When orientation A, select the loudspeaker of mobile phone first side as target loudspeaker.
Optionally, get the user currently relative to the location information of the mobile terminal after, can also be
Show the user currently relative in the location information of the mobile terminal and the mobile terminal on mobile terminal screen
The location information of multiple loudspeakers, facilitates user to find target loudspeaker, is receiving user to any in multiple loudspeakers
It, will be true when confirmation instruction (such as the triggering of the icon by clicking a certain loudspeaker instructs the confirmation of the loudspeaker) of loudspeaker
The corresponding loudspeaker of instruction is recognized as target loudspeaker.
Step S103 opens the target loudspeaker.
In the embodiment of the present application, mobile terminal can be sent out after selection target loudspeaker to the target loudspeaker
Open command is sent, the target loudspeaker is opened, and is not turned on other loudspeakers.Wherein, it is specific to open the target loudspeaker
It can be finger and control the target loudspeaker sounding.
The embodiment of the present application, can be according to user relative to mobile terminal by the way that multiple loudspeakers are arranged in the terminal
Location information from multiple loudspeakers selection target loudspeaker, using the target loudspeaker towards user direction export sound,
So that user is not heard oneself interested sound, obtain preferable audio, improves the audio experience of user.
It referring to fig. 2, is the implementation process schematic diagram for the speaker control method that the embodiment of the present application two provides, the loudspeaker
Control method is applied to mobile terminal, and the mobile terminal includes multiple loudspeakers, and the speaker control method as shown in the figure can
With the following steps are included:
Step S201 obtains user currently relative to the position of mobile terminal when receiving the instruction for opening loudspeaker
Information.
The step is identical as step S101, and for details, reference can be made to the associated descriptions of step S101, and details are not described herein.
Step S202, according to the current location information relative to the mobile terminal of the user, from multiple loudspeakers
Selection target loudspeaker.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S203 obtains the volume of current environmental sound.
Step S204 determines the target volume of the target loudspeaker according to the volume of the current environmental sound.
In the embodiment of the present application, after selection target loudspeaker in multiple loudspeakers, mobile terminal can be acquired
Current environmental sound, and the volume of the current environmental sound is calculated, according to the volume of the current environmental sound, adjust automatically
The volume of the target loudspeaker.The target volume of the target loudspeaker can refer to the sound when target loudspeaker sounding
Amount.
Optionally, it before the volume according to the current environmental sound, the volume for determining the target loudspeaker, also wraps
It includes:
Establish the corresponding relationship of the different volumes volume different from the target loudspeaker of ambient sound;
The volume according to the current environmental sound determines that the target volume of the target loudspeaker includes:
From the corresponding relationship of the different volumes volume different from the target loudspeaker of the ambient sound, search with
The volume of the corresponding target loudspeaker of the volume of the current environmental sound, and using the volume as the target loudspeaker
Target volume.
In the embodiment of the present application, the different volumes and the target of ambient sound can be pre-established in the terminal
The corresponding relationship of the different volumes of loudspeaker, the volume of its bigger corresponding target loudspeaker of the volume of ambient sound is also more
Greatly, it after getting the volume of current environmental sound, can be searched and the current environmental sound from above-mentioned corresponding relationship
The corresponding target loudspeaker of volume volume, which is the target volume of the target loudspeaker.Optionally, exist
It, can be by ambient sound when establishing the corresponding relationship of different volumes volume different from the target loudspeaker of ambient sound
Volume is divided into multiple volume ranges, establishes in the multiple volume range different volume ranges and the target loudspeaker not
With the corresponding relationship of volume.Wherein, a volume of the target loudspeaker can correspond to a volume range.Such as by environment
The volume of sound is divided into three volume ranges, respectively the first volume range, the second volume range and third volume range, and
One volume range corresponds to the volume a of target loudspeaker, and the second volume range corresponds to the volume b of target loudspeaker, third volume model
Enclose the volume c of corresponding target loudspeaker.After getting the volume of current environmental sound, the current environmental sound is judged
The affiliated volume range of volume, using the volume of target loudspeaker corresponding with the volume range as target volume.
Step S205 controls the target loudspeaker with the target volume and carries out sounding.
In the embodiment of the present application, after determining the target volume of target loudspeaker, mobile terminal can control described
Target loudspeaker carries out sounding with the target volume.
The embodiment of the present application automatically adjusts the volume of target loudspeaker according to ambient enviroment sound, can be in ambient sound
When sound is larger, the volume of automatic adjustment height target loudspeaker automatically turns down the volume of target loudspeaker when ambient sound is smaller,
To avoid target loudspeaker in sounding, to other people interference of surrounding.
It is the implementation process schematic diagram for the speaker control method that the embodiment of the present application three provides, the loudspeaker referring to Fig. 3
Control method is applied to mobile terminal, and the mobile terminal includes multiple loudspeakers, and the speaker control method as shown in the figure can
With the following steps are included:
Step S301, if detecting multiple users, obtains the multiple use when receiving the instruction for opening loudspeaker
The face information of each user in family.
Step S302, if there are face information and the matched user of pre-stored face information in the multiple user,
The user is then obtained currently relative to the location information of mobile terminal.
In the embodiment of the present application, when receiving the instruction for opening loudspeaker, the ultrasonic wave opened in mobile terminal is passed
Sensor detects whether that there are users by the ultrasonic sensor, and if it exists, then obtains each user in the multiple user
Face information, and by pre-stored face information in the face information of user each in the multiple user and mobile terminal
It is matched, if can be obtained in the multiple user there are face information and the matched user of pre-stored face information
Take face information and the matched user of pre-stored face information currently relative to the location information of mobile terminal, and according to people
Face information and the matched user of pre-stored face information are currently relative to the location information of mobile terminal, from multiple loudspeakers
Middle selection voice directions are carried out towards the loudspeaker of face information and the matched user's direction of pre-stored face information
Sounding.
In the embodiment of the present application, the pre-stored face information can refer to pre-stored face three-dimensional letter
Breath, the face information for obtaining each user in the multiple user specifically can be obtained by ultrasonic sensor it is the multiple
The face three-dimensional information of each user in user.It should be noted that the multiple user can also be obtained by other means
In each user face information, be not limited thereto.
Step S303 is selected from multiple loudspeakers according to the current location information relative to the mobile terminal of the user
Select target loudspeaker.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S304 opens the target loudspeaker.
The step is identical as step S103, and for details, reference can be made to the associated descriptions of step S103, and details are not described herein.
The embodiment of the present application, can be each in multiple users by obtaining when ultrasonic sensor detects multiple users
The face information of user determine in multiple users have open loudspeaker permission user, and control voice directions towards have open
The loudspeaker sounding for opening user's direction of loudspeaker permission opens other loudspeakers to avoid opening by mistake.
It referring to fig. 4, is the schematic diagram for the mobile terminal that the embodiment of the present application four provides, the mobile terminal includes multiple raises
Sound device illustrates only part relevant to the embodiment of the present application for ease of description.
The mobile terminal includes:
Position acquisition module 41, for when receiving the instruction for opening loudspeaker, obtaining user currently relative to described
The location information of mobile terminal;
Loudspeaker selecting module 42, for according to the current location information relative to the mobile terminal of the user, from
Selection target loudspeaker in the multiple loudspeaker;
Loudspeaker opening module 43, for opening the target loudspeaker.
Optionally, mobile terminal further include:
Volume obtains module 44, for obtaining the volume of current environmental sound;
Volume determining module 45 determines the mesh of the target loudspeaker for the volume according to the current environmental sound
Mark with phonetic symbols amount.
Optionally, the loudspeaker opening module 43 is specifically used for:
It controls the target loudspeaker and sounding is carried out with the target volume.
Optionally, the mobile terminal further include:
First establishes module 46, the volume different from the target loudspeaker of the different volumes for establishing ambient sound
Corresponding relationship;
Correspondingly, the volume determining module 45 is specifically used for:
From the corresponding relationship of the different volumes volume different from the target loudspeaker of the ambient sound, search with
The volume of the corresponding target loudspeaker of the volume of the current environmental sound, and using the volume as the target loudspeaker
Target volume.
Optionally, the mobile terminal includes ultrasonic sensor, and the position acquisition module 41 is specifically used for:
Location information of the user currently relative to the mobile terminal is obtained by the ultrasonic sensor.
Optionally, the position acquisition module 41 includes:
First acquisition unit, for if detecting multiple users, obtaining institute when receiving the instruction for opening loudspeaker
State the face information of each user in multiple users;
Second acquisition unit, if being matched with pre-stored face information for there are face informations in the multiple user
User, then obtain location information of the user currently relative to the mobile terminal.
Optionally, the mobile terminal further include:
Second establishes module 47, for establish the user relative to the mobile terminal different location information with it is described
The corresponding relationship of different loudspeakers in multiple loudspeakers;
Correspondingly, the loudspeaker selecting module 42 is specifically used for:
Different location information and different loudspeakings in the multiple loudspeaker from the user relative to the mobile terminal
In the corresponding relationship of device, search with the user currently relative to the corresponding loudspeaker of the location information of the mobile terminal, and
Using the loudspeaker as target loudspeaker.
Mobile terminal provided by the embodiments of the present application can be applied in preceding method embodiment one, embodiment two and embodiment
In three, details are referring to the description of above method embodiment one, embodiment two and embodiment three, and details are not described herein.
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.The mobile terminal as shown in the figure can wrap
Include: one or more processors 501 (only show one) in figure;One or more input equipments 502 (one is only shown in figure),
One or more output equipments 503 (one is only shown in figure) and memory 504.It is above-mentioned processor 501, input equipment 502, defeated
Equipment 503 and memory 504 are connected by bus 505 out.Memory 504 for storing instruction, deposit for executing by processor 501
The instruction that reservoir 504 stores.Wherein:
The processor 501, for when receiving the instruction for opening loudspeaker, obtaining user currently relative to the shifting
The location information of dynamic terminal;According to the current location information relative to the mobile terminal of the user, from the multiple loudspeaking
Selection target loudspeaker in device;Open the target loudspeaker.
Optionally, the processor 501 is also used to:
Obtain the volume of current environmental sound;
According to the volume of the current environmental sound, the target volume of the target loudspeaker is determined.
Optionally, the processor 501 is specifically used for:
It controls the target loudspeaker and sounding is carried out with the target volume.
Optionally, the processor 501 is also used to:
Establish the corresponding relationship of the different volumes volume different from the target loudspeaker of ambient sound;
From the corresponding relationship of the different volumes volume different from the target loudspeaker of the ambient sound, search with
The volume of the corresponding target loudspeaker of the volume of the current environmental sound, and using the volume as the target loudspeaker
Target volume.
Optionally, the processor 501 is specifically used for:
Location information of the user currently relative to the mobile terminal is obtained by the ultrasonic sensor.
Optionally, the processor 501 is specifically used for:
When receiving the instruction for opening loudspeaker, if detecting multiple users, obtain each in the multiple user
The face information of user;
If obtaining the use there are face information and the matched user of pre-stored face information in the multiple user
The current location information relative to the mobile terminal in family.
Optionally, the processor 501 is also used to:
The different location information that the user is established relative to the mobile terminal is raised with difference in the multiple loudspeaker
The corresponding relationship of sound device;
Different location information and different loudspeakings in the multiple loudspeaker from the user relative to the mobile terminal
In the corresponding relationship of device, search with the user currently relative to the corresponding loudspeaker of the location information of the mobile terminal, and
Using the loudspeaker as target loudspeaker.
It should be appreciated that in the embodiment of the present application, the processor 501 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 502 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone, data receiver interface etc..Output equipment 503 may include display (LCD etc.), loudspeaker, data
Transmission interface etc..
The memory 504 may include read-only memory and random access memory, and to processor 501 provide instruction and
Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited
Store up the information of device type.
In the specific implementation, processor 501, input equipment 502 described in the embodiment of the present application, 503 and of output equipment
Implementation described in the embodiment of speaker control method provided by the embodiments of the present application can be performed in memory 504,
Implementation described in mobile terminal described in executable example IV, details are not described herein.
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.As shown in fig. 6, the mobile end of the embodiment
End 6 includes: processor 60, memory 61 and is stored in the meter that can be run in the memory 61 and on the processor 60
Calculation machine program 62.The processor 60 realizes above-mentioned each speaker control method embodiment when executing the computer program 62
In step, such as step S101 to S103 shown in FIG. 1.Alternatively, when the processor 60 executes the computer program 62
Realize the function of each module/unit in above-mentioned mobile terminal embodiment, such as the function of module 41 to 47 shown in Fig. 4.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 62 in the mobile terminal 6 is described.For example, the computer program 62 can be divided
It is cut into position acquisition module, loudspeaker selecting module, loudspeaker opening module, volume and obtains module, volume determining module, first
It establishes module and second establishes module, each module concrete function is as follows:
Position acquisition module, for when receiving the instruction for opening loudspeaker, obtaining user currently relative to the shifting
The location information of dynamic terminal;
Loudspeaker selecting module, for according to the current location information relative to the mobile terminal of the user, from more
Selection target loudspeaker in a loudspeaker;
Loudspeaker opening module, for opening the target loudspeaker.
Optionally, volume obtains module, for obtaining the volume of current environmental sound;
Volume determining module determines the target of the target loudspeaker for the volume according to the current environmental sound
Volume.
Optionally, the loudspeaker opening module is specifically used for:
It controls the target loudspeaker and sounding is carried out with the target volume.
Optionally, first module is established, for establishing the different volumes of ambient sound and the difference of the target loudspeaker
The corresponding relationship of volume;
Correspondingly, the volume determining module is specifically used for:
From the corresponding relationship of the different volumes volume different from the target loudspeaker of the ambient sound, search with
The volume of the corresponding target loudspeaker of the volume of the current environmental sound, and using the volume as the target loudspeaker
Target volume.
Optionally, the position acquisition module is specifically used for:
Location information of the user currently relative to the mobile terminal is obtained by ultrasonic sensor.
Optionally, the position acquisition module includes:
First acquisition unit, for if detecting multiple users, obtaining institute when receiving the instruction for opening loudspeaker
State the face information of each user in multiple users;
Second acquisition unit, if being matched with pre-stored face information for there are face informations in the multiple user
User, then obtain location information of the user currently relative to the mobile terminal.
Optionally, second module is established, for establishing different location information of the user relative to the mobile terminal
From the corresponding relationship of loudspeakers different in the multiple loudspeaker;
Correspondingly, the loudspeaker selecting module is specifically used for:
Different location information and different loudspeakings in the multiple loudspeaker from the user relative to the mobile terminal
In the corresponding relationship of device, search with the user currently relative to the corresponding loudspeaker of the location information of the mobile terminal, and
Using the loudspeaker as target loudspeaker.
The mobile terminal 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The mobile terminal may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6
The only example of mobile terminal 6 does not constitute the restriction to mobile terminal 6, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the mobile terminal can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 60 can be central processing unit CPU, can also be other general processors, Digital Signal Processing
Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA or other programmable logic device, discrete gate or
Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..
The memory 61 can be the internal storage unit of the mobile terminal 6, such as the hard disk or interior of mobile terminal 6
It deposits.The memory 61 is also possible to the External memory equipment of the mobile terminal 6, such as be equipped on the mobile terminal 6
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the mobile terminal 6
Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the mobile terminal
Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it
Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list
Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of speaker control method is applied to mobile terminal, which is characterized in that the mobile terminal includes multiple loudspeakings
Device, the speaker control method include:
When receiving the instruction for opening loudspeaker, user's currently location information relative to the mobile terminal is obtained;
According to the current location information relative to the mobile terminal of the user, selection target is raised from the multiple loudspeaker
Sound device;
Open the target loudspeaker.
2. speaker control method as described in claim 1, which is characterized in that before opening the target loudspeaker, also
Include:
Obtain the volume of current environmental sound;
According to the volume of the current environmental sound, the target volume of the target loudspeaker is determined.
3. speaker control method as claimed in claim 2, which is characterized in that described to open the target loudspeaker and include:
It controls the target loudspeaker and sounding is carried out with the target volume.
4. speaker control method as claimed in claim 2, which is characterized in that in the sound according to the current environmental sound
It measures, before the volume for determining the target loudspeaker, further includes:
Establish the corresponding relationship of the different volumes volume different from the target loudspeaker of ambient sound;
The volume according to the current environmental sound determines that the target volume of the target loudspeaker includes:
From the corresponding relationship of the different volumes volume different from the target loudspeaker of the ambient sound, search with it is described
The volume of the corresponding target loudspeaker of the volume of current environmental sound, and using the volume as the mesh of the target loudspeaker
Mark with phonetic symbols amount.
5. speaker control method as described in claim 1, which is characterized in that the mobile terminal includes supersonic sensing
Device, the location information for obtaining user currently relative to the mobile terminal include:
Location information of the user currently relative to the mobile terminal is obtained by the ultrasonic sensor.
6. speaker control method as described in claim 1, which is characterized in that described to receive the instruction for opening loudspeaker
When, obtaining location information of the user currently relative to the mobile terminal includes:
When receiving the instruction for opening loudspeaker, if detecting multiple users, each user in the multiple user is obtained
Face information;
If there are face informations and the matched user of pre-stored face information in the multiple user, obtains the user and work as
The preceding location information relative to the mobile terminal.
7. such as speaker control method as claimed in any one of claims 1 to 6, which is characterized in that current according to the user
Relative to the location information of the mobile terminal, before selection target loudspeaker in the multiple loudspeaker, further includes:
Establish different location information and in the multiple loudspeaker different loudspeakers of the user relative to the mobile terminal
Corresponding relationship;
Correspondingly, it is described according to the current location information relative to the mobile terminal of the user, from the multiple loudspeaker
Middle selection target loudspeaker includes:
Different location information and different loudspeakers in the multiple loudspeaker from the user relative to the mobile terminal
In corresponding relationship, search with the user currently relative to the corresponding loudspeaker of the location information of the mobile terminal, and should
Loudspeaker is as target loudspeaker.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes multiple loudspeakers, and the mobile terminal includes:
Position acquisition module, for when receiving the instruction for opening loudspeaker, obtaining user currently relative to described mobile whole
The location information at end;
Loudspeaker selecting module, for according to the current location information relative to the mobile terminal of the user, from described more
Selection target loudspeaker in a loudspeaker;
Loudspeaker opening module, for opening the target loudspeaker.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one speaker control method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of realization speaker control method as described in any one of claim 1 to 7 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190840.3A CN109361994A (en) | 2018-10-12 | 2018-10-12 | Speaker control method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190840.3A CN109361994A (en) | 2018-10-12 | 2018-10-12 | Speaker control method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109361994A true CN109361994A (en) | 2019-02-19 |
Family
ID=65349059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811190840.3A Pending CN109361994A (en) | 2018-10-12 | 2018-10-12 | Speaker control method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361994A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111193987A (en) * | 2019-12-27 | 2020-05-22 | 新石器慧通(北京)科技有限公司 | Method and device for directionally playing sound by vehicle and unmanned vehicle |
CN111586526A (en) * | 2020-05-26 | 2020-08-25 | 维沃移动通信有限公司 | Audio output method, audio output device and electronic equipment |
CN112866894A (en) * | 2019-11-27 | 2021-05-28 | 北京小米移动软件有限公司 | Sound field control method and device, mobile terminal and storage medium |
CN113747303A (en) * | 2021-09-06 | 2021-12-03 | 上海科技大学 | Directional sound beam whisper interaction system, control method, control terminal and medium |
US11659332B2 (en) | 2019-07-30 | 2023-05-23 | Dolby Laboratories Licensing Corporation | Estimating user location in a system including smart audio devices |
US11968268B2 (en) | 2019-07-30 | 2024-04-23 | Dolby Laboratories Licensing Corporation | Coordination of audio devices |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009088965A (en) * | 2007-09-28 | 2009-04-23 | Toshiba Corp | Mobile phone |
CN101867653A (en) * | 2010-06-17 | 2010-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Volume adjusting method and system and mobile terminal |
CN102819021A (en) * | 2012-08-30 | 2012-12-12 | 湖南大学 | Multifunctional ultrasonic ranging data acquisition system and method thereof |
CN103347111A (en) * | 2013-07-27 | 2013-10-09 | 青岛歌尔声学科技有限公司 | Intelligent mobile electronic equipment with size and weight estimation function |
CN105162950A (en) * | 2015-07-08 | 2015-12-16 | 惠州Tcl移动通信有限公司 | Mobile terminal and method capable of switching microphones during conversation |
CN105389779A (en) * | 2015-10-15 | 2016-03-09 | 广东欧珀移动通信有限公司 | Image correction method, image correction device and mobile terminal |
CN106470277A (en) * | 2016-09-06 | 2017-03-01 | 乐视控股(北京)有限公司 | A kind of safety instruction method and device |
CN106603945A (en) * | 2016-12-28 | 2017-04-26 | Tcl集团股份有限公司 | Mobile playing device and control method thereof |
CN107547987A (en) * | 2017-08-09 | 2018-01-05 | 维沃移动通信有限公司 | A kind of effect adjusting method and mobile terminal |
CN107547732A (en) * | 2017-07-05 | 2018-01-05 | 宇龙计算机通信科技(深圳)有限公司 | A kind of media play volume adjusting method, device, terminal and storage medium |
CN107609508A (en) * | 2017-09-08 | 2018-01-19 | 深圳市金立通信设备有限公司 | A kind of face identification method, terminal and computer-readable recording medium |
-
2018
- 2018-10-12 CN CN201811190840.3A patent/CN109361994A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009088965A (en) * | 2007-09-28 | 2009-04-23 | Toshiba Corp | Mobile phone |
CN101867653A (en) * | 2010-06-17 | 2010-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Volume adjusting method and system and mobile terminal |
CN102819021A (en) * | 2012-08-30 | 2012-12-12 | 湖南大学 | Multifunctional ultrasonic ranging data acquisition system and method thereof |
CN103347111A (en) * | 2013-07-27 | 2013-10-09 | 青岛歌尔声学科技有限公司 | Intelligent mobile electronic equipment with size and weight estimation function |
CN105162950A (en) * | 2015-07-08 | 2015-12-16 | 惠州Tcl移动通信有限公司 | Mobile terminal and method capable of switching microphones during conversation |
CN105389779A (en) * | 2015-10-15 | 2016-03-09 | 广东欧珀移动通信有限公司 | Image correction method, image correction device and mobile terminal |
CN106470277A (en) * | 2016-09-06 | 2017-03-01 | 乐视控股(北京)有限公司 | A kind of safety instruction method and device |
CN106603945A (en) * | 2016-12-28 | 2017-04-26 | Tcl集团股份有限公司 | Mobile playing device and control method thereof |
CN107547732A (en) * | 2017-07-05 | 2018-01-05 | 宇龙计算机通信科技(深圳)有限公司 | A kind of media play volume adjusting method, device, terminal and storage medium |
CN107547987A (en) * | 2017-08-09 | 2018-01-05 | 维沃移动通信有限公司 | A kind of effect adjusting method and mobile terminal |
CN107609508A (en) * | 2017-09-08 | 2018-01-19 | 深圳市金立通信设备有限公司 | A kind of face identification method, terminal and computer-readable recording medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11659332B2 (en) | 2019-07-30 | 2023-05-23 | Dolby Laboratories Licensing Corporation | Estimating user location in a system including smart audio devices |
US11917386B2 (en) | 2019-07-30 | 2024-02-27 | Dolby Laboratories Licensing Corporation | Estimating user location in a system including smart audio devices |
US11968268B2 (en) | 2019-07-30 | 2024-04-23 | Dolby Laboratories Licensing Corporation | Coordination of audio devices |
CN112866894A (en) * | 2019-11-27 | 2021-05-28 | 北京小米移动软件有限公司 | Sound field control method and device, mobile terminal and storage medium |
CN111193987A (en) * | 2019-12-27 | 2020-05-22 | 新石器慧通(北京)科技有限公司 | Method and device for directionally playing sound by vehicle and unmanned vehicle |
CN111586526A (en) * | 2020-05-26 | 2020-08-25 | 维沃移动通信有限公司 | Audio output method, audio output device and electronic equipment |
CN113747303A (en) * | 2021-09-06 | 2021-12-03 | 上海科技大学 | Directional sound beam whisper interaction system, control method, control terminal and medium |
CN113747303B (en) * | 2021-09-06 | 2023-11-10 | 上海科技大学 | Directional sound beam whisper interaction system, control method, control terminal and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11886695B2 (en) | Notification processing method and electronic device | |
CN109361994A (en) | Speaker control method, mobile terminal and computer readable storage medium | |
EP2192475B1 (en) | Control of input/output through touch | |
WO2019174611A1 (en) | Application configuration method and mobile terminal | |
EP2138927B1 (en) | Haptic effect provisioning for a mobile communication terminal | |
KR101474963B1 (en) | Controlling a Mobile Terminal | |
CN105264485B (en) | Content is provided in multiple equipment | |
EP2615805B1 (en) | Mobile terminal and control method thereof | |
US20090195513A1 (en) | Interactive multimedia control module | |
US20110304561A1 (en) | Mobile terminal and displaying method thereof | |
CN108733342A (en) | volume adjusting method, mobile terminal and computer readable storage medium | |
CN102326143A (en) | Audio control based on window settings | |
WO2019154182A1 (en) | Method for setting volume of application program, and mobile terminal | |
CN112947823A (en) | Session processing method, device, equipment and storage medium | |
CN109613958A (en) | A kind of terminal equipment control method and terminal device | |
WO2021057301A1 (en) | File control method and electronic device | |
CN111124345A (en) | Audio source processing method and mobile terminal | |
CN110475020A (en) | Apparatus control method and Related product | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN108769419A (en) | Photographic method, mobile terminal and computer readable storage medium | |
CN107864295A (en) | Call control method, mobile terminal and computer-readable recording medium | |
CN109194810B (en) | Display control method and related product | |
CN106453835B (en) | A kind of method and terminal switching answering mode | |
CN108520186A (en) | Record screen method, mobile terminal and computer readable storage medium | |
CN109062476A (en) | Menu treating method, mobile terminal and the computer readable storage medium of application |
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: 20190219 |