CN107329727A - Method for controlling volume, device and computer storage readable storage medium storing program for executing - Google Patents

Method for controlling volume, device and computer storage readable storage medium storing program for executing Download PDF

Info

Publication number
CN107329727A
CN107329727A CN201710485656.0A CN201710485656A CN107329727A CN 107329727 A CN107329727 A CN 107329727A CN 201710485656 A CN201710485656 A CN 201710485656A CN 107329727 A CN107329727 A CN 107329727A
Authority
CN
China
Prior art keywords
audio stream
pcm
pcm audio
volume
bluetooth
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
CN201710485656.0A
Other languages
Chinese (zh)
Other versions
CN107329727B (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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201710485656.0A priority Critical patent/CN107329727B/en
Publication of CN107329727A publication Critical patent/CN107329727A/en
Application granted granted Critical
Publication of CN107329727B publication Critical patent/CN107329727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The invention discloses a kind of method for controlling volume, device and the computer-readable recording medium of the Bluetooth audio device external to terminal, belong to field of terminal technology.This method includes:The pulse code modulation PCM audio stream that voice data parsing to be played is obtained is copied, and obtains two-way identical PCM audio stream;If detecting Bluetooth audio device to have connected, instructed according to volume adjusting, regulation wherein PCM amplitudes of PCM audio stream all the way, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume adjusting;Pcm audio all the way after regulation is streamed to external Bluetooth audio device, to cause external Bluetooth audio device to carry out sound output based on the PCM audio stream all the way after regulation.The present invention obtains two-way identical PCM audio stream by being copied in end side to the progress of PCM audio stream, Bluetooth audio device is directly carried out sound broadcasting according to the PCM audio stream after regulation, improves the efficiency of volume adjusting.

Description

Method for controlling volume, device and computer storage readable storage medium storing program for executing
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method for controlling volume, device and computer storage are readable Storage medium.
Background technology
With the development of technology, user is carrying out broadcasting for voice data using terminals such as intelligent television, tablet personal computers When putting, in order to obtain more preferable acoustical quality experience, it will usually carry out the broadcasting of voice data, the intelligence by intelligent radio sound equipment Energy wireless acoustics have remote control function.Such as, when the intelligent radio sound equipment is Bluetooth audio device, the Bluetooth audio device can be with Intelligent television pairing is used, and be that is to say and is played out the sound of intelligent television by Bluetooth audio device.Work as when user needs to adjust During the volume of the voice data of preceding broadcasting, Bluetooth audio device and user it is distant in the case of, user may be inconvenient to Adjust the knob on Bluetooth audio device to control volume, now, user can pass through TV remote controller and control Bluetooth audio device Volume.
Now the operation for adjusting volume is illustrated by taking Bluetooth audio device as an example.In correlation technique, terminal passes through Bluetooth audio device During playing audio-fequency data, currently playing voice data first can be resolved into PCM (Pulse Code Modulation, pulse Coded modulation) form audio stream, then the audio stream of PCM format is encoded to SBC (Sub Band Codec, subband coding) The audio stream of form, and by the audio streams of the SBC forms to Bluetooth audio device.When Bluetooth audio device receives terminal transmission , can be by the audio stream that the audio stream of the SBC forms is PCM format, and according to PCM format during the audio stream of SBC forms Audio stream amplitude carry out audio broadcasting.In audio playing process, when terminal receives volume adjusting instruction, Ke Yitong AVRCP (Audio/Video Remote Control Profile, audio/video remote control specification) agreements are crossed to bluetooth sound Ring and send the volume adjusting instruction for carrying target volume information., can be by when Bluetooth audio device receives the audio regulating command The amplitude of the audio stream of PCM format is adjusted according to target volume information, by the volume of the currently playing voice data It is adjusted to target volume.
But, because the AVRCP protocol versions of many Bluetooth audio devices on the market are relatively low or do not support AVRCP agreements, lead Bluetooth audio device is caused to be unable to the volume adjusting instruction that processing terminal is sent by AVRCP agreements.For such intelligent radio sound equipment, If the user desired that during the volume of regulation Bluetooth audio device playing audio-fequency data, then the button on necessary manual rotation Bluetooth audio device comes Volume is adjusted, so as to be made troubles for user, the efficiency of volume adjusting is reduced.In addition, possessing for such compared with lowest version AVRCP agreements or the Bluetooth audio device for not supporting AVRCP agreements, when the volume that Baffle Box of Bluetooth is not adjusted by AVRCP agreements, but When in end side, regulation is inputted to the volume of the audio stream of Bluetooth audio device, although it is also possible that the broadcast sound volume of Baffle Box of Bluetooth becomes Change, but the volume of all audio output ports of terminal can be caused all to change therewith, if now disconnect Bluetooth audio device and The connection of terminal, then terminal can be switched to the audio output apparatus of itself, such as loudspeaker, now user find the sound of terminal itself The volume of the voice data of frequency output equipment output also changes simultaneously;
That is, user is it is desirable that during by the volume that adjusts Bluetooth audio device, if Bluetooth audio device can not be supported to pass through AVRCP protocol analysis volume adjusting is instructed, if it has to be adjusted the amplitude of PCM audio stream in terminal side, but this Planting adjustment can cause the volume of not only Bluetooth audio device to change, and the volume of other all audio output ports all can be therewith Change, i.e., can not realize and the volume of Bluetooth audio device is individually handled, so as to have impact on Consumer's Experience.
The content of the invention
In order to improve the efficiency and user's viscosity of volume adjusting, the embodiments of the invention provide a kind of external bluetooth of terminal Method for controlling volume, device and the computer-readable recording medium of sound equipment.The technical scheme is as follows:
First aspect includes there is provided a kind of method for controlling volume of the external Bluetooth audio device of terminal, methods described:
The pulse code modulation PCM audio stream that voice data parsing to be played is obtained is copied, and obtains two-way phase Same PCM audio stream;
If detecting Bluetooth audio device to have connected, instructed according to volume adjusting, adjust the wherein all the way PCM of PCM audio stream Amplitude, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume adjusting;
By pcm audio is streamed to external Bluetooth audio device all the way described in after regulation, to cause the external bluetooth Sound equipment is based on PCM audio stream carries out sound output all the way described in after regulation.
Alternatively, the PCM audio stream that voice data parsing to be played is obtained is copied, including:
The first audio stream buffer area is created, the first audio stream buffer area is used to buffer input to the external intelligence The PCM audio stream of wireless acoustics;
PCM audio stream in second audio stream buffer area is copied in the first audio stream buffer area, described second Audio stream buffer area is used to buffer the pulse code modulation PCM audio stream for obtaining voice data parsing to be played.
Alternatively, it is described to be instructed according to volume adjusting, regulation wherein PCM amplitudes of PCM audio stream all the way, including:
Based on the volume adjusting instruction received, the PCM amplitudes of the PCM audio stream in the first audio stream buffer area are adjusted.
Alternatively, the pulse code modulation PCM audio stream that voice data parsing to be played is obtained is copied Before, in addition to:
When receiving mode selection command, display pattern selection interface, the model selection interface is used to point out to sound Amount regulative mode is selected;
When receiving the instruction by terminal progress volume adjusting based on the model selection interface, execution is described will to be waited to broadcast The operation that the pulse code modulation PCM audio stream that the voice data parsing put is obtained is copied.
Alternatively, it is described by pcm audio is streamed to external Bluetooth audio device all the way described in after regulation, including:
By PCM audio stream carries out SBC protocol code encapsulation all the way described in after regulation;
Pcm audio after the encapsulation is streamed to by the external Bluetooth audio device by Bluetooth signal.
Second aspect includes there is provided a kind of sound volume control device of the Bluetooth audio device external to terminal, described device:
Module is copied, the inceptive impulse coded modulation pcm audio for voice data parsing to be played to be obtained is flowed into Row copy, obtains two-way identical PCM audio stream;
Adjustment module, if having been connected for detecting Bluetooth audio device, is instructed according to volume adjusting, and regulation is wherein all the way The PCM amplitudes of PCM audio stream, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume tune Section;
Transport module, for by pcm audio is streamed to external Bluetooth audio device all the way described in after regulation, to cause External Bluetooth audio device is stated based on PCM audio stream carries out sound output all the way described in after regulation.
Alternatively, the copy module includes:
Submodule is created, for creating the first audio stream buffer area, the first audio stream buffer area, which is used to buffer, to be inputted To the PCM audio stream of the external intelligent radio sound equipment;
Submodule is copied, is delayed for the PCM audio stream in the second audio stream buffer area to be copied into first audio stream Rush in area, the second audio stream buffer area is used to buffer the pulse code modulation for obtaining voice data parsing to be played PCM audio stream.
Alternatively, the adjustment module is used for:
Based on the volume adjusting instruction received, the PCM amplitudes of the PCM audio stream in the first audio stream buffer area are adjusted.
Alternatively, described device also includes:
Display module, for when receiving mode selection command, display pattern selection interface, the model selection interface For pointing out to select volume adjusting mode;
Trigger module, for when based on the model selection interface receive by terminal carry out volume adjusting instruction when, The triggering copy module is copied the pulse code modulation PCM audio stream that voice data parsing to be played is obtained.
Alternatively, the transport module includes:
Submodule is encapsulated, for by PCM audio stream carries out SBC protocol code encapsulation all the way described in after regulation;
Submodule is transmitted, for the pcm audio after the encapsulation to be streamed into the external indigo plant by Bluetooth signal Tooth sound equipment.
The third aspect contains computer program there is provided a kind of computer-readable recording medium, the storage medium internal memory, The computer program realizes the method described in above-mentioned first aspect when being executed by processor.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:In embodiments of the present invention, can be to solution The PCM audio stream that analysis voice data to be played is obtained is copied, and obtains two-way identical PCM audio stream, and carrying out sound , can be to wherein the PCM amplitudes of PCM audio stream be adjusted all the way if being connected with Bluetooth audio device during amount regulation, and will adjust PCM audio stream after section is sent to Bluetooth audio device, so that Bluetooth audio device is directly based upon the PCM audio stream after adjustment and carries out sound Output, is supported without AVRCP agreements, simultaneously because volume adjusting instruction is simply to wherein the PCM amplitudes of PCM audio stream are entered all the way Row regulation, the audio output apparatus such as loudspeaker of terminal itself can carry out volume adjusting based on another road PCM audio stream, pass through two Road PCM audio stream can make a distinction control to external Bluetooth audio device and the audio output apparatus of itself, realize to bluetooth The volume of sound equipment is individually handled, and facilitates the volume of user's remote adjustment Bluetooth audio device, improves the efficiency and use of volume adjusting Family viscosity.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Figure 1A is a kind of structure of the sound-volume control system of Bluetooth audio device external to terminal provided in an embodiment of the present invention Schematic diagram;
Figure 1B is the knot of the sound-volume control system of another Bluetooth audio device external to terminal provided in an embodiment of the present invention Structure schematic diagram;
Fig. 1 C are the knots of the sound-volume control system of another Bluetooth audio device external to terminal provided in an embodiment of the present invention Structure schematic diagram;
Fig. 2A is a kind of PCM audio stream transmission path schematic diagram provided in an embodiment of the present invention;
Fig. 2 B are a kind of flows of the method for controlling volume of Bluetooth audio device external to terminal provided in an embodiment of the present invention Figure;
Fig. 3 A are a kind of structures of the sound volume control device of Bluetooth audio device external to terminal provided in an embodiment of the present invention Schematic diagram;
Fig. 3 B are a kind of structural representations for copying module provided in an embodiment of the present invention;
Fig. 3 C are the knots of the sound volume control device of another Bluetooth audio device external to terminal provided in an embodiment of the present invention Structure schematic diagram;
Fig. 3 D are a kind of structural representations of transport module provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Before detailed explanation is carried out to the embodiment of the present invention, the first application to being related in the embodiment of the present invention Scene and system architecture are explained respectively.
First, to the present embodiments relate to application scenarios be introduced.
When user is by voice data in intelligent radio sound equipment playback terminal, if currently playing voice data Volume is too high, then the hearing organ of user can be caused damage, or when causing to disturb residents because volume is too high, generally requires to working as The volume of the voice data of preceding broadcasting is adjusted.Certainly, too low in the volume of currently playing voice data, user can not listen During the content for the voice data played clearly, need also exist for carrying out volume adjusting.However, in order to reach preferable audio, Yong Hutong Intelligent radio sound equipment is often connected with terminal, such as, and Bluetooth audio device, and sound is played by the Bluetooth audio device.This In the case of, when user adjusts the volume of currently playing voice data, it is necessary to the volume of Bluetooth audio device playing audio-fequency data It is adjusted, rather than the volume of terminal itself playing audio-fequency data is adjusted.Because current Bluetooth audio device can not pass through The remote controllers of terminal are controlled, such as, and when TV connects Bluetooth audio device, the remote control of TV can not be to bluetooth sound Sound is controlled.Based on this scene, the embodiments of the invention provide it is a kind of being capable of the long-range Bluetooth audio device external to terminal The method that volume is controlled.
Finally, to the present embodiments relate to system architecture be introduced.
Figure 1A is a kind of structure of the sound-volume control system of Bluetooth audio device external to terminal provided in an embodiment of the present invention Schematic diagram, referring to Figure 1A, the sound-volume control system includes terminal 1 and intelligent radio sound equipment 2, and terminal 1 can be with intelligent radio sound Ring 2 wireless connections.Intelligent radio sound equipment 2 is illustrated by taking Bluetooth audio device as an example in embodiments of the present invention.When terminal 2 is passing through During 2 playing audio-fequency data of Bluetooth audio device, the PCM audio stream that terminal can obtain voice data parsing to be played is copied Shellfish, and need carry out volume adjusting when, can to wherein the PCM amplitudes of PCM audio stream are adjusted all the way, and will regulation after PCM audio stream input to Bluetooth audio device.When Bluetooth audio device receives the PCM audio stream after regulation, after the regulation PCM audio stream carries out sound output.
Example, terminal can be with order to realize to inputting to the volume adjusting of the PCM audio stream of Bluetooth audio device, in the terminal Including volume adjusting module 11 and audio stream output module 12.Referring to Figure 1B, volume adjusting module 11 and audio stream output module 12 connections, audio stream output module 12 can be connected with Bluetooth audio device 2 by Bluetooth signal.Terminal is by voice data to be played Parse obtained PCM audio stream to be copied, obtain after two-way identical PCM audio stream, currently entered by Bluetooth audio device The broadcasting of row voice data, and when needing to carry out volume adjusting, then volume adjusting module 11 can be to inputting to Bluetooth audio device 2 The PCM amplitudes of PCM audio stream are adjusted all the way, and the PCM audio stream all the way after regulation is inputted to audio stream output module 12, audio stream output module 12 is flowed into after the PCM audio stream all the way after receiving regulation to the pcm audio all the way after regulation Row SBC protocol encapsulations, and the copy PCM audio stream after encapsulation is exported to Bluetooth audio device 2.It should be noted that when the volume Adjustment module 11 can be with the wireless connection of Bluetooth audio device 2, and the volume control module 11 can carry out to the copy PCM audio stream During SBC protocol encapsulations, the terminal can not also include audio stream output module 12.
In addition, other modules can also be included in the terminal, such as, audio flow control module 13, loudspeaker can be included defeated Go out equipment 14 and SPDIE (Sony/Philips Digital Interface Format, Sony/philips digital interface lattice Formula) output equipment 15 etc..The audio flow control module 13 can respectively connect with loudspeaker output equipment 14 and SPDIE output equipments 15 Connect, and the audio flow control module 13 can set the audio output that the PCM audio stream that the parsing is obtained is exported to terminal itself In standby (loudspeaker output equipment 14 and SPDIE output equipments 15).Wherein, the volume adjusting module 11 and audio flow control module 11 Positioned at the SOC (System on Chip, System on Chip/SoC) 16 of terminal 1.
It should be noted that audio stream receiving module 21 and audio stream drive module 22, ginseng can be included in Bluetooth audio device 2 See Fig. 1 C, audio stream receiving module 21 can be connected with audio stream output module 12 by Bluetooth signal, and audio stream receives mould Block 21 is connected with audio stream drive module 22.Wherein, audio stream receiving module 21 can receive audio stream output module 12 and pass through The PCM audio stream of Bluetooth signal output, and the PCM audio stream is sent into audio stream drive module 22, audio stream drive module 22 Sound output can be carried out based on the PCM audio stream after the regulation.
Under normal circumstances, the voice data that terminal is played by intelligent radio sound equipment is in terminal and intelligent radio sound equipment Embodied in the form of PCM audio stream, it is following to be using intelligent radio sound equipment as Bluetooth audio device for the ease of the understanding of the present invention Example, and the transmission path of PCM audio stream is explained with reference to Fig. 2A.
In embodiments of the present invention, it is middle referring to Fig. 2A during terminal is by Bluetooth audio device playing audio-fequency data A2DP (AdvancedAudio Distribution Profile, Bluetooth audio frequency transport module that part (Middleware) includes Agreement) can parse need the voice data played parsed after PCM audio stream, and to the PCM audio stream after the parsing Copied, obtain two-way identical PCM audio stream., can be to wherein PCM audio stream all the way when needing regulation volume PCM amplitudes are adjusted, and the PCM audio stream all the way after regulation is sent to the management module included to class libraries (Library) (MTAL) in.The management module can carry out SBC protocol encapsulations to the PCM audio stream, and by the PCM audio stream all the way after encapsulation Send in the audio driven (Audio Driver) included to the kernel (Linux Kernel) of Bluetooth audio device, by the audio driven Carry out the broadcasting of voice data.
It should be noted that PCM data acquisition module (GetPcmData), the PCM data can be included in above-mentioned A2DP Acquisition module is the volume adjusting module shown in above-mentioned Figure 1B, and the management module is the audio stream output shown in above-mentioned Figure 1B Module, the audio driven that Bluetooth audio device kernel includes is the audio stream drive module shown in above-mentioned Fig. 1 C.
In addition, in embodiments of the present invention, referring to Fig. 2A, middleware can pass through logical with interface display module (WebUI) News encapsulation (RPCWrapper) is communicated, and the interface display module is used for the screen of management terminal.Wherein, in terminal to it In when PCM audio stream carries out PCM amplitude adjusteds all the way, current volume can be shown on the screen of terminal, the volume can be Shown in the form of display in the form of progress bar or numeral.Meanwhile, during volume adjusting is carried out, middleware Volume after regulation can be sent to interface display module, so that the change of volume can be shown on the screen of terminal in real time Change.
Furthermore, A2DP can be not only included in the middleware, other modules, such as, HID (Human can also be included Interface Device, human interface device), isolation gap (GAP) etc..It equally can not only include management mould in class libraries Block, can also include other modules, such as, external adapter layer (External AdapterLayer), built-in adapter layer (InternalAdapterLayer), Bluetooth protocol (Bluetooth Profile), blue-teeth data stack (Bluetooth Stack) etc..Wherein, external adapter layer can be communicated with A2DP, built-in adapter layer is communicated respectively.Certainly, Equally not only include audio driven in the kernel of Bluetooth audio device, other modules can also be included, such as, and bluetooth driving (Bluetooth Driver), Bluetooth chip (Bluetooth Chip) etc..Wherein, bluetooth driving can enter with blue-teeth data stack Row communication.
Fig. 2 B are a kind of flows of the method for controlling volume of Bluetooth audio device external to terminal provided in an embodiment of the present invention Figure, referring to Fig. 2 B, this method comprises the following steps.
Step 201:Terminal is copied the PCM audio stream that voice data parsing to be played is obtained, and obtains two-way phase Same PCM audio stream.
Wherein, when terminal is circumscribed with Bluetooth audio device, illustrate that terminal needs to carry out broadcasting for voice data by Bluetooth audio device Put, now, terminal can be copied to PCM audio stream.When terminal copies PCM audio stream, terminal can create the first sound Frequency streambuf, the first audio stream buffer area is used to buffer input to the PCM audio stream of external intelligent radio sound equipment;By second PCM audio stream in audio stream buffer area is copied in the first audio stream buffer area, and the second audio stream buffer area is used to buffer The PCM audio stream exported by the audio output apparatus of terminal itself (is namely obtained to voice data parsing to be played PCM audio stream).
It should be noted that terminal can be detected when having connected Bluetooth audio device, the PCM audio stream that copy parsing is obtained, Obtained PCM audio stream can also be parsed when being not connected with having Bluetooth audio device by copy.When terminal is being not connected with having Bluetooth audio device During the PCM audio stream that copy parsing is obtained, follow-up to have connected Bluetooth audio device once detecting, then terminal can be timely by wherein Audio stream is exported to Bluetooth audio device all the way, so as to improve the efficiency by Bluetooth audio device playing audio-fequency data.
Further, when being circumscribed with Bluetooth audio device due to terminal, if external Bluetooth audio device can pass through AVRCP agreements Volume adjusting is carried out, then the mode that the volume to Bluetooth audio device is adjusted potentially includes two kinds, therefore, terminal can be selected pair The mode that the volume of Bluetooth audio device is adjusted, concrete operations can be:When receiving mode selection command, mould can be shown Formula selection interface, the model selection interface is used to point out to select volume adjusting mode;When based on the model selection interface When receiving the instruction by terminal progress volume adjusting, the operation of step 201 is performed.Received when based on the model selection interface When carrying out the instruction of volume adjusting by Bluetooth audio device, the volume of Bluetooth audio device is adjusted by AVRCP agreements.
It should be noted that mode selection command is used to select volume adjusting mode, and the mode selection command It can be triggered by user by assigned operation, the assigned operation can be clicking operation, slide, voice operating etc..
Step 202:If detecting Bluetooth audio device to have connected, instructed according to volume adjusting, regulation wherein pcm audio all the way The PCM amplitudes of stream, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume adjusting.
The first audio stream buffer area is buffered in due to inputting to the PCM audio stream of Bluetooth audio device (copy PCM audio stream), because This, if terminal detects Bluetooth audio device and connected, can be delayed based on the volume adjusting instruction received, the first audio stream of regulation The PCM amplitudes of the PCM audio stream rushed in area.
In practice, any of two-way identical PCM audio stream can serve as adjusting the one of Bluetooth audio device volume all the way Road, for example, the PCM audio stream that initial parsing voice data is obtained adjusts the PCM audio stream of Bluetooth audio device volume as correspondence, The other PCM audio stream all the way that copy is obtained just carries out volume adjusting as the audio output apparatus of terminal itself, can also In turn, obtained PCM audio stream all the way will be copied as the PCM audio stream of correspondence regulation Bluetooth audio device volume, that is initially treated The PCM audio stream that the voice data parsing of broadcasting is obtained can just correspond to the volume of the audio output apparatus of regulation terminal itself, Two ways does not have essential difference, can select according to actual needs, the PCM audio stream all the way that following examples are all obtained with copy Related elaboration is done as the PCM audio stream all the way for Bluetooth audio device volume adjusting.
It should be noted that the volume adjusting is instructed for volume to be adjusted, volume adjusting instruction can by with Triggered by assigned operation at family.Wherein, volume adjusting intensity can be carried in volume adjusting instruction, the volume adjusting intensity can Think+1db (decibel) ,+2db ,+3db, -1db, -2db etc..It is+1db when carrying volume adjusting intensity in volume adjusting instruction When, illustrate that terminal needs increase 1db on the basis of the volume intensity of current audio stream, now, terminal can will copy pcm audio The PCM amplitudes of stream subtract 1.
What deserves to be explained is, terminal may receive only a volume adjusting instruction, it is also possible to receive multiple sounds Regulating command is measured, is instructed when terminal receives multiple volume adjustings, can be according to following two ways to copy PCM audio stream PCM amplitudes are adjusted.
First way, when connecing for being instructed in multiple volume adjustings instruction that terminal is received per two neighboring volume adjusting When difference between time receiving is less than preset duration, the volume adjusting instruction that terminal can be received based on last time, to this The PCM amplitudes of copy PCM audio stream are adjusted.
Wherein, the preset duration can be set in advance, such as, and the preset duration can be 2s (second), 3s, 4s etc..
It should be noted that when carrying volume adjusting intensity in volume adjusting instruction, terminal will can be received Volume adjusting intensity is carried in multiple volume adjusting instructions to be overlapped, and obtains Overlapping intensities, and receiving last sound When measuring adjusting strength, the PCM amplitudes for copying PCM audio stream are adjusted according to Overlapping intensities, so that the copy after regulation The volume of PCM audio stream for current PCM audio stream volume intensity and Overlapping intensities and.
Such as, audio stream current volume is 56db, and terminal receives 5 volume adjusting instructions, and two neighboring volume is adjusted When saving the difference between the reception time of instruction less than preset difference value 2s, if the volume carried in each volume adjusting instruction is strong When spending for+1db, then the copy PCM audio stream PCM amplitudes are entered in the volume adjusting instruction that terminal is received based on last time After row regulation, the volume 56db of the copy PCM audio stream is set to be adjusted to 61db.
The second way, when terminal receives multiple volume adjusting instructions, terminal need not determine that two neighboring volume is adjusted The difference between the reception time of instruction is saved, but often receives a volume adjusting instruction, just to copy PCM audio stream PCM amplitudes carry out Primary regulation.
Such as, terminal audio frequency stream current volume is 56db, and terminal receives 5 volume adjusting instructions, and each volume is adjusted When the volume intensity carried in section instruction is+1db, when terminal receives first volume adjusting instruction, to copy pcm audio The PCM amplitudes of stream carry out Primary regulation, and the volume adjusting for making copy PCM audio stream is 57db, when terminal receives second sound When measuring regulating command, Primary regulation is carried out to the PCM amplitudes for copying PCM audio stream, the volume adjusting for making copy PCM audio stream is 58db, when terminal receives the 3rd volume adjusting instruction, carries out Primary regulation to the PCM amplitudes for copying PCM audio stream, makes The volume adjusting for copying PCM audio stream is 59db, when terminal receives the 4th volume adjusting instruction, to copy pcm audio The PCM amplitudes of stream carry out Primary regulation, and the volume adjusting for making copy PCM audio stream is 60db, when terminal receives the 5th sound When measuring regulating command, Primary regulation is carried out to the PCM amplitudes for copying PCM audio stream, the volume adjusting for making copy PCM audio stream is 51db。
It should be noted that terminal can pass through PCM of the sound adjustment module shown in above-mentioned Figure 1B to copy PCM audio stream Amplitude is adjusted.
Furthermore, terminal can instruct the passive PCM amplitudes to copying PCM audio stream to be adjusted by volume adjusting, Actively the PCM amplitudes for copying PCM audio stream can be adjusted, and terminal is actively entered to the PCM amplitudes for copying PCM audio stream Row regulation operation can be:Terminal can detect the ambient noise for being presently in environment, when current in playing audio-fequency data When the volume of local environment noise is more than or equal to the volume of currently playing voice data, work as to allow users to catch Actively the amplitude for copying PCM audio stream can be adjusted for the content of the voice data of preceding broadcasting, terminal, to adjust broadcasting The volume of voice data, and preset volume threshold when being differed between the volume and the volume of ambient noise of currently playing voice data During value, stop that the PCM amplitudes for copying PCM audio stream are adjusted.
It should be noted that default volume threshold can be set in advance, such as, the default volume threshold can for 5db, 6db etc..
In addition, when terminal actively carries out volume adjusting, specifically volume adjusting operation may be referred to above-mentioned terminal and passively adjust The concrete operations of volume are saved, the embodiment of the present invention is no longer repeated this one by one.
Step 203:Terminal inputs the PCM audio stream all the way after regulation to external Bluetooth audio device.
From the foregoing, terminal can receive only a volume adjusting instruction, multiple volume adjustings can also be received Instruction, can be directly by regulation after the PCM amplitudes of PCM audio stream are adjusted based on a volume adjusting instruction for terminal PCM audio stream afterwards is inputted to external Bluetooth audio device.
Wherein, due to providing that all bluetooth equipments must support SBC to encode in Bluetooth protocol, it that is to say, terminal and bluetooth The information transmitted between sound equipment must be the information of SBC forms, therefore, and terminal is adjusted in the PCM amplitudes to PCM audio stream Afterwards, it is necessary to which the PCM audio stream all the way after regulation is carried out into SBC protocol code encapsulation;And by Bluetooth signal by the PCM after encapsulation Audio is streamed to external Bluetooth audio device.
It should be noted that terminal can be flowed into the pcm audio by the audio stream output module shown in above-mentioned Figure 1B Row SBC protocol codes are encapsulated, and then export the PCM audio stream all the way after regulation to external Bluetooth audio device.
Further, since terminal can also receive multiple volume adjusting instructions, and terminal is instructed based on multiple volume adjustings The mode that PCM amplitudes to PCM audio stream are adjusted can include above two mode, for different regulative modes, whole The situation for inputting the PCM audio stream after regulation to external Bluetooth audio device is held to include following two kinds of situations.
The first situation, is instructed when terminal receives multiple volume adjustings, and according to the instruction pair of last volume adjusting When the PCM amplitudes of PCM audio stream are adjusted, because terminal only carries out the PCM amplitude adjusteds of a PCM audio stream, in order to keep away Exempt from broadcasting of the Bluetooth audio device interruption to voice data, the PCM audio stream all the way that the terminal will can not carry out PCM amplitude adjusteds is sent out Deliver to Bluetooth audio device;After the PCM amplitude adjusteds of PCM audio stream are completed, the PCM audio stream after regulation is sent to bluetooth sound Ring.It that is to say, during terminal receives multiple volume adjusting instructions, Bluetooth audio device, which remains unchanged, can play without volume adjusting Copy PCM audio stream.
Such as, instructed when terminal receives 5 volume adjustings, and the tune of a PCM amplitude is carried out to PCM audio stream all the way Section, when the volume of PCM audio stream is changed into 61db from 56db, the PCM audio stream that volume can be changed into 61db by the terminal is sent To Bluetooth audio device, and the terminal is during 5 volume adjusting instructions are received, can be by PCM audio stream of the volume for 56db Send to Bluetooth audio device.
What deserves to be explained is, instructed when terminal receives multiple volume adjustings, and instructed according to last volume adjusting When carrying out PCM amplitude adjusteds to PCM audio stream all the way, because terminal only carries out the regulation operation of a PCM amplitude, without carrying out Repeatedly regulation, so as to save the resource consumption of terminal.
Second of situation, when terminal often receives a volume adjusting instruction, just to wherein PCM audio stream carries out one all the way During the regulation of secondary PCM amplitudes, because the PCM audio stream that terminal is sent to Bluetooth audio device will not be interrupted, therefore, terminal is connecing Multiple volume adjusting instructions are received, and the PCM amplitudes of PCM audio stream are repeatedly adjusted according to the instruction of the plurality of volume adjusting When, the PCM amplitudes of PCM audio stream can be adjusted with side, while sending the PCM audio stream all the way after regulation to Bluetooth audio device.
Such as, instructed when terminal receives first volume adjusting, and the volume of PCM audio stream all the way is adjusted by 56db During for 57db, volume can be sent to Bluetooth audio device for 57db PCM audio stream;When terminal receives second volume adjusting Instruction, when the volume of Bing Jianggai roads PCM audio stream is adjusted to 58db by 57db, can send out volume for 58db PCM audio stream Deliver to Bluetooth audio device;When terminal receives the 3rd volume adjusting instruction, the volume of Bing Jianggai roads PCM audio stream is adjusted by 58db During for 59db, volume can be sent to Bluetooth audio device for 59db PCM audio stream.
What deserves to be explained is, because terminal can be when often receiving a volume adjusting instruction, to PCM audio stream all the way The regulation of a PCM amplitude is carried out, and often adjusts once the PCM amplitudes of the road PCM audio stream, just by the pcm audio after regulation Stream is sent to Bluetooth audio device.Therefore, Bluetooth audio device subsequently can broadcast sound volume changes in real time PCM audio stream all the way, and In the PCM audio stream all the way that Bluetooth audio device broadcast sound volume changes, user can hear different volumes, so that user exists When hearing suitable volume, stop triggering volume regulating command, it is ensured that the volume for the voice data that Bluetooth audio device is finally played The volume for wishing to hear for user, so as to improve user's viscosity.
Further, because the volume adjusting degree of terminal-pair PCM audio stream all the way is larger so that Bluetooth audio device plays sound Frequency according to when, the volume of broadcasting is larger, it is likely that can impaired user hearing cause damage, while larger volume will be bothered Other people, so as to bring unnecessary trouble.Therefore, in order to avoid occurring above mentioned problem, terminal can detect one after regulation Whether the volume of road PCM audio stream is more than safe volume threshold;The volume of PCM audio stream after regulation is more than the safe volume , can be with display reminding information during threshold value, whether the prompt message is used to point out to continue to adjust the volume of the road PCM audio stream Section;When receiving determination regulating command, the PCM audio stream after regulation is inputted to external Bluetooth audio device.
It should be noted that safe volume threshold can be set in advance, such as, the safe volume threshold can for 50db, 60db, 70db etc..The determination regulating command is used for the volume for determining to continue to adjust the road PCM audio stream, and the determination is adjusted Instruction can equally be triggered by user by assigned operation.
Such as, when terminal by the volume adjusting of PCM audio stream all the way to 61db when, target volume 61db be more than safe sound Measure threshold value 60db, therefore, the terminal can with display reminding information " continue increase volume will damage hearing, if continue adjust ", When receiving determination regulating command, the PCM audio stream after regulation is inputted to external Bluetooth audio device.
In addition, when the volume that terminal detects the PCM audio stream all the way after regulation is less than or equal to safe volume threshold, The terminal directly can input the PCM audio stream after regulation to external Bluetooth audio device, without doing other operations.
Step 204:The PCM audio stream that Bluetooth audio device receiving terminal is sent, and sound output is carried out based on PCM audio stream.
Wherein, when Bluetooth audio device receives PCM audio stream all the way, because terminal is sent to the pcm audio of Bluetooth audio device Stream passes through SBC protocol encapsulations, and therefore, Bluetooth audio device is for smooth playing audio-fequency data, and the Bluetooth audio device is needed the SBC agreements The PCM audio stream of encapsulation is unsealed, and then carries out the broadcasting of voice data.
What deserves to be explained is, due to the PCM that the PCM audio stream all the way that terminal is sent to Bluetooth audio device is adjusted good volume Audio stream, therefore, Bluetooth audio device are adjusted without the volume of Zai Duigai roads PCM audio stream, that is to say, Bluetooth audio device need not The support of AVRCP agreements, so as to even if not supporting the Bluetooth audio device of AVRCP agreements can also remotely to carry out volume adjusting, expand The scope of application of volume adjusting.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:In embodiments of the present invention, can be to solution The PCM audio stream that analysis voice data to be played is obtained is copied, and obtains two-way identical PCM audio stream, and carrying out sound , can be to wherein the PCM amplitudes of PCM audio stream be adjusted all the way if being connected with Bluetooth audio device during amount regulation, and will adjust PCM audio stream after section is sent to Bluetooth audio device, so that Bluetooth audio device is directly based upon the PCM audio stream after adjustment and carries out sound Output, is supported without AVRCP agreements, simultaneously because volume adjusting instruction is simply to wherein the PCM amplitudes of PCM audio stream are entered all the way Row regulation, the audio output apparatus such as loudspeaker of terminal itself can carry out volume adjusting based on another road PCM audio stream, pass through two Road PCM audio stream can make a distinction control to external Bluetooth audio device and the audio output apparatus of itself, realize to bluetooth The volume of sound equipment is individually handled, and facilitates the volume of user's remote adjustment Bluetooth audio device, improves the efficiency and use of volume adjusting Family viscosity.
Fig. 3 A are a kind of block diagram of the sound volume control device of the Bluetooth audio device external to terminal provided in an embodiment of the present invention, Referring to Fig. 3 A, the volume adjustment device being implemented in combination with by software, hardware or both.The device includes copy module 301st, adjustment module 302 and transport module 303;
Module 301 is copied, for the inceptive impulse coded modulation PCM audio stream for obtaining voice data parsing to be played Copied, obtain two-way identical PCM audio stream;
Adjustment module 302, if having been connected for detecting Bluetooth audio device, is instructed according to volume adjusting, regulation wherein one The PCM amplitudes of road PCM audio stream, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume tune Section;
Transport module 303, for by pcm audio is streamed to external Bluetooth audio device all the way described in after regulation, so that The external Bluetooth audio device based on PCM audio stream carries out sound output all the way described in after regulation.
Alternatively, referring to Fig. 3 B, the copy module 301 includes:
Submodule 3011 is created, for creating the first audio stream buffer area, the first audio stream buffer area is defeated for buffering Enter to the PCM audio stream of the external intelligent radio sound equipment;
Submodule 3012 is copied, for the PCM audio stream in the second audio stream buffer area to be copied into first audio stream In buffering area, the second audio stream buffer area is used to buffer the pulse code modulation for obtaining voice data parsing to be played PCM audio stream.
Alternatively, the adjustment module 302 is used for:
Based on the volume adjusting instruction received, the PCM amplitudes of the PCM audio stream in the first audio stream buffer area are adjusted.
Alternatively, referring to Fig. 3 C, the device also includes:
Display module 304, for when receiving mode selection command, display pattern selection interface, model selection circle Face is used to point out to select volume adjusting mode;
Trigger module 305, for when based on the model selection interface receive by terminal carry out volume adjusting instruction when, The copy module is triggered to be copied the pulse code modulation PCM audio stream that voice data parsing to be played is obtained.
Alternatively, referring to Fig. 3 D, the transport module 303 includes:
Encapsulate submodule 3031, for this to be adjusted after described in all the way PCM audio stream carry out SBC protocol code encapsulation;
Submodule 3032 is transmitted, for the pcm audio after encapsulating to be streamed into the external indigo plant by Bluetooth signal Tooth sound equipment.
In summary, in embodiments of the present invention, the pcm audio that can be obtained to parsing voice data to be played is flowed into Row copy, obtains two-way identical PCM audio stream, and when carrying out volume adjusting, can be right if being connected with Bluetooth audio device Wherein the PCM amplitudes of PCM audio stream are adjusted all the way, and the PCM audio stream after regulation is sent to Bluetooth audio device, so that Bluetooth audio device is directly based upon the PCM audio stream after adjustment and carries out sound output, is supported without AVRCP agreements, simultaneously because volume Regulating command is simply to wherein the PCM amplitudes of PCM audio stream are adjusted all the way, the audio output apparatus such as loudspeaker of terminal itself , volume adjusting can be carried out based on another road PCM audio stream, by two-way PCM audio stream can to external Bluetooth audio device and The audio output apparatus of itself makes a distinction control, realizes and the volume of Bluetooth audio device is individually handled, facilitate user long-range The volume of Bluetooth audio device is adjusted, the efficiency and user's viscosity of volume adjusting is improved.
Fig. 4 is a kind of block diagram of terminal 400 according to an exemplary embodiment.For example, terminal 400 can be mobile Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
Reference picture 4, terminal 400 can include following one or more assemblies:Processing assembly 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
The integrated operation of the usual control terminal 400 of processing assembly 402, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 402 can include one or more modules, just Interaction between processing assembly 402 and other assemblies.For example, processing assembly 402 can include multi-media module, it is many to facilitate Interaction between media component 408 and processing assembly 402.
Memory 404 is configured as storing various types of data supporting the operation in terminal 400.These data are shown Example includes the instruction of any application program or method for being operated in terminal 400, and contact data, telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of terminal 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing power supply for terminal 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between the terminal 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 408 includes a front camera and/or rear camera.When terminal 400 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when terminal 400 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 is provide interface between processing assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for terminal 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of terminal 400, the relative positioning of component is for example described Component is the display and keypad of terminal 400, and sensor cluster 414 can also detect 400 1 components of terminal 400 or terminal Position change, the existence or non-existence that user contacts with terminal 400, the orientation of terminal 400 or acceleration/deceleration and terminal 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal 400 and other equipment.Terminal 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 400 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned Fig. 2 B illustrated embodiments The method of offer.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of terminal 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that mobile terminal is able to carry out the method that above-mentioned Fig. 2 B illustrated embodiments are provided.
It should be noted that:The volume adjustment device that above-described embodiment is provided is when adjusting volume, only with above-mentioned each function The division progress of module is for example, in practical application, as needed can distribute above-mentioned functions by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above Energy.In addition, the volume adjustment device that above-described embodiment is provided belongs to same design with volume adjusting method embodiment, it is specific real Existing process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of method for controlling volume of the Bluetooth audio device external to terminal, it is characterised in that methods described includes:
The pulse code modulation PCM audio stream that voice data parsing to be played is obtained is copied, and obtains two-way identical PCM audio stream;
If detecting Bluetooth audio device to have connected, instructed according to volume adjusting, regulation wherein PCM amplitudes of PCM audio stream all the way, Wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume adjusting;
By pcm audio is streamed to external Bluetooth audio device all the way described in after regulation, to cause the external Bluetooth audio device Based on PCM audio stream carries out sound output all the way described in after regulation.
2. the method as described in claim 1, it is characterised in that the PCM sounds for obtaining voice data parsing to be played Frequency stream is copied, including:
The first audio stream buffer area is created, the first audio stream buffer area is used to buffer input to the external intelligent radio The PCM audio stream of sound equipment;
PCM audio stream in second audio stream buffer area is copied in the first audio stream buffer area, second audio Streambuf is used to buffer the pulse code modulation PCM audio stream for obtaining voice data parsing to be played.
3. method as claimed in claim 2, it is characterised in that described to be instructed according to volume adjusting, regulation wherein PCM sounds all the way The PCM amplitudes of frequency stream, including:
Based on the volume adjusting instruction received, the PCM amplitudes of the PCM audio stream in the first audio stream buffer area are adjusted.
4. the method as described in claim 1, it is characterised in that the pulse for obtaining voice data parsing to be played is compiled Before code modulation PCM audio stream is copied, in addition to:
When receiving mode selection command, display pattern selection interface, the model selection interface is used to point out to adjust volume Section mode is selected;
When receiving the instruction by terminal progress volume adjusting based on the model selection interface, execution is described will be to be played The operation that the pulse code modulation PCM audio stream that voice data parsing is obtained is copied.
5. the method as described in claim 1-4 is any, it is characterised in that described by PCM audio stream all the way described in after regulation Transmit to external Bluetooth audio device, including:
By PCM audio stream carries out SBC protocol code encapsulation all the way described in after regulation;
Pcm audio after the encapsulation is streamed to by the external Bluetooth audio device by Bluetooth signal.
6. a kind of sound volume control device of the Bluetooth audio device external to terminal, it is characterised in that described device includes:
Module is copied, the inceptive impulse coded modulation PCM audio stream for voice data parsing to be played to be obtained is copied Shellfish, obtains two-way identical PCM audio stream;
Adjustment module, if having been connected for detecting Bluetooth audio device, is instructed according to volume adjusting, regulation wherein PCM sounds all the way The PCM amplitudes of frequency stream, wherein, the audio output apparatus of terminal itself is based on another road PCM audio stream and carries out volume adjusting;
Transport module, it is described outer to cause for by pcm audio is streamed to external Bluetooth audio device all the way described in after regulation The Bluetooth audio device connect is based on PCM audio stream carries out sound output all the way described in after regulation.
7. device as claimed in claim 6, it is characterised in that the copy module includes:
Submodule is created, for creating the first audio stream buffer area, the first audio stream buffer area is used to buffer input to institute State the PCM audio stream of external intelligent radio sound equipment;
Submodule is copied, for the PCM audio stream in the second audio stream buffer area to be copied into the first audio stream buffer area In, the second audio stream buffer area is used to buffer the pulse code modulation PCM sounds for obtaining voice data parsing to be played Frequency flows.
8. device as claimed in claim 7, it is characterised in that the adjustment module is used for:
Based on the volume adjusting instruction received, the PCM amplitudes of the PCM audio stream in the first audio stream buffer area are adjusted.
9. device as claimed in claim 6, it is characterised in that described device also includes:
Display module, for when receiving mode selection command, display pattern selection interface, the model selection interface to be used for Prompting is selected volume adjusting mode;
Trigger module, for when receiving the instruction by terminal progress volume adjusting based on the model selection interface, triggering The copy module is copied the pulse code modulation PCM audio stream that voice data parsing to be played is obtained.
10. a kind of computer-readable recording medium, it is characterised in that the storage medium internal memory contains computer program, described Claim 1-5 any described methods are realized when computer program is executed by processor.
CN201710485656.0A 2017-06-23 2017-06-23 Volume control method and device and computer storage readable storage medium Active CN107329727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710485656.0A CN107329727B (en) 2017-06-23 2017-06-23 Volume control method and device and computer storage readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710485656.0A CN107329727B (en) 2017-06-23 2017-06-23 Volume control method and device and computer storage readable storage medium

Publications (2)

Publication Number Publication Date
CN107329727A true CN107329727A (en) 2017-11-07
CN107329727B CN107329727B (en) 2020-06-09

Family

ID=60195690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710485656.0A Active CN107329727B (en) 2017-06-23 2017-06-23 Volume control method and device and computer storage readable storage medium

Country Status (1)

Country Link
CN (1) CN107329727B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391203A (en) * 2018-02-27 2018-08-10 Tcl通力电子(惠州)有限公司 Audio playing control method and device, audio playing equipment and system
CN109068171A (en) * 2018-09-25 2018-12-21 四川长虹电器股份有限公司 The method of specific audio frequency fluid sound amount is limited in smart television
CN110347367A (en) * 2019-07-15 2019-10-18 百度在线网络技术(北京)有限公司 Volume adjusting method, terminal device, storage medium and electronic equipment
CN112420064A (en) * 2020-10-21 2021-02-26 深圳创维-Rgb电子有限公司 Voice echo cancellation processing method and device for wireless sound box equipment and intelligent terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281228A1 (en) * 2009-05-01 2010-11-04 Wade Gregory L Data allocation system
CN102075891A (en) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 Mobile phone answering method and system based on personal network
CN104486712A (en) * 2014-12-29 2015-04-01 广东欧珀移动通信有限公司 Volume adjusting method and device of wireless loudspeaker box system
CN105704603A (en) * 2016-02-02 2016-06-22 王金龙 Bluetooth earphone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281228A1 (en) * 2009-05-01 2010-11-04 Wade Gregory L Data allocation system
CN102075891A (en) * 2009-11-24 2011-05-25 中兴通讯股份有限公司 Mobile phone answering method and system based on personal network
CN104486712A (en) * 2014-12-29 2015-04-01 广东欧珀移动通信有限公司 Volume adjusting method and device of wireless loudspeaker box system
CN105704603A (en) * 2016-02-02 2016-06-22 王金龙 Bluetooth earphone

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391203A (en) * 2018-02-27 2018-08-10 Tcl通力电子(惠州)有限公司 Audio playing control method and device, audio playing equipment and system
CN108391203B (en) * 2018-02-27 2021-08-24 Tcl通力电子(惠州)有限公司 Audio playing control method and device, audio playing equipment and system
CN109068171A (en) * 2018-09-25 2018-12-21 四川长虹电器股份有限公司 The method of specific audio frequency fluid sound amount is limited in smart television
CN109068171B (en) * 2018-09-25 2020-10-23 四川长虹电器股份有限公司 Method for limiting volume of specified audio stream in smart television
CN110347367A (en) * 2019-07-15 2019-10-18 百度在线网络技术(北京)有限公司 Volume adjusting method, terminal device, storage medium and electronic equipment
CN110347367B (en) * 2019-07-15 2023-06-20 百度在线网络技术(北京)有限公司 Volume adjusting method, terminal device, storage medium and electronic device
CN112420064A (en) * 2020-10-21 2021-02-26 深圳创维-Rgb电子有限公司 Voice echo cancellation processing method and device for wireless sound box equipment and intelligent terminal
CN112420064B (en) * 2020-10-21 2024-04-02 深圳创维-Rgb电子有限公司 Voice echo cancellation processing method and device for wireless loudspeaker box equipment and intelligent terminal

Also Published As

Publication number Publication date
CN107329727B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
EP3163748B1 (en) Method, device and terminal for adjusting volume
CN107329727A (en) Method for controlling volume, device and computer storage readable storage medium storing program for executing
CN105163366B (en) Wireless network connecting method and device
CN106454644B (en) Audio playing method and device
US8036650B2 (en) Mobile terminal for remotely controlling and method of remotely controlling the same
CN104636110B (en) Control the method and device of volume
EP2248271A1 (en) Headset as hub in remote control system
KR20090007694A (en) Audio headset
CN106371799A (en) Volume control method and device for multimedia playback equipment
CN1652627A (en) Information processing device
CN103873798A (en) Sound playing method and device for intelligent television
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
US7433704B2 (en) Portable communication terminal
CN106357883A (en) Audio playing method and device thereof as well as playing system
CN108270922A (en) Method of speech processing and device
CN110290441A (en) A kind of wireless headset control method, device and wireless headset and storage medium
CN107105339A (en) A kind of methods, devices and systems for playing live video
CN106357913A (en) Method and device for prompting information
CN104682908A (en) Method and device for controlling volume
CN104881981A (en) Methods and devices for transmitting and receiving key instructions
CN107124679A (en) The method and apparatus that multimedia file is played
US8781138B2 (en) Method for outputting background sound and mobile communication terminal using the same
WO2023051083A1 (en) Audio control method, electronic device, and audio playback system
US9473093B2 (en) Method and apparatus for ultrasonic triggered audio reduction
US20070195962A1 (en) Apparatus and method for outputting audio data using wireless terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

GR01 Patent grant
GR01 Patent grant