CN108848410A - Bluetooth audio frequency transmission method, device and computer readable storage medium - Google Patents

Bluetooth audio frequency transmission method, device and computer readable storage medium Download PDF

Info

Publication number
CN108848410A
CN108848410A CN201810498505.3A CN201810498505A CN108848410A CN 108848410 A CN108848410 A CN 108848410A CN 201810498505 A CN201810498505 A CN 201810498505A CN 108848410 A CN108848410 A CN 108848410A
Authority
CN
China
Prior art keywords
audio
audio frequency
bluetooth
bluetooth audio
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810498505.3A
Other languages
Chinese (zh)
Inventor
曾庆忠
朱海明
潘志兴
严力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201810498505.3A priority Critical patent/CN108848410A/en
Publication of CN108848410A publication Critical patent/CN108848410A/en
Priority to PCT/CN2019/087241 priority patent/WO2019223600A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4392Processing of audio elementary streams involving audio buffer management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44231Monitoring of peripheral device or external card, e.g. to detect processing problems in a handheld device or the failure of an external recording device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of methods of Bluetooth audio frequency transmission, including:When receiving the request message of multiple applications acquisition Bluetooth audio frequency data, the Bluetooth audio frequency input source and audio output source specified in each request message are obtained respectively, wherein, the Bluetooth audio frequency input source specified in each request message is associated with the audio output source;Start corresponding process or thread for each request message, Bluetooth audio frequency data is read from the Bluetooth audio frequency input source with the process or thread, and in real time by the Bluetooth audio frequency data buffer storage to spatial cache;The corresponding Bluetooth audio frequency data of each request message are read from the spatial cache, and are sent to the associated audio output source.The invention also discloses a kind of Bluetooth audio frequency transmitting device and computer readable storage mediums.The present invention obtains Bluetooth audio frequency data to multiple applications, to meet the audio transmission demand under different application scene by realizing from MCVF multichannel voice frequency input source.

Description

Bluetooth audio frequency transmission method, device and computer readable storage medium
Technical field
The present invention relates to ntelligent television technolog field more particularly to a kind of Bluetooth audio frequency transmission methods, Bluetooth audio frequency transmission Device and computer readable storage medium.
Background technique
With the development of ntelligent television technolog, the audio input source of smart television is more and more, including smart television program Audio input, the blue Tooth remote controller with sound-recording function and the mobile phone with bluetooth module etc..The audio output of smart television simultaneously Source is also more and more, including smart television loudspeaker, Baffle Box of Bluetooth, bluetooth headset and software application etc..
When increasing for the audio input source that smart television possesses especially Bluetooth audio frequency input source, application scenarios also become rich It is rich and complicated.Such as user wishes to chat while appreciating music MV with smart television using blue Tooth remote controller and friend, intelligence Energy television set needs to obtain audio data, and the bluetooth sound that blue Tooth remote controller is obtained from television information source and blue Tooth remote controller simultaneously Frequency evidence is transferred to chat application software;Such as blue Tooth remote controller, in speech identifying function realization, speech recognition application needs It obtains the Bluetooth audio frequency data of blue Tooth remote controller and is transmitted to cloud and parse etc..In the prior art, smart television System, which also fails to be implemented on software from MCVF multichannel voice frequency input source, obtains Bluetooth audio frequency data to multiple applications, can not meet difference Audio transmission demand under application scenarios.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of methods of Bluetooth audio frequency transmission, the device and meter of Bluetooth audio frequency transmission Calculation machine readable storage medium storing program for executing, it is intended to solve technology of the prior art described in above-mentioned background technique in Bluetooth audio frequency transmission Problem.
To achieve the above object, the present invention provides a kind of method of Bluetooth audio frequency transmission, the side of the Bluetooth audio frequency transmission Method includes the following steps:
When receiving the request message of multiple applications acquisition Bluetooth audio frequency data, each request message is obtained respectively In specify Bluetooth audio frequency input source and audio output source, wherein in each request message specify the Bluetooth audio frequency Input source is associated with the audio output source;
Start corresponding process or thread for each request message, with the process or thread from the Bluetooth audio frequency Input source reads Bluetooth audio frequency data, and in real time by the Bluetooth audio frequency data buffer storage to spatial cache;
The corresponding Bluetooth audio frequency data of each request message are read from the spatial cache, and are sent to associated institute State audio output source.
Preferably, the method for the Bluetooth audio frequency transmission is further comprising the steps of:
When being not received by the request for obtaining Bluetooth audio frequency data, the sound other than default audio input source is detected whether Frequency input source;
If detecting the audio input source other than the default audio input source, the default audio input source is closed.
Preferably, described when being not received by the request for obtaining Bluetooth audio frequency data, detect whether that default audio is defeated Further include after the step of entering the audio input source other than source:
Detect whether the audio output source other than default audio output equipment;
If there is the audio output source other than the default audio output equipment, the sound of the default audio output equipment is closed Frequency output function.
Preferably, if the audio output source having other than the default audio output equipment, closes the default audio Further include after the step of audio output function of output equipment:
It is if there is the audio output source other than multiple default audio output equipments, the audio of highest priority is defeated Source is as target audio output source out.
Preferably, described to read the corresponding Bluetooth audio frequency data of each request message from the spatial cache, concurrently The step of giving the associated audio output source include:
When the request message is corresponding with multiple path blue-tooth audio data, user is prompted there are the feelings of multiple path blue-tooth audio audio mixing Condition;
The multiple path blue-tooth audio data are subjected to audio mixing, and the Bluetooth audio frequency data after audio mixing are sent to associated institute State audio output source.
Preferably, described when receiving the request message of multiple applications acquisition Bluetooth audio frequency data, it obtains each described Further include after the step of audio input source and audio output source for being specified in request message:
When the audio output source specified in the request message is not default audio output equipment, the default is closed The audio output function of audio output apparatus.
Preferably, described to read the corresponding Bluetooth audio frequency data of each request from each audio input source, and Include by the Bluetooth audio frequency data buffer storage to the step of spatial cache in real time:
Start corresponding process or thread for each request message, with the process or thread from the Bluetooth audio frequency Input source reads Bluetooth audio frequency data;
Obtain the corresponding buffer memory rate of each request;
The Bluetooth audio frequency data are cached to spatial cache with the corresponding buffer memory rate in real time.
In addition, to achieve the above object, the present invention also provides the Bluetooth audio frequency transmitting device, which includes:Storage The Bluetooth audio frequency transmission control that device, processor, bluetooth mould group and being stored in can be run on the memory and on the processor Processing procedure sequence, the Bluetooth audio frequency transmission control procedure realize Bluetooth audio frequency transmission side as described above when being executed by the processor The step of method.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, which is characterized in that institute It states and is stored with Bluetooth audio frequency transmission control procedure on computer readable storage medium, the Bluetooth audio frequency transmission control procedure is located The step of reason device realizes Bluetooth audio frequency transmission method as described above when executing.
A kind of method for Bluetooth audio frequency transmission that the embodiment of the present invention proposes, the device of Bluetooth audio frequency transmission and computer can Storage medium is read, when receiving the request message of multiple applications acquisition Bluetooth audio frequency data, obtains each request respectively The Bluetooth audio frequency input source and audio output source specified in message, wherein the bluetooth specified in each request message Audio input source is associated with the audio output source, starts corresponding process or thread for each request message, with institute It states process or thread and reads Bluetooth audio frequency data from the Bluetooth audio frequency input source, and in real time by the Bluetooth audio frequency data buffer storage To spatial cache, the corresponding Bluetooth audio frequency data of each request message are read from the spatial cache, and be sent to association The audio output source.
The present invention is by receiving multiple requests for obtaining Bluetooth audio frequency data, according to the instruction of request from each audio input Source obtains corresponding Bluetooth audio frequency data, and Bluetooth audio frequency data are transferred to associated audio output source, realizes from multichannel sound Frequency input source obtains Bluetooth audio frequency data to multiple applications, to meet the audio transmission demand under different application scene.
Detailed description of the invention
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of Bluetooth audio frequency transmission method first embodiment of the present invention;
Fig. 3 is the flow diagram of Bluetooth audio frequency transmission method second embodiment of the present invention;
Fig. 4 is the flow diagram of Bluetooth audio frequency transmission method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of Bluetooth audio frequency transmission method fourth embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When receiving multiple requests for obtaining Bluetooth audio frequency data, obtain Take the corresponding audio input source of each request and audio output source;Indigo plant described in each road is obtained from each audio input source Tooth audio data;Bluetooth audio frequency data described in each road are transferred to the audio output source.
Bluetooth is obtained since in the prior art, intelligent television system also fails to be implemented on software from MCVF multichannel voice frequency input source Audio data gives multiple applications, can not meet the audio transmission demand under different application scene.
The present invention provides a solution, by receiving multiple requests for obtaining Bluetooth audio frequency data, according to request Instruction obtains corresponding Bluetooth audio frequency data from each audio input source, and it is defeated that Bluetooth audio frequency data are transferred to associated audio Source out is realized from MCVF multichannel voice frequency input source and obtains Bluetooth audio frequency data to multiple applications, to meet under different application scene Audio transmission demand.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is Bluetooth audio frequency transmitting device.
As shown in Figure 1, the Bluetooth audio frequency transmitting device may include:Processor 1001, such as CPU, communication bus 1002, Bluetooth mould group 1003, memory 1004.Wherein, communication bus 1002 is for realizing the connection communication between these components.Storage Device 1004 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk Memory.Memory 1004 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include operating system and bluetooth in a kind of memory 1004 of computer storage medium Audio transmission controls application program.
In device shown in Fig. 1, processor 1001 can be used for that the Bluetooth audio frequency stored in memory 1004 is called to pass Defeated control program, and execute following operation:
When receiving the request message of multiple applications acquisition Bluetooth audio frequency data, each request message is obtained respectively In specify Bluetooth audio frequency input source and audio output source, wherein in each request message specify the Bluetooth audio frequency Input source is associated with the audio output source;
Start corresponding process or thread for each request message, with the process or thread from the Bluetooth audio frequency Input source reads Bluetooth audio frequency data, and in real time by the Bluetooth audio frequency data buffer storage to spatial cache;
The corresponding Bluetooth audio frequency data of each request message are read from the spatial cache, and are sent to associated institute State audio output source.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
When being not received by the request for obtaining Bluetooth audio frequency data, the sound other than default audio input source is detected whether Frequency input source;
If detecting the audio input source other than the default audio input source, the default audio input source is closed.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
Detect whether the audio output source other than default audio output equipment;
If there is the audio output source other than the default audio output equipment, the sound of the default audio output equipment is closed Frequency output function.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
It is if there is the audio output source other than multiple default audio output equipments, the audio of highest priority is defeated Source is as target audio output source out.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
When the request message is corresponding with multiple path blue-tooth audio data, user is prompted there are the feelings of multiple path blue-tooth audio audio mixing Condition;
The multiple path blue-tooth audio data are subjected to audio mixing, and the Bluetooth audio frequency data after audio mixing are sent to associated institute State audio output source.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
When the audio output source specified in the request message is not default audio output equipment, the default is closed The audio output function of audio output apparatus.
Further, processor 1001 can call the Bluetooth audio frequency transmission control procedure stored in memory 1004, also Execute following operation:
Start corresponding process or thread for each request message, with the process or thread from the Bluetooth audio frequency Input source reads Bluetooth audio frequency data;
Obtain the corresponding buffer memory rate of each request;
The Bluetooth audio frequency data are cached to spatial cache with the corresponding buffer memory rate in real time.
Referring to Fig. 2, first embodiment of the invention provides a kind of method of Bluetooth audio frequency transmission, the method includes:
Step S10 is obtained each described respectively when receiving the request message of multiple applications acquisition Bluetooth audio frequency data The Bluetooth audio frequency input source and audio output source specified in request message, wherein that specifies in each request message is described Bluetooth audio frequency input source is associated with the audio output source.
In the equipment for having audio processing function, there are multiple audio input sources and audio output sources.Audio frequency apparatus can To be the electronic equipments such as television set, computer or mobile phone.It is illustrated by taking television set as an example below.
The audio input source of television set includes TV programme, remote controler bluetooth-capable or mobile phone;The sound of television set Frequency output source includes TV loudspeaker, Baffle Box of Bluetooth, bluetooth headset and runs on the application process in television operation system.
Corresponding with above-mentioned Multi-audio-frequency input source and Multi-audio-frequency output source, television set processing system includes that audio input connects Mouth unit, Bluetooth processing unit and audio service unit.Audio input interface unit is responsible for the indigo plant in the TV signal received Tooth audio data, and there are hardware connections, i.e. audio input interface unit between audio input interface unit and TV loudspeaker Bluetooth audio frequency data in TV programme are output to TV loudspeaker via hardware connection and carry out audio broadcasting.Bluetooth processing is single Member is responsible for receiving and handling the Bluetooth audio signals of blue Tooth remote controller or mobile phone.Audio service unit is responsible for from audio input interface Unit or Bluetooth processing unit obtain Bluetooth audio frequency data, and are output to TV loudspeaker, Baffle Box of Bluetooth, bluetooth headset or answer Use process.
It in systems, is each audio input source and the unique mark of each audio output source definition, for each processing unit It is identified, such as:
1) audio output apparatus
Audio output is to TV loudspeaker device identification:
AUDIO_OUT_DEVICE_SPEAKER=0x0002;
Audio output is to LINE OUT device identification (wired earphone or speaker):
AUDIO_OUT_DEVICE_LINE_OUT=0x0004;
Audio output is identified to Baffle Box of Bluetooth or bluetooth headset:
AUDIO_OUT_DEVICE_BT_SPEAKER=0x0008;
Audio output is identified to application process:
AUDIO_OUT_DEVICE_APP=0x0010.
2) audio input device
Audio input device is TV:
AUDIO_IN_DEVICE_TV=0x1002;
Audio input device is blue Tooth remote controller:
AUDIO_IN_DEVICE_BT_REMOTECONTROL=0x1004,
Audio input device is bluetooth cellular phone:
AUDIO_IN_DEVICE_BT_PHONE=0x1008.
Audio service unit provides Bluetooth audio frequency coffret and calls for application process, to issue the transmission of Bluetooth audio frequency data Request message.The Bluetooth audio frequency coffret parameter includes audio input source parameter and audio output source parameter, and sound intermediate frequency is defeated Enter source parameter and audio output source parameter is both needed to be identified with above-mentioned audio frequency apparatus and carries out assignment, so that interface called side specifies this Bluetooth audio frequency transmits corresponding audio input source and audio output source.
When multiple application processes need to obtain Bluetooth audio frequency data, each application process calls Bluetooth audio frequency transmission to connect Mouth issues individual Bluetooth audio frequency transfer request message to audio service unit.Transfer request message queue is established in memory, To cache multiple Bluetooth audio frequency transfer request messages that multiple application programs issue.The queue of audio service unit real-time query, And handle the Bluetooth audio frequency transfer request message in queue one by one according to chronological order, it obtains each Bluetooth audio frequency transmission and asks Ask the corresponding audio input source of message and audio output source.
Step S20 starts corresponding process or thread for each request message, with the process or thread from described Bluetooth audio frequency input source reads Bluetooth audio frequency data, and in real time by the Bluetooth audio frequency data buffer storage to spatial cache.
Audio service unit is obtaining the corresponding audio input source of each Bluetooth audio frequency transfer request message and audio is defeated Out after source, each road Bluetooth audio frequency data are obtained from each audio input source.Specifically, audio service unit can be with notification audio Interface input unit triggers audio interface input unit for the Bluetooth audio frequency data of the audio input source received and is transferred to audio Service unit is cached to its specified memory headroom;Audio service unit can also be established actively with audio interface input unit Connection, reads the Bluetooth audio frequency data for the audio input source that audio interface input unit receives, and Bluetooth audio frequency data are delayed It is stored to preset memory headroom.
Specifically, audio service unit is in the request message for receiving application program and being transmitted by Bluetooth audio frequency coffret When, it is that audio input source specified by each request message starts corresponding process or thread, it is corresponding with each audio input source Process or thread obtain every road Bluetooth audio frequency data.
Step S30 reads the corresponding Bluetooth audio frequency data of each request message from the spatial cache, and is sent to The associated audio output source.
Audio service unit after getting each road Bluetooth audio frequency data, by each road Bluetooth audio frequency data unit transmission to pair The audio output source answered.Specifically, audio service unit can establish connection with corresponding audio output source, read in caching Bluetooth audio frequency data are simultaneously transmitted to corresponding audio output source;Audio service unit can also notify corresponding audio output Source triggers the audio output source and actively reads the Bluetooth audio frequency data in caching, to complete to transmit.
Further, when request message is corresponding with multiple path blue-tooth audio data, i.e., multiple indigo plants are specified in request message Tooth input source, correspondence starts multiple processes or thread has got multiple path blue-tooth audio data, needs that user is prompted to have at this time The case where multiple path blue-tooth audio audio mixing;After multiple path blue-tooth audio data are carried out audio mixing, by the Bluetooth audio frequency data after audio mixing It is sent to associated audio output source.
In the present embodiment, by receiving multiple requests for obtaining Bluetooth audio frequency data, according to the instruction of request from audio Input source obtains corresponding Bluetooth audio frequency data, and corresponding Bluetooth audio frequency data are transferred to associated audio output source, realizes Bluetooth audio frequency data are obtained to multiple applications, to meet the audio transmission need under different application scene from MCVF multichannel voice frequency input source It asks.
Further, referring to Fig. 3, second embodiment of the invention provides a kind of Bluetooth audio frequency transmission based on first embodiment The step of method, the present embodiment includes:
Step S40 has detected whether that default audio is defeated when being not received by multiple requests for obtaining Bluetooth audio frequency data Enter the audio input source other than source.
By taking television set as an example, TV programme are the audio input source of television set default.When system for TV set starts up it Afterwards, first detect whether to receive the request of the acquisition Bluetooth audio frequency data from application program.Carry out self-application journey when being not received by When the request of the acquisition Bluetooth audio frequency data of sequence, show not knowing the calling of Bluetooth audio frequency coffret by application program Know existing audio input source, needs to enter another process at this time, that is, detect whether the sound other than default audio input source Frequency input source.
It is defeated to close the default audio if detecting the audio input source other than the default audio input source by step S50 Enter source.
When detecting the audio input source other than default audio input source, such as detect blue Tooth remote controller or bluetooth hand When machine, in order to avoid the audio mixing of default audio input source and other audio input sources, need to close default audio input source.Specifically Default audio input source is closed by the control module control in audio service unit in ground.
If not detecting the audio input source other than default audio input source, system for TV set will be from the audio of default Input source obtains Bluetooth audio frequency data.
In the present embodiment, if not detecting the audio input source other than default audio input source, it is also necessary to which detection is The no audio output source having other than default audio output equipment.When detecting the audio other than the default audio output equipment Output source, such as when bluetooth headset or Baffle Box of Bluetooth, close the audio output function of default audio output equipment.Specifically, by The audio output function of default audio output equipment is closed in control module control in audio service unit.
If not detecting the audio output source other than default audio output equipment, the Bluetooth audio frequency data of all acquisitions are all It is exported from the audio output source of default.
In the present embodiment, when being not received by multiple requests for obtaining Bluetooth audio frequency data, default has been detected whether Audio input source other than audio input source is closed silent when detecting the audio input source other than the default audio input source Recognize audio input source, avoids the audio mixing of default audio input source He other audio input sources.
Further, referring to Fig. 4, third embodiment of the invention is based on the first embodiment or the second embodiment and provides a kind of indigo plant The method of tooth audio transmission, the present embodiment include after step slo:
Step S60 closes the sound of the default when each audio output source is not default audio output equipment The audio output function of frequency output equipment.
Audio service unit is obtaining the corresponding audio input source of each Bluetooth audio frequency transfer request message and audio is defeated Whether out after source, detecting has default audio output equipment in each audio output source.When detecting that each audio output source is equal When not being default audio output equipment, the audio output function of default audio output equipment is closed.Specifically, by audio service list The audio output function of default audio output equipment is closed in control module control in member.
In addition, considering from simplifying processing and reducing processing complexity angle, when each audio output source is multiple and different It, can be using the audio output apparatus of highest priority in each audio output apparatus as audio output when audio output apparatus Source, i.e. the Bluetooth audio frequency data of multichannel are all unified to be exported from the audio output apparatus of highest priority.
In the present embodiment, by described in the closing when each audio output source is not default audio output equipment The audio output function of the audio output apparatus of default avoids the audio input source obtained defeated from the audio output apparatus of default Out.
Further, referring to Fig. 5, fourth embodiment of the invention is based on first and implements to 3rd embodiment any embodiment to mention For a kind of method of Bluetooth audio frequency transmission, the present embodiment includes in step S20:
Step S70 starts corresponding process or thread for each request message, with the process or thread from described Bluetooth audio frequency input source reads Bluetooth audio frequency data.
Step S80 obtains the corresponding buffer memory rate of each request.
The Bluetooth audio frequency data are cached to spatial cache in real time with the corresponding buffer memory rate by step S90.
In the interface parameters that audio service unit is supplied to the Bluetooth audio frequency coffret of application process calling, in addition to sound Frequency input source parameter and audio output source parameter can also include spatial cache address, i.e., can when application process calls the interface To pass through the specified corresponding spatial cache of Bluetooth audio frequency data obtained in the spatial cache address.Assignable spatial cache address Range is obtained according to the case where Installed System Memory hardware and Memory Allocation, and can be according to different application to transmission delay It is required that specifying different grades of memory address.
In the interface parameters that audio service unit is supplied to the Bluetooth audio frequency coffret of application process calling, in addition to sound Frequency input source parameter, audio output source parameter can also include buffer memory rate, i.e. application call outside spatial cache address The buffer memory rate used when can obtain Bluetooth audio frequency data by the way that the buffer memory rate is specified when the interface.Audio service unit exists When receiving the request that application program is transmitted by Bluetooth audio frequency coffret, it is corresponding that Bluetooth audio frequency data are obtained from request Buffer memory rate obtains Bluetooth audio frequency data from audio input source, and the Bluetooth audio frequency data is cached with corresponding buffer memory rate To corresponding spatial cache.
In the present embodiment, by obtaining the corresponding spatial cache of Bluetooth audio frequency data described in each road, from each sound Frequency input source obtains Bluetooth audio frequency data described in each road, Bluetooth audio frequency data buffer storage described in the road Bing Jiangge to the corresponding caching Space, realize support multiple path blue-tooth audio input simultaneously, can by optimize and upgrade the spatial cache of Bluetooth audio frequency data come Improve the overall performance of Bluetooth audio frequency transmission.
The present invention also provides a kind of Bluetooth audio frequency transmitting device, which includes:Memory, processor, bluetooth mould group and It is stored in the Bluetooth audio frequency transmission control procedure that can be run on the memory and on the processor, the Bluetooth audio frequency passes The step of defeated control program realizes the Bluetooth audio frequency transmission method when being executed by the processor.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with Bluetooth audio frequency transmission control procedure, realized when the Bluetooth audio frequency transmission control procedure is executed by processor described The step of Bluetooth audio frequency transmission method.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (9)

1. a kind of method of Bluetooth audio frequency transmission, which is characterized in that the method for the Bluetooth audio frequency transmission includes the following steps:
When receiving the request message of multiple applications acquisition Bluetooth audio frequency data, each request message middle finger is obtained respectively Fixed Bluetooth audio frequency input source and audio output source, wherein the Bluetooth audio frequency input specified in each request message Source is associated with the audio output source;
Start corresponding process or thread for each request message, is inputted with the process or thread from the Bluetooth audio frequency Bluetooth audio frequency data are read in source, and in real time by the Bluetooth audio frequency data buffer storage to spatial cache;
The corresponding Bluetooth audio frequency data of each request message are read from the spatial cache, and are sent to the associated sound Frequency output source.
2. the method for Bluetooth audio frequency transmission as described in claim 1, which is characterized in that the method for the Bluetooth audio frequency transmission is also Include the following steps:
When being not received by the request for obtaining Bluetooth audio frequency data, detect whether that the audio other than default audio input source is defeated Enter source;
If detecting the audio input source other than the default audio input source, the default audio input source is closed.
3. the method for Bluetooth audio frequency transmission as claimed in claim 2, which is characterized in that described to be not received by acquisition bluetooth When the request of audio data, further include after the step of detecting whether the audio input source other than default audio input source:
Detect whether the audio output source other than default audio output equipment;
If there is the audio output source other than the default audio output equipment, the audio for closing the default audio output equipment is defeated Function out.
4. the method for Bluetooth audio frequency transmission as claimed in claim 3, which is characterized in that if described have the default audio to export Audio output source other than equipment further includes after the step of closing the audio output function of the default audio output equipment:
If there is the audio output source other than multiple default audio output equipments, by the audio output source of highest priority As target audio output source.
5. the method for Bluetooth audio frequency transmission as described in claim 1, which is characterized in that described to be read often from the spatial cache The corresponding Bluetooth audio frequency data of a request message, and the step of being sent to the associated audio output source includes:
When the request message is corresponding with multiple path blue-tooth audio data, user is prompted to have the case where multiple path blue-tooth audio audio mixing;
The multiple path blue-tooth audio data are subjected to audio mixing, and the Bluetooth audio frequency data after audio mixing are sent to the associated sound Frequency output source.
6. the method for Bluetooth audio frequency transmission as described in claim 1, which is characterized in that described to receive multiple applications acquisitions When the request message of Bluetooth audio frequency data, the audio input source and audio output source specified in each request message are obtained Further include after step:
When the audio output source specified in the request message is not default audio output equipment, the audio of the default is closed The audio output function of output equipment.
7. such as the method for Bluetooth audio frequency as claimed in any one of claims 1 to 6 transmission, which is characterized in that described is each described Request message starts corresponding process or thread, reads Bluetooth audio frequency from the Bluetooth audio frequency input source with the process or thread Data, and include by the Bluetooth audio frequency data buffer storage to the step of spatial cache in real time:
Start corresponding process or thread for each request message, is inputted with the process or thread from the Bluetooth audio frequency Read Bluetooth audio frequency data in source;
Obtain the corresponding buffer memory rate of each request;
The Bluetooth audio frequency data are cached to spatial cache with the corresponding buffer memory rate in real time.
8. a kind of Bluetooth audio frequency transmitting device, which is characterized in that described device includes:It memory, processor, bluetooth mould group and deposits Store up the Bluetooth audio frequency transmission process program that can be run on the memory and on the processor, the Bluetooth audio frequency transmission Realizing the Bluetooth audio frequency transmission method as described in any one of claims 1 to 7 when processing routine is executed by the processor Step.
9. a kind of computer readable storage medium, which is characterized in that be stored with bluetooth sound on the computer readable storage medium Defeated processing routine is kept pouring in, is realized when the Bluetooth audio frequency transmission process program is executed by processor as any in claim 1 to 7 The step of Bluetooth audio frequency transmission method described in item.
CN201810498505.3A 2018-05-22 2018-05-22 Bluetooth audio frequency transmission method, device and computer readable storage medium Pending CN108848410A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810498505.3A CN108848410A (en) 2018-05-22 2018-05-22 Bluetooth audio frequency transmission method, device and computer readable storage medium
PCT/CN2019/087241 WO2019223600A1 (en) 2018-05-22 2019-05-16 Bluetooth audio transmission method, device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810498505.3A CN108848410A (en) 2018-05-22 2018-05-22 Bluetooth audio frequency transmission method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108848410A true CN108848410A (en) 2018-11-20

Family

ID=64213256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810498505.3A Pending CN108848410A (en) 2018-05-22 2018-05-22 Bluetooth audio frequency transmission method, device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108848410A (en)
WO (1) WO2019223600A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019223600A1 (en) * 2018-05-22 2019-11-28 深圳Tcl新技术有限公司 Bluetooth audio transmission method, device, and computer readable storage medium
CN112367648A (en) * 2020-09-29 2021-02-12 深圳市汇顶科技股份有限公司 Call management method, chip and audio output device
CN113377329A (en) * 2021-07-01 2021-09-10 安徽文香科技有限公司 Virtual audio equipment, audio data processing method and device
CN115834757A (en) * 2021-09-17 2023-03-21 北京小米移动软件有限公司 Data transmission method, electronic device, communication system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611961A (en) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 Method and device for switching multi-channel audios of terminal
CN104469500A (en) * 2013-09-18 2015-03-25 宏达国际电子股份有限公司 Method for outputting multiple multimedia tracks along multiple processing paths from a portable electronic device
US20160073240A1 (en) * 2014-09-08 2016-03-10 Toyota Motor Engineering & Manufacturing North America, Inc. Messaging for mobile devices using vehicle dcm
CN106201425A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of intelligent terminal's audio frequency output

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110238407A1 (en) * 2009-08-31 2011-09-29 O3 Technologies, Llc Systems and methods for speech-to-speech translation
CN104333800B (en) * 2014-07-21 2018-02-06 北京京东方视讯科技有限公司 The Bluetooth audio frequency player method and device of a kind of display system, display system
CN206775720U (en) * 2017-05-03 2017-12-19 广州国光音频科技有限公司 A kind of bluetooth connection for gathering multifunctional intellectual sound equipment and transport module
CN108848410A (en) * 2018-05-22 2018-11-20 深圳Tcl新技术有限公司 Bluetooth audio frequency transmission method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611961A (en) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 Method and device for switching multi-channel audios of terminal
CN104469500A (en) * 2013-09-18 2015-03-25 宏达国际电子股份有限公司 Method for outputting multiple multimedia tracks along multiple processing paths from a portable electronic device
US20160073240A1 (en) * 2014-09-08 2016-03-10 Toyota Motor Engineering & Manufacturing North America, Inc. Messaging for mobile devices using vehicle dcm
CN106201425A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of intelligent terminal's audio frequency output

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019223600A1 (en) * 2018-05-22 2019-11-28 深圳Tcl新技术有限公司 Bluetooth audio transmission method, device, and computer readable storage medium
CN112367648A (en) * 2020-09-29 2021-02-12 深圳市汇顶科技股份有限公司 Call management method, chip and audio output device
CN112367648B (en) * 2020-09-29 2024-03-08 深圳市汇顶科技股份有限公司 Call management method, chip and audio output device
CN113377329A (en) * 2021-07-01 2021-09-10 安徽文香科技有限公司 Virtual audio equipment, audio data processing method and device
CN113377329B (en) * 2021-07-01 2024-04-26 安徽文香科技股份有限公司 Virtual audio equipment, audio data processing method and device
CN115834757A (en) * 2021-09-17 2023-03-21 北京小米移动软件有限公司 Data transmission method, electronic device, communication system and readable storage medium

Also Published As

Publication number Publication date
WO2019223600A1 (en) 2019-11-28

Similar Documents

Publication Publication Date Title
CN108848410A (en) Bluetooth audio frequency transmission method, device and computer readable storage medium
CN110457256A (en) Date storage method, device, computer equipment and storage medium
JP6582100B2 (en) Method and apparatus for providing voice service
CN109857364A (en) Audio frequency playing method and device, storage medium, communication terminal
US20150148928A1 (en) Audio output device that utilizes policies to concurrently handle multiple audio streams from different source devices
EP3111738A1 (en) Method for controlling operation of an agricultural machine and system
US11626140B2 (en) Audio data processing method, electronic device, and storage medium
WO2016000528A1 (en) Audio output method and device
CN108901077A (en) Antenna accounting setting method, device, user equipment and storage medium
GB2438743A (en) User Interfaces for Electronic Devices
CN110336892B (en) Multi-device cooperation method and device
CN110175081A (en) A kind of optimization system and its method played for Android audio
CN111258530B (en) Audio playing control method, server and audio playing system
JP2023516905A (en) AUDIO DATA PROCESSING METHOD, DELAY TIME ACQUISITION METHOD, SERVER, AND COMPUTER PROGRAM
EP2733913A2 (en) Method and apparatus for communication between a vehicle based computing system and a remote application
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN108419108A (en) Sound control method, device, remote controler and computer storage media
JP2022088528A (en) In-vehicle calling method, device, electronic device, computer-readable storage medium, and computer program
CN110380944A (en) A kind of electronic equipment and its control method
CN113827953B (en) Game control system
WO2022042327A1 (en) Channel configuration method and device for audio drive motor
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
CN108924875A (en) priority setting method, device, user equipment and storage medium
CN114430410A (en) System access method, device and equipment based on virtual domain name
CN113411796A (en) Audio transmission system, method and storage medium for group-by-group Bluetooth device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120

RJ01 Rejection of invention patent application after publication