CN104254007B - A kind of audio-frequency processing method and device - Google Patents
A kind of audio-frequency processing method and device Download PDFInfo
- Publication number
- CN104254007B CN104254007B CN201410446589.8A CN201410446589A CN104254007B CN 104254007 B CN104254007 B CN 104254007B CN 201410446589 A CN201410446589 A CN 201410446589A CN 104254007 B CN104254007 B CN 104254007B
- Authority
- CN
- China
- Prior art keywords
- television equipment
- voice data
- mobile terminal
- sample
- sampling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The embodiment of the invention discloses a kind of audio-frequency processing method and device, the method for the embodiment of the present invention includes:Television equipment receives audio transmission request message, media player parameter and the Playout delay that mobile terminal is sent, and the media player parameter includes the minimum amount of audio data needed for media player progress audio is played;The television equipment determines the sample rate of voice data according to the default time delay of the media player parameter, Playout delay and first, television equipment sample delay, network transfer delay;The television equipment gathers the voice data being currently played according to the sample rate of the voice data, and the voice data collected is sent to the mobile terminal, realize the media player parameter for mobile terminal, intelligently set sample rate, so that the propagation delay time of the voice data of transmitting terminal and receiving terminal is effectively reduced, the demand that user's smoothness is used is met.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of audio-frequency processing method and device.
Background technology
With becoming better and approaching perfection day by day for Internet technology and continuing to develop for electronic product, the application of multi-screen interactive technology is increasingly
Extensively.User is while many independent internet electronic equipment is possessed, it is desirable to enjoy more comfortable, easily audiovisual body
Test, especially in family and meeting occasion.For example, in effective scope, user leaves television equipment, other things are being operated
Also the contents such as the audio frequency and video of TV can be listened to/seen in the case of feelings.
The audio, video data of television equipment is transferred into mobile terminal by network in the prior art to play out, and then realized
This application.In the case where there is this demand in numerous users, while obtain video make it that the load of system is very big with audio,
And transmission rate can be caused slow and data easy to lose.Therefore, the voice data of television equipment is individually transferred to mobile terminal,
The voice data is exported by the media player of mobile terminal, the effect of the effectively load of reduction system can be reached.
It is currently played however, the mode for individually carrying out voice data transmission in the prior art is television equipment collection
Voice data, is transferred to mobile terminal to play out, and because the media player of mobile terminal has different performances, is connecing
During receiving the voice data of television equipment transmission and playing out, often there is the problem of time delay is larger, have a strong impact on
The audibility of user.
The content of the invention
The present invention is provided according to a kind of audio-frequency processing method and device, to solve the sound of television equipment in the prior art
Frequency evidence is transferred to the larger technical problem of the time delay occurred when mobile terminal is played out.
The embodiment of the present invention provides a kind of audio-frequency processing method, including:
Television equipment receives audio transmission request message, media player parameter and the Playout delay that mobile terminal is sent,
The media player parameter includes media player and carries out the required minimum amount of audio data of audio broadcasting;
The television equipment is according to the media player parameter, Playout delay and first default time delay, television equipment
Sample delay, network transfer delay determine the sample rate of voice data;
The television equipment gathers the voice data being currently played according to the sample rate of the voice data, and will adopt
The voice data collected is sent to the mobile terminal.
The embodiment of the present invention provides a kind of television equipment, including:Control module and audio processing modules;
The control module, for receive mobile terminal transmission audio transmission request message, media player parameter and
Playout delay, the media player parameter includes media player and carries out the required minimum amount of audio data of audio broadcasting;
The audio processing modules, for according to the media player parameter, Playout delay and the first default time delay,
Television equipment sample delay, network transfer delay determine the sample rate of voice data;Adopted according to the sample rate of the voice data
Collect the voice data being currently played, and the voice data collected is sent to the mobile terminal.
Television equipment receives audio transmission request message, the media player ginseng that mobile terminal is sent in the embodiment of the present invention
Number and Playout delay, the media player parameter include media player and carry out the required minimum voice data of audio broadcasting
Amount;When the television equipment is sampled according to the default time delay of the media player parameter, Playout delay and first, television equipment
Prolong, network transfer delay determines the sample rate of voice data;The television equipment is gathered according to the sample rate of the voice data
The voice data being currently played, and the voice data collected is sent to the mobile terminal, realize for movement
The media player parameter of terminal, is intelligently set sample rate so that the transmission of the voice data of transmitting terminal and receiving terminal
Time delay is effectively reduced, and meets the demand that user's smoothness is used.
Brief description of the drawings
Fig. 1 is a kind of audio-frequency processing method flow chart provided in an embodiment of the present invention;
Fig. 2 is the process schematic that television equipment of the embodiment of the present invention sends voice data to mobile terminal;
Fig. 3 is the overall architecture flow chart of the embodiment of the present invention;
Fig. 4 is a kind of television equipment provided in an embodiment of the present invention.
Embodiment
Set in the embodiment of the present invention according to the default time delay of the media player parameter, Playout delay and first, TV
Standby sample delay, network transfer delay determine the sample rate of voice data so that the voice data of television equipment is transferred to movement
The time delay of terminal is preferably minimized, and meets the demand that user's smoothness is used.
The embodiment of the present invention goes for multiple systems framework, particularly, it is adaptable to television equipment and mobile terminal point
The system architecture not being connected with network access equipment, a kind of video data of television equipment broadcasting TV programme that is particularly suitable for use in,
The scene of the voice data of TV programme described in mobile terminal playing.It is preferred that, television equipment in the embodiment of the present invention can be with
For one or more intelligent television equipments developed based on Linux or android system, the mobile terminal in the embodiment of the present invention
Can be one or more intelligent mobile phone terminals based on Android or IOS system developments, the network in the embodiment of the present invention connects
It can be the wireless routing for possessing WiFi function to enter equipment;Meanwhile, the television equipment in the embodiment of the present invention can be by wired
Or be wirelessly connected with network access equipment, the mobile terminal in the embodiment of the present invention can wirelessly with
Network access equipment is connected.
It should be noted that with the continuous improvement for setting up family lan this demand, generally, in family all
Be provided with network access equipment, such as router, the network access equipment can by various equipment in family by wired or
Wirelessly link together, constitute LAN.In embodiments of the present invention, auxiliary equipment is referred to except network insertion is set
Equipment beyond standby, such as bluetooth earphone, USB transceivers;Main equipment includes television equipment and mobile terminal.
The embodiment of the present invention is described in further detail with reference to Figure of description.
Fig. 1 is the schematic flow sheet corresponding to a kind of audio-frequency processing method provided in an embodiment of the present invention, the audio frequency process
Method mainly comprises the following steps 101 to step 103:
Step 101, television equipment receives audio transmission request message that mobile terminal sends, media player parameter and broadcast
Time delay is put, the media player parameter includes media player and carries out the required minimum amount of audio data of audio broadcasting;
Step 102, the television equipment according to the media player parameter, Playout delay and the first default time delay,
Television equipment sample delay, network transfer delay determine the sample rate of voice data;
Step 103, the television equipment gathers the audio number being currently played according to the sample rate of the voice data
According to, and the voice data collected is sent to the mobile terminal.
Specifically, mobile terminal described in the embodiment of the present invention is mobile communication terminal, refer on the move to make
Computer equipment, including mobile phone, tablet personal computer and palm equipment for surfing the net etc..The mobile terminal leads to the television equipment
Wireless network is crossed to be communicated.
Before step 101, television equipment first receives the connection request message of mobile terminal transmission, and according to the connection
Request message, sets up with the mobile terminal and is connected, and is specially:Television equipment creates socket, then carries out port binding, institute
State port and correspond to the service that voice data is transmitted to mobile terminal, and carry out the initialization operation of data transmission, start waiting for
The connection request message of mobile terminal;Television equipment is received after the connection request message of mobile terminal, with the mobile terminal
Set up connection.
In a step 101, television equipment receives the voice data transfer request message that mobile terminal is sent;In step 102
In, start to perform sampling initial work, including:It is determined that cache size and determination sample rate needed for sampling;According to described
The default time delay of media player parameter, Playout delay and first, television equipment sample delay, network transfer delay determine audio
The sample rate of data;In step 103, television equipment gathers the voice data being currently played according to the sample rate, and
Send the voice data collected to network and then be sent to the mobile terminal.
Alternatively, television equipment is proceeded by after the sampling and transmission of voice data, even if tv state changes, example
Such as:Channel switch, the operation of third-party application etc., do not influence mobile terminal currently being broadcast by earphone receiving TV end equipment
The audio put, i.e.,:The change of tv state does not influence the audio transmission between television equipment and mobile terminal.
Alternatively, television equipment is proceeded by after the sampling and transmission of voice data, will be automatically into silent mode, simultaneously
User is only capable of listening to the audio that television equipment is sent to mobile terminal by earphone, and otherwise mobile terminal will not play what is received
Voice data;Sent out when television equipment terminates that currently playing voice data is sampled and/or terminated to the mobile terminal
Send after voice data, silent mode can be eliminated by manually operating or restarting television equipment, export currently playing audio number
According to.
It is preferred that in a step 102, when the television equipment is preset according to the media player parameter and first
Prolong, television equipment sample delay, network transfer delay determine that the sample rate of voice data includes:
The minimal sampling time of the television equipment is obtained by following formula:
T≤t2 and T<t-t1-t3;
Wherein, T is the minimal sampling time of television equipment, and t is the first default time delay, and t1 is Playout delay, and t2 is TV
Equipment sample delay, t3 is network transfer delay;
The sample rate of the voice data includes sampling bits rate, and the minimum value of the sampling bits rate passes through following formula
Obtain:
Mmin=N/T
Wherein, M is sampling bits rate, and Mmin is the minimum value of sampling bits rate, and N is that media player carries out audio broadcasting
Required minimum amount of audio data, T is the minimal sampling time of television equipment.
It is preferred that in a step 102, the sample rate of the voice data also includes sample frequency, the sample frequency
Minimum value is obtained by following formula:
Fmin=Mmin/b
Wherein, f is sample frequency, and fmin is the minimum value of sample frequency, and Mmin is the minimum value of sampling bits rate, and b is
The sampling resolution of the television equipment.
Specifically, such as one, it is t that what system requirements was allowed, which carries out voice data processing and the first default time delay of transmission,
=100ms, the empirical value propagated according to data network ignores the time that data copy is consumed, and television equipment sampling allows
Maximum sample delay is t2=30ms, and the maximum delay of network transmission is t3=15ms, and the maximum delay allowed is played in mobile terminal
For t1=35ms, then the sampling duration T of a cycle should be less than t-t1-t3 and T should be less than or equal to t2.I.e.:
T<T-t1-t3 and T≤t2
Due to t-t1-t3=50ms, t2=30ms, then T maximums can be 30ms, i.e. 0.03s.Further, according to institute
Required minimum amount of audio data, and sampling resolution can be played out by stating the media player of mobile terminal, you can be obtained
The sample rate that television equipment is sampled.When the media player of mobile terminal can play out required minimum voice data
Measure as 3KB (3000Byte), then the minimum value that the sampling bits rate of condition is met according to Mmin=N/T is Mmin=
0.8Mbps.If sampling resolution set in advance is 16bit, the sampling of condition is met according to formula fmin=Mmin/b
The minimum value of frequency is fmin=50KHz.
Such as two, it is assumed that by user be set to allowed carry out voice data processing and transmission first it is default when
Prolong as t=150ms, equally ignore the time that data copy is consumed, it is assumed that the maximum delay that television equipment sampling allows is t2
=t/3=50ms, the maximum delay of network transmission is t3=t/3=50ms, and it is t1=that the maximum delay allowed is played in mobile terminal
T/3=50ms, then T should be less than being equal to t2, and then rule of thumb and test result, it may be determined that go out T size, it is assumed herein that determining
Go out T=40ms=0.04s.Further, when the media player of mobile terminal can play out required minimum audio number
It is 4KB according to amount, then the minimum value that the sampling bits rate of condition is met according to Mmin=N/T is Mmin=0.8Mbps.If pre-
When the sampling resolution first set is 32bit, the minimum value of the sample frequency of condition is met according to formula fmin=Mmin/b
For fmin=25KHz.
Optionally it is determined that go out after the data volume i.e. sampling bits rate of sampling per second, can also be by adjusting sampling resolution
Size adjusts the value of sample rate.
It is preferred that when the minimum value of sample frequency is more than the first sample frequency set in advance, the television equipment is adjusted
The high sampling resolution.
Specifically, it is assumed that the first sample frequency set in advance is 44.1KHz, for adopting obtained by above-mentioned such as one
The minimum value of sample frequency is 50KHz, and more than the first sample frequency set in advance, then now television equipment can heighten sample bits
Number, to reduce sample frequency, such as heightens sampling resolution for 24bit from 16bit, then the sample frequency after being adjusted
Minimum value is 33.3KHz.
It is preferred that described when the minimum value of sample frequency is more than the second sample frequency set in advance, the TV is set
It is the sample frequency for the sample frequency after process of frequency multiplication, the process of frequency multiplication is carried out to the voice data collected
The half of minimum value.
Specifically, it is assumed that the second sample frequency set in advance is 44.1KHz, for adopting obtained by above-mentioned such as one
The minimum value of sample frequency is 50KHz, and more than the second sample frequency set in advance, then now television equipment can be to the collection
The voice data arrived carries out process of frequency multiplication, to reduce sample frequency, obtains the sample frequency after process of frequency multiplication for 25KHz.
It is preferred that when the television equipment calculates the network transmission by sending test data bag to the mobile terminal
Prolong.
It is preferred that in step 103, it is described that the voice data collected is sent to mobile terminal, be specially:
The size of packet is determined according to network transmission bandwidth;According to the size of the packet to the audio number that collects
According to being split or being merged, the packet of voice data is obtained;The packet of the voice data is sent to mobile terminal.
It is after step 103, i.e., described that the voice data collected is sent to after the mobile terminal, in addition to:
The television equipment is received after the voice data transmission ending message that the mobile terminal is sent, and is terminated to currently playing audio
Data, which are sampled and/or terminated to the mobile terminal, sends voice data.
Specifically, the process that television equipment sends voice data to mobile terminal is as shown in Figure 2.According to network transmission bandwidth
Limitation, determine the size of packet;Television equipment is read after the voice data in a sampling period, according to the big of packet
It is small, it is determined whether the voice data collected to be split or merged;If it is, according to the need for transmission to audio number
According to being split or being merged, if it is not, then directly to voice data interpolation data packet header file, including destination address, audio phase
Sampling parameter etc. is closed, and then packets of audio data is sent to mobile terminal;Then return to the sound for continuing to read next sampling period
Frequency evidence, if now television equipment receives the voice data transmission ending message of mobile terminal transmission, stops voice data
Sampling work, termination currently playing voice data is sampled and/or terminated to the mobile terminal transmission audio number
According to, and reclaim corresponding caching.
In order to be more clearly understood that the overall architecture stream that the embodiment of the present invention has been shown in particular in the embodiment of the present invention, Fig. 3
Cheng Tu.
The embodiment of the present invention mainly includes three parts, is respectively:Television equipment, wireless network, mobile phone.Television equipment and hand
Machine is communicated by wireless network.Specifically, television equipment receives the connection request message that mobile phone is sent, and according to the company
Request message is connect to be connected with mobile phone foundation;After successful connection, the voice data transmission request that television equipment receives mobile phone transmission disappears
Breath, proceeds by the collection of voice data, the voice data collected is split or merged according to the size of packet, and
Mobile phone is issued by wireless network;Mobile phone is received after the packets of audio data that television equipment is sent by wireless network, to audio
Packet is parsed, and the minimum amount of audio data according to needed for being played out mobile media player is to parsing
Voice data is split or merged, and the voice data after segmentation or merging is sent into mobile media player caching, and then
Pass through the voice data in media player caching described in media renderer plays.
For above method flow, the embodiment of the present invention also provides a kind of television equipment, the particular content of the television equipment
Above method implementation is referred to, be will not be repeated here.
A kind of television equipment provided in an embodiment of the present invention, it is shown in Figure 4.Audio frequency process TV of the embodiment of the present invention is set
It is standby to include:Control module 401 and audio processing modules 402;
The control module 401, audio transmission request message, media player parameter for receiving mobile terminal transmission
And Playout delay, the media player parameter include media player carry out audio play needed for minimum amount of audio data;
The audio processing modules 402, during for being preset according to the media player parameter, Playout delay and first
Prolong, television equipment sample delay, network transfer delay determine the sample rate of voice data;According to the sample rate of the voice data
The voice data being currently played is gathered, and the voice data collected is sent to the mobile terminal.
It is preferred that the audio processing modules 402 are additionally operable to:
The minimal sampling time of the television equipment is obtained by following formula:
T≤t2 and T<t-t1-t3;
Wherein, T is the minimal sampling time of television equipment, and t is the first default time delay, and t1 is Playout delay, and t2 is TV
Equipment sample delay, t3 is network transfer delay;
The sample rate of the voice data includes sampling bits rate, and the sampling bits rate is obtained most by following formula
Small value:
Mmin=N/T
Wherein, M is sampling bits rate, and Mmin is the minimum value of sampling bits rate, and N is that media player carries out audio broadcasting
Required minimum amount of audio data, T is the minimal sampling time of television equipment.
It is preferred that the audio processing modules 402 are additionally operable to:
The sample rate of the voice data also includes sample frequency, and the minimum of the sample frequency is obtained by following formula
Value:
Fmin=Mmin/b
Wherein, f is sample frequency, and fmin is the minimum value of sample frequency, and Mmin is the minimum value of sampling bits rate, and b is
The sampling resolution of the television equipment.
It is preferred that the sampling resolution size of the television equipment is adjustable;The audio processing modules 402 are additionally operable to:When adopting
When the minimum value of sample frequency is more than the first sample frequency set in advance, the television equipment heightens the sampling resolution.
It is preferred that the sampling resolution size of the television equipment is adjustable;The audio processing modules 402 are additionally operable to:It is described
The sampling resolution size of television equipment is adjustable, described when the minimum value of sample frequency is more than the second sample frequency set in advance
When, the sample frequency that the television equipment is carried out after process of frequency multiplication, the process of frequency multiplication to the voice data collected is
The half of the minimum value of the sample frequency.
It is preferred that the audio processing modules 402 are additionally operable to:
The network transfer delay is calculated by sending test data bag to the mobile terminal.
It is preferred that the audio processing modules 402 are additionally operable to:
The size of packet is determined according to network transmission bandwidth;
The voice data collected is split or merged according to the size of the packet, the number of voice data is obtained
According to bag;
The packet of the voice data is sent to mobile terminal.
It is preferred that the control module 401 is additionally operable to:
Receive after the voice data transmission ending message that the mobile terminal is sent, terminate to currently playing voice data
Sampled and/or terminated to the mobile terminal and send voice data.
Alternatively, in actual applications, the audio transmission that some mobile terminal is sent is asked except can be used to indicate that
Television equipment is transmitted outside voice data to the mobile terminal, additionally it is possible to which indication TV equipment is passed to a number of other mobile terminals
Defeated voice data.
The control module of television equipment is passed after the audio transmission for receiving one of mobile terminal is asked according to audio
Defeated request indicates that audio processing modules carry out the collection and transmission of voice data;Audio processing modules collection television equipment is currently broadcast
The voice data put, corresponding movement is transferred to by the voice data collected by the network connection between multiple mobile terminals
Terminal.
It is preferred that multiple audio processing modules can be set by being directed in different types of mobile terminal, television equipment, each
Audio processing modules are used for for the currently playing voice data of the mobile terminal collection television equipment of respective type, and will collection
To voice data pass through respective type mobile terminal between network connection be transferred to the mobile terminal of respective type.
Two audio processing modules, respectively the first audio processing modules and the second audio are set for example in television equipment
Processing module.Wherein, the corresponding mobile terminal of the first audio processing modules is by TCP (Transmission Control
Protocol, transmission control protocol) it is connected with television equipment foundation, and the corresponding mobile terminal of the second audio processing modules is
Set up and be connected with television equipment by HTTP (Hypertext Transfer Protocol, HTTP), two sounds
Frequency processing module is respectively adopted different forms in transmission and voice data is packaged.
Alternatively, the first audio processing modules and the second audio processing modules can also use different acquisition mode, with pin
To the mobile terminal of different tonequality requirement.In audio data collecting, the first audio processing modules and the second audio processing modules
Different sample rates, sampling precision and code check can be set, to obtain the voice data of different tonequality.For example, at the first audio
Reason module is by 48KHz of sample rate, sampling precision is 16Bit, sample format of the code check no more than 200Kbps is acquired, and
Second audio processing modules are by 96KHz of sample rate, sampling precision is 32Bit, sample format of the code check no more than 400Kbps enters
Row collection.
It can be seen from the above:
Television equipment receives audio transmission request message, the media player ginseng that mobile terminal is sent in the embodiment of the present invention
Number and Playout delay, the media player parameter include media player and carry out the required minimum voice data of audio broadcasting
Amount;When the television equipment is sampled according to the default time delay of the media player parameter, Playout delay and first, television equipment
Prolong, network transfer delay determines the sample rate of voice data;The television equipment is gathered according to the sample rate of the voice data
The voice data being currently played, and the voice data collected is sent to the mobile terminal, realize for movement
The media player parameter of terminal, is intelligently set sample rate so that the transmission of the voice data of transmitting terminal and receiving terminal
Time delay is effectively reduced, and meets the demand that user's smoothness is used.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (16)
1. a kind of audio-frequency processing method, it is characterised in that including:
Television equipment receives audio transmission request message, media player parameter and the Playout delay that mobile terminal is sent, described
Media player parameter includes media player and carries out the required minimum amount of audio data of audio broadcasting;
The television equipment is sampled according to the default time delay of the media player parameter, Playout delay and first, television equipment
Time delay, network transfer delay determine the sample rate of voice data;
The television equipment gathers the voice data being currently played according to the sample rate of the voice data, and will collect
Voice data be sent to the mobile terminal.
2. the method as described in claim 1, it is characterised in that the television equipment according to the media player parameter and
First default time delay, television equipment sample delay, network transfer delay determine that the sample rate of voice data includes:
The minimal sampling time of the television equipment is obtained by following formula:
T≤t2 and T<t-t1-t3;
Wherein, T is the minimal sampling time of television equipment, and t is the first default time delay, and t1 is Playout delay, and t2 is television equipment
Sample delay, t3 is network transfer delay;
The sample rate of the voice data includes sampling bits rate, and the minimum value of the sampling bits rate is obtained by following formula
Arrive:
Mmin=N/T
Wherein, M is sampling bits rate, and Mmin is the minimum value of sampling bits rate, and N is for needed for media player carries out audio broadcasting
Minimum amount of audio data, T be television equipment minimal sampling time.
3. method as claimed in claim 2, it is characterised in that the sample rate of the voice data also includes sample frequency, institute
The minimum value for stating sample frequency is obtained by following formula:
Fmin=Mmin/b
Wherein, f is sample frequency, and fmin is the minimum value of sample frequency, and Mmin is the minimum value of sampling bits rate, and b is described
The sampling resolution of television equipment.
4. method as claimed in claim 3, it is characterised in that the sampling resolution size of the television equipment is adjustable, works as sampling
When the minimum value of frequency is more than the first sample frequency set in advance, the television equipment heightens the sampling resolution.
5. method as claimed in claim 3, it is characterised in that the sampling resolution size of the television equipment is adjustable, works as sampling
When the minimum value of frequency is more than the second sample frequency set in advance, the television equipment enters to the voice data collected
Sample frequency after row process of frequency multiplication, the process of frequency multiplication is the half of the minimum value of the sample frequency.
6. the method as any one of claim 1-5, it is characterised in that methods described also includes:The television equipment
The network transfer delay is calculated by sending test data bag to the mobile terminal.
7. the method as any one of claim 1-5, it is characterised in that described to be sent to the voice data collected
Mobile terminal, be specially:
The size of packet is determined according to network transmission bandwidth;
The voice data collected is split or merged according to the size of the packet, the data of voice data are obtained
Bag;
The packet of the voice data is sent to mobile terminal.
8. the method as any one of claim 1-5, it is characterised in that described to be sent to the voice data collected
After the mobile terminal, in addition to:
The television equipment is received after the voice data transmission ending message that the mobile terminal is sent, and is terminated to currently playing
Voice data, which is sampled and/or terminated to the mobile terminal, sends voice data.
9. a kind of television equipment, it is characterised in that including:Control module and audio processing modules;
The control module, audio transmission request message, media player parameter and broadcasting for receiving mobile terminal transmission
Time delay, the media player parameter includes media player and carries out the required minimum amount of audio data of audio broadcasting;
The audio processing modules, for according to the media player parameter, Playout delay and first default time delay, TV
Equipment sample delay, network transfer delay determine the sample rate of voice data;Worked as according to the collection of the sample rate of the voice data
The preceding voice data played, and the voice data collected is sent to the mobile terminal.
10. television equipment as claimed in claim 9, it is characterised in that the audio processing modules are additionally operable to:
The minimal sampling time of the television equipment is obtained by following formula:
T≤t2 and T<t-t1-t3;
Wherein, T is the minimal sampling time of television equipment, and t is the first default time delay, and t1 is Playout delay, and t2 is television equipment
Sample delay, t3 is network transfer delay;
The sample rate of the voice data includes sampling bits rate, and the minimum of the sampling bits rate is obtained by following formula
Value:
Mmin=N/T
Wherein, M is sampling bits rate, and Mmin is the minimum value of sampling bits rate, and N is for needed for media player carries out audio broadcasting
Minimum amount of audio data, T be television equipment minimal sampling time.
11. television equipment as claimed in claim 10, it is characterised in that the audio processing modules are additionally operable to:
The sample rate of the voice data also includes sample frequency, and the minimum value of the sample frequency is obtained by following formula:
Fmin=Mmin/b
Wherein, f is sample frequency, and fmin is the minimum value of sample frequency, and Mmin is the minimum value of sampling bits rate, and b is described
The sampling resolution of television equipment.
12. television equipment as claimed in claim 11, it is characterised in that the sampling resolution size of the television equipment is adjustable;
The audio processing modules are additionally operable to:When the minimum value of sample frequency is more than the first sample frequency set in advance, institute
State television equipment and heighten the sampling resolution.
13. television equipment as claimed in claim 11, it is characterised in that the sampling resolution size of the television equipment is adjustable;
The audio processing modules are additionally operable to:
The sampling resolution size of the television equipment is adjustable, when the minimum value of sample frequency is more than the set in advance second sampling frequency
During rate, the television equipment carries out the sample frequency after process of frequency multiplication, the process of frequency multiplication to the voice data collected
For the half of the minimum value of the sample frequency.
14. the television equipment as any one of claim 9-13, it is characterised in that the audio processing modules are also used
In:
The network transfer delay is calculated by sending test data bag to the mobile terminal.
15. the television equipment as any one of claim 9-13, it is characterised in that the audio processing modules are also used
In:
The size of packet is determined according to network transmission bandwidth;
The voice data collected is split or merged according to the size of the packet, the data of voice data are obtained
Bag;
The packet of the voice data is sent to mobile terminal.
16. the television equipment as any one of claim 9-13, it is characterised in that the control module is additionally operable to:
Receive after the voice data transmission ending message that the mobile terminal is sent, terminate and currently playing voice data is carried out
Sample and/or terminate to the mobile terminal and send voice data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410446589.8A CN104254007B (en) | 2014-09-03 | 2014-09-03 | A kind of audio-frequency processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410446589.8A CN104254007B (en) | 2014-09-03 | 2014-09-03 | A kind of audio-frequency processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104254007A CN104254007A (en) | 2014-12-31 |
CN104254007B true CN104254007B (en) | 2017-11-03 |
Family
ID=52188483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410446589.8A Active CN104254007B (en) | 2014-09-03 | 2014-09-03 | A kind of audio-frequency processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104254007B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105072485B (en) * | 2015-08-26 | 2018-11-13 | 小米科技有限责任公司 | Delay control method and device |
CN105681883B (en) * | 2016-01-07 | 2019-05-31 | 深圳Tcl数字技术有限公司 | Audio data method for pushing and system |
CN109525873B (en) * | 2017-09-18 | 2022-03-15 | 炬芯科技股份有限公司 | Audio playing synchronization method and device |
CN107995503B (en) * | 2017-11-07 | 2020-07-14 | 西安万像电子科技有限公司 | Audio and video playing method and device |
CN108966197A (en) * | 2018-08-20 | 2018-12-07 | 南昌黑鲨科技有限公司 | Audio frequency transmission method, system, audio-frequence player device and computer readable storage medium based on bluetooth |
CN111339351B (en) * | 2018-12-19 | 2023-08-11 | 成都鼎桥通信技术有限公司 | Audio playing method in Android system |
WO2020125076A1 (en) * | 2018-12-20 | 2020-06-25 | 青岛海信电器股份有限公司 | Audio playback and sending method and device |
US11190836B2 (en) * | 2018-12-20 | 2021-11-30 | Hisense Visual Technology Co., Ltd. | Audio playing and transmitting methods and apparatuses |
CN110971760B (en) * | 2019-12-04 | 2021-02-26 | Tcl移动通信科技(宁波)有限公司 | Network communication content output control method and device, storage medium and terminal equipment |
CN113012722B (en) | 2019-12-19 | 2022-06-10 | 腾讯科技(深圳)有限公司 | Sampling rate processing method, device, system, storage medium and computer equipment |
CN111263233B (en) * | 2020-02-20 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Television multi-window processing method and device, computer equipment and storage medium |
CN115631758B (en) * | 2022-12-21 | 2023-03-31 | 无锡沐创集成电路设计有限公司 | Audio signal processing method, apparatus, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101611395A (en) * | 2006-11-06 | 2009-12-23 | 创新科技有限公司 | The method and system that is used for the media file conversion |
CN102045312A (en) * | 2009-10-21 | 2011-05-04 | 三星电子(中国)研发中心 | Self-adaptative transcoding method and system |
CN102271280A (en) * | 2011-07-20 | 2011-12-07 | 宝利微电子系统控股公司 | Method and apparatus for variable speed playing of digital audio and video |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031889A1 (en) * | 2002-12-11 | 2006-02-09 | Bennett James D | Video processing system with simultaneous multiple outputs each with unique formats |
WO2005099243A1 (en) * | 2004-04-09 | 2005-10-20 | Nec Corporation | Audio communication method and device |
JP4411184B2 (en) * | 2004-10-29 | 2010-02-10 | 株式会社ルネサステクノロジ | Broadcast station synchronization method and portable terminal |
JP2008159238A (en) * | 2006-11-30 | 2008-07-10 | Matsushita Electric Ind Co Ltd | Voice data transmitting device and voice data receiving device |
US8490131B2 (en) * | 2009-11-05 | 2013-07-16 | Sony Corporation | Automatic capture of data for acquisition of metadata |
TW201242338A (en) * | 2011-02-22 | 2012-10-16 | Compal Electronics Inc | Method and system for adjusting video and audio quality of video stream |
CN103905877A (en) * | 2014-03-13 | 2014-07-02 | 北京奇艺世纪科技有限公司 | Playing method of audio data and video data, smart television set and mobile equipment |
CN103888818B (en) * | 2014-03-24 | 2017-12-19 | 青岛海信电器股份有限公司 | A kind of television program playing method, equipment and system |
-
2014
- 2014-09-03 CN CN201410446589.8A patent/CN104254007B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101611395A (en) * | 2006-11-06 | 2009-12-23 | 创新科技有限公司 | The method and system that is used for the media file conversion |
CN102045312A (en) * | 2009-10-21 | 2011-05-04 | 三星电子(中国)研发中心 | Self-adaptative transcoding method and system |
CN102271280A (en) * | 2011-07-20 | 2011-12-07 | 宝利微电子系统控股公司 | Method and apparatus for variable speed playing of digital audio and video |
Also Published As
Publication number | Publication date |
---|---|
CN104254007A (en) | 2014-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104254007B (en) | A kind of audio-frequency processing method and device | |
CN103888818B (en) | A kind of television program playing method, equipment and system | |
CN101271720B (en) | Synchronization process for mobile phone stream media audio and video | |
CN105898541B (en) | The method and apparatus for reducing the waiting time in multimedia system | |
KR102569374B1 (en) | How to operate a Bluetooth device | |
CN105161121B (en) | To the control method and audio transfer control of audio peripheral hardware transmission audio | |
CN105828134B (en) | Control method for playing back and device in a kind of audio-video frequency playing system | |
CN104426832A (en) | Multi-terminal multichannel independent playing method and device | |
CN105611381A (en) | Multi-device audio synchronous playing system and method based on wireless network | |
CN105992040A (en) | Multichannel audio data transmitting method, audio data synchronization playing method and devices | |
EP3345406B1 (en) | Audio stick for controlling wireless speakers | |
WO2016000528A1 (en) | Audio output method and device | |
CN109819303A (en) | Data output method and relevant device | |
CN107040848A (en) | Synchronization parameter transmission method, device and the equipment of AVDTP agreements | |
CN107431859B (en) | The device and method of the radio broadcasting of audio data for the encapsulation with control data | |
CN105430436A (en) | Method and device of sharing television audios by mobile terminals | |
CN104168218B (en) | Jitter buffer method and device | |
CN106507274A (en) | A kind of wireless control method of parametric equalizer | |
CN107105337B (en) | Wireless multimedia playing method and device | |
JP5428734B2 (en) | Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system | |
CN112669859B (en) | Communication mode control method and device | |
CN103701624B (en) | A kind of voice data sound mixing method and device | |
CN111049709B (en) | Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium | |
CN105451134B (en) | A kind of audio frequency transmission method and terminal device | |
CN104469393B (en) | Obtain the method and system of high in the clouds simulator audio |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |