CN114430528A - Sound data playing method and device, electronic equipment and storage medium - Google Patents

Sound data playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114430528A
CN114430528A CN202111551643.1A CN202111551643A CN114430528A CN 114430528 A CN114430528 A CN 114430528A CN 202111551643 A CN202111551643 A CN 202111551643A CN 114430528 A CN114430528 A CN 114430528A
Authority
CN
China
Prior art keywords
bluetooth
intelligent
equipment
sound data
distance
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.)
Granted
Application number
CN202111551643.1A
Other languages
Chinese (zh)
Other versions
CN114430528B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111551643.1A priority Critical patent/CN114430528B/en
Publication of CN114430528A publication Critical patent/CN114430528A/en
Application granted granted Critical
Publication of CN114430528B publication Critical patent/CN114430528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

According to the method and the device for playing the sound data, the electronic equipment and the storage medium, the first position information of the Bluetooth playing equipment is obtained; under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information, determining distance information between the Bluetooth playing device and intelligent devices within a preset range; determining a target smart device based on the distance information; and sending the sound data to the target intelligent equipment so that the target intelligent equipment sends the sound data to the Bluetooth playing equipment.

Description

Sound data playing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of home device control technologies, and in particular, to a method and an apparatus for playing sound data, an electronic device, and a storage medium.
Background
With the continuous development of intelligent household appliances, each appliance in a home is basically equipped with an intelligent system. The most basic function in the intelligent device is the Bluetooth function, so that people can use the Bluetooth function to enable the needed behaviors of people in daily life to be more convenient and faster.
After the Bluetooth is connected with the wireless Bluetooth earphone, a user can do housework and cook at home while making a call, listening to music and other activities, and the wireless Bluetooth earphone cannot be influenced by the earphone wire. However, the bluetooth has a certain transmission distance, when a person wears the bluetooth device and is too far away from the playing device, the bluetooth can be disconnected or signals become poor, and thus inconvenience can be brought to the user.
Disclosure of Invention
In view of the above problems in the related art, the present application provides a method, an apparatus, an electronic device, and a storage medium for playing sound data, where distance information between a bluetooth playback device and an intelligent device in a preset range is determined by determining that a distance between the bluetooth playback device and the electronic device is greater than a preset distance based on the first position information; determining a target smart device based on the distance information; the sound data are sent to the target intelligent equipment, so that the target intelligent equipment can send the sound data to the Bluetooth playing equipment, the target intelligent equipment can be automatically switched through the position of the Bluetooth playing equipment, the connection state of the Bluetooth playing equipment and the electronic equipment is kept, and the problem that when the distance is far away, the Bluetooth can be disconnected or signals are poor can be solved.
The application provides a method for playing sound data, which comprises the following steps:
acquiring first position information of Bluetooth playing equipment;
under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information, determining distance information between the Bluetooth playing device and intelligent devices within a preset range;
determining a target smart device based on the distance information;
and sending the sound data to the target intelligent equipment so that the target intelligent equipment sends the sound data to the Bluetooth playing equipment.
In some embodiments, the method further comprises:
judging whether sound data transmission exists between the Bluetooth playing equipment and the electronic equipment or not;
and under the condition that sound data transmission exists between the Bluetooth playing equipment and the electronic equipment, controlling the intelligent equipment to be in a state of waiting to receive the sound data.
In some embodiments, the determining distance information between the bluetooth playing device and the smart device within the preset range includes:
acquiring second position information of each intelligent device within a preset range;
and determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
In some embodiments, the determining a target smart device based on distance information includes:
determining the size relation of the distances between the Bluetooth playing equipment and each intelligent equipment based on the distance information;
determining a distance minimum based on the magnitude relationship;
and determining the intelligent equipment corresponding to the minimum distance value as target intelligent equipment.
In some embodiments, the electronic device comprises any one of: mobile terminal, intelligent lock, intelligent cat eye, panel computer.
In some embodiments, the electronic device and the smart device are connected in wireless communication, and the smart device and the bluetooth playing device are connected in bluetooth communication.
The embodiment of the application provides a play device of sound data, including:
the first acquisition module is used for acquiring first position information of the Bluetooth playing equipment;
the first determining module is used for determining distance information between the Bluetooth playing device and intelligent devices within a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
a second determination module to determine a target smart device based on the distance information;
and the sending module is used for sending the sound data to the target intelligent equipment so that the target intelligent equipment sends the sound data to the Bluetooth playing equipment.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the electronic device executes any one of the above-mentioned sound data playing methods.
The present application provides a storage medium, which stores a computer program that can be executed by one or more processors and can be used to implement any one of the above-described sound data playback methods.
According to the method, the device, the electronic equipment and the storage medium for playing the sound data, under the condition that the distance between the Bluetooth playing equipment and the electronic equipment is determined to be larger than the preset distance based on the first position information, the distance information between the Bluetooth playing equipment and the intelligent equipment within the preset range is determined; determining a target smart device based on the distance information; the sound data are sent to the target intelligent equipment, so that the target intelligent equipment can send the sound data to the Bluetooth playing equipment, the target intelligent equipment can be automatically switched through the position of the Bluetooth playing equipment, the connection state of the Bluetooth playing equipment and the electronic equipment is kept, and the problem that when the distance is far away, the Bluetooth can be disconnected or signals are poor can be solved.
Drawings
The present application will be described in more detail below on the basis of embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for playing sound data according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of another method for playing sound data according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for playing sound data according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
In the drawings, like parts are designated with like reference numerals, and the drawings are not drawn to scale.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Based on the problems in the related art, the embodiment of the application provides a method for playing sound data, the method is applied to electronic equipment, and the electronic equipment can be a mobile terminal, a computer, a cat eye device, an intelligent door lock and the like. The functions realized by the method for playing the sound data provided by the embodiment of the application can be realized by calling a program code by a processor of the electronic equipment, wherein the program code can be stored in a computer storage medium.
An embodiment of the present application provides a method for playing sound data, and fig. 1 is a schematic flow chart illustrating an implementation of the method for playing sound data provided in the embodiment of the present application, as shown in fig. 1, including:
step S1, acquiring first location information of the bluetooth player.
In this embodiment, the bluetooth playing device may be a wireless bluetooth headset, and when the user wears the bluetooth playing device to move, the bluetooth playing device is enabled to move. In the embodiment of the application, a positioning system in a home can acquire first position information of the Bluetooth playing device in real time and send the first position information to the electronic device, so that the electronic device acquires the first position information of the Bluetooth playing device. The Bluetooth playing equipment is connected with the electronic equipment and plays the sound data through the Bluetooth playing equipment.
Step S2, determining distance information between the Bluetooth playing device and intelligent devices within a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
in the embodiment of the application, the positioning system in the home can also acquire the position of the electronic device to position to determine the position information of the electronic device, or the electronic device can position in real time to determine the position information of the electronic device. In this embodiment of the application, after the electronic device acquires the first location information, the distance between the bluetooth playing device and the electronic device may be determined based on the first location information and the location information of the electronic device.
In this embodiment of the application, a preset distance is stored in the electronic device, and when the preset distance is exceeded, a bluetooth connection between the electronic device and the bluetooth playback device has a fault, for example, a disconnection or a signal difference of the bluetooth connection. The preset distance may be set according to a bluetooth connection capability of the electronic device.
In this embodiment of the application, when the distance between the electronic device and the bluetooth playback device is greater than the preset distance, there may be a disconnection of the bluetooth connection or a signal degradation.
In the embodiment of the application, the preset range may be a range corresponding to a house type diagram, and the intelligent device may be an intelligent air conditioner, a refrigerator, a washing machine, or the like.
In the embodiment of the application, the second position information of each intelligent device in the preset range can be obtained; and determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
Step S3, determining a target smart device based on the distance information.
In the embodiment of the application, the size relation of the distance between the Bluetooth playing device and each intelligent device is determined based on the distance information; determining a distance minimum based on the magnitude relationship; and determining the intelligent equipment corresponding to the minimum distance value as target intelligent equipment. Of course, in some embodiments, the distance may not be the minimum value, and a distance threshold may be set, and when the distance between the smart device and the bluetooth playback device is equal to the distance threshold, one smart device is randomly selected as the target smart device.
Step S4, sending the sound data to the target smart device, so that the target smart device sends the sound data to the bluetooth playing device.
In this embodiment, the sound data may be data of music, data of a call, and sound reminding data of a cat-eye device.
In the embodiment of the application, in order to avoid link disconnection or signal deterioration caused by long distance between the Bluetooth playing device and the electronic device, the electronic device sends the sound data to the target intelligent device, the target intelligent device is connected with the Bluetooth playing device in a matching mode at any time, and then the sound data is sent to the Bluetooth playing device.
According to the method for playing the sound data, under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than the preset distance based on the first position information, the distance information between the Bluetooth playing device and the intelligent device within the preset range is determined; determining a target smart device based on the distance information; the sound data are sent to the target intelligent equipment, so that the target intelligent equipment can send the sound data to the Bluetooth playing equipment, the target intelligent equipment can be automatically switched through the position of the Bluetooth playing equipment, the connection state of the Bluetooth playing equipment and the electronic equipment is kept, and the problem that when the distance is far away, the Bluetooth can be disconnected or signals are poor can be solved.
The method for playing the sound data can be applied to the following scene, when the distance between the Bluetooth headset worn by a user and certain intelligent equipment is closer, and the distance between the Bluetooth headset worn by the user and the electronic equipment is further, the Bluetooth headset can automatically switch the Bluetooth pairing object, and when the Bluetooth pairing object is switched, the data of the last pairing object can be transmitted to a new pairing object by utilizing WiFi, so that the Bluetooth headset can be continuously used, and the problem that the Bluetooth headset is invalid in pairing due to the distance is solved.
The method for playing the sound data can be applied to another scene, when a user wears Bluetooth earphones to listen to songs or make calls and other activities, at this time, if intelligent equipment such as an intelligent door lock or an intelligent cat eye needs to remind, the reminding function that the user receives the intelligent equipment can be influenced because the user wears the earphones to carry out other activities, at this time, information required to be reminded by the intelligent equipment is firstly transmitted to the intelligent equipment connected with the user through WiFi, and then the information is transmitted to the equipment matched with the user currently through Bluetooth, so that the user can not miss the information reminded by the intelligent equipment.
In some embodiments, prior to step S1, the method further comprises:
step S11, judging whether sound data transmission exists between the Bluetooth playing device and the electronic device;
step S12, when there is voice data transmission between the bluetooth playing device and the electronic device, controlling the intelligent device to be in a state of awaiting for receiving the voice data.
In the embodiment of the application, the electronic device can maintain connection with the intelligent device and send the sound data to the intelligent device at any time.
In some embodiments, the electronic device and the smart device are connected in wireless communication, and the smart device and the bluetooth playing device are connected in bluetooth communication.
In this embodiment of the application, the wireless communication connection may be WIFI.
In the embodiment of the application, the electronic equipment can be a mobile terminal, an intelligent door lock, an intelligent cat eye, a tablet computer and the like.
Based on the foregoing embodiments, an embodiment of the present application provides a method for playing sound data, and fig. 2 is a schematic flow chart illustrating an implementation of another method for playing sound data provided in the embodiment of the present application, as shown in fig. 2, the method includes:
in step S101, the user moves.
Step S102, the intelligent system judges the position of the user.
Step S103, the intelligent device is closer to the user.
And step S104, transmitting the data played by the user to the equipment with the closer distance through WIFI.
Step S105, the bluetooth connection is converted into a closer device.
In the embodiment of the application, if the intelligent doorbell or the cat eye has a reminder, the reminder is transmitted to the nearest device in the same way, and a message is transmitted to the earphone.
When a user connects a Bluetooth headset, when playing music or making a call, the intelligent equipment in the home is ready to receive messages, when the positioning system determines that the distance from the user to the mobile playing equipment connected with the user is far, the intelligent equipment closest to the user is judged, such as an intelligent refrigerator or an intelligent television, and then the playing equipment data originally connected with the user is transmitted to the equipment which is close to the user by utilizing WiFi, so that the user can not be influenced by activities such as listening to songs or making a call by using the Bluetooth headset even if the user does not need to bring a mobile terminal to each room. The main point of utilization is the cooperation that positioning system and bluetooth were paired, when the bluetooth headset that the user wore was closer to a certain smart machine distance, can automatic switch over the bluetooth and pair the object, when the bluetooth pairs the object and switches over, utilizes wiFi can with last pair the data transfer of object come in the new object that pairs, just so can continue to use the bluetooth headset, has solved because the distance leads to the bluetooth headset to pair the problem of inefficacy.
Another scenario is that when a user wears Bluetooth earphones to listen to songs or make a call and other activities, if intelligent devices such as an intelligent door lock or an intelligent cat eye need to remind at this time, the reminding function that the user receives the intelligent devices is influenced because the user wears the earphones to perform other activities, at this time, information required to be reminded by the intelligent devices is transmitted to the intelligent devices connected with the user through WiFi, and then the information is transmitted to the devices paired with the user currently through Bluetooth, and therefore the user cannot miss the information reminded by the intelligent devices.
The sound data playing method provided by the embodiment of the application can keep the connection state of the Bluetooth no matter which room the Bluetooth device is in when the user wears the Bluetooth device to move at home, and can not affect activities such as listening to songs or making calls. When a user wears the earphone and presses a doorbell or an intelligent cat eye to start reminding, the fact that the user receives reminding is not influenced.
Based on the foregoing embodiments, the present application provides a device for playing back sound data, where the device includes modules and units included in the modules, and the modules and the units may be implemented by a processor in a computer device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the processor may be a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 3 is a schematic structural diagram of a playback apparatus for audio data according to an embodiment of the present application, and as shown in fig. 3, a playback apparatus 300 for audio data includes:
a first obtaining module 301, configured to obtain first position information of a bluetooth playing device;
a first determining module 302, configured to determine distance information between the bluetooth playing device and an intelligent device within a preset range when it is determined that a distance between the bluetooth playing device and the electronic device is greater than a preset distance based on the first position information;
a second determining module 303, configured to determine a target smart device based on the distance information;
a sending module 304, configured to send sound data to the target smart device, so that the target smart device sends the sound data to the bluetooth playing device.
In some embodiments, the apparatus for playing back sound data further includes:
the judging module is used for judging whether sound data transmission exists between the Bluetooth playing equipment and the electronic equipment or not;
the first control module is used for controlling the intelligent device to be in a state of awaiting orders to receive the sound data under the condition that the Bluetooth playing device and the electronic device have sound data transmission.
In some embodiments, the first determining module comprises:
the acquisition unit is used for acquiring second position information of each intelligent device within a preset range;
and the first determining unit is used for determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
In some embodiments, the second determining module comprises:
the second determining unit is used for determining the size relation of the distances between the Bluetooth playing equipment and each intelligent equipment based on the distance information;
a third determining unit configured to determine a minimum distance value based on the magnitude relation;
and the fourth determining unit is used for determining the intelligent device corresponding to the minimum distance value as the target intelligent device.
In some embodiments, the second determining unit comprises:
a fifth determining unit, configured to determine a distance value smaller than a distance threshold in the distance information;
and the sixth determining unit is used for taking one intelligent device in the intelligent devices corresponding to the distance value as the target intelligent device.
In some embodiments, the electronic device comprises any one of: mobile terminal, intelligent lock, intelligent cat eye, panel computer.
In some embodiments, the electronic device and the smart device are connected in wireless communication, and the smart device and the bluetooth playing device are connected in bluetooth communication.
It should be noted that, in the embodiment of the present application, if the above-mentioned playing method of the sound data is implemented in the form of a software functional module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps in the method for playing back sound data provided in the above-mentioned embodiments.
The embodiment of the application provides an electronic device; fig. 4 is a schematic structural diagram of a component of an electronic device according to an embodiment of the present application, and as shown in fig. 4, the electronic device 400 includes: a processor 401, at least one communication bus 402, a user interface 403, at least one external communication interface 404, a memory 405. Wherein the communication bus 402 is configured to enable connective communication between these components. The user interface 403 may include a display screen, and the external communication interface 404 may include a standard wired interface and a wireless interface, among others. The processor 401 is configured to execute a program of a playing method of sound data stored in the memory to realize the steps in the playing method of sound data provided in the above-described embodiments.
Here, it should be noted that: the above description of the storage medium and the electronic device embodiments is similar to the description of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, object, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit described above may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for playing sound data is applied to an electronic device, and the method comprises the following steps:
acquiring first position information of Bluetooth playing equipment;
under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information, determining distance information between the Bluetooth playing device and intelligent devices within a preset range;
determining a target smart device based on the distance information;
and sending the sound data to the target intelligent equipment so that the target intelligent equipment sends the sound data to the Bluetooth playing equipment.
2. The method of claim 1, further comprising:
judging whether sound data transmission exists between the Bluetooth playing equipment and the electronic equipment or not;
and under the condition that sound data transmission exists between the Bluetooth playing equipment and the electronic equipment, controlling the intelligent equipment to be in a state of waiting to receive the sound data.
3. The method according to claim 1, wherein the determining distance information between the bluetooth player and a smart device within a preset range comprises:
acquiring second position information of each intelligent device within a preset range;
and determining distance information between the Bluetooth playing device and each intelligent device based on the first position information and the second position information.
4. The method of claim 1, wherein determining the target smart device based on the distance information comprises:
determining the size relation of the distances between the Bluetooth playing equipment and each intelligent equipment based on the distance information;
determining a distance minimum based on the magnitude relationship;
and determining the intelligent equipment corresponding to the minimum distance value as target intelligent equipment.
5. The method of claim 1, wherein determining the target smart device based on the distance information comprises:
determining a distance value smaller than a distance threshold in the distance information;
and one intelligent device in the intelligent devices corresponding to the distance value is taken as a target intelligent device.
6. The method of claim 1, wherein the electronic device comprises any one of: mobile terminal, intelligent lock, intelligent cat eye, panel computer.
7. The method according to claim 1, wherein the electronic device is connected with the smart device through wireless communication, and the smart device is connected with the bluetooth playing device through bluetooth communication.
8. An apparatus for playing back sound data, comprising:
the first acquisition module is used for acquiring first position information of the Bluetooth playing equipment;
the first determining module is used for determining distance information between the Bluetooth playing device and intelligent devices within a preset range under the condition that the distance between the Bluetooth playing device and the electronic device is determined to be larger than a preset distance based on the first position information;
a second determination module to determine a target smart device based on the distance information;
and the sending module is used for sending the sound data to the target intelligent equipment so that the target intelligent equipment sends the sound data to the Bluetooth playing equipment.
9. An electronic device, comprising:
a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs a method of playing sound data according to any one of claims 1 to 7.
10. A storage medium storing a computer program executable by one or more processors and operable to implement a method of playing sound data according to any one of claims 1 to 7.
CN202111551643.1A 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium Active CN114430528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111551643.1A CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111551643.1A CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114430528A true CN114430528A (en) 2022-05-03
CN114430528B CN114430528B (en) 2023-08-11

Family

ID=81312035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111551643.1A Active CN114430528B (en) 2021-12-17 2021-12-17 Sound data playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114430528B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499818A (en) * 2022-11-16 2022-12-20 荣耀终端有限公司 Data processing method, system, electronic equipment, bluetooth peripheral and storage medium
CN115550505A (en) * 2022-09-22 2022-12-30 维沃移动通信有限公司 Incoming call processing method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070026793A1 (en) * 2005-08-01 2007-02-01 Motorola, Inc. Method and system for audio repeating among portable communication devices
CN106488316A (en) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 Media playing method and device, electronic equipment
CN106878920A (en) * 2016-12-29 2017-06-20 建荣半导体(深圳)有限公司 Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN110290443A (en) * 2018-07-16 2019-09-27 东莞育商智能科技有限公司 Device and method for increasing sound distance of intelligent sound box
US20190320478A1 (en) * 2018-04-13 2019-10-17 Realtek Semiconductor Corp. Multi-member bluetooth network capable of maintaining bluetooth signal quality with remote bluetooth device and related main bluetooth circuit and auxiliary bluetooth circuit
US20200107107A1 (en) * 2018-09-30 2020-04-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and system, and bluetooth headphone
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment
CN111565355A (en) * 2020-04-02 2020-08-21 北京声智科技有限公司 Device control method, device, electronic device and computer-readable storage medium
WO2020253566A1 (en) * 2019-06-21 2020-12-24 展讯通信(上海)有限公司 Audio playing method, device and storage medium
CN112911566A (en) * 2019-12-25 2021-06-04 华为终端有限公司 Bluetooth communication method and device
US20210219075A1 (en) * 2020-01-10 2021-07-15 Sonova Ag Method for ensuring symmetric audio quality for hands-free phoning

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070026793A1 (en) * 2005-08-01 2007-02-01 Motorola, Inc. Method and system for audio repeating among portable communication devices
CN106488316A (en) * 2016-10-20 2017-03-08 北京小米移动软件有限公司 Media playing method and device, electronic equipment
CN106878920A (en) * 2016-12-29 2017-06-20 建荣半导体(深圳)有限公司 Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
US20190320478A1 (en) * 2018-04-13 2019-10-17 Realtek Semiconductor Corp. Multi-member bluetooth network capable of maintaining bluetooth signal quality with remote bluetooth device and related main bluetooth circuit and auxiliary bluetooth circuit
CN110290443A (en) * 2018-07-16 2019-09-27 东莞育商智能科技有限公司 Device and method for increasing sound distance of intelligent sound box
CN109298846A (en) * 2018-09-30 2019-02-01 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
US20200107107A1 (en) * 2018-09-30 2020-04-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and system, and bluetooth headphone
WO2020253566A1 (en) * 2019-06-21 2020-12-24 展讯通信(上海)有限公司 Audio playing method, device and storage medium
CN111131885A (en) * 2019-12-24 2020-05-08 维沃移动通信有限公司 Play control method and electronic equipment
CN112911566A (en) * 2019-12-25 2021-06-04 华为终端有限公司 Bluetooth communication method and device
US20210219075A1 (en) * 2020-01-10 2021-07-15 Sonova Ag Method for ensuring symmetric audio quality for hands-free phoning
CN111565355A (en) * 2020-04-02 2020-08-21 北京声智科技有限公司 Device control method, device, electronic device and computer-readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550505A (en) * 2022-09-22 2022-12-30 维沃移动通信有限公司 Incoming call processing method and device
CN115550505B (en) * 2022-09-22 2024-02-20 维沃移动通信有限公司 Incoming call processing method and device
CN115499818A (en) * 2022-11-16 2022-12-20 荣耀终端有限公司 Data processing method, system, electronic equipment, bluetooth peripheral and storage medium
CN116744267A (en) * 2022-11-16 2023-09-12 荣耀终端有限公司 Data processing method, system, electronic device and storage medium
CN116744267B (en) * 2022-11-16 2024-05-21 荣耀终端有限公司 Data processing method, system, electronic device and storage medium
WO2024103888A1 (en) * 2022-11-16 2024-05-23 荣耀终端有限公司 Data processing method and system, electronic device, bluetooth peripheral and storage medium

Also Published As

Publication number Publication date
CN114430528B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN109445739B (en) Audio playing method and device, electronic equipment and computer readable medium
CN114430528A (en) Sound data playing method and device, electronic equipment and storage medium
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
CN110740376B (en) Improved content streaming device and method
CN109151212B (en) Equipment control method and device and electronic equipment
WO2014205011A2 (en) Determining proximity for devices interacting with media devices
EP4013003A1 (en) Communication protocol switching method, apparatus and system
CN115002934B (en) Audio service processing system, electronic equipment and Bluetooth headset
WO2015129372A1 (en) Audio system
KR20210034200A (en) Electronic device for audio, electronic device and method for managing communication link
CN113453381A (en) Device pairing method and related product
CN108111698A (en) A kind of incoming call reminding method and smart machine
CN114077414A (en) Audio playing control method and device, electronic equipment and storage medium
JP6527237B2 (en) Wearable device
KR20200129455A (en) Electronic device and Method of controlling thereof
CN109814798B (en) Ear return function control method and device and mobile terminal
WO2016196570A1 (en) Systems and methods for dynamic operation of electronic devices based on detection of one or more events
CN116761110A (en) Multi-point bluetooth headset control method, system, storage medium and equipment
CN111857640A (en) Terminal prompting method, system and storage medium
CN111107226A (en) Volume control method applied to mobile terminal
CN108632713B (en) Volume control method and device, storage medium and terminal equipment
CN107948416B (en) Incoming call reminding method and device, computer installation and computer readable storage medium
CN113271385A (en) Call forwarding method
CN114173321A (en) Equipment communication connection establishing method and equipment communication system
KR20200127687A (en) Electronic device for establishing a communiation with external electronic device and controlling method thereof

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