CN107894883A - Audio stream transmission method and sound card audio conversion circuit - Google Patents
Audio stream transmission method and sound card audio conversion circuit Download PDFInfo
- Publication number
- CN107894883A CN107894883A CN201711170353.6A CN201711170353A CN107894883A CN 107894883 A CN107894883 A CN 107894883A CN 201711170353 A CN201711170353 A CN 201711170353A CN 107894883 A CN107894883 A CN 107894883A
- Authority
- CN
- China
- Prior art keywords
- audio
- exterior terminal
- sound card
- voicefrequency circuit
- circuit
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 68
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000000630 rising effect Effects 0.000 claims abstract description 55
- 230000006978 adaptation Effects 0.000 claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 11
- 238000011084 recovery Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000000087 stabilizing effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000875 corresponding effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Abstract
The present invention provides a kind of audio stream transmission method and sound card audio conversion circuit, and the audio stream transmission method is applied to sound card audio conversion circuit, and sound card audio conversion circuit includes the first voicefrequency circuit and the second voicefrequency circuit inversely used;First voicefrequency circuit includes the first preset interface and the first sound card chip of system sound card equipment can be identified as by the first exterior terminal;Second voicefrequency circuit includes the second preset interface and the rising tone the core of the card piece of system sound card equipment can be identified as by the second exterior terminal;First voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, and after being converted into the voice data stream of pcm format, is transferred to the second voicefrequency circuit;After the voice data stream of the pcm format is converted into packets of audio data by the second voicefrequency circuit, the packets of audio data is sent to the second exterior terminal, to realize that voice data stream is transmitted to the second exterior terminal from the first exterior terminal.
Description
Technical field
The present invention relates to the information processing technology, especially a kind of audio stream transmission method and sound card audio conversion circuit.
Background technology
USB is Universal Serial Bus (USB) abbreviation, is an external bus standard, it is carried
One kind has been supplied to be used for PC (PC) ancillary equipment, such as mouse, keyboard, digital camera, printer, external memory storage, sound card
Deng the interface standard with PC.With extensive use of the USB technologies in contemporary electronic systems, not only PC has USB interface, is permitted
Multi-mobile-terminal such as mobile phone, tablet personal computer and (the various broadcastings based on the system such as Android or LINUX of various intelligent boxes
Device) and intelligent television including these built-in boxes all there is the USB interface of host function, wherein usb audio equipment is a large amount of
Using having obtained liking and approving for consumers in general.
It is existing as the development of mobile communication technology, mobile terminal (smart mobile phone, tablet personal computer etc.) have become
People live an indispensable part, but after intelligent terminal be connected with PC, at present, be only capable of the transmission of progress file mode with
Exchange, it is impossible to directly carry out the transmission of two-way audio data stream, therefore, significantly limit the application of audio scene.
The content of the invention
The purpose of the present invention is aimed to solve the problem that the problem of can not directly carrying out two-way audio data streaming between two terminals.
The invention provides a kind of audio stream transmission method, applied to sound card audio conversion circuit, sound card audio conversion electricity
Road includes the first voicefrequency circuit and the second voicefrequency circuit inversely used;First voicefrequency circuit includes being adapted to the first outside eventually
First preset interface at end and the first sound card chip that system sound card equipment can be identified as by first exterior terminal;Second audio
Circuit includes being adapted to the second preset interface of the second exterior terminal and can be identified as system sound card by second exterior terminal
The rising tone the core of the card piece of equipment;The first sound card chip is connected with rising tone the core of the card piece;This method includes:
First voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, and the packets of audio data is converted into pulse
The voice data stream of coded modulation form;The voice data is streamed to the second voicefrequency circuit;
The voice data stream of the pcm format is converted into packets of audio data by the second voicefrequency circuit, to outside second
Portion's terminal sends the packets of audio data.
Preferably, after first voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, in addition to:
Judge whether rising tone the core of the card piece by the second exterior terminal is identified as system sound card equipment;
If so, continue it is described the packets of audio data is converted to pcm format voice data stream the step of;
Otherwise, it is that continuous packet unit is divided with the period by packets of audio data caching;Confirm rising tone the core of the card
Piece recovers to be identified as system sound card equipment by the second exterior terminal, and the packet unit of caching is converted into pulse code modulation lattice
The voice data stream of formula, continue the described the step of voice data is streamed to the second voicefrequency circuit.
Further, described cache the packets of audio data is to divide continuous packet unit with the period;Confirm the
Two sound card chips recover to be identified as system sound card equipment by the second exterior terminal, and the packet unit of caching is converted into pulse compiles
The voice data stream of code modulation format, continues the described the step of voice data is streamed to the second voicefrequency circuit, including:
It is that continuous packet unit is divided with the period by packets of audio data caching, whether judges rising tone the core of the card piece
Recover to be identified as system sound card equipment by the second exterior terminal in preset time;
If it is not, to the first exterior terminal feedback transmission abnormal information;
Recover to be identified as the time length of system sound card equipment by the second exterior terminal if so, obtaining this rising tone the core of the card piece
Degree, obtains the number that rising tone card chip interrupt in this preset time is identified as system sound card equipment by the second exterior terminal;
Judge whether the time span is more than preset value;
If being more than preset value, judge whether the number is more than preset value;
If being more than preset value, the packet unit of the predetermined number of caching is obtained, by the packet unit of predetermined number
The voice data stream of pcm format is converted to, continuation is described to be streamed to the second voicefrequency circuit the voice data
Step;
Otherwise, whole packet units of caching are obtained, the packet unit of whole is converted into pulse code adjusts
The voice data stream of form processed, continue the described the step of voice data is streamed to the second voicefrequency circuit.
Preferably, first preset interface and the second preset interface are wireline interface.
Further, the wireline interface is USB interface, and this method also includes:
The magnitude of voltage of the first preset interface and the second preset interface is detected, judges whether one of USB interface to support
The USB interface of charging;
If so, then charged from the USB interface of support charging to another USB interface.
Further, before first voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, in addition to:
Judge whether the first voicefrequency circuit connects wave point;
If so, the first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by wave point;
Otherwise, first voicefrequency circuit receives the voice data of the first exterior terminal transmission by the first preset interface
Bag.
Further, first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by wave point
Afterwards, including:
Judge whether the first preset interface connects the first exterior terminal;
If so, the first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by the first preset interface;
Otherwise, the first voicefrequency circuit continues through wave point and receives the packets of audio data that the first exterior terminal is sent.
Preferably, first voicefrequency circuit includes the first wireless sub-circuit, the second voicefrequency circuit include with it is first wireless
The second wireless sub-circuit that sub-circuit matches;It is described that the voice data is streamed to the second voicefrequency circuit, including:
Confirm whether the wireless signal between the first wireless sub-circuit and the second wireless sub-circuit is normal;
If so, the voice data is then streamed to by the first wireless sub-circuit by the second voicefrequency circuit;
If it is not, it is wirelessly transferred abnormal information to the first exterior terminal feedback.
Preferably, the first sound card chip is main control chip, and the sound card audio conversion circuit also includes being used to be adapted to
The wireless adaptation sub-circuit of wireless audio frequency transmission function;Main control chip is connected with wireless adaptation sub-circuit;
First voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, including:
Judge that main control chip identifies the first exterior terminal whether by wireless adaptation sub-circuit the first circuit of connection;
If so, the first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission, otherwise, institute by wave point
State the packets of audio data that the first voicefrequency circuit receives the transmission of the first exterior terminal by the first preset interface.
The present invention also proposes a kind of sound card audio conversion circuit, including the first voicefrequency circuit inversely used and the second audio
Circuit, the first voicefrequency circuit include being adapted to the first preset interface of the first exterior terminal and can known by first exterior terminal
Not Wei system sound card equipment the first sound card chip;Second voicefrequency circuit is preset including being adapted to the second of the second exterior terminal
Interface and the rising tone the core of the card piece that system sound card equipment can be identified as by second exterior terminal;The first sound card chip and
Two sound card chips connect;The packets of audio data that first exterior terminal is sent is converted to pulse code modulation lattice by the first voicefrequency circuit
The voice data stream of formula is simultaneously transferred to the second voicefrequency circuit, and the second voicefrequency circuit is by the voice data of the pcm format
Circulation turns to packets of audio data and sent to the second exterior terminal.
Preferably, the first sound card chip is CY8C3446LTI USB AUDIO family chips, and rising tone the core of the card piece is
SSS1629USB AUDIO chips;The PSOC_I2S_DATA_IN pins of the CY8C3446LTI USB AUDIO family chips,
The EQLED pins with SSS1629USB AUDIO chips, INSEL pins are connected PSOC_I2S_DATA_OUT pins respectively.
Further, sound card audio conversion circuit also includes USB TYPE A sub-circuits and caching sub-circuit, described
The UDM pins of SSS1629USB AUDIO chips are connected with UDP pins with USB TYPE A sub-circuits, SCL_24C0X pins with
SDA_24C0X pins are connected with caching sub-circuit.
Beneficial effects of the present invention are as follows:
1st, the packets of audio data that the present invention can send the first exterior terminal to system sound card equipment is converted to pulse code
The voice data stream of modulation format, then by the voice data stream decoded back of the pcm format be packets of audio data,
And the system sound card equipment identified by the second exterior terminal is sent to the second exterior terminal, to reach the mesh of transmission audio stream
's;The present invention utilizes existing Data Transport Protocol between the first exterior terminal, the second exterior terminal and system sound card equipment to pass
Defeated audio file, without changing the hardware configuration of the first exterior terminal and the second exterior terminal, also without in the first exterior terminal
With special data transmission software is installed on the second exterior terminal, only by the existing audio playing software of the first exterior terminal,
Can be while the first exterior terminal playing audio-fequency data bag, by packets of audio data by sound card audio conversion circuit, from
One exterior terminal is sent to the second exterior terminal;When first exterior terminal and the second exterior terminal Fabric Interface position grafting
Or during wireless connection, it can also realize from the second exterior terminal and send packets of audio data to the purpose of the first exterior terminal, or pass through
Software for Design realizes the transmitted in both directions of packets of audio data.
2nd, when rising tone the core of the card piece is not recognized as the system sound card equipment of the second exterior terminal, then the second exterior terminal
Data exchange can not be normally carried out with rising tone the core of the card piece, the present invention is carried out by the packet unit of caching to packets of audio data
Preserve, until rising tone the core of the card piece is identified as system sound card equipment by the second exterior terminal, can prevent voice data from losing, and
Ensure the efficiency of data conversion.
3rd, when the first preset interface and the second preset interface are wireline interface, including sound card audio conversion circuit of the present invention
Device be alternatively arranged as charging wire use;When wireline interface is USB interface, the sound card audio conversion circuit one end can will be connected to
, the first exterior terminal with the USB interface for supporting charging or the second exterior terminal as charge power supply, to being connected to the sound
Another terminal charge of the USB interface of the card audio conversion circuit other end.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the attachment structure schematic diagram of sound card audio conversion circuit embodiment of the present invention;
Fig. 2 is the first embodiment schematic flow sheet of audio stream transmission method of the present invention;
Fig. 3 is the pin connection diagram of the first sound card chip embodiment of the present invention;
Fig. 4 is the pin connection diagram of rising tone card chip embodiment of the present invention;
Fig. 5 is the connection diagram of USB TYPE A sub-circuits of the present invention;
Fig. 6 is the connection diagram of caching sub-circuit of the present invention;
Fig. 7 is the connection diagram of USB TYPE B sub-circuits of the present invention;
Fig. 8 is the connection diagram of power supply voltage stabilizing sub-circuit of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is individual ", " described " and "the" may also comprise plural form.It is to be further understood that what is used in the specification of the present invention arranges
Diction " comprising " refer to the feature, integer, step, operation, element and/or component be present, but it is not excluded that in the presence of or addition
One or more other features, integer, step, operation, element, component and/or their groups.It should be understood that when we claim member
Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange
Taking leave "and/or" includes whole or any cell and all combinations of one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also
Understand, those terms defined in such as general dictionary, it should be understood that have with the context of prior art
The consistent meaning of meaning, and unless by specific definitions as here, idealization or the implication of overly formal otherwise will not be used
To explain.
The present invention proposes a kind of audio stream transmission method, applied to sound card audio conversion circuit 200, can refer to shown in Fig. 1
The embodiment of sound card audio conversion circuit 200 attachment structure schematic diagram and Fig. 2 shown in audio stream transmission method it is first real
Apply a schematic flow sheet;The sound card audio conversion circuit 200 includes the first voicefrequency circuit 201 and the second audio-frequency electric inversely used
Road 202;First voicefrequency circuit 201 include be adapted to the first exterior terminal 100 the first preset interface D2 and can by this first
Exterior terminal 100 is identified as the first sound card chip U1 of system sound card equipment;Second voicefrequency circuit 202 includes being adapted to second
Second preset interface D3 of exterior terminal 300 and the rising tone that system sound card equipment can be identified as by second exterior terminal 300
The core of the card piece U2;The first sound card chip U1 is connected with rising tone the core of the card piece U2;This method comprises the following steps:
Step S10:First voicefrequency circuit 201 receives the packets of audio data that the first exterior terminal 100 is sent, by the audio number
The voice data stream of pcm format is converted to according to bag;The voice data is streamed to the second voicefrequency circuit 202;
First exterior terminal 100 can be desktop computer, notebook computer, tablet personal computer, mobile phone, IPAD etc. it is exportable or
Receive the electronic equipment of packets of audio data.Because the first sound card chip U1 can be identified as system sound card by the first exterior terminal 100
Equipment, therefore when the first sound card chip U1 is connected to outside first by approach such as USB interface, bluetooth wireless connection, wireless networks
During terminal 100, the first exterior terminal 100 is identified as system sound card equipment, and can be to its transfer audio files;Outside first
When terminal 100 plays audio file, then the audio file of the broadcasting may be output to the system sound card equipment that this is identified, that is, export
To the first sound card chip U1;First sound card chip U1 receives the packets of audio data of the audio file, but not by the audio number
Broadcasted according to bag output to loudspeaker apparatus or audio amplifier circuit, and be converted into the voice data stream of pcm format
Afterwards, it is transferred to the second voicefrequency circuit 202.
Step S20:The voice data stream of the pcm format is converted into voice data by the second voicefrequency circuit 202
Bag, the packets of audio data is sent to the second exterior terminal 300.
Second exterior terminal 300 also can be desktop computer, notebook computer, tablet personal computer, mobile phone, IPAD etc. it is exportable or
Receive the electronic equipment of packets of audio data.The first described exterior terminal 100 and the second exterior terminal 300 can be by two PC terminals
Either two mobile terminal compositions or a PC terminal and a mobile terminal composition, also can be other combinations.Second audio
After circuit 202 receives the voice data stream of the pcm format of the first voicefrequency circuit 201 transmission, also not by the audio
Data flow is sent to loudspeaker or audio-frequency amplifier broadcast, but by rising tone the core of the card piece U2 that voice data stream progress is inverse
To processing, the voice data stream of pcm format is reduced to packets of audio data again, and by the packets of audio data of reduction
It is sent to the second exterior terminal 300.Because rising tone the core of the card piece U2 is identified as system sound card equipment by the second exterior terminal 300,
Therefore the second exterior terminal 300 can receive the data of rising tone the core of the card piece U2 transmissions, so as to reach packets of audio data outside first
Portion's terminal 100 is transported to the purpose of the second exterior terminal 300.
The operating system of the terminal used at present generally carries sound card identification function, and passes through existing audio transmission
Agreement is that the voice data transfer function between operating system and sound card chip can be achieved, such as I2S serial digital audio buses
Agreement, SPDIF host-host protocols etc..The present invention need not change the hardware configuration of the first exterior terminal and the second exterior terminal, also without
Extra data transmission software need to be installed on the first exterior terminal and the second exterior terminal, only by sound card audio conversion circuit
200 the first preset interface D2 and the second preset interface D3 is respectively connecting to the first exterior terminal and the second exterior terminal, you can
Realization sends packets of audio data to the purpose of the second exterior terminal from the first exterior terminal.
Based on first embodiment, the present invention also proposes another embodiment:
After first voicefrequency circuit 201 receives the packets of audio data that the first exterior terminal 100 is sent, in addition to:
Step S11:Judge whether rising tone the core of the card piece U2 by the second exterior terminal 300 is identified as system sound card equipment, if
It is then to perform step S12;If it is not, then perform step S13;
Step S12:Continue the step of the voice data stream that the packets of audio data is converted to pcm format
Suddenly;
Step S13:It is that continuous packet unit is divided with the period by packets of audio data caching;Confirm the second sound card
Chip U2 recovers to be identified as system sound card equipment by the second exterior terminal 300, and the packet unit of caching is converted into pulse compiles
The voice data stream of code modulation format, continues the described the step of voice data is streamed to the second voicefrequency circuit 202.
If the second exterior terminal 300 identifies multiple sound card equipments, it only may be carried out with system sound card equipment therein
Data exchange, if rising tone the core of the card piece U2 is not system sound card equipment, rising tone the core of the card piece U2 possibly can not with second outside
Terminal 300 carries out data transmission.In the present embodiment, if rising tone the core of the card piece U2 be not identified as by the second exterior terminal 300 be
During sound card equipment of uniting, then it is assumed that rising tone the core of the card piece U2 is abnormal, can continue first voicefrequency circuit 201 and receive the first outside eventually
The step of packets of audio data that end 100 is sent, and be that continuous packet unit is divided with the period by packets of audio data caching,
When rising tone the core of the card piece U2 reverts to system sound card equipment, you can the packet unit of caching is converted into pulse code immediately
The voice data stream of modulation format, and the voice data stream after conversion is sent to the second exterior terminal 300, to ensure transmission speed
Degree;By caching, the data in the abnormal time section will not lose, and user need not be on the first exterior terminal 100 again
Operation, it also can reach the purpose of the voice data received in the transmission abnormality period.
Based on a upper embodiment, the present invention also proposes another embodiment:
Described cache the packets of audio data is to divide continuous packet unit with the period;Confirm rising tone the core of the card piece
U2 recovers to be identified as system sound card equipment by the second exterior terminal 300, and the packet unit of caching is converted into pulse code adjusts
The voice data stream of form processed, continue the described the step of voice data is streamed to the second voicefrequency circuit 202, including:
Step S131:It is that continuous packet unit is divided with the period by packets of audio data caching, judges the rising tone
Whether the core of the card piece U2 recovers to be identified as system sound card equipment by the second exterior terminal 300 in preset time;If it is not, then perform step
Rapid S132;If so, then perform step S133;
Step S132:To the feedback transmission abnormal information of the first exterior terminal 100;
Step S133:This rising tone the core of the card piece U2 is obtained to recover to be identified as system sound card by the second exterior terminal 300 and set
Standby time span, obtain rising tone the core of the card piece U2 interruptions in this preset time and system sound is identified as by the second exterior terminal 300
The number of card apparatus;
Step S134:Judge whether the time span is more than preset value;
Step S135:If being more than preset value, judge whether the number is more than preset value;If being more than preset value, step is performed
Rapid S136;Otherwise, step S137 is performed;
Step S136:The packet unit of the predetermined number of caching is obtained, the packet unit of predetermined number is converted to
The voice data stream of pcm format, continue the step for the voice data being streamed to the second voicefrequency circuit 202
Suddenly;
Step S137:Whole packet units of caching are obtained, the packet unit of whole is converted into pulse code
The voice data stream of modulation format, continue the described the step of voice data is streamed to the second voicefrequency circuit 202.
If rising tone the core of the card piece U2 can not be identified as system sound card equipment by the second exterior terminal 300 in a long time,
Due to the limitation of spatial cache, first voicefrequency circuit 201 can not all data of persistent cache;Or, second exterior terminal 300
Connection between rising tone the core of the card piece U2 is repeatedly abnormal, for example frequently connection goes offline, then illustrates that the second exterior terminal is unstable;
In these cases, can only recover caching predetermined number packet unit, such as entire packet unit unit 1/3 or
1/5, with fetching portion voice data stream, the power consumption of reduction sound card audio conversion circuit 200.If the second exterior terminal 300 only exists
Rising tone the core of the card piece U2 is not identified as system sound card equipment in very short time, or gone offline once in a while, then can recover all audio frequency number
According to stream.
In the operating system of existing terminal, external system sound card that general PC terminals or mobile terminal will can recognize
Equipment is automatically set as system sound card equipment, if unidentified is system sound card equipment, can also manually set it to system sound
Card apparatus.To judge whether the first sound card chip U1 and/or rising tone the core of the card piece U2 is that the system sound card for giving tacit consent to broadcasting audio is set
Standby, to transmit packets of audio data, the present invention also proposes following two embodiments, to prompt user by sound card audio conversion circuit
200 are arranged to the system sound card equipment of the first exterior terminal 100 and the second exterior terminal 300, are specially:
Before first voicefrequency circuit 201 receives the packets of audio data that the first exterior terminal 100 is sent, in addition to:
Step 01:Judge whether the first sound card chip U1 by the first exterior terminal 100 is identified as system sound card equipment;If
It is then to perform step 02;If it is not, then perform step 03;
Step 02:Receive the packets of audio data of the first exterior terminal 100 transmission;
Step 03:The request that the first sound card chip U1 is set to system sound card equipment is sent to the first exterior terminal 100.
Or it is following examples:
Before first voicefrequency circuit 201 receives the packets of audio data that the first exterior terminal 100 is sent, in addition to:
Step 04:Judge whether rising tone the core of the card piece U2 by the second exterior terminal 300 is identified as system sound card equipment;If
It is then to perform step 05;If it is not, then perform step 06;
Step 05:Packets of audio data is sent to the second exterior terminal 300;
Step 06:The request that rising tone the core of the card piece U2 is set to system sound card equipment is sent to the second exterior terminal 300.
Because most of terminal is provided with USB interface, therefore, based on first embodiment, the present invention also proposes another implementation
Example:The first preset interface D2 and the second preset interface D3 is wireline interface.When the wireline interface is USB interface, institute
The first sound card chip U1, which is stated, with rising tone the core of the card piece U2 to be the sound card chip of compatible USB interface.The USB interface can be
Any of USB1.1, USB2.0, USB3.0, its type can be USB-A, USB-B, USB-C, mini-USB, micro-
Any of USB types, can also be the lighting interfaces of apple equipment.
It is using a PC terminal as 100, mobile terminals of the first exterior terminal as the second exterior terminal 300 below
Example, illustrate the specifically used and audio transmission step of the present embodiment:
First, the D1 interfaces of PC terminals are connected into sound card audio conversion circuit respectively with two USB lines 200 first are pre-
If interface D2, the 200 second preset interface D3 that the D4 interfaces of mobile terminal are connected to sound card audio conversion circuit;
Secondly, by PC terminal recognitions to the first sound card chip U1 be arranged to system sound card equipment (play and recording be all provided with
It is set to the system sound card equipment of acquiescence), mobile terminal once recognizes rising tone the core of the card piece U2, can typically be automatically set as system
Sound card equipment, otherwise, manually set it to the system sound card equipment of acquiescence;
Again, when PC terminals play audio file using audio software, sound card audio conversion circuit 200 connects PC terminals
The first sound card chip U1 the usb audio packet received is converted to the voice data stream of pcm format, warp
First sound card chip U1 output port is exported to another rising tone inversely used the core of the card piece U2 audio input port, warp
Cross rising tone the core of the card piece U2 and the voice data stream of this pcm format is converted into packets of audio data again, be input to movement
Terminal;
Finally, this signal is preserved or as other purposes by the application software of mobile terminal.
The sound card audio conversion circuit 200 of the present invention also may be configured as reversely using, i.e.,:When mobile terminal is broadcast using audio
When softening part broadcasting audio file, the rising tone the core of the card piece U2 that sound card audio conversion circuit 200 connects mobile terminal USB interface will
The packets of audio data of reception is converted into the voice data stream of pcm format, defeated through rising tone the core of the card piece U2 output ports
Go out to another the first sound card chip U1 inversely used audio input port, by the first sound card chip U1 by this pulse code
The voice data stream of modulation format is reduced to packets of audio data, inputs PC terminals;Finally, preserved by the application software of PC terminals
This signal or as other purposes.
By the present invention, the two-way audio data streaming between two terminals can be achieved, so as to realize two terminals it
Between two-way recording, playing function, with reference to the application software of two terminals, can also realize more application functions.
The first preset interface D2 and/or the second preset interface D3 also can be bluetooth wireless interface or radio network interface
Deng, when the first preset interface D2 or the second preset interface D3 is bluetooth wireless interface, first voicefrequency circuit 201 or the second
Voicefrequency circuit 202 may include bluetooth wireless connection sub-circuit, to pass through with the first exterior terminal 100 or the second exterior terminal 300
Packets of audio data is transmitted in bluetooth connection;It is described when the first preset interface D2 or the second preset interface D3 are radio network interface
First voicefrequency circuit 201 or the second voicefrequency circuit 202 may include that wireless network connects sub-circuit, to possess access internet or office
The function of domain net, packets of audio data is exported by wireless network and the first exterior terminal 100 or the second exterior terminal 300.
When the first preset interface D2 or the second preset interface D3 are wireline interface, the sound card audio conversion electricity in the present invention
The operating voltage on road 200 can be provided by wireline interface;Also rechargeable battery can be set inside it, when external circuit can not provide work
When making voltage, operating voltage is provided by the rechargeable battery of inside.When the first preset interface D2 and the second preset interface D3 are USB
During interface, due to the USB interface that the USB interface of equipment component charges for support, such as host computer interface, part USB interface
Do not support to charge, such as the USB interface of part mobile phone, therefore the present invention further proposes another embodiment:Present invention additionally comprises:
Step S30:The first preset interface D2 and the second preset interface D3 magnitude of voltage are detected, judges whether one of them
The USB interface that USB interface charges for support;If so, then perform step S31;
Step S31:Charged from the USB interface of support charging to another USB interface.
In the present embodiment, the both ends of the sound card audio conversion circuit 200 possess USB interface, when USB interface is inserted respectively
When entering the first exterior terminal 100 and the second exterior terminal 300, the packets of audio data of the first exterior terminal 100 can not only be transmitted
To the second exterior terminal 300, the type of USB interface according to USB interface voltage value, can be also judged, with the end charged to needs
Charged at end;For example, when computer is as the first exterior terminal 100, when mobile phone is as the second exterior terminal 300, when detecting
For the USB interface of computer to support the USB interface of charging, the USB interface of mobile phone is the USB interface and mobile phone electricity for not supporting charging
When amount is discontented, mobile phone can be charged from computer USB interface.Whether USB interface is judged according to the USB interface magnitude of voltage of detection
To support the USB interface of charging to use prior art, will not be repeated here.
As it was previously stated, the first preset interface D2 and/or the second preset interface D3 can be wireline interface, it is further, described
Sound card audio conversion circuit 200 may also include the wireless adaptation sub-circuit for being adapted to wireless audio frequency transmission function, pass through nothing with compatibility
The function of line data transfer.In following another embodiment, first voicefrequency circuit 201 receives the first exterior terminal 100 and sent out
Before the packets of audio data sent, in addition to:
Step S40:Judge whether the first voicefrequency circuit 201 connects wave point;If so, then perform step S41:If it is not,
Then perform step S42:
Step S41:First voicefrequency circuit 201 receives the voice data of the first exterior terminal 100 transmission by wave point
Bag;
Step S42:First voicefrequency circuit 201 receives the sound of the first exterior terminal 100 transmission by the first preset interface D2
Frequency packet.
The present embodiment, which is applied to the first exterior terminal 100, has the wave point to match with the first voicefrequency circuit 201.Together
Reason, when the second exterior terminal 300 has the wave point to match with the second voicefrequency circuit 202, the present invention also proposes another
Embodiment:
Before described packets of audio data to the transmission of the second exterior terminal 300, in addition to:
Step S43:Judge whether the second voicefrequency circuit 202 connects wave point;If so, then perform step S44:If it is not,
Then perform step S45:
Step S44:The packets of audio data is sent to the second exterior terminal 300 by wave point;
Step S45:The packets of audio data is sent to the second exterior terminal 300 by the second preset interface D3.
Both examples above does not possess simultaneous suitable for the USB interface size of the first exterior terminal or the second exterior terminal
Hold, without USB interface or situations such as USB grafting inconveniences, the step of grafting USB interface can be removed from, pass through the side of wireless connection
Formula is established with exterior terminal and connected.Described wireless adaptation sub-circuit can be that bluetooth is adapted to sub-circuit, have bluetooth work(with matching
The exterior terminal of energy, can be also wireless network sub-circuit, the network address specified or access to LAN are connected to, to receive outside
The packets of audio data of terminal, or send packets of audio data to exterior terminal.Certainly, the sound card audio conversion circuit in the present invention
200 when including wireless adaptation sub-circuit, can be arranged to the first preset interface D2 and an interface in the second preset interface D3
Wave point, or two interfaces are disposed as wave point.
The present invention can also be when the first preset interface D2 and the second preset interface D3 be wireline interface, in wireless adaptation
Standby wave point is set in circuit;When detecting that the first preset interface D2 is connected to the first exterior terminal 100, second default connects
When mouth D3 is connected to the second exterior terminal 300, packets of audio data is transmitted using wireline interface, to ensure data transmission bauds;When
When data transmission exception occurs for one of wireline interface, standby wave point is enabled, with the wired of alternate data transmission abnormality
Interface;When detecting that wireline interface signal recovers normal, or recover normal rear and persistently keep normal within the default time
When, standby wave point is switched back into wireline interface again.Therefore the present invention proposes following examples again:
First voicefrequency circuit 201 by wave point receive the first exterior terminal 100 send packets of audio data it
Afterwards, in addition to:
Step S46:Judge whether the first preset interface D2 connects the first exterior terminal 100;If so, then perform step S47:
Otherwise, step S48 is performed;
Step S47:First voicefrequency circuit 201 receives the sound of the first exterior terminal 100 transmission by the first preset interface D2
Frequency packet;
Step S48:First voicefrequency circuit 201 continues through wave point and receives the audio that the first exterior terminal 100 is sent
Packet.
The present embodiment can pass through wave point when the wireline interface of the first voicefrequency circuit 201 is pulled out or broken down
Receive the packets of audio data of the first exterior terminal 100 transmission;When wireline interface recovers normal, then recover wire transmission, to protect
Demonstrate,prove the stability of transmission speed and packets of audio data.
It is similar with the first voicefrequency circuit 201, it is described to pass through when the wireline interface of the second voicefrequency circuit 202 recovers normal
After wave point sends the packets of audio data to the second exterior terminal 300, it may also include:
Judge whether the second preset interface D3 connects the second exterior terminal 300;
If so, the packets of audio data is then sent to the second exterior terminal 300 by the second preset interface D3;
Otherwise, continue through wave point and send the packets of audio data to the second exterior terminal 300.
Sound card audio conversion circuit 200 in the present invention has the first sound card chip U1 and rising tone the core of the card piece U2, has
There are data conversion and the function of control interface, to coordinate the data interaction between two chips, avoid instruction conflict, can be by it
In a chip as main control chip, another chip is as slaves chips, and the slaves chips are according to the instruction of main control chip
Perform corresponding actions.Therefore the present invention proposes following two embodiments again:
The first sound card chip U1 is main control chip, and the sound card audio conversion circuit 200 also includes being used to be adapted to nothing
The wireless adaptation sub-circuit of line audio transmission;Main control chip is connected with wireless adaptation sub-circuit;
First voicefrequency circuit 201 receives the packets of audio data that the first exterior terminal 100 is sent, including:
Step 101:Judge the first exterior terminal of main control chip identification 100 whether by wireless adaptation sub-circuit connection first
Voicefrequency circuit 201;If so, then perform step S102;Otherwise, step S103 is performed;
Step S102:First voicefrequency circuit 201 receives the voice data of the first exterior terminal 100 transmission by wave point
Bag, otherwise, first voicefrequency circuit 100 receive the audio number of the first exterior terminal 100 transmission by the first preset interface D2
According to bag.
Or it is described to the second exterior terminal 300 transmission packets of audio data, including:
Judge the second exterior terminal of main control chip identification 300 whether by wireless adaptation sub-circuit the second voicefrequency circuit of connection
202;If so, the packets of audio data is then sent to the second exterior terminal 300 by wave point;Otherwise, preset and connect by second
Mouth D3 sends the packets of audio data to the second exterior terminal 300.
When the first sound card chip U1 is main control chip, second voicefrequency circuit 202 is according to the first sound card core
Piece U1 instruction perform it is described the voice data stream of the pcm format is converted into packets of audio data, and to outside second
Portion's terminal 300 sends the step of packets of audio data.
In both examples above, when the first sound card chip U1 in the first voicefrequency circuit 201 is main control chip, it can incite somebody to action
Second voicefrequency circuit 202 as main interface circuit, be mainly used in connecting outside working power, integrated USB interface circuit or
Wireless interface circuit, collection external sense signal etc., to improve the speed of service of main control chip;The main control chip is in control the
During two voicefrequency circuits 202, it can also implement following functions:At the beginning of default first voicefrequency circuit 201 and/or the second voicefrequency circuit 202
Beginning running parameter;Or, determine that data transfer is according to the first preset interface D2 and the second preset interface D3 detection signals fed back
It is no normal;Or, confirm whether wireless adaptation sub-circuit is fitted to the first exterior terminal 100 or the second exterior terminal 300;Or, really
Whether recognize has USB interface for supporting to charge etc..
It can also pass through transmission of wireless signals voice data between the voicefrequency circuit 202 of first voicefrequency circuit 201 and second
Stream, so as to which the first voicefrequency circuit 201 and the second voicefrequency circuit 202 be made as into split-type structural, therefore it is of the invention also propose it is another
Embodiment:
First voicefrequency circuit 201 includes the first wireless sub-circuit, and the second voicefrequency circuit 202 includes and the first wireless son
The second wireless sub-circuit that circuit matches;It is described that the voice data is streamed to the second voicefrequency circuit, including:
Confirm whether the wireless signal between the first wireless sub-circuit and the second wireless sub-circuit is normal;
If so, the voice data is then streamed to by the first wireless sub-circuit by the second voicefrequency circuit;
If it is not, it is wirelessly transferred abnormal information to the first exterior terminal 100 feedback.
When the first voicefrequency circuit 201 and the second voicefrequency circuit 202 are split-type structural, the audio of the present embodiment can be used
Spread transmission method;First voicefrequency circuit 201 can be inserted on the first exterior terminal 100, the second voicefrequency circuit is inserted in outside second
In terminal 300;First voicefrequency circuit 201 receives the packets of audio data of the transmission of the first exterior terminal 100 by wireline interface, then
Voice data after conversion is streamed to by the second wireless sub-circuit by the first wireless sub-circuit, the second voicefrequency circuit 202 will
After the wireless audio data streams that second wireless sub-circuit receives are converted into packets of audio data, wired by the second voicefrequency circuit connects
Mouth sends the packets of audio data to the second exterior terminal 300.If the nothing between the first wireless sub-circuit and the second wireless sub-circuit
Line signal is abnormal, then abnormal information is wirelessly transferred to the first exterior terminal 100 feedback, to prompt the audio-frequency electric of user's grafting first
Data wire between the voicefrequency circuit 202 of road 201 and second, or check whether are the first voicefrequency circuit 201 and the second voicefrequency circuit 202
There is object of barrier wireless signal etc..First voicefrequency circuit 201 need to be only connected by the present embodiment with the first exterior terminal 100, the
Two voicefrequency circuits 202 are connected with the second exterior terminal 300, need not be set between the first voicefrequency circuit 201 and the second voicefrequency circuit 202
Data wire is put, it is more convenient to the limitation between the first exterior terminal 100 and the second exterior terminal 300, transmission to avoid data wire;
And wireless product volume is smaller, convenient storage.
The working power of the first voicefrequency circuit 201 and the second voicefrequency circuit 201 can be connect by wired respectively in the present embodiment
Mouth provides.If connected between the first voicefrequency circuit 201 and the first exterior terminal 100, the second voicefrequency circuit 202 by wireless signal
Connect, then can provide operating voltage by internal battery;If the second voicefrequency circuit 202 and the second exterior terminal 300, the first audio-frequency electric
Connected between road 201 by wireless signal, also can provide operating voltage by internal battery.
The present invention also proposes an embodiment:The main control chip is not detected by the first exterior terminal 100 in preset time
During the packets of audio data of transmission, standby command is exported to the voicefrequency circuit 202 of the first voicefrequency circuit 201 and second, to save
Power consumption and the service life for extending each electronic device;When the first preset interface D2 receives packets of audio data or main control chip by
During the wake instruction of one exterior terminal 100, then the first voicefrequency circuit 201 and the second voicefrequency circuit 202 is controlled to enter data transfer
State.
In audio stream transmission method of the present invention, the voice data stream of the pcm format can wrap
Include the existing audio formats such as serial digital audio bus protocol signal, coaxial audio signal, optical fiber audio signal or analog signal
Any of signal.
The working condition of sound card audio conversion circuit 200 is learnt for the convenience of the user, on the sound card audio conversion circuit 200
Also settable indicator lamp, when sound card audio conversion circuit 200 detects the voicefrequency circuit of the first voicefrequency circuit 201 and second
When 202 connections are normal, indicator lamp Chang Liang is controlled;When detecting that the second exterior terminal 300 normally receives packets of audio data, control
Indicator lamp flashes.Certainly, multiple indicator lamps also can be set, to show 200 more detailed working condition of sound card audio conversion circuit,
When being in abnormality so as to sound card audio conversion circuit 200, trouble point can be learnt according to instruction modulating signal.
As shown in figure 1, the present invention also proposes a kind of sound card audio conversion circuit 200, including the first audio inversely used
The voicefrequency circuit 202 of circuit 201 and second, the first voicefrequency circuit 201 are preset including being adapted to the first of the first exterior terminal 100
Interface D2 and the first sound card chip U2 that system sound card equipment can be identified as by first exterior terminal 100;Second voicefrequency circuit
202 are including being adapted to the second preset interface D3 of the second exterior terminal 300 and can be identified as by second exterior terminal 300
The rising tone the core of the card piece U2 for sound card equipment of uniting;The first sound card chip U1 is connected with rising tone the core of the card piece U2;First audio-frequency electric
Road 201 is converted to the packets of audio data that the first exterior terminal 100 is sent the voice data stream and biography of pcm format
It is defeated that the voice data stream of the pcm format is converted into audio to the second voicefrequency circuit 202, the second voicefrequency circuit 202
Packet is simultaneously sent to the second exterior terminal 300.
The sound card audio conversion circuit 200 of the present invention includes two sound card chips, can be respectively by the He of the first exterior terminal 100
Second exterior terminal 300 is identified as system sound card equipment, to obtain the sound of the first exterior terminal 100 or the second exterior terminal 300
Frequency packet, and packets of audio data can be sent to the second exterior terminal 300 or the first exterior terminal 100, reach transmission audio number
According to the purpose of bag.
Embodiment shown in reference picture 3- Fig. 8, the first sound card chip can use CY8C3446LTI USB AUDIO systems
Row chip, rising tone the core of the card piece can use SSS1629USB AUDIO chips;The CY8C3446LTI USB AUDIO series cores
The PSOC_I2S_DATA_IN pins of piece, PSOC_I2S_DATA_OUT pins respectively with SSS1629USB AUDIO chips
EQLED pins, the connection of INSEL pins, so as to the voice data stream of transmission pulse coded modulation form.Sound card audio conversion circuit
Also include USB TYPE A sub-circuits and caching sub-circuit, UDM pins and the UDP pins of the SSS1629USB AUDIO chips
It is connected with USB TYPE A sub-circuits, the interface J2 in the USB TYPE A sub-circuits can be used as the second preset interface D3, with
It is easy to the second exterior terminal 300 to connect;The SCL_24C0X pins of the SSS1629USB AUDIO chips are managed with SDA_24C0X
Pin is connected with caching sub-circuit, to cache the voice data stream of the pcm format or packets of audio data.
The sound card audio conversion circuit 200 of the present invention may also include USB TYPE B sub-circuits, be fitted with connecting external power source
Orchestration, by large-scale USB peripheral, such as the equipment such as printer, scanner is as the first exterior terminal 100 or the second exterior terminal
300, realize the packets of audio data transfer function with another terminal;The USB TYPE B sub-circuits include Power convert core
Piece.In the SSS1629USB AUDIO chip periphery circuits shown in Fig. 8, in addition to power supply voltage stabilizing sub-circuit, it is sound card audio
Change-over circuit 200 provides operating voltage.
As it was previously stated, the first voicefrequency circuit 202 and the second voicefrequency circuit 202 can be made as split-type structural, i.e.,:The present invention
Sound card audio conversion circuit may include detachable first connecting portion and second connecting portion, the first voicefrequency circuit 201 is located at the
In one connecting portion, the second voicefrequency circuit 202 is in second connecting portion;First voicefrequency circuit 201 includes being used for and the second audio
First wireless sub-circuit of the wireless connection of circuit 202, the second voicefrequency circuit 202 are included for wireless with the first voicefrequency circuit 201
Second wireless sub-circuit of connection.Sound card audio conversion circuit can be made as split type product by the present embodiment, by the first sound
The default port D2 of the first of frequency circuit 201 is inserted on the first exterior terminal 100, and the second of the second voicefrequency circuit 202 is preset
Port D3 is inserted on the second exterior terminal 300, passes through wireless communication between the first voicefrequency circuit 201 and the second voicefrequency circuit 202
Number connect and transmit the voice data stream of the pcm format, to solve wire transmission by data wire length limitation
The problem of, and wireless product volume is smaller, convenient storage.
According to sound card audio conversion circuit 200, the present invention also proposes a kind of sound card audio converter, and it includes described appoint
One sound card audio conversion circuit 200.
Each module in each embodiment of the present invention can be integrated in a processing module or unit
Individually be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module can both adopt
Realized, can also be realized in the form of software function module with the form of hardware.If the integrated module is with software work(
The form of energy module is realized and is used as independent production marketing or in use, can also be stored in a computer-readable storage
In medium.The storage medium can be read-only storage, disk or CD etc..
Described above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of audio stream transmission method, it is characterised in that applied to sound card audio conversion circuit, sound card audio conversion circuit bag
Include the first voicefrequency circuit and the second voicefrequency circuit inversely used;First voicefrequency circuit includes being adapted to the first exterior terminal
First preset interface and the first sound card chip that system sound card equipment can be identified as by first exterior terminal;Second voicefrequency circuit
Including being adapted to the second preset interface of the second exterior terminal and system sound card equipment can be identified as by second exterior terminal
Rising tone the core of the card piece;The first sound card chip is connected with rising tone the core of the card piece;This method includes:
First voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, and the packets of audio data is converted into pulse code
The voice data stream of modulation format;The voice data is streamed to the second voicefrequency circuit;
The voice data stream of the pcm format is converted into packets of audio data by the second voicefrequency circuit, to the second outside eventually
End sends the packets of audio data.
2. audio stream transmission method according to claim 1, it is characterised in that first voicefrequency circuit is received outside first
After the packets of audio data that portion's terminal is sent, in addition to:
Judge whether rising tone the core of the card piece by the second exterior terminal is identified as system sound card equipment;
If so, continue it is described the packets of audio data is converted to pcm format voice data stream the step of;
Otherwise, it is that continuous packet unit is divided with the period by packets of audio data caching;Confirm that rising tone the core of the card piece is extensive
It is multiple that system sound card equipment is identified as by the second exterior terminal, the packet unit of caching is converted into pcm format
Voice data stream, continue the described the step of voice data is streamed to the second voicefrequency circuit.
3. audio stream transmission method according to claim 2, it is characterised in that it is described by the packets of audio data caching be with
Period divides continuous packet unit;Confirm that the recovery of rising tone the core of the card piece is identified as system sound card by the second exterior terminal and set
It is standby, the packet unit of caching is converted to the voice data stream of pcm format, continued described the voice data
The step of being streamed to the second voicefrequency circuit, including:
It is that continuous packet unit is divided with the period by packets of audio data caching, judges rising tone the core of the card piece whether pre-
Put and recover to be identified as system sound card equipment by the second exterior terminal in the time;
If it is not, to the first exterior terminal feedback transmission abnormal information;
Recover to be identified as the time span of system sound card equipment by the second exterior terminal if so, obtaining this rising tone the core of the card piece,
Obtain the number that rising tone card chip interrupt in this preset time is identified as system sound card equipment by the second exterior terminal;
Judge whether the time span is more than preset value;
If being more than preset value, judge whether the number is more than preset value;
If being more than preset value, the packet unit of the predetermined number of caching is obtained, the packet unit of predetermined number is changed
For the voice data stream of pcm format, continue the step for the voice data being streamed to the second voicefrequency circuit
Suddenly;
Otherwise, whole packet units of caching are obtained, the packet unit of whole is converted into pcm format
Voice data stream, continue the described the step of voice data is streamed to the second voicefrequency circuit.
4. audio stream transmission method according to claim 1, it is characterised in that first preset interface and second is preset
Interface is wireline interface.
5. audio stream transmission method according to claim 4, it is characterised in that the wireline interface is USB interface, the party
Method also includes:
The magnitude of voltage of the first preset interface and the second preset interface is detected, judges whether one of USB interface to support to charge
USB interface;
If so, then charged from the USB interface of support charging to another USB interface.
6. audio stream transmission method according to claim 4, it is characterised in that first voicefrequency circuit is received outside first
Before the packets of audio data that portion's terminal is sent, in addition to:
Judge whether the first voicefrequency circuit connects wave point;
If so, the first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by wave point;
Otherwise, the first voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by the first preset interface.
7. audio stream transmission method according to claim 1, it is characterised in that first voicefrequency circuit includes the first nothing
Line sub-circuit, the second voicefrequency circuit include the second wireless sub-circuit to match with the first wireless sub-circuit;It is described the audio
Data stream transmitting to the second voicefrequency circuit, including:
Confirm whether the wireless signal between the first wireless sub-circuit and the second wireless sub-circuit is normal;
If so, the voice data is then streamed to by the first wireless sub-circuit by the second voicefrequency circuit;
If it is not, it is wirelessly transferred abnormal information to the first exterior terminal feedback.
8. audio stream transmission method according to claim 1, it is characterised in that the first sound card chip is master control core
Piece, the sound card audio conversion circuit also include being used for the wireless adaptation sub-circuit for being adapted to wireless audio frequency transmission function;Main control chip with
Wireless adaptation sub-circuit connects;
First voicefrequency circuit receives the packets of audio data that the first exterior terminal is sent, including:
Judge that main control chip identifies the first exterior terminal whether by wireless adaptation sub-circuit the first voicefrequency circuit of connection;
If so, the first voicefrequency circuit receives the packets of audio data that the first exterior terminal sends, otherwise, described the by wave point
One voicefrequency circuit receives the packets of audio data of the first exterior terminal transmission by the first preset interface.
9. a kind of sound card audio conversion circuit, it is characterised in that including the first voicefrequency circuit inversely used and the second audio-frequency electric
Road, the first voicefrequency circuit include being adapted to the first preset interface of the first exterior terminal and can identified by first exterior terminal
For the first sound card chip of system sound card equipment;What the second voicefrequency circuit included being adapted to the second exterior terminal second default connects
Mouth and the rising tone the core of the card piece that system sound card equipment can be identified as by second exterior terminal;The first sound card chip and second
Sound card chip connects;The packets of audio data that first exterior terminal is sent is converted to pcm format by the first voicefrequency circuit
Voice data stream and be transferred to the second voicefrequency circuit, the second voicefrequency circuit is by the voice data stream of the pcm format
It is converted into packets of audio data and is sent to the second exterior terminal.
10. sound card audio conversion circuit according to claim 9, it is characterised in that the first sound card chip is
CY8C3446LTI USB AUDIO family chips, rising tone the core of the card piece are SSS1629USB AUDIO chips;It is described
The PSOC_I2S_DATA_IN pins of CY8C3446LTI USB AUDIO family chips, PSOC_I2S_DATA_OUT pins difference
EQLED pins, INSEL pins with SSS1629USB AUDIO chips are connected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711170353.6A CN107894883B (en) | 2017-11-22 | 2017-11-22 | Audio stream transmission method and sound card audio conversion circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711170353.6A CN107894883B (en) | 2017-11-22 | 2017-11-22 | Audio stream transmission method and sound card audio conversion circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107894883A true CN107894883A (en) | 2018-04-10 |
CN107894883B CN107894883B (en) | 2023-11-28 |
Family
ID=61804559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711170353.6A Active CN107894883B (en) | 2017-11-22 | 2017-11-22 | Audio stream transmission method and sound card audio conversion circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107894883B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471609A (en) * | 2018-11-27 | 2019-03-15 | 深圳市橙子电子有限公司 | K sings projection integration machine and its karaoke method |
CN114442992A (en) * | 2022-01-25 | 2022-05-06 | 杭州国芯科技股份有限公司 | Switching method of audio transmission protocol of USB sound card |
CN115396069A (en) * | 2022-10-25 | 2022-11-25 | 广州市保伦电子有限公司 | Audio processing method and system for wired and wireless networking conference system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040038356A (en) * | 2002-10-31 | 2004-05-08 | 주식회사 솔리토닉스 | Wireless stereo transmitting/receiving appartus using bluetooth |
CN101430640A (en) * | 2007-11-05 | 2009-05-13 | 康佳集团股份有限公司 | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal |
CN101566940A (en) * | 2009-05-25 | 2009-10-28 | 中兴通讯股份有限公司 | Method and device for realizing audio transmission of universal serial bus of wireless data terminal |
US20110199909A1 (en) * | 2010-02-12 | 2011-08-18 | Broadcom Corporation | Systems and Methods for Reducing Audio Latency |
CN104834623A (en) * | 2015-04-28 | 2015-08-12 | 常州听觉工坊智能科技有限公司 | Audio playing method and audio playing device |
CN105653237A (en) * | 2016-02-01 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Audio playing control method and system and terminal |
CN207663436U (en) * | 2017-11-22 | 2018-07-27 | 佛山乐野音乐设备有限公司 | Sound card audio conversion circuit and data transmission set |
-
2017
- 2017-11-22 CN CN201711170353.6A patent/CN107894883B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040038356A (en) * | 2002-10-31 | 2004-05-08 | 주식회사 솔리토닉스 | Wireless stereo transmitting/receiving appartus using bluetooth |
CN101430640A (en) * | 2007-11-05 | 2009-05-13 | 康佳集团股份有限公司 | Communication terminal with USB audio card, and method for implementing USB audio card in communication terminal |
CN101566940A (en) * | 2009-05-25 | 2009-10-28 | 中兴通讯股份有限公司 | Method and device for realizing audio transmission of universal serial bus of wireless data terminal |
US20110199909A1 (en) * | 2010-02-12 | 2011-08-18 | Broadcom Corporation | Systems and Methods for Reducing Audio Latency |
CN104834623A (en) * | 2015-04-28 | 2015-08-12 | 常州听觉工坊智能科技有限公司 | Audio playing method and audio playing device |
CN105653237A (en) * | 2016-02-01 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Audio playing control method and system and terminal |
CN207663436U (en) * | 2017-11-22 | 2018-07-27 | 佛山乐野音乐设备有限公司 | Sound card audio conversion circuit and data transmission set |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471609A (en) * | 2018-11-27 | 2019-03-15 | 深圳市橙子电子有限公司 | K sings projection integration machine and its karaoke method |
CN109471609B (en) * | 2018-11-27 | 2023-11-03 | 深圳市橙子数字科技有限公司 | Karaoke projection integrated machine and Karaoke method thereof |
CN114442992A (en) * | 2022-01-25 | 2022-05-06 | 杭州国芯科技股份有限公司 | Switching method of audio transmission protocol of USB sound card |
CN114442992B (en) * | 2022-01-25 | 2024-01-02 | 杭州国芯科技股份有限公司 | Switching method of USB sound card audio transmission protocol |
CN115396069A (en) * | 2022-10-25 | 2022-11-25 | 广州市保伦电子有限公司 | Audio processing method and system for wired and wireless networking conference system |
Also Published As
Publication number | Publication date |
---|---|
CN107894883B (en) | 2023-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101690125B (en) | Communication of information between a host device and an accessory via an intermediate device | |
EP2784903B1 (en) | Accessory power management | |
CN102201827B (en) | Audio signal receiving and switching device and audio signal transmission system | |
CN107643994B (en) | Terminal, terminal peripheral, signal sending and receiving method and data transmission system | |
CN101583935A (en) | Enhanced communication via a serial interface | |
CN102572352A (en) | HDMI multiplexing method, HDMI, and equipped provided with HDMI | |
CN101534349A (en) | Method and apparatus for determining external connection device in mobile terminal | |
CN107894883A (en) | Audio stream transmission method and sound card audio conversion circuit | |
CN109660894B (en) | Terminal peripheral and audio signal transmission method | |
CN109660913B (en) | Terminal, terminal peripheral, signal transmission system and signal sending and receiving method | |
US9348779B2 (en) | Multifunctional electronic apparatus for charging electronic product | |
CN102421207A (en) | Compatible design method of various kinds of mobile communication systems of mobile terminal and mobile terminal | |
EP3129892B1 (en) | Peripheral device, host device, and processing method | |
WO2012171497A1 (en) | Audio signal adapter and receiver device and audio signal transmission system | |
CN103631744A (en) | Accessory apparatus, system, and method for supporting hierarchical connection | |
CN101626412A (en) | Mobile terminal circuit with multifunctional earphone socket and implementation method thereof | |
CN105228044A (en) | A kind of harmless tonequality earphone | |
WO2014023190A1 (en) | Modularized television | |
CN102457990B (en) | Possess mobile terminal and its implementation of wireless network card function | |
CN106253013A (en) | A kind of adapter | |
CN207663436U (en) | Sound card audio conversion circuit and data transmission set | |
JP6124167B2 (en) | Data terminal, data transmission system, and hot swap control method | |
CN106411534A (en) | Embedded device and system with functions of interface recognition and wireless sharing | |
EP3223538A1 (en) | Method adapted to be implemented in a master device of a sound system, corresponding master device, system, computer readable program product and computer readable storage medium | |
CN117501725A (en) | Data transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190409 Address after: 510280 Room 2502-2506, 238 Changgang Middle Road, Haizhu District, Guangzhou City, Guangdong Province Applicant after: AIMYUNION TECHNOLOGY Ltd. Address before: 528305 Liangchang Industrial Zone, Xihai Village Committee, Beijiao Town, Shunde District, Foshan City, Guangdong Province (Xi'an Wai, West China Sea) Applicant before: FOSHAN LEYE MUSIC EQUIPMENT CO.,LTD. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |