CN112188453A - Method and system for acquiring audio data based on Bluetooth device - Google Patents

Method and system for acquiring audio data based on Bluetooth device Download PDF

Info

Publication number
CN112188453A
CN112188453A CN201910592785.9A CN201910592785A CN112188453A CN 112188453 A CN112188453 A CN 112188453A CN 201910592785 A CN201910592785 A CN 201910592785A CN 112188453 A CN112188453 A CN 112188453A
Authority
CN
China
Prior art keywords
audio data
equipment
receiving end
bluetooth
transfer
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
CN201910592785.9A
Other languages
Chinese (zh)
Other versions
CN112188453B (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.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology 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 Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN201910592785.9A priority Critical patent/CN112188453B/en
Publication of CN112188453A publication Critical patent/CN112188453A/en
Application granted granted Critical
Publication of CN112188453B publication Critical patent/CN112188453B/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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

Abstract

The invention provides a method and a system for acquiring audio data based on Bluetooth equipment, wherein the method comprises the following steps: the method comprises the steps that a Bluetooth communication connection relation is established between a sending end and a transfer device, and a communication connection relation is established between the transfer device and a receiving end; the transfer equipment acquires audio data played by a sending end through a Bluetooth communication link; the transfer equipment collects the audio data; the transit equipment forwards the acquired audio data to a receiving end. The invention overcomes the problem that the sending end and the receiving end can not play at the receiving end due to different operating systems, and is easy to realize; and the two realize real-time transmission processing and playing, thereby having more practicability.

Description

Method and system for acquiring audio data based on Bluetooth device
Technical Field
The invention relates to the field of audio data playing, in particular to a method and a system for acquiring audio data based on Bluetooth equipment.
Background
In the prior art, the problem that a device A using a specific operating system cannot directly acquire audio data by another device B using a different operating system exists. For example, in a smart classroom, a teacher wants to use a computer device to put the content of a prepared class on a teaching terminal (equipped with operating system software and a display screen device); if the computer device used by the teacher uses some specific operating systems, such as the iOS or Mac system, the terminal cannot access the hardware device of the computer due to the limitation of the specific operating systems of the computer, and further cannot acquire the audio data on the computer for playing. It can also be understood that when a user needs to use a software system (operating system) of another device to play an audio/video file, the device may not acquire the audio/video file due to the limitation of the operating system of the device (the file can only be played using the software system of the original device).
One existing solution is to obtain the audio data to be played through recording or screen recording software. However, this method has a problem that the acquired audio data cannot be transmitted and processed in real time. Therefore, there is a need to provide a better solution to achieve real-time audio data acquisition without the operating system limitations.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method and the system for acquiring the audio data based on the Bluetooth device are provided, and the audio data is acquired in real time without being limited by an operating system.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for acquiring audio data based on Bluetooth equipment comprises the following steps:
the method comprises the steps that a Bluetooth communication connection relation is established between a sending end and a transfer device, and a communication connection relation is established between the transfer device and a receiving end;
the transfer equipment acquires audio data played by a sending end through a Bluetooth communication link;
the transfer equipment collects the audio data;
the transit equipment forwards the acquired audio data to a receiving end.
The invention provides another technical scheme as follows:
a system for acquiring audio data based on Bluetooth equipment comprises a sending end, transfer equipment and a receiving end; the sending end establishes a Bluetooth communication connection relationship with the sending end and the transfer device; the transfer equipment establishes a communication connection relation with the receiving end;
the transfer device is used for acquiring the audio data played by the sending end through the Bluetooth communication link, acquiring the audio data and forwarding the acquired audio data to the receiving end.
The invention has the beneficial effects that: the invention utilizes a device which only needs to have the functions of data acquisition, data forwarding and Bluetooth as a transfer device, and after the device is respectively connected with the sending end and the receiving end, the audio data played by the sending end can be received in real time through the Bluetooth communication link and is forwarded to the receiving end for playing after being acquired. Therefore, the invention overcomes the problem that the sending end and the receiving end can not play at the receiving end due to different operating systems, and is easy to realize; and the two realize real-time transmission processing and playing, thereby having more practicability.
Drawings
Fig. 1 is a schematic flowchart of a method for acquiring audio data based on a bluetooth device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for acquiring audio data based on a bluetooth device according to an embodiment of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
The most key concept of the invention is as follows: the transfer equipment connected with the transmitting end through the Bluetooth receives the played audio information and then collects and processes the audio information in real time, and forwards the audio information to the receiving end for playing, and meanwhile, the problems that an operating system is limited and cannot transmit and process in real time are solved.
Referring to fig. 1, the present invention provides a method for acquiring audio data based on a bluetooth device, including:
the method comprises the steps that a Bluetooth communication connection relation is established between a sending end and a transfer device, and a communication connection relation is established between the transfer device and a receiving end;
the transfer equipment acquires audio data played by a sending end through a Bluetooth communication link;
the transfer equipment collects the audio data;
the transit equipment forwards the acquired audio data to a receiving end.
From the above description, the beneficial effects of the present invention are: the transfer equipment is connected with the sending end in a Bluetooth mode, and the transfer equipment has the advantages of easiness in implementation, convenience in operation, stable transmission and the like; the transfer equipment is used as an audio player to receive the audio information played by the sending end, has a function similar to that of an earphone, and can conveniently acquire the original audio information; the acquired audio information is collected and forwarded through the transfer equipment, and the audio information of the receiving end is acquired.
Further, the transit device forwards the acquired audio data to a receiving end, specifically:
the transfer equipment converts the acquired simulated audio data into corresponding audio stream data;
and the transit equipment sends the audio stream data to a receiving end.
It can be known from the above description that the analog audio data is forwarded to the receiving end after being forwarded to the audio stream, which is more beneficial to stably, losslessly and efficiently transmitting to the receiving end and processing at the receiving end.
Further, the transit device obtains the audio data played by the sending end through the bluetooth communication link, and specifically includes:
the transfer equipment returns the equipment identifier of the player to the sending end;
the transmitting end transmits the played audio data to the transfer equipment through the Bluetooth communication link.
As can be seen from the above description, the transmitting end is made to assume that a player, such as an earphone, is connected through the device identifier, and the played audio information is transmitted to the relay device.
Further, the transit device collects the audio data, and specifically includes:
the transfer equipment plays the received audio data;
the transfer equipment sequentially samples, quantizes and encodes the audio data played by the transfer equipment in real time, and converts the audio data of the analog signal type obtained by sampling into the audio data of the corresponding digital signal type.
As can be seen from the above description, the transfer device converts the received analog audio data into a corresponding digital signal by performing analog-to-digital conversion, which is more beneficial to subsequent efficient, stable and lossless transmission and processing.
Further, the transit device establishes a network communication connection relationship with the receiving end.
As can be seen from the above description, the relay device and the receiving end preferably use a general network communication method to perform data transmission, so as to obtain high transmission speed and lower loss.
The invention provides another technical scheme as follows:
a system for acquiring audio data based on Bluetooth equipment comprises a sending end, transfer equipment and a receiving end; the sending end establishes a Bluetooth communication connection relationship with the sending end and the transfer device; the transfer equipment establishes a communication connection relation with the receiving end;
the transfer device is used for acquiring the audio data played by the sending end through the Bluetooth communication link, acquiring the audio data and forwarding the acquired audio data to the receiving end.
From the above description, the beneficial effects of the present invention are: the device which only needs to have the functions of data acquisition, data forwarding and Bluetooth is used as transfer equipment and is respectively connected with the sending end and the receiving end, so that the audio data played by the sending end can be received in real time through the Bluetooth communication link and forwarded to the receiving end for playing after being acquired. Therefore, the invention overcomes the problem that the sending end and the receiving end can not play at the receiving end due to different operating systems, and is easy to realize; and the two realize real-time transmission processing and playing, thereby having more practicability.
Further, the transfer device is specifically configured to convert the acquired analog audio data into corresponding audio stream data, and send the audio stream data to a receiving end.
Further, the transit device is specifically configured to return a device identifier of the player to the sending end;
and the sending end is used for sending the played audio data to the transfer equipment through the Bluetooth communication link.
Further, the transit device is specifically configured to play the received audio data, sequentially sample, quantize, and encode the audio data played by the transit device in real time, and convert the audio data of the analog signal type obtained by sampling into audio data of a corresponding digital signal type.
Further, the transit device establishes a network communication connection relationship with the receiving end.
Example one
Referring to fig. 2, the present embodiment provides a method for acquiring audio data based on a bluetooth device, which can solve the problem that a device a using a specific operating system cannot be directly acquired by another device B using a different operating system to play audio data. Hereinafter, the device a serves as a transmitting end; device B is illustrated as the receiving end.
The implementation of this embodiment is based on a device with bluetooth transmission, data acquisition and data forwarding, which becomes a relay device.
The method of the embodiment comprises the following steps:
s1: the method comprises the steps that a Bluetooth communication connection relation is established between a sending end and a transfer device, and a communication connection relation is established between the transfer device and a receiving end;
specifically, the two are paired after mutually identifying through respective Bluetooth functions, and the Bluetooth communication connection relationship between the two is established after the pairing is successful. The transfer equipment and the receiving end can be connected by adopting the most common network link mode at present, such as Wi-Fi or mobile data, so that the communication connection between the transfer equipment and the receiving end is more convenient to establish, and the transmission speed is higher.
S2: the transfer equipment acquires audio data played by a sending end through a Bluetooth communication link;
specifically, this step is realized by the following substeps:
s21: when the sending end requests to acquire the transit equipment identifier, the transit equipment returns the equipment identifier which is the player to the sending end; that is, the transfer device tells the sender that the player, such as an earphone, is connected with the sender; technical support is provided for the subsequent sending end to transmit the played audio data to the transit equipment.
S22: the transmitting end transmits the played audio data to the transfer equipment through the Bluetooth communication link.
Since the sender is informed of being a player, when the sender uses corresponding software to play the audio/video file, the sender will send the currently played audio/video data to the transfer device, which is similar to the case that mp3 needs to transmit the audio data to an earphone when playing music through the earphone connected to the sender.
S3: the transfer equipment collects the audio data;
in one embodiment, the steps specifically include:
s31: the transfer equipment plays the received audio data; playing the received audio data equivalent to the earphone;
s32: the transfer equipment samples, quantizes and encodes the audio data played by the transfer equipment in real time, and converts the audio data of the analog signal type obtained by sampling into the audio data of the corresponding digital signal type;
the audio data is sampled, similar to the audio data generated by a microphone, and the sampled audio data is analog audio data; and the digital audio data is converted into a byte stream format through quantization and coding processing, so that the digital audio data is more beneficial to stable, efficient and lossless transmission and more beneficial to processing of a receiving end.
S4: the transit equipment forwards the acquired audio data to a receiving end.
That is, the transit device sends the audio data in the byte stream format to the receiving end through the network link of the transit device and then the receiving end receiving the audio data in the byte stream format can play the audio content to be played by the sending end through the receiving end.
Example two
In this embodiment, step S4 is further defined on the basis of the first embodiment.
This embodiment corresponds to step S3 in the first embodiment: the relay device collects the audio data, and the purpose of the relay device is only to collect the audio data played by the relay device, and when the simulated audio data is obtained, that is, under the condition that the specific examples below are not included, the analog-to-digital conversion of the audio data is realized by the step S4.
Specifically, step S4 of this implementation specifically includes:
s41: the transfer equipment converts the acquired simulated audio data into corresponding audio stream data, namely, obtains audio data in a byte stream form;
s42: and the transit equipment sends the audio stream data to a receiving end.
EXAMPLE III
This example provides two specific examples:
a first specific example, corresponding to the first embodiment, provides a system for acquiring audio data based on a bluetooth device, including a sending end, a transit device, and a receiving end; the sending end establishes a Bluetooth communication connection relationship with the sending end and the transfer device; the transfer equipment establishes a communication connection relation with the receiving end; preferably, the transit device establishes a network communication connection relationship with the receiving end.
The transfer device is used for acquiring the audio data played by the sending end through the Bluetooth communication link, acquiring the audio data and forwarding the acquired audio data to the receiving end.
Further, the transit device is specifically configured to return a device identifier of the player to the sending end;
and the sending end is used for sending the played audio data to the transfer equipment through the Bluetooth communication link.
Further, the transit device is specifically configured to play the received audio data, sequentially sample, quantize, and encode the audio data played by the transit device in real time, and convert the audio data of the analog signal type obtained by sampling into audio data of a corresponding digital signal type.
A second specific example, corresponding to the second embodiment, is to delete the limitation that the relay device is specifically configured to play the received audio data, and sequentially sample, quantize and encode the audio data played by the relay device in real time, and convert the audio data of the analog signal type obtained by sampling into the audio data of the corresponding digital signal type, on the basis of the first specific example, and add the following contents:
the transit device is specifically configured to convert the acquired analog audio data into corresponding audio stream data, and send the audio stream data to a receiving end.
Example four
This embodiment provides a specific application scenario corresponding to the first embodiment:
in a network environment intelligent classroom, a user wants to use a computer as a sending end device S and prepare to project a video file on the sending end device S to a receiving end device C, however, since the sending end device S is an IOS system and the receiving end device C is an android system, the receiving end device C of the android system cannot directly acquire the video file to be played by being connected with the sending end device S.
Corresponding to the first embodiment, a bluetooth device is prepared as the transfer device I, and the bluetooth device needs to have data acquisition, data forwarding and bluetooth connection transmission functions. Data collection is usually performed by hardware, software integration, such as hardware devices with development boards, and simple operating systems like Sakura.
And then, the Bluetooth module is connected with the sending end equipment S in a pairing way through Bluetooth, namely equipment with a specific audio data acquisition function and a Bluetooth connection function.
Then after the transfer device I is successfully paired with the sending end device S, the user starts playing the video file, and the sending end device S transmits the audio data to the transfer device I through a Bluetooth link layer; after receiving the audio data, the transit device I starts playing, and at this time, an audio analog signal is generated, and the transit device I converts the audio analog signal into a digital signal by using a PCM data processing mode, that is, a mode of storing the digital signal as a byte stream through processes of sampling, quantizing and encoding.
The relay device I sends the required audio data (converted into a byte stream) to the receiving device C requiring the audio data in a network link mode. The receiving end device C receives the data in the form of the audio byte stream and plays the data in the receiving end device C.
The sending end device S and the receiving end device C may be PCs or mobile terminal devices; and a plurality of devices and the transfer device can be connected in a network mode, namely, the audio data received in the network connection is shared.
In summary, the method and system for acquiring audio data based on bluetooth device provided by the present invention can acquire audio data in real time without being limited by the operating system; and possesses advantages such as easily realizing, simple operation, practicality height simultaneously.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for acquiring audio data based on Bluetooth equipment is characterized by comprising the following steps:
the method comprises the steps that a Bluetooth communication connection relation is established between a sending end and a transfer device, and a communication connection relation is established between the transfer device and a receiving end;
the transfer equipment acquires audio data played by a sending end through a Bluetooth communication link;
the transfer equipment collects the audio data;
the transit equipment forwards the acquired audio data to a receiving end.
2. The method for acquiring audio data based on bluetooth equipment according to claim 1, wherein the forwarding device forwards the acquired audio data to a receiving end, specifically:
the transfer equipment converts the acquired simulated audio data into corresponding audio stream data;
and the transit equipment sends the audio stream data to a receiving end.
3. The method for acquiring audio data based on bluetooth equipment according to claim 1, wherein the forwarding equipment acquires the audio data played by the sending end through a bluetooth communication link, and specifically comprises:
the transfer equipment returns the equipment identifier of the player to the sending end;
the transmitting end transmits the played audio data to the transfer equipment through the Bluetooth communication link.
4. The method for acquiring audio data based on bluetooth equipment according to claim 1, wherein the forwarding equipment collects the audio data, and specifically comprises:
the transfer equipment plays the received audio data;
the transfer equipment sequentially samples, quantizes and encodes the audio data played by the transfer equipment in real time, and converts the audio data of the analog signal type obtained by sampling into the audio data of the corresponding digital signal type.
5. The method as claimed in claim 1, wherein the transit device establishes a network communication connection with the receiving end.
6. A system for acquiring audio data based on Bluetooth equipment is characterized by comprising a sending end, transfer equipment and a receiving end; the sending end establishes a Bluetooth communication connection relationship with the sending end and the transfer device; the transfer equipment establishes a communication connection relation with the receiving end;
the transfer device is used for acquiring the audio data played by the sending end through the Bluetooth communication link, acquiring the audio data and forwarding the acquired audio data to the receiving end.
7. The system as claimed in claim 6, wherein the relay device is specifically configured to convert the collected analog audio data into corresponding audio stream data, and send the audio stream data to a receiving end.
8. The system for acquiring audio data based on bluetooth device according to claim 6, wherein the transit device is specifically configured to return a device identifier of a player to the sending end;
and the sending end is used for sending the played audio data to the transfer equipment through the Bluetooth communication link.
9. The system according to claim 6, wherein the relay device is specifically configured to play the received audio data, sequentially sample, quantize, and encode the audio data played by the relay device in real time, and convert the audio data of the analog signal type obtained by sampling into audio data of a corresponding digital signal type.
10. The system as claimed in claim 6, wherein the transit device establishes a network communication connection with the receiving end.
CN201910592785.9A 2019-07-03 2019-07-03 Method and system for acquiring audio data based on Bluetooth equipment Active CN112188453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910592785.9A CN112188453B (en) 2019-07-03 2019-07-03 Method and system for acquiring audio data based on Bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910592785.9A CN112188453B (en) 2019-07-03 2019-07-03 Method and system for acquiring audio data based on Bluetooth equipment

Publications (2)

Publication Number Publication Date
CN112188453A true CN112188453A (en) 2021-01-05
CN112188453B CN112188453B (en) 2023-04-28

Family

ID=73915352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910592785.9A Active CN112188453B (en) 2019-07-03 2019-07-03 Method and system for acquiring audio data based on Bluetooth equipment

Country Status (1)

Country Link
CN (1) CN112188453B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117777A (en) * 2013-02-27 2013-05-22 广州长嘉电子有限公司 Method and system for synchronizing telephone directory of mobile terminal based on Bluetooth on tablet computer
CN103888818A (en) * 2014-03-24 2014-06-25 青岛海信电器股份有限公司 Method, equipment and system for playing television programs
CN105307102A (en) * 2014-07-18 2016-02-03 光宝电子(广州)有限公司 Bluetooth wireless audio transmitter
US20160330306A1 (en) * 2014-01-07 2016-11-10 Zte Corporation Call Control Method and Terminal
CN106792030A (en) * 2017-01-03 2017-05-31 青岛海信电器股份有限公司 A kind of audio data processing method and TV
WO2019052068A1 (en) * 2017-09-18 2019-03-21 歌尔股份有限公司 Bluetooth speaker, and intelligent control method for playing audio

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117777A (en) * 2013-02-27 2013-05-22 广州长嘉电子有限公司 Method and system for synchronizing telephone directory of mobile terminal based on Bluetooth on tablet computer
US20160330306A1 (en) * 2014-01-07 2016-11-10 Zte Corporation Call Control Method and Terminal
CN103888818A (en) * 2014-03-24 2014-06-25 青岛海信电器股份有限公司 Method, equipment and system for playing television programs
CN105307102A (en) * 2014-07-18 2016-02-03 光宝电子(广州)有限公司 Bluetooth wireless audio transmitter
CN106792030A (en) * 2017-01-03 2017-05-31 青岛海信电器股份有限公司 A kind of audio data processing method and TV
WO2019052068A1 (en) * 2017-09-18 2019-03-21 歌尔股份有限公司 Bluetooth speaker, and intelligent control method for playing audio

Also Published As

Publication number Publication date
CN112188453B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN101867572B (en) The implementation method of wireless U disk and system
CN101883097A (en) Method and device for realizing that server equipment shares screen of client equipment
CN101646076A (en) Video transmission method in wireless network
CN103560836A (en) Sound wave wireless communication method and device
CN101458616A (en) Multimedia kvm system
CN104363511A (en) Method and system for online playing F4v videos on mobile device
CN101900818A (en) Beidou satellite communication device having voice call function
CN111885412B (en) HDMI signal screen transmission method and wireless screen transmission device
CN101959143B (en) Method for selectively recording during group calling of dispatching desk in digital trunking system
CN112188453A (en) Method and system for acquiring audio data based on Bluetooth device
CN109361915B (en) Wired network camera installation test method
US20140163971A1 (en) Method of using a mobile device as a microphone, method of audio playback, and related device and system
CN101867764A (en) Mobile multi-party video call system
CN104917998A (en) Wireless microphone, video conference systems and operation method thereof
CN107786584A (en) The communication means of point-of-reading device
CN112637703B (en) Real-time intercom system and method for WEB terminal
CN105592082B (en) Content sharing system, content and content share method
CN102098581A (en) Method and device for realizing video games
WO2022012521A1 (en) Method and system for adding subtitles and/or audios
CN103167345A (en) System and method for enabling audio and video to be transmitted to mobile phone to conduct real-time output playing based on Bluetooth
CN113015019A (en) Data processing method, device and system
US20190097737A1 (en) System, method and relay base station for transmitting data via acoustic internet of things
CN104902016A (en) Method, terminal and system for data interaction
CN211209814U (en) High equipment of clapping with audio frequency interaction function
CN111614602A (en) Method for outdoor live broadcast by using data relay 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