Nothing Special   »   [go: up one dir, main page]

CN106941635B - Speaker connection method and device - Google Patents

Speaker connection method and device Download PDF

Info

Publication number
CN106941635B
CN106941635B CN201611200764.0A CN201611200764A CN106941635B CN 106941635 B CN106941635 B CN 106941635B CN 201611200764 A CN201611200764 A CN 201611200764A CN 106941635 B CN106941635 B CN 106941635B
Authority
CN
China
Prior art keywords
audio
speaker
frequency apparatus
audio frequency
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611200764.0A
Other languages
Chinese (zh)
Other versions
CN106941635A (en
Inventor
王兴民
王爱军
龙全明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611200764.0A priority Critical patent/CN106941635B/en
Publication of CN106941635A publication Critical patent/CN106941635A/en
Application granted granted Critical
Publication of CN106941635B publication Critical patent/CN106941635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/02Casings; Cabinets ; Supports therefor; Mountings therein
    • H04R1/04Structural association of microphone with electric circuitry therefor

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

Present disclose provides a kind of speaker connection method and devices, belong to field of terminal equipment.The described method includes: determining the distance between audio frequency apparatus and positioning reference device, the first speaker is located at different regions from positioning reference device after audio frequency apparatus and the first speaker establish connection;When the distance between audio frequency apparatus and positioning reference device are less than distance threshold, the connection of audio frequency apparatus and the first speaker is disconnected.The disclosure, which passes through, determines whether audio frequency apparatus leaves the region where the first speaker, and when region where in audio frequency apparatus leaving the first speaker, disconnect the connection of audio frequency apparatus and the first speaker, when so that audio frequency apparatus leaving the region where the first speaker, audio frequency apparatus can disconnect itself connection between the first speaker automatically, to the operation for simplifying audio frequency apparatus in this case and when the first speaker disconnects, the flexibility disconnected is improved.

Description

Speaker connection method and device
Technical field
This disclosure relates to field of terminal equipment more particularly to a kind of speaker connection method and device.
Background technique
With the development of science and technology, wireless sound box is increasingly common in people's daily life.Wireless sound Case mode (such as bluetooth, Wireless Fidelity) and audio frequency apparatus can establish connection by wireless communication, and it is logical to receive audio frequency apparatus The audio of communication transmission is crossed, to play out to the audio.Wherein, above-mentioned audio frequency apparatus is referred to channel radio Telecommunication function, and the equipment that audio can be exported, such as mobile phone, tablet computer.In practical applications, wireless sound box often volume compared with Greatly, not portable, therefore, when user carry audio frequency apparatus leave region where wireless sound box and audio frequency apparatus still with nothing When line speaker keeps connection, will lead to user can not listen to the sound of wireless sound box broadcasting or other equipment is needed to play audio The audio of equipment output, just needs user hand dynamic circuit breaker to open the connection between the audio frequency apparatus and wireless sound box at this time.For example, wireless Speaker can be set in parlor, when user carry audio frequency apparatus leave parlor enter bedroom however audio frequency apparatus still and wirelessly When speaker keeps connection, user possibly can hear the sound of wireless sound box broadcasting, and user needs to disconnect the audio manually at this time Connection between equipment and wireless sound box plays out audio data by the audio frequency apparatus or other speakers.
In the related technology, user can open the list for the equipment connecting with the audio frequency apparatus in audio frequency apparatus, and Above-mentioned wireless sound box is chosen in the list, then triggers that the wireless sound box is corresponding to disconnect option, to disconnect the audio Connection between equipment and wireless sound box.
In implementing the present disclosure, the inventor finds that the existing technology has at least the following problems:
In the related technology, region where wireless sound box and the two equipment are left still when user carries audio frequency apparatus When keeping connection, user needs to be manually operated to disconnect the connection between the audio frequency apparatus and wireless sound box, and operating process is more Cumbersome, operating flexibility is poor.
Summary of the invention
Operating process is more when to overcome present in the relevant technologies the connection between disconnection audio frequency apparatus and wireless sound box Cumbersome, the poor problem of operating flexibility, present disclose provides a kind of speaker connection method and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of speaker connection method is provided, comprising:
After audio frequency apparatus and the first speaker establish connection, determine the audio frequency apparatus and position reference device between away from From first speaker is located at different regions from the positioning reference device;
When the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, the audio is disconnected The connection of equipment and first speaker.
Optionally, the positioning reference device can broadcast Bluetooth signal, and the determination audio frequency apparatus and positioning are joined Examine the distance between equipment, comprising:
Receive the Bluetooth signal of the positioning reference device broadcast;
Determine the size of the received signal strength indicator RSSI of the Bluetooth signal;
It is accordingly, described when the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, Disconnect the connection of the audio frequency apparatus and the first speaker, comprising:
When the RSSI is greater than preset signal strength threshold value, the company of the audio frequency apparatus Yu first speaker is disconnected It connects.
Optionally, the method also includes:
When the distance between the audio frequency apparatus and the positioning reference device are less than the distance threshold, described in foundation The connection of audio frequency apparatus and the second speaker, second speaker and the positioning reference device are located in the same area.
Optionally, the method also includes:
When the audio frequency apparatus and first speaker are in connection status, obtain to be played in the audio frequency apparatus Audio;
Determine the playback level of the audio to be played;
When the playback level is greater than predetermined level, the audio to be played is sent to first speaker, by institute It states the first speaker and plays the audio to be played;
When the playback level is not more than predetermined level, the audio to be played is played.
Optionally, the playback level of the determination audio to be played, comprising:
Determine the audio types of the audio to be played;
The playback level of the audio to be played is determined according to the audio types of the audio to be played.
Optionally, the audio types include: prompt tone and non-prompt tone, and the corresponding playback level of the prompt tone is little In the predetermined level, the corresponding playback level of the non-prompt tone is greater than the predetermined level.
Optionally, the playback level of the determination audio to be played, comprising:
Determine the playing duration of the audio to be played;
The playback level of the audio to be played is determined according to the playing duration of the audio to be played.
Optionally, the playing duration and playback level are positively correlated.
Optionally, first speaker and the audio frequency apparatus pass through bluetooth connection.
According to the second aspect of an embodiment of the present disclosure, a kind of speaker attachment device is provided, comprising:
Apart from determining module, for after audio frequency apparatus and the first speaker establish connection, determining the audio frequency apparatus and determining The distance between position reference device, first speaker is located at different regions from the positioning reference device;
Connection disconnects module, for setting in the audio frequency apparatus determined apart from determining module and positioning reference It is the distance between standby when being less than distance threshold, disconnect the connection of the audio frequency apparatus Yu first speaker.
Optionally, the positioning reference device can broadcast Bluetooth signal, described apart from determining module, be used for:
Receive the Bluetooth signal of the positioning reference device broadcast;
Determine the size of the received signal strength indicator RSSI of the Bluetooth signal;
Accordingly, the connection disconnects module, is used for:
When the RSSI determined apart from determining module is greater than preset signal strength threshold value, disconnects the audio and set The standby connection with first speaker.
Optionally, described device further include:
Connection establishment module, for being set in the audio frequency apparatus determined apart from determining module and positioning reference It is the distance between standby when being less than the distance threshold, establish the connection of the audio frequency apparatus and the second speaker, second speaker It is located in the same area with the positioning reference device.
Optionally, described device further include:
Module is obtained, for obtaining the audio when the audio frequency apparatus and first speaker are in connection status Audio to be played in equipment;
Level determination module, the playback level of the audio to be played for determining the acquisition module acquisition;
Sending module, when the playback level for determining in the level determination module is greater than predetermined level, by institute It states audio to be played and is sent to first speaker, the audio to be played is played by first speaker;
Playing module is broadcast when the playback level for determining in the level determination module is not more than predetermined level Put the audio to be played.
Optionally, the level determination module, is used for:
Determine the audio types of the audio to be played;
The playback level of the audio to be played is determined according to the audio types of the audio to be played.
Optionally, the audio types include: prompt tone and non-prompt tone, and the corresponding playback level of the prompt tone is little In the predetermined level, the corresponding playback level of the non-prompt tone is greater than the predetermined level.
Optionally, the level determination module, is used for:
Determine the playing duration of the audio to be played;
The playback level of the audio to be played is determined according to the playing duration of the audio to be played.
Optionally, the playing duration and playback level are positively correlated.
Optionally, first speaker and the audio frequency apparatus pass through bluetooth connection.
According to the third aspect of an embodiment of the present disclosure, a kind of speaker attachment device is provided, comprising:
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
After audio frequency apparatus and the first speaker establish connection, determine the audio frequency apparatus and position reference device between away from From first speaker is located at different regions from the positioning reference device;
When the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, the audio is disconnected The connection of equipment and first speaker.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By determine audio frequency apparatus and with the first speaker not between the positioning reference device of the same area at a distance from, with true Determine whether audio frequency apparatus leaves region where the first speaker.When region where leaving the first speaker in audio frequency apparatus, namely It is when being less than distance threshold at a distance from audio frequency apparatus is between positioning reference device, audio frequency apparatus can disconnect itself and first The connection of speaker when this region where making audio frequency apparatus leave the first speaker, can disconnect itself and the first sound automatically Connection between case improves disconnection to simplify audio frequency apparatus in this case and operation when the first speaker disconnects The flexibility of connection.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of schematic diagram of speaker connection system shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of speaker connection method shown according to an exemplary embodiment.
Fig. 3 A is a kind of flow chart of speaker connection method shown according to an exemplary embodiment.
Fig. 3 B is the position view of a kind of audio frequency apparatus and the first speaker shown according to an exemplary embodiment.
Fig. 4 A is a kind of block diagram of speaker attachment device shown according to an exemplary embodiment.
Fig. 4 B is a kind of block diagram of speaker attachment device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of speaker attachment device shown according to an exemplary embodiment.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram for speaker connection system that the embodiment of the present disclosure provides.As shown in Figure 1, the speaker connects System may include: wireless sound box 110 and audio frequency apparatus 120.Wherein, which can be mobile phone, tablet computer etc. Terminal device.It can be communicated by wireless network between wireless sound box 110 and audio frequency apparatus 120.
Fig. 2 is a kind of flow chart of speaker connection method shown according to an exemplary embodiment, as shown in Fig. 2, the sound Case connection method is in the audio frequency apparatus 120 in speaker connection system as shown in Figure 1, which to include following Step:
Step 201, after audio frequency apparatus and the first speaker establish connection, audio frequency apparatus determine itself and positioning reference device The distance between, the first speaker is located at different regions from positioning reference device.
Step 202, when audio frequency apparatus and positioning the distance between reference device are less than distance threshold, audio frequency apparatus disconnects The connection of itself and the first speaker.
In conclusion the embodiment of the present disclosure provide speaker connection method, by determine audio frequency apparatus and with the first speaker The not distance between the positioning reference device of the same area, to determine the area where whether audio frequency apparatus leaves the first speaker Domain.When region where leaving the first speaker in audio frequency apparatus, that is to say between audio frequency apparatus and positioning reference device away from When from being less than distance threshold, audio frequency apparatus can disconnect the connection of itself and the first speaker, this makes audio frequency apparatus leave first When region where speaker, itself connection between the first speaker can be disconnected automatically, to simplify sound in this case Operation when frequency equipment and the first speaker disconnect, improves the flexibility disconnected.
Fig. 3 A is a kind of flow chart of speaker connection method shown according to an exemplary embodiment, as shown in Figure 3A, should Speaker connection method in the audio frequency apparatus 120 in speaker connection system as shown in Figure 1, the speaker connection method include with Lower step:
Step 301, after audio frequency apparatus and the first speaker establish connection, audio frequency apparatus receive positioning reference device broadcast Bluetooth signal, the positioning reference device are located at different regions from positioning reference device.
In practical applications, audio frequency apparatus can establish connection with the first speaker through wireless communication, connect After foundation, the audio in itself can be sent to the first speaker by audio frequency apparatus through wireless communication, so that first Speaker can play the audio.For example, user can open music application in audio frequency apparatus, and can be broadcast in the music Put and choose " youth practise austerities handbook " this song in application, then audio frequency apparatus detect user to " youth practises austerities handbook " this Song choose operation after, the audio of " youth practise austerities handbook " this song can be sent to the through wireless communication One speaker, the first speaker can play " youth practises austerities handbook " this song after receiving the audio.It should be noted that above-mentioned Communication can be Blue-tooth communication method, that is to say, the first speaker and audio frequency apparatus can by bluetooth connection, when So, in practical applications there are also other communications, the disclosure be will not repeat them here.
After audio frequency apparatus and the first speaker establish connection, user can carry audio frequency apparatus and move relative to the first speaker Dynamic, in some cases, user even can carry audio frequency apparatus and be moved in the region different from the first speaker.In this feelings Under condition, the audio in itself still can be sent to the first speaker by audio frequency apparatus, be played out by the first speaker to it, so And be moved to due to user in the region different from the first speaker, user can probably hear the first speaker and broadcast The audio put.For example, as shown in Figure 3B, at the beginning, user A, audio frequency apparatus B and the first speaker C are all located in parlor 31, and Afterwards, at a time, user A enters the rest of bedroom 32, and carries audio frequency apparatus B to be entertained while rest, At this point, user A carry audio frequency apparatus B be moved in the region different from the first speaker C (the first speaker C is located in parlor 31, And user A is moved in bedroom 32), user A is likely to can't hear in bedroom 32 sound that first speaker C is played in parlor 31 Frequently.
In these cases, in order to guarantee the auditory perception of user, audio frequency apparatus needs to disconnect itself and the first speaker Connection, so that the audio in audio frequency apparatus is no longer played out by the first speaker.Realize that this purpose, prerequisite are exactly Accurately determine whether audio frequency apparatus is moved in the region different from the first speaker.And step 301 and step 302 are Judge the technical process whether audio frequency apparatus is moved in the region different from the first speaker.
Positioning reference device can be arranged in the embodiment of the present disclosure in the region different from the first speaker, and positioning reference is set It is standby to broadcast Bluetooth signal, for example, the positioning reference device can be set in bedroom 32 in the citing of above-mentioned Fig. 3 B, Then it is located in different zones (the first speaker C is located in parlor 31) with the first speaker C.Audio frequency apparatus can receive positioning reference The Bluetooth signal of device broadcasts, and judged between audio frequency apparatus and positioning reference device according to the power of the Bluetooth signal received Distance, to realize the technical process for judging whether audio frequency apparatus is moved to the region different from the first speaker.
Step 302, audio frequency apparatus determine the RSSI (Received of the Bluetooth signal of the positioning reference device broadcast received Signal Strength Indication, received signal strength indicator) size.
As described above, audio frequency apparatus can judge that audio frequency apparatus and positioning refer to according to the power of the Bluetooth signal received The distance between equipment, to realize the technology mistake for judging whether audio frequency apparatus is moved to the region different from the first speaker Journey.That is to say, in order to judge whether audio frequency apparatus is moved in the region different from the first speaker, audio frequency apparatus it needs to be determined that The power of the Bluetooth signal received.And in practical applications, the size of the RSSI of Bluetooth signal can reflect Bluetooth signal Power, and, the size of the RSSI of Bluetooth signal and the strong and weak of Bluetooth signal are positively correlated, and that is to say, RSSI is bigger, and Bluetooth signal is got over By force, RSSI is smaller, and Bluetooth signal is weaker.Therefore, in order to obtain the power of the Bluetooth signal received, audio frequency apparatus can be executed Step 302, to determine the power of the Bluetooth signal received by determining the RSSI of the Bluetooth signal received.
Step 303, when above-mentioned RSSI is greater than preset signal strength threshold value, audio frequency apparatus disconnects itself and the first speaker Connection.
In practical applications, the Bluetooth signal (being broadcasted by positioning reference device) received illustrates more by force audio frequency apparatus and determines The distance between position reference device is closer, conversely, the Bluetooth signal (being broadcasted by positioning reference device) received is weaker to illustrate sound The distance between frequency equipment and positioning reference device are remoter.Therefore, when the distance between audio frequency apparatus and positioning reference device foot When enough nearly (being less than distance threshold), when that is to say that above-mentioned RSSI is greater than preset signal strength threshold value, it can illustrate that audio frequency apparatus moves The region different from the first speaker is moved, at this point, audio frequency apparatus can disconnect the connection of itself and the first speaker.
For example, positioning reference device can be set in bedroom 32, and preset signal strength in the citing of above-mentioned Fig. 3 B Threshold value is -40.When audio frequency apparatus B is located at the p point in Fig. 3 B, the RSSI value of the Bluetooth signal that audio frequency apparatus B is received is- 80, it is less than preset signal strength threshold value -40, then illustrates that audio frequency apparatus B is not moved to different from the first speaker C at this time In region.When audio frequency apparatus B is located at the q point in Fig. 3 B, the RSSI value for the Bluetooth signal that audio frequency apparatus B is received is -20, Greater than preset signal strength threshold value -40, then illustrate that audio frequency apparatus B is moved in the region different from the first speaker C at this time, this When, audio frequency apparatus B can disconnect itself connection between the first speaker C.
Step 304, when above-mentioned RSSI is greater than preset signal strength threshold value, audio frequency apparatus establishes itself and the second speaker Connection, the second speaker and positioning reference device are located in the same area.
In practical applications, when audio frequency apparatus is moved to the regions different from the first speaker, if should be with the first speaker not Being provided with the second speaker in same region, then audio frequency apparatus can establish the connection of itself and second speaker automatically, so that the Two speakers can play the audio in audio frequency apparatus.For example, in the citing of above-mentioned Fig. 3 B, bedroom 32 be with the first speaker C not Same region (the first speaker C is located in parlor 31) is set if being provided with the second speaker in bedroom 32 when user A carries audio When standby B is entered in bedroom 32, on the one hand audio frequency apparatus B can disconnect the connection with the first speaker C, on the other hand can establish with The connection of second speaker.It should be noted that above-mentioned audio frequency apparatus establishes itself and the connection of the second speaker can set for audio The standby connection that itself and the second speaker are established by bluetooth, certainly, there are also other audio frequency apparatuses to establish certainly in practical applications The mode connected between body and the second speaker, the disclosure do not repeat this one by one.It should also be noted that, in some of the disclosure In embodiment, audio frequency apparatus can not also execute step 304.
In addition, in practical applications, as described above, in audio frequency apparatus and the first speaker or the second speaker (following explanation Only by taking the first speaker as an example) establish connection after, audio frequency apparatus can mode be sent to by wireless communication by the audio in itself First speaker plays out the audio by the first speaker.However, in practical applications, user may be not intended to the first sound Case plays certain audios in audio frequency apparatus, for example, user, which may be not intended to the first speaker, plays short message prompt tones, low battery The prompt tones such as prompt tone interfere because playing these prompt tones and may listen to music etc. to user.In this case, Audio frequency apparatus can screen the audio in itself according to certain rules, those are only sent to the by the audio of screening One speaker plays out, to meet the demand for certain audios that user is not intended to the first speaker to play in audio frequency apparatus.
Specifically, in the embodiment of the present disclosure, audio frequency apparatus can in the following manner be screened the audio in itself, Specifically:
The available audio to be played in itself of audio frequency apparatus, then audio frequency apparatus can determine broadcasting for audio to be played Grade is put, when above-mentioned playback level is greater than predetermined level, which can be sent to the first speaker by audio frequency apparatus, Audio to be played is played by the first speaker, when above-mentioned playback level is not more than predetermined level, audio frequency apparatus can be played wait broadcast Playback frequency.Then audio frequency apparatus can screen the audio to be played that playback level is greater than predetermined level, send it to the One speaker is played out by the first speaker, and playback level no more than predetermined level audio to be played then by audio frequency apparatus from Body plays, to meet the demand for certain audios that user is not intended to the first speaker to play in audio frequency apparatus.Certainly, in reality In, audio frequency apparatus can not also play the audio to be played that playback level is not more than predetermined level, and the disclosure does not do this It is specific to limit.
It should be noted that in practical applications, the playback level of audio to be played can be with the audio of audio to be played Type is corresponding, can also be corresponding with the playing duration of audio to be played, and the disclosure is not specifically limited in this embodiment.
When the playback level of audio to be played is corresponding with the audio types of audio to be played, audio frequency apparatus can first really The audio types of fixed audio to be played, then determine the playback level of audio to be played according to the audio types of audio to be played. In practical applications, the audio types of audio to be played may include prompt tone and non-prompt tone, wherein prompt tone is corresponding to be broadcast Grade is put no more than above-mentioned predetermined level, rather than the corresponding playback level of prompt tone is greater than above-mentioned predetermined level.
When the playback level of audio to be played is corresponding with the playing duration of audio to be played, audio frequency apparatus can first really The playing duration of fixed audio to be played, then determines the playback level of audio to be played according to the playing duration of audio to be played. In practical applications, the playback level of the playing duration of audio to be played and audio to be played is positively correlated, and that is to say, sound to be played The playing duration of frequency is longer, and the playback level of audio to be played is bigger, and the playing duration of audio to be played is shorter, sound to be played The playback level of frequency is smaller.
In conclusion the embodiment of the present disclosure provide speaker connection method, by determine audio frequency apparatus and with the first speaker The not distance between the positioning reference device of the same area, to determine the area where whether audio frequency apparatus leaves the first speaker Domain.When region where leaving the first speaker in audio frequency apparatus, that is to say between audio frequency apparatus and positioning reference device away from When from being less than distance threshold, audio frequency apparatus can disconnect the connection of itself and the first speaker, this makes audio frequency apparatus leave first When region where speaker, itself connection between the first speaker can be disconnected automatically, to simplify sound in this case Operation when frequency equipment and the first speaker disconnect, improves the flexibility disconnected.
Fig. 4 A is a kind of block diagram of speaker attachment device 400 shown according to an exemplary embodiment.Referring to Fig. 4 A, the sound Case attachment device includes disconnecting module 402 apart from determining module 401 and connection.
This is apart from determining module 401, for after audio frequency apparatus and the first speaker establish connection, determining audio frequency apparatus and determining The distance between position reference device, the first speaker is located at different regions from positioning reference device.
The connection disconnect module 402, for apart from determining module 401 determine audio frequency apparatus and positioning reference device it Between distance be less than distance threshold when, disconnect audio frequency apparatus and the first speaker connection.
In one embodiment of the present disclosure, positioning reference device can broadcast Bluetooth signal, apart from determining module 401, For:
Receive the Bluetooth signal of positioning reference device broadcast;
Determine the size of the received signal strength indicator RSSI of Bluetooth signal;
Accordingly, connection disconnects module 402, is used for:
When the RSSI determined apart from determining module 401 is greater than preset signal strength threshold value, audio frequency apparatus and first is disconnected The connection of speaker.
In one embodiment of the present disclosure, the first speaker and audio frequency apparatus pass through bluetooth connection.
Fig. 4 B is a kind of block diagram of speaker attachment device 410 shown according to an exemplary embodiment, speaker connection dress 410 are set other than the modules comprising speaker attachment device 400, can also include: connection establishment module 403, obtain module 404, level determination module 405, sending module 406 and playing module 407.
The connection establishment module 403, for being referred in the audio frequency apparatus apart from the determination of determining module 401 and the positioning The distance between equipment be less than the distance threshold when, establish the connection of the audio frequency apparatus and the second speaker, second speaker and this Positioning reference device is located in the same area.
The acquisition module 404, for obtaining the audio and setting when the audio frequency apparatus and first speaker are in connection status Audio to be played in standby.
The level determination module 405, the playback level of the audio to be played for determining the acquisition module 404 acquisition.
The sending module 406, when the playback level for determining in the level determination module 405 is greater than predetermined level, The audio to be played is sent to first speaker, which is played by first speaker.
The playing module 407, the playback level for determining in the level determination module 405 are not more than predetermined level When, play the audio to be played.
In one embodiment of the present disclosure, the level determination module 405, is used for:
Determine the audio types of the audio to be played;
The playback level of the audio to be played is determined according to the audio types of the audio to be played.
Wherein, which includes: prompt tone and non-prompt tone, and the corresponding playback level of the prompt tone is pre- no more than this If grade, the corresponding playback level of the non-prompt tone is greater than the predetermined level.
In one embodiment of the present disclosure, the level determination module 405, is used for:
Determine the playing duration of the audio to be played;
The playback level of the audio to be played is determined according to the playing duration of the audio to be played.
Wherein, the playing duration and playback level are positively correlated.
In conclusion the embodiment of the present disclosure provide speaker attachment device, by determine audio frequency apparatus and with the first speaker The not distance between the positioning reference device of the same area, to determine the area where whether audio frequency apparatus leaves the first speaker Domain.When region where leaving the first speaker in audio frequency apparatus, that is to say between audio frequency apparatus and positioning reference device away from When from being less than distance threshold, the connection of audio frequency apparatus and the first speaker can be disconnected, this makes audio frequency apparatus leave the first speaker When the region at place, itself connection between the first speaker can be disconnected automatically, to simplify audio frequency apparatus in this case Operation when disconnecting with the first speaker improves the flexibility disconnected.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is a kind of block diagram of speaker attachment device 500 shown according to an exemplary embodiment.For example, device 500 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application or method for operating on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between When instruction in matter is executed by the processor of mobile terminal, so that mobile terminal is able to carry out following methods: audio frequency apparatus with After first speaker establishes connection, the distance between audio frequency apparatus and positioning reference device are determined, the first speaker is set with positioning reference It is standby to be located at different regions;When the distance between audio frequency apparatus and positioning reference device are less than distance threshold, disconnect audio and set The standby connection with the first speaker.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (13)

1. a kind of speaker connection method, which is characterized in that the described method includes:
After audio frequency apparatus and the first speaker establish connection, the distance between the audio frequency apparatus and positioning reference device are determined, First speaker is located at different regions from the positioning reference device;
When the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, the audio frequency apparatus is disconnected With the connection of first speaker;
The method also includes:
When the audio frequency apparatus and first speaker are in connection status, the sound to be played in the audio frequency apparatus is obtained Frequently;
Determine the playback level of the audio to be played;
When the playback level is greater than predetermined level, the audio to be played is sent to first speaker, by described the One speaker plays the audio to be played;
When the playback level is not more than predetermined level, the audio to be played is played by the audio frequency apparatus.
2. the method according to claim 1, wherein the positioning reference device can broadcast Bluetooth signal, institute It states and determines the distance between the audio frequency apparatus and positioning reference device, comprising:
Receive the Bluetooth signal of the positioning reference device broadcast;
Determine the size of the received signal strength indicator RSSI of the Bluetooth signal;
Accordingly, described when the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, it disconnects The connection of the audio frequency apparatus and the first speaker, comprising:
When the RSSI is greater than preset signal strength threshold value, the connection of the audio frequency apparatus Yu first speaker is disconnected.
3. the method according to claim 1, wherein the method also includes:
When the distance between the audio frequency apparatus and the positioning reference device are less than the distance threshold, the audio is established The connection of equipment and the second speaker, second speaker and the positioning reference device are located in the same area.
4. the method according to claim 1, wherein the playback level of the determination audio to be played, packet It includes:
Determine the audio types of the audio to be played;
The playback level of the audio to be played is determined according to the audio types of the audio to be played.
5. according to the method described in claim 4, it is characterized in that, the audio types include: prompt tone and non-prompt tone, institute The corresponding playback level of prompt tone is stated no more than the predetermined level, the corresponding playback level of the non-prompt tone is greater than described pre- If grade.
6. the method according to claim 1, wherein the playback level of the determination audio to be played, packet It includes:
Determine the playing duration of the audio to be played;
The playback level of the audio to be played is determined according to the playing duration of the audio to be played.
7. a kind of speaker attachment device, which is characterized in that described device includes:
Apart from determining module, for after audio frequency apparatus and the first speaker establish connection, determining that the audio frequency apparatus and positioning are joined The distance between equipment is examined, first speaker is located at different regions from the positioning reference device;
Connection disconnect module, for it is described apart from determining module determine the audio frequency apparatus and the positioning reference device it Between distance be less than distance threshold when, disconnect the connection of the audio frequency apparatus Yu first speaker;
Described device further include:
Module is obtained, for obtaining the audio frequency apparatus when the audio frequency apparatus and first speaker are in connection status In audio to be played;
Level determination module, the playback level of the audio to be played for determining the acquisition module acquisition;
Sending module, when the playback level for determining in the level determination module is greater than predetermined level, will it is described to It plays audio and is sent to first speaker, the audio to be played is played by first speaker;
Playing module, when the playback level for determining in the level determination module is not more than predetermined level, by described Audio frequency apparatus plays the audio to be played.
8. device according to claim 7, which is characterized in that the positioning reference device can broadcast Bluetooth signal, institute It states apart from determining module, is used for:
Receive the Bluetooth signal of the positioning reference device broadcast;
Determine the size of the received signal strength indicator RSSI of the Bluetooth signal;
Accordingly, the connection disconnects module, is used for:
When it is described apart from determining module determine the RSSI be greater than preset signal strength threshold value when, disconnect the audio frequency apparatus with The connection of first speaker.
9. device according to claim 7, which is characterized in that described device further include:
Connection establishment module, for it is described apart from determining module determine the audio frequency apparatus and the positioning reference device it Between distance be less than the distance threshold when, establish the connection of the audio frequency apparatus and the second speaker, second speaker and institute Positioning reference device is stated to be located in the same area.
10. device according to claim 7, which is characterized in that the level determination module is used for:
Determine the audio types of the audio to be played;
The playback level of the audio to be played is determined according to the audio types of the audio to be played.
11. device according to claim 10, which is characterized in that the audio types include: prompt tone and non-prompt tone, The corresponding playback level of the prompt tone is not more than the predetermined level, and the corresponding playback level of the non-prompt tone is greater than described Predetermined level.
12. device according to claim 7, which is characterized in that the level determination module is used for:
Determine the playing duration of the audio to be played;
The playback level of the audio to be played is determined according to the playing duration of the audio to be played.
13. a kind of speaker attachment device characterized by comprising
Processor;
Memory for the instruction that storage processor can be performed;
Wherein, the processor is configured to:
After audio frequency apparatus and the first speaker establish connection, the distance between the audio frequency apparatus and positioning reference device are determined, First speaker is located at different regions from the positioning reference device;
When the distance between the audio frequency apparatus and the positioning reference device are less than distance threshold, the audio frequency apparatus is disconnected With the connection of first speaker;
Described device further include:
When the audio frequency apparatus and first speaker are in connection status, the sound to be played in the audio frequency apparatus is obtained Frequently;
Determine the playback level of the audio to be played;
When the playback level is greater than predetermined level, the audio to be played is sent to first speaker, by described the One speaker plays the audio to be played;
When the playback level is not more than predetermined level, the audio to be played is played by the audio frequency apparatus.
CN201611200764.0A 2016-12-22 2016-12-22 Speaker connection method and device Active CN106941635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611200764.0A CN106941635B (en) 2016-12-22 2016-12-22 Speaker connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611200764.0A CN106941635B (en) 2016-12-22 2016-12-22 Speaker connection method and device

Publications (2)

Publication Number Publication Date
CN106941635A CN106941635A (en) 2017-07-11
CN106941635B true CN106941635B (en) 2019-09-10

Family

ID=59469739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611200764.0A Active CN106941635B (en) 2016-12-22 2016-12-22 Speaker connection method and device

Country Status (1)

Country Link
CN (1) CN106941635B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613424B (en) * 2017-09-25 2019-08-27 湖南国声声学科技股份有限公司 A kind of speaker control method and device
CN107968829A (en) * 2017-11-30 2018-04-27 歌尔科技有限公司 Communication means and communication equipment
CN109547301A (en) * 2018-11-14 2019-03-29 三星电子(中国)研发中心 A kind of autocontrol method for electronic equipment, device and equipment
CN111757218A (en) * 2019-03-29 2020-10-09 深圳市冠旭电子股份有限公司 Audio file playing method, distributed sound system and main sound box
CN110430562B (en) * 2019-08-30 2022-06-07 RealMe重庆移动通信有限公司 Bluetooth communication method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3825589B2 (en) * 1999-09-27 2006-09-27 三洋電機株式会社 Multimedia terminal equipment
CN102347845A (en) * 2010-08-05 2012-02-08 盛乐信息技术(上海)有限公司 Broadcasting system
CN105812906A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Communication control method and device for playing device
CN105872654A (en) * 2016-03-22 2016-08-17 广东欧珀移动通信有限公司 Method and device for switching Bluetooth connection in audio playing system, and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3825589B2 (en) * 1999-09-27 2006-09-27 三洋電機株式会社 Multimedia terminal equipment
CN102347845A (en) * 2010-08-05 2012-02-08 盛乐信息技术(上海)有限公司 Broadcasting system
CN105812906A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Communication control method and device for playing device
CN105872654A (en) * 2016-03-22 2016-08-17 广东欧珀移动通信有限公司 Method and device for switching Bluetooth connection in audio playing system, and system

Also Published As

Publication number Publication date
CN106941635A (en) 2017-07-11

Similar Documents

Publication Publication Date Title
CN106941635B (en) Speaker connection method and device
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
CN105138319B (en) Event-prompting method and device
CN106371799A (en) Volume control method and device for multimedia playback equipment
CN106454644A (en) Audio playing method and device
CN107493500A (en) Multimedia resource player method and device
CN104935729B (en) Audio-frequency inputting method and device
CN105554631B (en) Audio switching method, device and electronic equipment
CN105653236A (en) Sound volume control method and device and mobile terminal
CN104636110A (en) Method and device for controlling volume
CN105426218A (en) Method and device for controlling audio playing
CN105391477A (en) A communication method and device between bluetooth devices
CN105704766A (en) Control method and device of double-card mobile terminal
CN105468236A (en) Message prompting method and apparatus and terminal
CN104378715A (en) Device and method for lowering earphone POP sound
CN105101013A (en) Method and device for playing voice signals
CN108845787A (en) Method, apparatus, terminal and the storage medium that audio is adjusted
CN110268746A (en) Cell switching method and device, handover configurations method and device and user equipment
CN104506703A (en) Voice message leaving method, voice message leaving device, voice message playing method and voice message playing device
CN106375846B (en) The processing method and processing device of live audio
CN105450861B (en) Information cuing method and device
CN104794074B (en) External equipment recognition methods and device
CN105635916A (en) Audio processing method and apparatus
CN109041145A (en) Communication means, device, terminal and storage medium
CN105630974A (en) Method and device for refreshing page and equipment

Legal Events

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