CN106559705A - A kind of processing method of voice data, device and system - Google Patents

A kind of processing method of voice data, device and system Download PDF

Info

Publication number
CN106559705A
CN106559705A CN201510631096.6A CN201510631096A CN106559705A CN 106559705 A CN106559705 A CN 106559705A CN 201510631096 A CN201510631096 A CN 201510631096A CN 106559705 A CN106559705 A CN 106559705A
Authority
CN
China
Prior art keywords
information control
voice data
queue
control node
node
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
CN201510631096.6A
Other languages
Chinese (zh)
Other versions
CN106559705B (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.)
Hisense Visual Technology 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 CN201510631096.6A priority Critical patent/CN106559705B/en
Priority to PCT/CN2016/072032 priority patent/WO2017054378A1/en
Publication of CN106559705A publication Critical patent/CN106559705A/en
Application granted granted Critical
Publication of CN106559705B publication Critical patent/CN106559705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A kind of processing method of voice data, device and system are embodiments provided, is related to technical field of information processing, while for avoiding and arranging memory pool, realize the problem that voice data to be played will not be capped.The processing method of the voice data includes:The information control node to be configured of unit data when triggering command is received, is unloaded from first queue, and the information control node to be configured to unloading is configured, configured attribute information of the information control node comprising voice data to be played;Configured information control node is linked in second queue and the 3rd queue;The configured information control node of unit data is unloaded from the 3rd queue;According to the attribute information of voice data to be played in the configured information control node of unloading, corresponding voice data to be played is read;The configured information control node of unloading is linked to into the 4th queue.The present invention is applied in digital television system.

Description

A kind of processing method of voice data, device and system
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of processing method of voice data, device and system.
Background technology
In digital television system field, in order to realize the normal play of voice data, the voice data in prior art to capturing by the way of buffer circle is stored, and then the voice data to capturing is played out.But, when playing audio-fequency data being treated using buffer circle and being stored, when write pointer reaches the tail address of buffer circle, can be immediately returned to initial address and continue capture.Simultaneously as capture and to read be executed in parallel, therefore, the situation of the data cover newly captured by the voice data not being read if previously the voice data of relief area initial address had been read in time and plays, can be caused, and then causes sound to jump the problem broadcast.
In order to avoid above-mentioned situation, the audio frequency number that can be captured per in existing scheme is copied on other one piece of memory headroom (or memory pool), is played out by reading the voice data on the memory headroom after copying.Although such scheme solves the problems, such as that voice data is capped, a series of other problemses are also introduced into using the scheme of memory pool:Need to open up again one piece of memory headroom for independent storage or Backup Data, frequently memory copying action also can reduce systematic function to a certain extent, complicated operating process, simultaneously, maintenance to the every pen data on the memory headroom newly opened up, the complexity of system design can be increased, later maintenance is not easy to.
The content of the invention
A kind of processing method of voice data, device and system are embodiments provided, the problem that voice data to be played will not be capped while for avoiding and arranging memory pool, is realized.
In a first aspect, a kind of processing method of voice data is embodiments provided, including:
When triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to the unloading is configured, attribute information of the configured information control node comprising voice data to be played, includes at least one information control node to be configured in the first queue;
The configured information control node is linked in second queue and the 3rd queue, the second queue and the 3rd queue are used to manage configured information control node;
The configured information control node of unit data is unloaded from the 3rd queue;
According to the attribute information of voice data to be played in the configured information control node of unloading, corresponding voice data to be played is read;
The configured information control node of the unloading is linked to into the 4th queue, the 4th queue is used for the information control node for managing playing audio-fequency data.
Second aspect, embodiments provides a kind of processing meanss of voice data, including:
Node unloading unit, for when triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to the unloading is configured, attribute information of the configured information control node comprising voice data to be played, includes at least one information control node to be configured in the first queue;
Node link unit, for the configured information control node is linked in second queue and the 3rd queue, the second queue and the 3rd queue are used to manage configured information control node;
The node unloading unit, for the configured information control node for unloading unit data from the 3rd queue;
Reading unit, for the attribute information of voice data to be played in the configured information control node according to unloading, reads corresponding voice data to be played;
The node link unit, is additionally operable to for the configured information control node of the unloading to be linked to the 4th queue, and the 4th queue is used for the information control node for managing playing audio-fequency data.
The third aspect, embodiments provides a kind of processing system of voice data, including:
Input module, for receiving the voice data of multiple TV path inputs;
Path handover module, for switching different TV paths;
Audio capture module, for capturing the voice data of different paths;
Relief area, for caching the voice data of the audio capture module capture;And,
Control read module, for controlling to read the voice data in the relief area;
Wherein, the control read module includes:
Node unloading unit, for when triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to the unloading is configured, attribute information of the configured information control node comprising voice data to be played, includes at least one information control node to be configured in the first queue;
Node link unit, for the configured information control node is linked in second queue and the 3rd queue, the second queue and the 3rd queue are used to manage configured information control node;
The node unloading unit, for the configured information control node for unloading unit data from the 3rd queue;
Reading unit, for the attribute information of voice data to be played in the configured information control node according to unloading, reads corresponding voice data to be played;
The node link unit, is additionally operable to for the configured information control node of the unloading to be linked to the 4th queue, and the 4th queue is used for the information control node for managing playing audio-fequency data;
The system also includes audio post-processing module, for default audio effect processing is carried out to the voice data that the reading unit reads;And
Audio playing module, for playing the voice data of the audio post-processing resume module.
Embodiments provide a kind of processing method of voice data、Device and system,It is used for managing the first queue of information control node to be configured by setting,When threshold value down trigger,The information control node to be configured of unit data is unloaded from first queue,And the voice data to be played captured when being interrupted according to threshold value is configured to the information control node to be configured for unloading,Configured information control node is linked to for managing in the second queue and the 3rd queue of configured information control node,In three queue not empties,The configured information control node of unit data is unloaded from the 3rd queue,According to the attribute information of voice data to be played in the configured information control node of unloading,Play corresponding voice data to be played,And then the configured information control node of unloading is linked in management the 4th queue of the information control node of playing audio-fequency data.By the form of queue, the attribute information that playing audio-fequency data can be treated in real time is configured, and treat playing audio-fequency data and playing audio-fequency data has been managed respectively, simultaneously, according to configured information control node, corresponding voice data to be played is read, without the need for as prior art, voice data to be played is copied on other one piece of memory headroom, the problem brought by the voice data to be played on the memory headroom after copy is read.Using the technical scheme described in the embodiment of the present invention, while voice data to be broadcast will not be capped, before saving, the memory headroom of backup opening up and using, reject frequently impact of the memory copying to systematic function, eliminate internal memory alignment action and then streamline operation, evade the expense of memory pool realization, management and the later maintenance of complexity, simplify the problem that mentality of designing, the i.e. embodiment of the present invention realize that while avoiding and arranging memory pool voice data to be played will not be capped.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, accompanying drawing to be used needed for embodiment or description of the prior art will be done below and simply introduced, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow sheet one of the processing method of voice data provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet two of the processing method of voice data provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet three of the processing method of voice data provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of first buffering area corresponding with WDMA provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram one of voice data between read pointer and write pointer in first buffering area provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram two of voice data between read pointer and write pointer in first buffering area provided in an embodiment of the present invention;
Fig. 7 is the interactive schematic diagram of the 3rd queue provided in an embodiment of the present invention and the 4th queue;
Fig. 8 is the schematic diagram of second buffering area corresponding with WDMA provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation one of the processing meanss of voice data provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation two of the processing meanss of voice data provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of the processing system of voice data provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Based on the embodiment in the present invention, the every other embodiment obtained on the premise of creative work is not made by those of ordinary skill in the art belongs to the scope of protection of the invention.
Embodiment one
A kind of processing method of voice data is embodiments provided, as shown in figure 1, including:
Step 101, when triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to unloading is configured, configured attribute information of the information control node comprising voice data to be played.
Wherein, first queue is used to manage information control node to be configured, and at least one information control node to be configured is included in first queue.
Specifically, queue is a kind of special linear list, and it only allows to carry out deletion action in the front end of table, carries out insertion operation in the rear end of table.The end for carrying out insertion operation is referred to as tail of the queue, and the end for carrying out deletion action is referred to as team's head.In queue during no element, referred to as empty queue.In this data structure of queue, the element for inserting at first will be element deleted at first, otherwise the element being finally inserted will be the last element being deleted, therefore, queue is otherwise known as the linear list of " first in first out ".The storage mode of queue can be stored using linear list, it is also possible to stored using chained list.It is illustrative that the embodiment of the present invention carries out storage using chained list with queue.Wherein, chained list is a kind of discontinuous on physical memory cell, non-sequential storage organization, and the logical order of data element is realized by the pointer link orders in queue.Chained list is made up of a series of nodes (each element is referred to as node (node is referred to as node) in chained list), and node can be dynamically generated at runtime.Generally, each node includes two parts:One be storing data-elements data field (setting domain name as data), another is the pointer field (setting domain name as next) of the next node address of storage, and the information stored in pointer field is also called pointer or chain.Calculator memory space can be made full use of using list structure, flexible internal memory dynamic management is realized.
First queue in the embodiment of the present invention is used to manage information control node to be configured, during initialization, can distribute N number of information control node, inserts method by tail and is inserted in first queue, and N is more than or equal to 1.
In addition, in a step 101, the attribute information comprising voice data to be played in configured information control node.That is, according to corresponding voice data to be played when receiving triggering command, the information control node to be configured to unloading is configured, with the attribute information comprising voice data to be played in the information control node for postponing.It should be noted that above-mentioned triggering command can be threshold value interrupt instruction, or other can realize the operation of above-mentioned trigger action, to perform subsequent step according to the trigger action.
Step 102, configured information control node is linked in second queue and the 3rd queue.
Wherein, second queue and the 3rd queue is used to manage configured information control node.For second queue and the 3rd queue can be set to sky in initialization.
Step 103, from the 3rd queue unload unit data configured information control node.
In implementing, in three queue not empties, the configured information control node of unit data is unloaded from the queue heads of the 3rd queue.
Step 104, according to the attribute information of voice data to be played in the configured information control node of unloading, read corresponding voice data to be played.
Step 105, by unloading configured information control node be linked to the 4th queue.
Wherein, the 4th queue is used for the information control node for managing playing audio-fequency data.
The processing method of the voice data provided based on step 101- step 105,It is used for managing the first queue of information control node to be configured by setting,When threshold value down trigger,The information control node to be configured of unit data is unloaded from first queue,And the voice data to be played captured when being interrupted according to threshold value is configured to the information control node to be configured for unloading,Configured information control node is linked to for managing in the second queue and the 3rd queue of configured information control node,In three queue not empties,The configured information control node of unit data is unloaded from the 3rd queue,According to the attribute information of voice data to be played in the configured information control node of unloading,Play corresponding voice data to be played,And then the configured information control node of unloading is linked in management the 4th queue of the information control node of playing audio-fequency data.By the form of queue, the attribute information that playing audio-fequency data can be treated in real time is configured, and treat playing audio-fequency data and playing audio-fequency data has been managed respectively, simultaneously, according to configured information control node, corresponding voice data to be played is read, without the need for as prior art, voice data to be played is copied on other one piece of memory headroom, the problem brought by the voice data to be played on the memory headroom after copy is read.Using the technical scheme described in the embodiment of the present invention, while voice data to be broadcast will not be capped, before saving, the memory headroom of backup opening up and using, reject frequently impact of the memory copying to systematic function, eliminate internal memory alignment action and then streamline operation, evade the expense of memory pool realization, management and the later maintenance of complexity, simplify the problem that mentality of designing, the i.e. embodiment of the present invention realize that while avoiding and arranging memory pool voice data to be played will not be capped.
Embodiment two
On the basis of embodiment one, the embodiment of the present invention provides a kind of concrete implementation mode, as shown in Fig. 2 including:
Step 201, setting first queue, second queue, the 3rd queue and the 4th queue.
Wherein, first queue is used to manage information control node to be configured, and second queue and the 3rd queue are used to manage configured information control node, and the 4th queue is used for the information control node for managing playing audio-fequency data.It is convenient for subsequent descriptions, first queue is referred to as into tobe_pushed queues, second queue is referred to as pushed queues, and the 3rd queue is referred to as tobe_played queues, and the 4th queue is referred to as played queues.During initialization, distribute N number of information control node, method is inserted by tail and is inserted in tobe_pushed queues, N is more than or equal to 1;It is sky when pushed queues, tobe_played queues and played queue initializations.
It should be noted that, for the setting of first queue, second queue, the 3rd queue and the 4th queue, can be in initialization while be configured, or be configured when needing again, the embodiment of the present invention is illustrated as a example by being configured when in initialization simultaneously.
Step 202, voice data to be played is captured using direct internal memory write WDMA.
Wherein, direct internal memory write (Write Direct Memory Access, abbreviation WDMA) is corresponding with first buffering area, and first buffering area includes read pointer and write pointer.
In a preferred embodiment of the invention, first buffering area is buffer circle (Ring Buffer), the buffer circle includes write pointer (write pointer,) and read pointer (read pointer wpt, rpt), wherein, wpt represents the storage location of the voice data that captures in Ring Buffer, and rpt represents the storage location of the voice data in Ring Buffer of reading.Therefore, the audio capturing of WDMA and process work is mainly by its write pointer and read pointer to complete.Wherein, by WDMA oneself, write pointer mainly safeguards that read pointer is mainly by CPU controls.
Specifically, the logical relation schematic diagram of wpt, rpt of WDMA and its Ring Buffer of maintenance is shown with reference to Fig. 4.Wherein, st_addr (start address) represents the initial address (or first address) of Ring Buffer, and end represents the tail address of Ring Buffer.During initialization, wpt and rpt is 0, the i.e. initial address equivalent to correspondence Ring Buffer.When WDMA captures the voice data of place path, the voice data for capturing can be stored from the initial address of wpt, in addition, as the relief area is buffer circle, therefore, when wpt reaches the tail address of the Ring Buffer, the first address of Ring Buffer can be automatic jumped to, continue to start to store voice data from the original position of Ring Buffer, the memory space of the voice data for so being captured with the management of Ring Buffer formulas, the problem that the memory headroom that capture can be used for effectively solving is wasted, simultaneously, also eliminate the time restriction of audio capturing, support the audio capturing of Infinite Time length.
Whether the difference of write pointer and read pointer in step 203, detection first buffering area is more than or equal to the first predetermined threshold value.
Wherein, length of first predetermined threshold value less than first buffering area.Optionally, the size of the first predetermined threshold value can be set according to the length of Ring Buffer.Example, if the length of Ring Buffer is N*M, the first predetermined threshold value can be set to M, that is to say, that WDMA corresponding first buffering area is divided into into the relief area of N number of first preset threshold length.In addition, during initialization, the information control node of same number (i.e. N number of) can be distributed, method is inserted by tail and is linked in tobe_pushed queues.
If the difference of step 204, the write pointer and read pointer detected in first buffering area is more than or equal to the first predetermined threshold value, activation threshold value interrupts, and generates triggering command.
Step 205, the information control node to be configured that unit data according to triggering command, is unloaded from first queue, and the information control node to be configured to unloading configures.
In a preferred embodiment of the invention, step 205 specifically includes following sub-step:
205a, according to the threshold value interrupt, from first queue unload unit data information control node to be configured.
Wherein, mainly include following information in information control node to be configured:Place path, such as ATV Demod, AV, Component, VGA or HDMI;Channel number, such as 8 sound channels, 6 sound channels, 2 sound channels etc.;Sample rate, such as 32Khz, 35.15625Khz, 48Khz etc.;The initial address of voice data to be played;The data length of voice data to be played.
For the data structure of information control node to be configured can be defined as follows:
struct ListNode
{
int st_addr;The initial address of the corresponding voice data to be played of // information control node
int length;The length of the corresponding voice data to be played of // information control node
int sample_rate;The sample rate of // place path
int channel;// place path, ATV Demod, AV, Component, VGA, HDMI
int channel_num;// channel number, such as 8 sound channels, 6 sound channels, 2 sound channels
::
ListNode*next;// for generating the member of queue, that is, point to the corresponding next information control node of the information control node
};
Of course, it is possible to according to actually required information, the data structure of information control node to be configured is deleted or increased, to meet the actual demand of user.
205b, according to the voice data to be played in first buffering area between read pointer to write pointer, the information control node to be configured to unloading is configured.
As first buffering area is buffer circle, therefore, it may appear that write pointer is more than the situation of situation and write pointer less than read pointer of read pointer.Specifically, with reference to shown in Fig. 5 and Fig. 6, wherein, Fig. 5 is situation of the write pointer more than read pointer, when write pointer is more than read pointer, then the voice data between read pointer to write pointer is [rpt, wpt] between voice data, the part as shown in Fig. 5 bends, and then according to [rpt, wpt] between voice data, to unload information control node to be configured configure;Fig. 6 is situation of the read pointer more than write pointer, and when write pointer is less than read pointer, then the voice data between read pointer to write pointer is:The voice data between tail address from read pointer to relief area and from the first address of relief area to the voice data write pointer, i.e. from [rpt, end] and [st_addr, wpt] two section audio data, the part as shown in oblique stroke in Fig. 6, and then according to [rpt, end] and [st_addr, wpt] two section audio data, the information control node to be configured of unloading is configured.
That is, during per subthreshold down trigger, according to the voice data to be played in first buffering area between read pointer to write pointer, the information control node to unloading is configured, with the attribute information comprising voice data to be played in the information control node for postponing.
Step 206, configured information control node is linked in second queue and the 3rd queue.
Wherein, attribute information comprising voice data to be played in configured information control node, initial address comprising corresponding voice data to be played, the length of voice data to be played in i.e. configured information control node, certainly, can also be comprising place path, sample rate, channel number etc. in configured information control node.
In implementing, as shown in fig. 7, by configured information control node link (chain) for receiving to pushed queues and the rear of queue of tobe_played queues.Wherein, the rear of queue that the configured information control node for receiving is linked to tobe_played queues is transmitted by deliver interfaces, meanwhile, information control node configured in pushed queues is yet suffered from.
Step 207, from the 3rd queue unload unit data configured information control node.
In concrete implementation, before execution step 207, first determine whether whether tobe_played queues are empty, if sky, then continue the afterbody (as shown in the tobe_played_tail in Fig. 7) of the configured information control node (as shown in the new_tobe_played_data in Fig. 7) of the voice data to be played that chain newly arrives to tobe_played queues;If non-NULL, then from the configured information control node of unchain unit datas in the 3rd queue, specifically from the configured information control node of queue heads (as shown in the tobe_played_head in 7) the unchain unit datas of tobe_played queues, now, the configured information control node of the new voice data to be broadcast for arriving may proceed to be linked to the afterbody of tobe_played queues.Wherein, unit data is preferably an information control node, voice data to be played corresponding with the information control node, alternatively referred to as a pen data.
Step 208, according to the configured information control node of unloading, the configuration node in the corresponding second buffering areas of RDMA is read to direct internal memory and is configured.
In implementing, the voice data from multiple passages can be stored in first buffering area (i.e. audio buffer), and the voice data in audio buffer belongs to voice data to be played.The embodiment of the present invention adopts RDMA (Read Direct Memory Access, directly internal memory reads) reading the voice data to be played in audio buffer, wherein, RDMA is actually reading DMA, DMA is easy to the communication between different hardware units, and need not rely upon a large amount of interrupt loads of CPU.
In implementing, RDMA has corresponding second buffering area buffer, second buffering area buffer includes write pointer (write pointer, wpt), read pointer (read pointer, rpt) and multiple configuration nodes item, each configuration node item has control information.The voice data read work of RDMA is mainly by its write pointer and read pointer to control what is completed.Wherein, write pointer mainly by CPU controls, safeguarded by RDMA oneself by read pointer.
In practice, for RDMA, IC (Integrated Circuit, that is integrated circuit) its corresponding relief area buffer can be embodied as a buffer circle, wherein, buffer circle is that a kind of data structure is used to represent fixed dimension, a relief area from beginning to end, and be adapted to data cached stream, a useful properties of buffer circle are:Its memory space can be recycled.
It is applied to the embodiment of the present invention, configuration node item that can the buffer circle is embodied as one by one, the item is primarily used to control RDMA reading voice datas, wherein, each item is made up of 64bit, first 32bit, i.e. first character, for initial address parameter start address (being abbreviated as st_addr), the physical address that RDMA PCM audio datas to be read are stored in internal memory is pointed to;Second 32bit, i.e., second word mainly include length parameter length member, and the length represents the length of the PCM audio data to be read.The relation of configuration node item of the write pointer, read pointer and buffer circle of RDMA is as shown in Figure 8, in buffer circle, read pointer points to configured good, to be read item in buffer circle, and write pointer is being configured or item to be configured in pointing to buffer circle.
It should be noted that the number of item is determined by CPU in buffer circle, the control information such as start address and lengh of each item, also by CPU real-time update.
In a preferred embodiment of the invention, step 208 specifically includes following sub-step:
Target configuration node pointed by 208a, the write pointer for determining in second buffering area.
In implementing, target item can be determined using two ways, one is to read the depositor corresponding to wpt, and corresponding item information is preserved in depositor;Two is that the item (if for 20) of RDMA is embodied as an Array for structural body, can obtain target item of wpt positions by the index corresponding to array wpt.
208b, the initial address that the initial address parameter of target configuration node is set to voice data to be played.
208c, the length that the length parameter of target configuration node is set to voice data to be played.
Specifically, after the embodiment of the present invention obtains target configuration node, configure the first character (i.e. initial address parameter) of target configuration node item, it is allowed to point to the physical address of the DDR that the voice data to be broadcast is located, it is reconfigured at second word (i.e. length parameter) of the item so as to store the length of the voice data to be played of the unit data.It should be noted that the length can preferably be the multiple of 128 bytes of hardware requirement.
Need explanation when, in order to the write pointer ensured in second buffering area has writeable item, read pointer has the item that can read, and then guarantee to be not in fast (i.e. the item of CPU configuration RDMA simultaneously updates its wpt) write, slow (the i.e. corresponding specified addresses of RDMA reading item read, the data of designated length simultaneously update its rpt) caused by sound jump the problem of (broadcast leakage) broadcast, and write it is slow, the problem of the fast caused sound interim card read, the difference of write pointer and read pointer in second buffering area can be calculated, if the difference of write pointer and read pointer is when meeting some requirements in second buffering area, the configured information control node of unit data is unloaded from the 3rd queue then, and corresponding item is configured according to the configured information control node of unloading.In addition, for write pointer in second buffering area and the difference of read pointer can be that write pointer is more than or equal to the 4th predetermined threshold value with the difference of read pointer meeting some requirements, 4th predetermined threshold value can be configured according to disposal ability of the number of item, CPU etc. in second buffering area, to meet actual demand, the set-up mode to the 4th predetermined threshold value of the invention is without limitation.
Step 209, according to the attribute information of voice data to be played in the configured information control node of unloading, read corresponding voice data to be played.
In a kind of preferred embodiment of the present invention, step 209 includes following sub-step:
209a, the write pointer updated in second buffering area.
As the corresponding second buffering areas of RDMA are buffer circle, therefore, step 209a includes:
209a1, judge that whether target configuration node is last configuration node of buffer circle.
If so, then execution step 209a2;If it is not, then execution step 209a3.
The position that 209a2, corresponding first configuration node of initial address that the write pointer if so, then configured in second buffering area is second buffering area are located.
209a3, if it is not, then configure second buffering area in write pointer be buffer circle in target configuration node close to next configuration node position.
Specifically, as RDMA is implemented as Ring Buffer, therefore, may determine that whether target item is last item in Ring Buffer, if target item is last item in Ring Buffer, the position that first item that its wpt is RDMA original positions is located is configured.Otherwise, configure the position of the back to back next item that its wpt is target item.
The difference of 209b, the write pointer and read pointer calculated in second buffering area.
If the difference of write pointer and read pointer in 209c, second buffering area is more than or equal to the second predetermined threshold value, the corresponding voice data to be played of configuration node pointed by read pointer is read.
As the wpt of RDMA is by CPU controls, its rpt is safeguarded by hardware oneself.Target item is configured above-mentioned, after have updated write pointer wpt, when the difference that have updated the rpt of wpt and RDMA of position is more than or equal to the second predetermined threshold value (such as 1 item), RDMA will read the voice data of the designated length in the corresponding core positions of item that its rpt is pointed to automatically, so, can ensure that now there is the configuration node that can be read, and then the voice data to be played corresponding to the configuration node that read pointer is pointed in reading second buffering area.When the difference of the wpt and rpt of RDMA is less than four predetermined threshold values, mean that the rpt in RDMA catch up with its wpt soon, CPU voice datas are reminded not enough to broadcast, need CPU to configure new item in time to point to new voice data to be played, in order to avoid occur due to temporary transient no data it is readable and occur sound interim card, or even it is noiseless the problems such as.Wherein, the 4th predetermined threshold value can be set according to the factor such as disposal ability of the number of item, CPU in second buffering area.Need explanation when, the 4th predetermined threshold value can be identical with the second predetermined threshold value, it is also possible to different.
Meanwhile, the RDMA of the embodiment of the present invention can also update read pointer rpt, and rpt is automatically updated to the position of the next item of rpt positions.As the buffer of RDMA is annular buffer, when its rpt goes to buffer afterbodys, the original position of the automatic ring to the buffer of meeting, and wpt then needs software maintenance to annular buffer heads, so as to recycle this section of memory headroom.
Step 210, by unloading configured information control node be linked in the 4th queue.
As shown in Figure 7, when the configured corresponding voice data attribute information to be played of information control node to unloading is carried out with postponing, by the rear of queue (as shown in played_tail in Fig. 7) of the node (as shown in new_played_data in Fig. 7) chain to played queues.
Technical scheme according to described by above-mentioned steps,After WDMA starts to capture voice data to be played,Every threshold interrupts,Information control node to be configured under queue heads unchain of tobe_pushed queues,Then corresponding [rpt is interrupted to the threshold,Wpt] between voice data to be played set up the control information (initial address of i.e. above-mentioned voice data to be played、Length、The information such as sample rate),So,Information control node under tobe_pushed queue unchain just possesses these information,And it is interruption voice data to be played to be read that these information are corresponding,Then pushed queues receive (or docking) the information control node,And the deliver interfaces of rear end offer are provided,The interface is by the information control node to rear end,The rear of queue of its chain to tobe_played queue (is noted after receiving by rear end,Now the information control node is not unloaded from pushed queues),Rear end RDMA starts receive data and gives power amplifier according to this,Need to call paly_item interfaces before broadcasting,The interface is from information control node under tobe_played queue heads unchian,The attribute information of the voice data to be played entrained by which is allocated to after the item of second buffering area corresponding with RDMA,By information control node chain to the played queue tails.
In order that information control node was unloaded and added on suitable opportunity, be beneficial to recycling for the information control node distributed during initialization, solve the problems, such as system memory space waste and implement frequently distribution information control node caused by memory fragmentation it is excessive.As shown in figure 3, the method also includes:
Step 211, the position for determining read pointer place in second buffering area.
Step 212, the difference for calculating the first mark pointer and the second mark pointer in second buffering area.
Wherein, the first mark pointer points to the position that a upper configuration node of the position that the read pointer in second buffering area is located is located, the position that the first mark pointer is located when the second mark pointer is last release.
If the difference of the first mark pointer and the second mark pointer is more than or equal to the 3rd predetermined threshold value in step 213, second buffering area, by the information control node unloading of configured between the first mark pointer and the second mark pointer in the 4th queue configuration node corresponding voice data played.
Wherein, the 3rd predetermined threshold value can be set according to disposal ability of the number of item, CPU etc. in second buffering area.
Further, while the information control node by the playing audio-fequency data in the 4th queue is unloaded or afterwards, as shown in figure 3, the method also includes:
Step 214, configured information control node corresponding with playing audio-fequency data in second queue is unloaded and discharged.
Step 215, the information control node for unloading in second queue and discharge is linked in first queue.
Step according to described by step 211-215, in concrete implementation, after a voice data is played, call play_item interfaces, by judging the first mark pointer and the second mark pointer, in the case where condition is met, played queues whether non-NULL is judged;If played queue not empties, the corresponding information control node of voice data has been broadcast for mono- from played queue heads unchain;Simultaneously,Due in the queue of second queue pushed comprising information control node corresponding with the voice data played,After the voice data to be played is played,By callback mechanism (readjustment realizing interface,The interface is used to complete the operation to information control node in tobe_pushed queues and pushed queues) information control node corresponding with the voice data played in pushed queues is unloaded,And discharge (release refers to the configuration information emptied in information control node),And then it is linked to the rear of queue of tobe_pushed queues,So,The information control node that the fixed number distributed during initialization can be reached can move in circles the purpose for utilizing,Caused by solving the problems, such as system memory space waste and implementing frequently distribution information control node, memory fragmentation is excessive,Avoid the waste of system resource.
It should be noted that tobe_played queues are in the configured information control node for receiving that deliver interfaces pass over, the reason for do not unload the configured information control node from pushed queues it is:If now the configured information control node is unloaded from pushed queues, simultaneously by its chain to tobe_pushed queue, that means that tobe_pushed queues can use the information control node to formulate the voice data to be played on new core position, if front end is before the item of the attribute information to RDMA of the voice data to be played that tobe_played queue configuration informations control node in rear end is carried, the information control node is reconfigured, when RDMA reads the data in the new position and plays, it may appear that sound jumps the problem broadcast.Therefore it is to be ensured that the voice data on the corresponding DDR of the information control node is played, then which is unloaded from pushed queues, while the rear of queue of chain to tobe_pushed queues.
Further, as voice data is the voice data on different paths, therefore, when the voice data that voice data to be played is the first path, after step 209, as shown in figure 3, the method also includes:
216th, detect whether to be switched to alternate path from the first path.
If the 217, detecting from the first path and being switched to alternate path, remaining configured information control node in the 3rd queue is unloaded and discharges.
Second channel in the embodiment of the present invention different from first passage, detect switch to second channel from first passage when, unload and discharge remaining configured information control node in the 3rd queue.Specifically, because the voice data distributed before path switching, corresponding is the voice data in a upper path, and during the broadcasting of the voice data that path switching finishes the path for starting newly to be switched to, can first from tobe_played queue heads unchain next one node, if still there is the voice data of the last path not discharged in the queue, these voice datas can first be allocated to the item of RDMA, so as to RDMA first can read to walk the corresponding voice datas of these item, then the voice data for playing the new path of real-time configuration.Therefore, after path switching can be produced, the voice data for going up path residual for a moment, then the phenomenon for playing the voice data of the path being newly switched to first are played.The embodiment of the present invention is when each path switches, per in chain to tobe_played queues from queue heads to rear of queue can be allocated to the item of RDMA, the corresponding configured information control node of the i.e. remaining voice data do not played is unloaded and is discharged, with solve switched path when, first play go up for a moment a path remain voice data play again the path being newly switched to voice data problem.In addition, the action of the unloading and release is very fast, calculated with Millisecond, thus, the time for waiting passage switching of user can be substantially reduced, and then lift the audiovisual experience of user.
Embodiments provide a kind of processing method of voice data,It is used for managing the first queue of information control node to be configured by setting,When threshold value down trigger,The information control node to be configured of unit data is unloaded from first queue,And the voice data to be played captured when being interrupted according to threshold value is configured to the information control node to be configured for unloading,Configured information control node is linked to for managing in the second queue and the 3rd queue of configured information control node,In three queue not empties,The configured information control node of unit data is unloaded from the 3rd queue,According to the attribute information of voice data to be played in the configured information control node of unloading,Play corresponding voice data to be played,And then the configured information control node of unloading is linked in management the 4th queue of the information control node of playing audio-fequency data.By the form of queue, the attribute information that playing audio-fequency data can be treated in real time is configured, and treat playing audio-fequency data and playing audio-fequency data has been managed respectively, simultaneously, according to configured information control node, corresponding voice data to be played is read, without the need for as prior art, voice data to be played is copied on other one piece of memory headroom, the problem brought by the voice data to be played on the memory headroom after copy is read.Using the technical scheme described in the embodiment of the present invention, while voice data to be broadcast will not be capped, before saving, the memory headroom of backup opening up and using, reject frequently impact of the memory copying to systematic function, eliminate internal memory alignment action and then streamline operation, evade the expense of memory pool realization, management and the later maintenance of complexity, simplify the problem that mentality of designing, the i.e. embodiment of the present invention realize that while avoiding and arranging memory pool voice data to be played will not be capped.
Embodiment three
Embodiments provide a kind of processing meanss of voice data, in the processing meanss of the voice data, each functional unit performs corresponding method and step in embodiment one or embodiment two, specifically refer to described by embodiment one or embodiment two, will not be described here.As shown in figure 9, the acquisition equipment 110 of the voice data includes:
Node unloading unit 1101, for when triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to unloading is configured, attribute information of the configured information control node comprising voice data to be played, includes at least one information control node to be configured in first queue;
Node link unit 1102, for configured information control node is linked in second queue and the 3rd queue, second queue and the 3rd queue are used to manage configured information control node;
Node unloading unit 1101, for the configured information control node for unloading unit data from the 3rd queue;
Reading unit 1103, for the attribute information of voice data to be played in the configured information control node according to unloading, reads corresponding voice data to be played;
Node link unit 1102, is additionally operable to for the configured information control node of unloading to be linked to the 4th queue, and the 4th queue is used for the information control node for managing playing audio-fequency data.
Optionally, as shown in Figure 10, the device 110 also includes:
Capturing unit 1104, for adopting direct internal memory write WDMA to capture voice data to be played, wherein, WDMA is corresponding with first buffering area, and first buffering area includes read pointer and write pointer;
Detector unit 1105, for detecting the difference of write pointer and read pointer in first buffering area whether more than or equal to the first predetermined threshold value;
Trigger element 1106, if the difference for write pointer in first buffering area and read pointer is more than or equal to the first predetermined threshold value, activation threshold value interrupts, and generates triggering command.
Optionally, as shown in Figure 10, the device 110 also includes:First dispensing unit 1107;
Node unloading unit 1101, specifically for according to triggering command, the information control node to be configured of unit data being unloaded from first queue;
First dispensing unit 1107, specifically for according to the voice data to be played in first buffering area between read pointer to write pointer, the information control node to be configured to unloading is configured.
Optionally, the first dispensing unit 1107 is configured in the information control node to be configured of unloading specifically for the length by the initial address of voice data to be played, voice data to be played.
Optionally, as shown in Figure 10, the device 110 also includes:Second configuration node 1108;
Second dispensing unit 1108, for the configured information control node according to unloading, configuration node in second buffering area corresponding with direct internal memory reading RDMA is configured, second buffering area includes read pointer, write pointer and multiple configuration nodes, and configuration node has configuration information.
Optionally, the attribute information of voice data to be played includes the initial address of voice data to be played, and the length of voice data to be played, and configuration information includes the initial address parameter of configuration node, and corresponding length parameter;
Specifically, as shown in Figure 10, second dispensing unit 1108 includes:
Determination subelement 1108a, for determining the target configuration node pointed by the write pointer in second buffering area;
Configuration subelement 1108b, for the initial address parameter of target configuration node to be set to the initial address of voice data to be played;
Configuration subelement 1108b, is additionally operable to the length parameter of target configuration node is set to the data length of voice data to be played.
Optionally, as shown in Figure 10, reading unit 1103 includes:
Subelement 1103a is updated, for updating the write pointer in second buffering area;
Computation subunit 1103b, for calculating the difference of the write pointer in second buffering area and read pointer;
Subelement 1103c is read, if the difference for the write pointer in second buffering area with read pointer is more than or equal to the second predetermined threshold value, the corresponding voice data to be played of configuration node pointed by the read pointer in second buffering area is read.
Optionally, subelement 1103a is updated, specifically for:
Judge that whether target configuration node is last configuration node of second buffering area;
If so, then configure position of the write pointer in second buffering area for the corresponding first configuration node place of initial address of second buffering area;
If it is not, then configure second buffering area in write pointer be second buffering area in target configuration node close to next configuration node position.
Optionally, as shown in Figure 10, the device 110 also includes:Determining unit 1109 and computing unit 1110;
Determining unit 1109, for determining the position at read pointer place in second buffering area;
Computing unit 1110, for determining the difference of the first mark pointer and the second mark pointer in second buffering area, first mark pointer points to the position that a upper configuration node of the read pointer position in second buffering area is located, the position that the first mark pointer is located when the second mark pointer is last release;
Node unloading unit 1101, if being additionally operable to computing unit 1110 calculates the difference of the first mark pointer and the second mark pointer in second buffering area more than or equal to the 3rd predetermined threshold value, by the information control node unloading of configured between the first mark pointer and the second mark pointer in the 4th queue configuration node corresponding playing audio-fequency data.
Optionally, node unloading unit 1101, is additionally operable to configured information control node corresponding with playing audio-fequency data in second queue is unloaded and discharged;
Node link unit 1102, is additionally operable to the information control node for unloading in the second queue and discharge is linked in first queue.
Optionally, voice data to be played is the voice data of the first path;
Detector unit 1105, for detecting whether being switched to alternate path from the first path;
Node unloading unit 1102, is switched to alternate path if being additionally operable to detector unit 1105 and detecting from the first path, unloads and discharge remaining configured information control node in the 3rd queue.
Embodiments provide a kind of processing meanss of voice data,It is used for managing the first queue of information control node to be configured by setting,When threshold value down trigger,The information control node to be configured of unit data is unloaded from first queue,And the voice data to be played captured when being interrupted according to threshold value is configured to the information control node to be configured for unloading,Configured information control node is linked to for managing in the second queue and the 3rd queue of configured information control node,In three queue not empties,The configured information control node of unit data is unloaded from the 3rd queue,According to the attribute information of voice data to be played in the configured information control node of unloading,Play corresponding voice data to be played,And then the configured information control node of unloading is linked in management the 4th queue of the information control node of playing audio-fequency data.By the form of queue, the attribute information that playing audio-fequency data can be treated in real time is configured, and treat playing audio-fequency data and playing audio-fequency data has been managed respectively, simultaneously, according to configured information control node, corresponding voice data to be played is read, without the need for as prior art, voice data to be played is copied on other one piece of memory headroom, the problem brought by the voice data to be played on the memory headroom after copy is read.Using the technical scheme described in the embodiment of the present invention, while voice data to be broadcast will not be capped, before saving, the memory headroom of backup opening up and using, reject frequently impact of the memory copying to systematic function, eliminate internal memory alignment action and then streamline operation, evade the expense of memory pool realization, management and the later maintenance of complexity, simplify the problem that mentality of designing, the i.e. embodiment of the present invention realize that while avoiding and arranging memory pool voice data to be played will not be capped.
Example IV
The embodiment of the present invention also provides a kind of processing system of voice data, and as shown in figure 11, the system 160 includes:
Input module 1601, for receiving the voice data of multiple TV path inputs;
Path handover module 1602, for switching different TV paths;
Audio capture module 1603, for capturing the voice data of different paths;
Relief area 1604, for the voice data of the capture of buffered audio trapping module 1603;And,
Control read module 1605, for controlling to read the voice data in relief area 1604;
Wherein, controlling read module 1605 includes:
Node unloading unit, for when triggering command is received, the information control node to be configured of unit data is unloaded from first queue, and the information control node to be configured to unloading is configured, attribute information of the configured information control node comprising voice data to be played, includes at least one information control node to be configured in first queue;
Node link unit, for configured information control node is linked in second queue and the 3rd queue, second queue and the 3rd queue are used to manage configured information control node;
Node unloading unit, for the configured information control node for unloading unit data from the 3rd queue;
Reading unit, for the attribute information of voice data to be played in the configured information control node according to unloading, reads corresponding voice data to be played;
Node link unit, is additionally operable to for the configured information control node of unloading to be linked to the 4th queue, and the 4th queue is used for the information control node for managing playing audio-fequency data;
The system 160 also includes audio post-processing module 1606, and the voice data for reading to reading unit carries out default audio effect processing;And
Audio playing module 1607, for playing the voice data of the process of audio post-processing module 1606.
Further, as shown in figure 11, the system 160 also includes:File storage module 1608;Wherein, file storage module 1608, the voice data for audio capture module 1603 is captured store hereof;
The voice data that audio playing module 1607 is stored in being additionally operable to played file memory module 1608.
Wherein, for the description of control read module 1605, embodiment one is may be referred to into embodiment three to, described by the processing meanss of voice data, will not be described here.
Specifically, the input for input module 1601 for voice data is originated, including the TV path such as ATV Demod, AV, Component, VGA, HDMI;
Path handover module 1602 is responsible for above-mentioned each TV path and is switched over, and gets through switched TV path;
Audio capture module 1603 is responsible for the voice data in each TV path of capture, by CPU control WDMA, the module mainly realizes that, including audio buffer, audio buffer is the region of memory of the voice data of a piece of temporary capture;
The voice data real-time storage on the TV path being switched to that audio capture module 1603 is captured by file storage module 1608 is hereof, the voice data can serve as the startup music of tv product, network or USB interface can also be passed through, play out as local audio, the correctness of the voice data that can be captured by sense organ checking audio capture module during broadcasting.Furthermore it is also possible to realize related audio post-processing function (for example as software and hardware research staff:Sample rate conversion (English:Sample Rate Convert) test source use;
Voice data is read on audio signal wire via AXI (Advanced eXtensible Interface) high-speed bus by control read module 1605 by audio buffer, the module is mainly realized by CPU control RDMA, the voice data that audio capture module is captured is read, and is passed through voice data transmission line and be sent to audio post-processing module 1606;
Audio post-processing module 1606 for control read module 1605 read voice data carry out a series of audios in terms of process, such as AVC (Automatic Volume Control, automatic volume is controlled), SRC, EQ (Equalizer, balanced), Balance (equilibrium) etc.;
Voice data after Audio post processing unit 1606 is processed, or the voice data of the storage of file storage module 1608 are played via loudspeaker, earphone, Spdif or Subwoofer and are exported by audio playing module 1607.
For system embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related part is illustrated referring to the part of embodiment of the method.
It should be noted that, herein, such as first and second or the like relational terms are used merely to an entity or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or there is any this actual relation or order between operating.And, term " including ", "comprising" or its any other variant are intended to including for nonexcludability, so that a series of process, method, commodity or equipment including key elements not only includes those key elements, but also including other key elements being not expressly set out, or also include the key element intrinsic for this process, method, commodity or equipment.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that also there is other identical element in the process including the key element, method, commodity or equipment.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be realized by another way.For example, device embodiment described above is only schematic, for example, the division of the unit, be only a kind of division of logic function, can have when actually realizing other dividing mode, such as multiple units or component can with reference to or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, shown or discussed coupling each other or direct-coupling or communication connection can be INDIRECT COUPLING or the communication connections by some interfaces, device or unit, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be physically separate, as the part that unit shows can be or may not be physical location, you can local to be located at one, or can also be distributed on multiple NEs.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, or the independent physics of unit includes, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, is used including some instructions so that computer equipment (can be personal computer, server, or network equipment etc.) performs the part steps of each embodiment methods described of the invention.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation;Although being described in detail to the present invention with reference to the foregoing embodiments, it will be understood by those within the art that:Which still can be modified to the technical scheme described in foregoing embodiments, or carry out equivalent to which part technical characteristic;And these modifications or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (23)

1. a kind of processing method of voice data, it is characterised in that include:
When triggering command is received, the to be configured information control of unit data is unloaded from first queue Node, and the information control node to be configured to the unloading configures, configured information control Attribute information of the node comprising voice data to be played, it is to be configured comprising at least one in the first queue Information control node;
The configured information control node is linked in second queue and the 3rd queue, described second Queue and the 3rd queue are used to manage configured information control node;
The configured information control node of unit data is unloaded from the 3rd queue;
According to the attribute information of voice data to be played in the configured information control node of unloading, read Corresponding voice data to be played;
The configured information control node of the unloading is linked to into the 4th queue, the 4th queue is used In the information control node for managing playing audio-fequency data.
2. method according to claim 1, it is characterised in that described when receiving triggering command When, the information control node to be configured of unit data is unloaded from the first queue, and is unloaded to described Before the information control node to be configured for carrying is configured, methods described also includes:
Voice data to be played is captured using direct internal memory write WDMA, wherein, the WDMA Corresponding with first buffering area, the first buffering area includes read pointer and write pointer;
Detect whether the difference of write pointer and read pointer in the first buffering area is pre- more than or equal to first If threshold value;
If the difference of write pointer and read pointer is default more than or equal to described first in the first buffering area Threshold value, then activation threshold value interruption, generates the triggering command.
3. method according to claim 2, it is characterised in that described when receiving triggering command When, the information control node to be configured of unit data is unloaded from the first queue, and is unloaded to described The information control node to be configured for carrying is configured, including:
According to the triggering command, the information control to be configured of unit data is unloaded from the first queue Node processed;
According in the first buffering area from the read pointer to the audio frequency to be played the write pointer Data, configure to the information control node to be configured of the unloading.
4. method according to claim 3, it is characterised in that described according to the described first buffering Read pointer described in Qu Zhongcong to the voice data to be played between the write pointer, to the unloading wait match somebody with somebody The information control node put carries out configuration to be included:
The length configuration of the initial address of the voice data to be played, the voice data to be played is existed In the information control node to be configured of the unloading.
5. method according to claim 1, it is characterised in that described according to the configured of unloading Information control node in voice data to be played attribute information, read corresponding voice data to be played Before, methods described also includes:
According to the configured information control node of the unloading, to reading RDMA pair with direct internal memory Configuration node in the second buffering area answered is configured, and the second buffering area includes read pointer, writes Pointer and multiple configuration nodes, the configuration node have configuration information.
6. method according to claim 5, it is characterised in that the voice data to be played Attribute information includes the initial address of the voice data to be played, and the voice data to be played Length, the configuration information includes the initial address parameter of the configuration node, and corresponding length Degree parameter;
The configured information control node according to the unloading, to reading RDMA with direct internal memory Configuration node in corresponding second buffering area carries out configuration to be included:
Determine the target configuration node pointed by the write pointer in the second buffering area;
The initial address parameter of the target configuration node is set to into rising for the voice data to be played Beginning address;
The data that the length parameter of the target configuration node is set to the voice data to be played are long Degree.
7. method according to claim 6, it is characterised in that described according to the configured of unloading Information control node in voice data to be played attribute information, read corresponding voice data to be played Including:
Update the write pointer in the second buffering area;
Calculate the difference of the write pointer in the second buffering area and read pointer;
If the write pointer in the second buffering area is with the difference of read pointer more than or equal to the second default threshold Value, then read the corresponding audio frequency to be played of configuration node pointed by the read pointer in the second buffering area Data.
8. method according to claim 7, it is characterised in that the second buffering area is annular The step of relief area, write pointer in the renewal second buffering area, includes:
Judge that whether the target configuration node is last configuration node of the second buffering area;
If so, then configure the initial address that the write pointer in the second buffering area is the second buffering area The position that corresponding first configuration node is located;
If it is not, it is target described in the second buffering area then to configure the write pointer in the second buffering area The position of the next configuration node of configuration node.
9. method according to claim 5, it is characterised in that methods described also includes:
Determine the position at read pointer place in the second buffering area;
Calculate the difference of the first mark pointer and the second mark pointer in the second buffering area, described first Mark pointer is pointed to a upper configuration node of the read pointer position in the second buffering area and is located Position, the position that the first mark pointer described in when second mark pointer is last release is located;
If the difference of the first mark pointer and the second mark pointer is more than or equal in the second buffering area 3rd predetermined threshold value, then will be referred to first mark pointer and second labelling in the 4th queue The information control node unloading of the corresponding playing audio-fequency data of configured configuration node between pin.
10. method according to claim 1, it is characterised in that if configured with the unloading The corresponding voice data to be played of information control node it is played after, methods described also includes:
Configured information control node corresponding with playing audio-fequency data in the second queue is unloaded Carry and discharge;
The information control node for unloading in the second queue and discharge is linked in the first queue.
11. methods according to claim 1, it is characterised in that the voice data to be played is The voice data of the first path;
The attribute information of voice data to be played in the configured information control node according to unloading, After reading corresponding voice data to be played, methods described also includes:
Detect whether to be switched to alternate path from the first path;
If detecting from first path and being switched to the alternate path, the described 3rd is unloaded and discharges Remaining configured information control node in queue.
12. a kind of processing meanss of voice data, it is characterised in that include:
Node unloading unit, for when triggering command is received, unit data being unloaded from first queue Information control node to be configured, and the information control node to be configured to the unloading matches somebody with somebody Put, configured attribute information of the information control node comprising voice data to be played, the first queue In include at least one information control node to be configured;
Node link unit, for the configured information control node is linked to second queue and In three queues, the second queue and the 3rd queue are used to manage configured information control section Point;
The node unloading unit, for the configured letter for unloading unit data from the 3rd queue Breath control node;
Reading unit, for voice data to be played in the configured information control node according to unloading Attribute information, reads corresponding voice data to be played;
The node link unit, is additionally operable to be linked to the configured information control node of the unloading 4th queue, the 4th queue are used for the information control node for managing playing audio-fequency data.
13. devices according to claim 12, it is characterised in that described device also includes:
Capturing unit, for adopting direct internal memory write WDMA to capture voice data to be played, wherein, The WDMA is corresponding with first buffering area, and the first buffering area includes read pointer and write pointer;
Detector unit, for detecting whether the difference of write pointer and read pointer in the first buffering area is more than Or it is equal to the first predetermined threshold value;
Trigger element, if the difference for write pointer and read pointer in the first buffering area is more than or equal to First predetermined threshold value, then trigger the threshold value and interrupt, generate the triggering command.
14. devices according to claim 13, it is characterised in that described device also includes:The One dispensing unit;
The node unloading unit, specifically for according to the triggering command, unloading from the first queue Carry the information control node to be configured of unit data;
First dispensing unit, specifically for according in the first buffering area from the read pointer to institute The voice data to be played between write pointer is stated, the information control node to be configured of the unloading is carried out Configuration.
15. devices according to claim 14, it is characterised in that first dispensing unit, Specifically for the length of the initial address of the voice data to be played, the voice data to be played is matched somebody with somebody Put in the information control node to be configured of the unloading.
16. devices according to claim 12, it is characterised in that described device also includes:The Two dispensing units;
Second dispensing unit, for the configured information control node according to the unloading, to The configuration node that directly internal memory is read in the corresponding second buffering areas of RDMA is configured, and described second Relief area includes read pointer, write pointer and multiple configuration nodes, and the configuration node has with confidence Breath.
17. devices according to claim 16, it is characterised in that the voice data to be played Attribute information include the initial address of the voice data to be played, and the audio frequency number to be played According to length, the configuration information includes the initial address parameter of the configuration node, and corresponding Length parameter;
Second dispensing unit includes:
Determination subelement, for determining the target configuration section pointed by the write pointer in the second buffering area Point;
Configuration subelement, for the initial address parameter of the target configuration node to be set to described wait to broadcast Put the initial address of voice data;
The configuration subelement, is additionally operable to for the length parameter of the target configuration node to be set to described treating The data length of playing audio-fequency data.
18. devices according to claim 17, it is characterised in that the reading unit includes:
Subelement is updated, for updating the write pointer in the second buffering area;
Computation subunit, for calculating the difference of the write pointer in the second buffering area and read pointer;
Read subelement, if the difference for the write pointer in the second buffering area and read pointer be more than or Equal to the second predetermined threshold value, then the configuration node pair pointed by the read pointer in the second buffering area is read The voice data to be played answered.
19. devices according to claim 16, it is characterised in that the second buffering area is ring Shape relief area;The renewal subelement, specifically for:
Judge that whether the target configuration node is last configuration node of the second buffering area;
If so, then configure the initial address that the write pointer in the second buffering area is the second buffering area The position that corresponding first configuration node is located;
If it is not, it is target described in the second buffering area then to configure the write pointer in the second buffering area The position of the next configuration node of configuration node.
20. devices according to claim 16, it is characterised in that described device also includes:Really Order unit and computing unit;
The determining unit, for determining the position at read pointer place in the second buffering area;
The computing unit, refers to for calculating the first mark pointer and the second labelling in the second buffering area The difference of pin, first mark pointer point to the upper of the read pointer position in the second buffering area The position that one configuration node is located, second mark pointer, first labelling described in during last release The position that pointer is located;
The determining unit, if being additionally operable to the computing unit calculates the first mark in the second buffering area The difference of note pointer and the second mark pointer is more than or equal to the 3rd predetermined threshold value, then by the 4th queue In configured between first mark pointer and second mark pointer configuration node it is corresponding The information control node unloading of playing audio-fequency data.
21. devices according to claim 12, it is characterised in that
The node unloading unit, being additionally operable to will be corresponding with playing audio-fequency data in the second queue Configured information control node is unloaded and is discharged;
The node link unit, is additionally operable to the information control section that will be unloaded in the second queue and discharge Point is linked in the first queue.
22. devices according to claim 12, it is characterised in that the voice data to be played For the voice data of the first path;
The detector unit, is additionally operable to detect whether to be switched to alternate path from the first path;
The node unloading unit, is switched to described second from first path and leads to if being additionally operable to detect Road, then unload and discharge remaining configured information control node in the 3rd queue.
23. a kind of processing systems of voice data, it is characterised in that include:
Input module, for receiving the voice data of multiple TV path inputs;
Path handover module, for switching different TV paths;
Audio capture module, for capturing the voice data of different paths;
Relief area, for caching the voice data of the audio capture module capture;And,
Control read module, for controlling to read the voice data in the relief area;
Wherein, the control read module includes:
Node unloading unit, for when triggering command is received, unit data being unloaded from first queue Information control node to be configured, and the information control node to be configured to the unloading matches somebody with somebody Put, configured attribute information of the information control node comprising voice data to be played, the first queue In include at least one information control node to be configured;
Node link unit, for the configured information control node is linked to second queue and In three queues, the second queue and the 3rd queue are used to manage configured information control section Point;
The node unloading unit, for the configured letter for unloading unit data from the 3rd queue Breath control node;
Reading unit, for voice data to be played in the configured information control node according to unloading Attribute information, reads corresponding voice data to be played;
The node link unit, is additionally operable to be linked to the configured information control node of the unloading 4th queue, the 4th queue are used for the information control node for managing playing audio-fequency data;
The system also includes audio post-processing module, for the voice data read to the reading unit Carry out default audio effect processing;And
Audio playing module, for playing the voice data of the audio post-processing resume module.
CN201510631096.6A 2015-09-28 2015-09-28 A kind of processing method of audio data, device and system Active CN106559705B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510631096.6A CN106559705B (en) 2015-09-28 2015-09-28 A kind of processing method of audio data, device and system
PCT/CN2016/072032 WO2017054378A1 (en) 2015-09-28 2016-01-25 Audio data processing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510631096.6A CN106559705B (en) 2015-09-28 2015-09-28 A kind of processing method of audio data, device and system

Publications (2)

Publication Number Publication Date
CN106559705A true CN106559705A (en) 2017-04-05
CN106559705B CN106559705B (en) 2019-07-12

Family

ID=58416842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510631096.6A Active CN106559705B (en) 2015-09-28 2015-09-28 A kind of processing method of audio data, device and system

Country Status (2)

Country Link
CN (1) CN106559705B (en)
WO (1) WO2017054378A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108053821A (en) * 2017-12-12 2018-05-18 腾讯科技(深圳)有限公司 The method and apparatus for generating voice data
CN109743668A (en) * 2019-01-04 2019-05-10 深圳时空壶技术有限公司 A kind of audio testing method and equipment
WO2024055935A1 (en) * 2022-09-14 2024-03-21 合肥杰发科技有限公司 Chip, vehicle sound source playing method, vehicle-mounted device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318467A (en) * 2003-04-16 2004-11-11 Sony Corp Memory control method and memory controller
US20080301189A1 (en) * 2007-05-31 2008-12-04 Ads Holdings, Llc. System and method for providing a real-time content distribution network
CN101404764A (en) * 2008-10-30 2009-04-08 宁波中科集成电路设计中心有限公司 Internal memory management method in audio/video decoding course
CN102521279A (en) * 2011-11-25 2012-06-27 Tcl集团股份有限公司 Playing method, playing system and player of streaming media files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330472B (en) * 2008-07-28 2013-01-16 中兴通讯股份有限公司 Method for caching and processing stream medium data
CN104505109B (en) * 2014-12-29 2017-06-30 珠海全志科技股份有限公司 The track changing method of multimedia player, system and correspondence player and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318467A (en) * 2003-04-16 2004-11-11 Sony Corp Memory control method and memory controller
US20080301189A1 (en) * 2007-05-31 2008-12-04 Ads Holdings, Llc. System and method for providing a real-time content distribution network
CN101404764A (en) * 2008-10-30 2009-04-08 宁波中科集成电路设计中心有限公司 Internal memory management method in audio/video decoding course
CN102521279A (en) * 2011-11-25 2012-06-27 Tcl集团股份有限公司 Playing method, playing system and player of streaming media files

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108053821A (en) * 2017-12-12 2018-05-18 腾讯科技(深圳)有限公司 The method and apparatus for generating voice data
CN109743668A (en) * 2019-01-04 2019-05-10 深圳时空壶技术有限公司 A kind of audio testing method and equipment
CN109743668B (en) * 2019-01-04 2021-06-22 深圳时空壶技术有限公司 Audio testing method and device
WO2024055935A1 (en) * 2022-09-14 2024-03-21 合肥杰发科技有限公司 Chip, vehicle sound source playing method, vehicle-mounted device and storage medium

Also Published As

Publication number Publication date
CN106559705B (en) 2019-07-12
WO2017054378A1 (en) 2017-04-06

Similar Documents

Publication Publication Date Title
US10657964B2 (en) Method for controlling smart device, computer device and storage medium
US20180286459A1 (en) Audio processing
US11550738B2 (en) Storage device including reconfigurable logic and method of operating the storage device
US20070174841A1 (en) Firmware socket module for FPGA-based pipeline processing
WO2021232699A1 (en) Data reading method, apparatus and device, and readable storage medium
CN106325804A (en) Audio processing method and system
CN106559706A (en) A kind of processing method of voice data, device and system
KR20140045553A (en) Mobile memory cache read optimization
US20150302903A1 (en) System and method for deep coalescing memory management in a portable computing device
CN106559705A (en) A kind of processing method of voice data, device and system
CN107293316A (en) A kind of audio data processing method and device
CN104601535A (en) Video processing method and system
CN106559704A (en) A kind of processing method of voice data, device and system
CN109684258A (en) A kind of signal processing apparatus and method
US20070079111A1 (en) Activating method of computer multimedia function
CN106559703B (en) A kind for the treatment of method and apparatus of audio data
US20200380975A1 (en) Voice control method and apparatus of electronic device, and storage medium
KR102175999B1 (en) I/o completion methods in computer system and computer systems therefor
CN115033520B (en) IIC data transmission method and device, singlechip equipment and storage medium
US20100153911A1 (en) Optimized storage of function variables
US9047059B2 (en) Controlling a voice site using non-standard haptic commands
US20210224078A1 (en) Systems and Methods for Generating Wake Signals from Known Users
CN106231395A (en) Control method for playing back and media player
CN102750236A (en) Method for identifying whether human interface device is connected into special parameter control system
US20190378503A1 (en) Filtering audio-based interference from voice commands using natural language processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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

Patentee after: Hisense Visual Technology Co., Ltd.

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

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder