CN107678728A - Audio data processing method and electronic equipment - Google Patents
Audio data processing method and electronic equipment Download PDFInfo
- Publication number
- CN107678728A CN107678728A CN201710846535.4A CN201710846535A CN107678728A CN 107678728 A CN107678728 A CN 107678728A CN 201710846535 A CN201710846535 A CN 201710846535A CN 107678728 A CN107678728 A CN 107678728A
- Authority
- CN
- China
- Prior art keywords
- output unit
- state
- voice data
- electronic equipment
- switch element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the present invention discloses a kind of audio data processing method, including:When electronic equipment receives the first data by HDMI HDMI, the voice data in the first data is obtained;Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;The triggering command is responded, obtains switch element group state in which;According to switch element group state in which, first object output unit is determined in N number of output unit of electronic equipment, N is the positive integer more than or equal to 2;Control first object output unit exports to the voice data.
Description
Technical field
The present invention relates to audio signal processing technique, and in particular to a kind of audio data processing method and electronic equipment.
Background technology
Current electronic equipment such as all-in-one AIO is due to mostly using HDMI HDMI (High
Definition Multimedia Interface) and there is HDMI in/out functions.Wherein, under HDMI out functions
AIO can be exported treated data through HDMI.AIO is received outer by HDMI under HDMI in functions
The input of portion's data simultaneously regard AIO as a display to make by the received input data of audio and/or video presentation
With.At present under HDMI in functions, voice data only has a kind of way of output can only be carried out by loudspeaker Speaker
Output.This way of output under HDMI in functions is excessively single, can not meet the multiple demand of user, also causes electricity
The ease for use of sub- equipment is poor.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provides a kind of audio data processing method and electronics and set
It is standby, at least can solve the problem that due to the way of output it is excessively single the problem of.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiment of the present invention provides a kind of audio data processing method, and methods described includes:
When electronic equipment receives the first data by HDMI HDMI,
Obtain the voice data in the first data;
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which;
According to switch element group state in which, determine that first object output is single in N number of output unit of electronic equipment
Member, N are the positive integer more than or equal to 2;
Control first object output unit exports to the voice data.
As an embodiment, the switch element group includes M switch element, and M is the positive integer more than or equal to 1;
The state of the switch element group is 2MIt is individual;
2MEffective status is determined in individual state;
The effective status according to determined by, determines first object output unit.
As an embodiment, when the switch element group includes a switch element, methods described also includes:
The switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by institute
The second output unit is stated to export the voice data;
Wherein, the electronic equipment comprises at least the first output unit and the second output unit.
As an embodiment, methods described also includes:
When the switch element group includes 2 switch elements, the switch element group state in which is first state
To the 4th state;
Retain the effective status in first state to the 4th state, delete the invalid shape in first state to the 4th state
State;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open simultaneously
The voice data is exported by first output unit;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and by described second
Output unit exports to the voice data;
Wherein, the electronic equipment includes the first output unit and the second output unit.
As an embodiment, methods described also includes:
During control first object output unit exports to the voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines the second mesh
Output unit is marked, controls the voice data to switch to the second target output unit by first object output unit and is exported.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes:
Communicator, for receiving the first data by HDMI HDMI, obtain the first data
In voice data;
Memory, for storing voice data processing routine;
Processor, for performing following operate when performing voice data processing routine:
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which;
According to switch element group state in which, determine that first object output is single in N number of output unit of electronic equipment
Member, N are the positive integer more than or equal to 2;
Control first object output unit exports to the voice data.
As an embodiment, the processor, it is additionally operable to perform when performing voice data processing routine:
The switch element group includes M switch element, and M is the positive integer more than or equal to 1;
The state of the switch element group is 2MIt is individual;
2MEffective status is determined in individual state;
The effective status according to determined by, determines first object output unit.
As an embodiment, the processor, it is additionally operable to perform when performing voice data processing routine:
When the switch element group includes a switch element, methods described also includes:
The switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by institute
The second output unit is stated to export the voice data;
Wherein, the electronic equipment comprises at least the first output unit and the second output unit.
As an embodiment, the processor, it is additionally operable to perform when performing voice data processing routine:
When the switch element group includes 2 switch elements, the switch element group state in which is first state
To the 4th state;
Retain the effective status in first state to the 4th state, delete the invalid shape in first state to the 4th state
State;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open simultaneously
The voice data is exported by first output unit;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and by described second
Output unit exports to the voice data;
Wherein, the electronic equipment includes the first output unit and the second output unit.
As an embodiment, the processor, it is additionally operable to perform when performing voice data processing routine:
During control first object output unit exports to the voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines the second mesh
Output unit is marked, controls the voice data to switch to the second target output unit by first object output unit and is exported.
Audio data processing method and electronic equipment provided in an embodiment of the present invention, in N number of output unit of electronic equipment
In, determine output unit (the first object output for being exported to voice data according to switch element group state in which
Unit), and exported the voice data obtained under HDMI in functions using first object output unit.With prior art
In only can be used Speaker carry out voice data output this single way of output compare, in this programme comprise at least it is N number of
Output unit, and according to switch element group state in which, it is determined that carrying out audio by an output unit in N number of output unit
The output of data.Solve the problems, such as that voice data can only be exported using Speaker, the way of output of voice data is no longer
It is single, meet the demand using a variety of audio output of user significantly, lift Consumer's Experience, strengthen the ease for use of electronic equipment.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of the first embodiment of audio data processing method provided by the invention;
Fig. 2 is the implementation process schematic diagram of the second embodiment of audio data processing method provided by the invention;
Fig. 3 (a), the circuit that (b) is voice data process circuit of the embodiment of the present invention form schematic diagram one, schematic diagram two;
Fig. 4 (a), the circuit that (b) is voice data process circuit of the embodiment of the present invention form schematic diagram three, schematic diagram four;
Fig. 5 is the composition structural representation of electronic equipment first embodiment provided by the invention;
Fig. 6 is the composition structural representation of electronic equipment second embodiment provided by the invention.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, it will be appreciated that described below is excellent
Select embodiment to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
It should be appreciated by those skilled in the art that this programme is applicable not only in AIO, apply also for other there is HDMI functions
Electronic equipment, such as PC (including computer of main frame and display), tablet personal computer PAD, smart mobile phone, wearable intelligence
Energy equipment, virtual reality device etc..
The first embodiment of audio data processing method provided by the invention, applied in electronic equipment.It is such as not special
Illustrate, the electronic equipment can set for foregoing AIO, PC, tablet personal computer PAD, smart mobile phone, wearable intelligence
Any one in standby, virtual reality device etc., preferably AIO.The electronic equipment has HDMI, and real by the interface
Existing HDMI in functions.Electronic equipment receives the input of external data by HDMI and passes through audio under HDMI in functions
And/or received input data is presented i.e. using electronic equipment as a display to use in video.
The implementation process of the first embodiment of audio data processing method provided by the invention is as shown in figure 1, methods described
Including:
Step 101:When the electronic equipment receives the first data by HDMI HDMI, obtain
Take the voice data in the first data;
Here, electronic equipment receives the input of external data (the first data) by HDMI, and from the first of reception
The voice data for needing electronic equipment to export is parsed in data.
Step 102:Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
Here, electronic equipment obtains the triggering command that carry out voice data output, and the triggering command can be based on user
Trigger action and obtain, such as electronic equipment detect user to the trigger action of predetermined function button or icon as double-click,
Click, the operation such as the click of pre-determined number when generate the triggering command, the predetermined function button or icon can be and electronics
The intrinsic button or icon of equipment are multiplexed, and can also be the button or icon additionally set.The trigger action can be
It is other any it is conceivable that operation.The triggering command is also based on the startup of the HDMI in functions of electronic equipment and obtained
Arrive, such as when by generating triggering command or in receiving and judging external data during HDMI reception external data
Triggering command is generated when there are voice data.The acquisition modes of certain triggering command can also be it is other any it is conceivable that
Mode, it is not limited in described above.
Step 103:Respond the triggering command;
Step 104:Obtain switch element group state in which;
Here, electronic equipment response triggering command and read switch unit group state in which.
Step 105:According to switch element group state in which, the first mesh is determined in N number of output unit of electronic equipment
Mark output unit;
Here, electronic equipment has N number of output unit, and N is the positive integer more than or equal to 2.According to residing for switch element group
State, it is determined that voice data is exported by which of N number of output unit output unit (first object output unit).
Step 106:Control first object output unit exports to the voice data.
Here, electronic equipment is exported voice data by first object output unit.
For abovementioned steps 101~106 to perform in the electronic device, executive agent is electronic equipment.
As an embodiment of the embodiment of the present invention, the electronic equipment comprises at least the first output unit and second
Output unit.When one of output unit is loudspeaker Speaker, another output unit can be specifically earphone
Headphone, Er Bao or headset, vice versa.First and second output unit described in this programme is audio output unit.
In the embodiment of the present invention, electronic equipment has N number of output unit, in N number of output unit, according to switch element group
State in which determines the output unit (first object output unit) for being exported to voice data, and utilizes the first mesh
Mark output unit is exported the voice data obtained under HDMI in functions.Carried out with Speaker is used only in the prior art
This single way of output of voice data output is compared, and solving voice data can only use what Speaker was exported
Problem, the way of output of voice data is no longer single, can meet the demand using a variety of audio output of user significantly, and lifting is used
Family is experienced, and strengthens the ease for use of electronic equipment.
The second embodiment of audio data processing method provided by the invention, applied in electronic equipment.It is such as not special
Illustrate, the electronic equipment can set for foregoing AIO, PC, tablet personal computer PAD, smart mobile phone, wearable intelligence
Any one in standby, virtual reality device etc., preferably AIO.The electronic equipment has HDMI, and real by the interface
Existing HDMI in functions.Electronic equipment receives the input of external data by HDMI and passes through audio under HDMI in functions
And/or received input data is presented i.e. using electronic equipment as a display to use in video.
The implementation process of the second embodiment of audio data processing method provided by the invention is as shown in Fig. 2 methods described
Including:
Step 201:When the electronic equipment receives the first data by HDMI HDMI, obtain
Take the voice data in the first data;
Here, electronic equipment receives the input of external data (the first data) by HDMI, and from the first of reception
The voice data for needing electronic equipment to export is parsed in data.
Step 202:Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
Here, electronic equipment obtains the triggering command that carry out voice data output, and the triggering command can be based on user
Trigger action and obtain, such as electronic equipment detect user to the trigger action of predetermined function button or icon as double-click,
Click, the operation such as the click of pre-determined number when generate the triggering command, the predetermined function button or icon can be and electronics
The intrinsic button or icon of equipment are multiplexed, and can also be the button or icon additionally set.The trigger action can be
It is other any it is conceivable that operation.The triggering command is also based on the startup of the HDMI in functions of electronic equipment and obtained
Arrive, such as when by generating triggering command or in receiving and judging external data during HDMI reception external data
Triggering command is generated when there are voice data.The acquisition modes of certain triggering command can also be it is other any it is conceivable that
Mode, it is not limited in described above.
Step 203:Respond the triggering command;
Here, electronic equipment responds the triggering command.
Step 204:Switch element group state in which is obtained, the switch element group includes M switch element, described to open
The state for closing unit group is 2MIndividual, M is the positive integer more than or equal to 1;
Here, electronic equipment read switch unit group state in which.
Step 205:2MEffective status is determined in individual state;
Here, when switch element group includes M switch element, switch element group has 2MIndividual state, 2MIn individual state
It is effective status to determine which state, and which is disarmed state.
Step 206:The effective status according to determined by, determines first object output unit;
Here, electronic equipment determines the output unit for voice data to be exported according to effective status.
Step 207:Control first object output unit exports to the voice data.
Here, electronic equipment is exported voice data by first object output unit.
As an embodiment of the embodiment of the present invention, the electronic equipment comprises at least the first output unit and second
Output unit.When one of output unit is loudspeaker Speaker, another output unit can be specifically earphone
Headphone, Er Bao or headset, vice versa.First and second output unit described in this programme is audio output unit.
As an embodiment of the embodiment of the present invention, when the switch element group includes a switch element, institute
Stating switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by institute
The second output unit is stated to export the voice data.
Fig. 3 (a), the circuit that (b) is voice data process circuit of the embodiment of the present invention form schematic diagram one, schematic diagram two.
Aforementioned embodiments are described further with reference to Fig. 3 (a), (b).
So that switch element group includes a switch (the switch SW1 in such as Fig. 3 (a), (b)) as an example, in the hard of electronic equipment
Include HDMI, HDMI controllers/chip, switch SW1, power amplifier, loudspeaker Speaker, earphone on part composition
Headphone。
When receiving external data (the first data) by HDMI when HDMI starts HDMI in functions, HDMI controls
Device/chip processed parses to external data, obtains needing the voice data exported, and pass through switch element SW1 shape
State determines to transmit voice data to Speaker to be also transferred to Headphone.Further, switch element SW1 has first
State (switch gets to position 1) and the second state (switch gets to position 2).When switch SW1 gets to position 1, voice data warp
Transmitted to power amplifier by switching SW1, and exported by the audio amplification of power amplifier to Speaker (the first output lists
Member), control Speaker is opened, and voice data is exported by Speaker.When switch SW1 gets to position 2, audio number
Opened according to being transmitted via switch SW2 to Headphone (the second output unit), control Headphone, and by Headphone pairs
Voice data is exported.
In the case of starting HDMI in functions when electronic equipment, voice data is given by HDMI controllers/chip
Go out.In the case where electronic equipment does not start HDMI in functions, voice data is generally provided by the master chip of electronic equipment,
In this case, can be according to the detection for the event that earphone, Er Bao or headset whether are inserted with to electronic equipment as shown in Fig. 3 (b)
As a result, determine to export voice data via Speaker or exported via Headphone.Specifically, if detecting does not have
The insertion of earphone, master chip are transmitted voice data to power amplifier by passage 1, and are put by the audio of power amplifier
Big output is carried out the output of voice data by Speaker to Speaker.If detect the presence of the insertion of earphone, main core
Piece is transmitted voice data to Headphone by passage 2, and the output of voice data is carried out by Headphone.
In aforementioned schemes, when it is Speaker and Headphone that electronic equipment, which has 2 audio output units, foundation is opened
Close SW1 and be in first state or the second state to determine to carry out the output of voice data still by Headphone by Speaker
Carry out the output of voice data.This single output for carrying out voice data output with Speaker is used only in the prior art
Mode is compared, and audio output mode is no longer single, can meet the demand using a variety of audio output of user significantly, lifts user
Experience, strengthen the ease for use of electronic equipment.
As an embodiment of the embodiment of the present invention, when switch element group includes 2 switch elements, the switch
Unit group state in which is first state to the 4th state;
Retain the effective status in first state to the 4th state, delete the invalid shape in first state to the 4th state
State;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open simultaneously
The voice data is exported by first output unit;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and by described second
Output unit exports to the voice data.
Fig. 4 (a), the circuit that (b) is voice data process circuit of the embodiment of the present invention form schematic diagram three, schematic diagram four.
Aforementioned embodiments are described further with reference to Fig. 4 (a), (b).
So that switch element group includes switch SW1 and switch SW2 as an example, connect on the hardware composition of electronic equipment including HDMI
Mouth, HDMI controllers/chip, switch SW1, switch SW2, power amplifier, loudspeaker Speaker, earphone Headphone.
Switch element group has the state of first state~the 4th totally four kinds of states.Wherein, first state is got to for switch SW1
Position 1, switch SW2 rest on position 3;Second state gets to position 1 for switch SW1, switch SW2 gets to position 4;The third state
Position 2 is got to for switch SW1, switch SW2 rests on position 3;4th state gets to position 2 for switch SW1, switch SW2 is got to
Position 4.Wherein, when switch element group is in the third state, voice data can not be exported by Speaker can not also pass through
Headphone is exported, and is disarmed state;First and second and the 4th state be effective status.
When receiving external data (the first data) by HDMI when HDMI starts HDMI in functions, HDMI controls
Device/chip processed parses to external data, obtains needing the voice data exported, and pass through switch element SW1 and SW2
Determines voice data transmitted to Speaker be also transferred to Headphone.Further, switch element group is the
When one state and the second state, that is, the state that SW1 gets to position 1 is switched, also beaten no matter now switching SW2 and resting on position 3
To position 4, voice data is transmitted to power amplifier via switch SW1, and amplifies output by the audio of power amplifier
To Speaker (the first output unit), control Speaker is opened, and voice data is exported by Speaker.Work as switch
When unit group is in four states, i.e. when switch SW1 gets to position 2, switch SW2 gets to position 4, voice data is via switch
SW1, SW2, which are transmitted to Headphone (the second output unit), control Headphone, to be opened, and by Headphone to audio number
According to being exported.
In the case of starting HDMI in functions when electronic equipment, voice data is given by HDMI controllers/chip
Go out.In the case where electronic equipment does not start HDMI in functions, voice data is generally provided by the master chip of electronic equipment,
In this case, can be according to the detection for the event that earphone, Er Bao or headset whether are inserted with to electronic equipment as shown in Fig. 4 (b)
As a result, determine to export voice data via Speaker or exported via Headphone.Specifically, if detecting does not have
The insertion of earphone, master chip are transmitted voice data to power amplifier by passage 1, and are put by the audio of power amplifier
Big output is carried out the output of voice data by Speaker to Speaker.If detect the presence of the insertion of earphone, main core
Piece is transmitted voice data to Headphone by passage 2, and the output of voice data is carried out by Headphone.
In aforementioned schemes, when it is Speaker and Headphone that electronic equipment, which has 2 audio output units, foundation is opened
Close unit group (switch SW1 and SW2) in which effective status come determine by Speaker carry out the output of voice data still by
Headphone carries out the output of voice data.This list for carrying out voice data output with Speaker is used only in the prior art
One way of output is compared, and audio output mode is no longer single, can meet the demand using a variety of audio output of user significantly,
Consumer's Experience is lifted, strengthens the ease for use of electronic equipment.
As an embodiment of the embodiment of the present invention, the audio data processing method also includes:
During control first object output unit exports to voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines the second mesh
Output unit is marked, controls the voice data to switch to the second target output unit by first object output unit and is exported.
So that output unit includes Speaker and Headphone as an example, such scheme is to realize different audio output units
Between switching.Switching command can be produced based on the operation of user and (understood with reference to foregoing triggering command), such as electricity
Sub- equipment detects that user is such as double-clicked to the trigger action of predetermined function button or icon, clicked, the click of pre-determined number is grasped
As when generate the switching command, the predetermined function button or icon can be and the intrinsic button or icon of electronic equipment are carried out
Multiplexing, can also be the button or icon additionally set.The operation can be it is other any it is conceivable that operation.Switching refers to
Order can also be that the plugging condition of earphone is provided for detection based on electronic equipment.
So that switching command is that the plugging condition of earphone is provided for detection based on electronic equipment as an example.
For example, work as electronic equipment during voice data is exported with Speaker (first object output unit), electronics
Equipment detects the insertion of earphone, generates switching command, responds switching command, and voice data is defeated from being carried out by Speaker
Go out to switch to and exported by Headphone (the second target output unit).Wherein, such as Fig. 3 (a), (b) and 4 (a), (b) institute
Show, the insertion of earphone is provided by enable signal EN, such as when it is high level to draw high EN signals i.e. EN, electronic equipment thinks there is ear
The insertion of machine.
Further for example, work as electronic equipment during voice data is exported with Headphone (first object output unit),
Electronic equipment detects the dial-out of earphone, generates switching command, switching command is responded, by voice data from by Headphone
Output switching is carried out extremely to be exported by Speaker (the second target output unit).Wherein, as Fig. 3 (a), (b) and 4 (a),
(b) shown in, the extraction of earphone is provided by enable signal EN changing value, such as when EN is changed to low level from high level, electricity
Sub- equipment thinks that the earphone of insertion originally is pulled out.
In such scheme, in the output procedure of voice data is carried out with first object output unit, based on what is detected
Switching command, realize the switching between output unit so that voice data reaches not interrupted output, ensures the output of voice data
Completely, so ensure user good usage experience.
The first embodiment of electronic equipment provided by the invention, such as there is no specified otherwise, the electronic equipment can be foregoing
AIO, PC, tablet personal computer PAD, smart mobile phone, wearable smart machine, any one in virtual reality device etc.
Kind, preferably AIO.The electronic equipment has HDMI, and realizes HDMI in functions by the interface.In HDMI in functions
Lower electronic equipment receives the input of external data by HDMI and received input number is presented by audio and/or video
According to using using electronic equipment as a display.
The composition structural representation of electronic equipment first embodiment provided by the invention, as shown in figure 5, the electronic equipment
Including:
Communicator 501, for receiving the first data by HDMI HDMI, obtain the first number
Voice data in;
Memory 502, for storing voice data processing routine;
Processor 503, for performing following operate when performing voice data processing routine:
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which;
According to switch element group state in which, determine that first object output is single in N number of output unit of electronic equipment
Member, N are the positive integer more than or equal to 2;
Control first object output unit exports to the voice data.
Wherein, electronic equipment, specifically communicator 501 pass through the defeated of HDMI reception external data (the first data)
Enter, and the voice data for needing electronic equipment to export is parsed from the first data of reception.
The processor 503, it is additionally operable to perform when performing voice data processing routine:It is defeated that acquisition will carry out voice data
The triggering command gone out.The triggering command can be obtained based on the trigger action of user, for example, electronic equipment, be specifically processor
503 detect user the trigger action of predetermined function button or icon is such as double-clicked, clicked, the click of pre-determined number operation when
The triggering command is generated, the predetermined function button or icon can be answered with the intrinsic button or icon of electronic equipment
With can also be the button or icon additionally set.The trigger action can be it is other any it is conceivable that operation.It is described
Triggering command is also based on the startup of the HDMI in functions of electronic equipment and obtained, such as when communicator 501 passes through HDMI
Processor 503 generates triggering command or is received in communicator 501 and judge external number at once during interface external data
Processor 503 generates triggering command when voice data is there are in.The acquisition modes of certain triggering command can also be other
It is any it is conceivable that mode, be not limited in described above.
The processor 503, it is additionally operable to perform when performing voice data processing routine:Respond triggering command and read and open
Unit group state in which is closed, according to switch element group state in which, it is determined that by which of N number of output unit output unit
(first object output unit) is exported voice data, and controls first object output unit to carry out the voice data
Output.
As an embodiment of the embodiment of the present invention, the electronic equipment comprises at least the first output unit and second
Output unit.When one of output unit is loudspeaker Speaker, another output unit can be specifically earphone
Headphone, Er Bao or headset, vice versa.First and second output unit described in this programme is audio output unit.
In the embodiment of the present invention, electronic equipment has N number of output unit, in N number of output unit, according to switch element group
State in which determines the output unit (first object output unit) for being exported to voice data, and utilizes the first mesh
Mark output unit is exported the voice data obtained under HDMI in functions.Carried out with Speaker is used only in the prior art
This single way of output of voice data output is compared, and solving voice data can only use what Speaker was exported
Problem, the way of output of voice data is no longer single, can meet the demand using a variety of audio output of user significantly, and lifting is used
Family is experienced, and strengthens the ease for use of electronic equipment.
The second embodiment of audio data processing method provided by the invention, applied in electronic equipment.It is such as not special
Illustrate, the electronic equipment can set for foregoing AIO, PC, tablet personal computer PAD, smart mobile phone, wearable intelligence
Any one in standby, virtual reality device etc., preferably AIO.The electronic equipment has HDMI, and real by the interface
Existing HDMI in functions.Electronic equipment receives the input of external data by HDMI and passes through audio under HDMI in functions
And/or received input data is presented i.e. using electronic equipment as a display to use in video.
The composition structural representation of electronic equipment first embodiment provided by the invention, as shown in fig. 6, the electronic equipment
Including:
Communicator 601, for receiving the first data by HDMI HDMI, obtain the first number
Voice data in;
Memory 602, for storing voice data processing routine;
Processor 603, for performing following operate when performing voice data processing routine:
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which, it is single that the switch element group includes M switch
Member, the state of the switch element group is 2MIndividual, M is the positive integer more than or equal to 1;
2MEffective status is determined in individual state;
The effective status according to determined by, determines first object output unit;
Control first object output unit exports to the voice data.
As an embodiment of the embodiment of the present invention, the electronic equipment comprises at least the first output unit and second
Output unit.When one of output unit is loudspeaker Speaker, another output unit can be specifically earphone
Headphone, Er Bao or headset, vice versa.First and second output unit described in this programme is audio output unit.
As an embodiment of the embodiment of the present invention, the processor 603, it is additionally operable to performing voice data processing
Performed during program:
When the switch element group includes a switch element, methods described also includes:
The switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by institute
The second output unit is stated to export the voice data.
As an embodiment of the embodiment of the present invention, the processor 603, it is additionally operable to performing voice data processing
Performed during program:
When the switch element group includes 2 switch elements, the switch element group state in which is first state
To the 4th state;
Retain the effective status in first state to the 4th state, delete the invalid shape in first state to the 4th state
State;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open simultaneously
The voice data is exported by first output unit;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and by described second
Output unit exports to the voice data.
As an embodiment of the invention, the processor 603, it is additionally operable to when performing voice data processing routine
Perform:
During control first object output unit exports to the voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines the second mesh
Output unit is marked, controls the voice data to switch to the second target output unit by first object output unit and is exported.
In Fig. 5,6, bus system 500 is used to realize communicator 501, memory 502, processor 503 these components
Between connection communication.Bus system 600 is used for the company for realizing communicator 601, memory 602, processor 603 these inter-modules
Connect letter.Bus system 500,600 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal are total
Line.But for the sake of clear explanation, various buses are all designated as bus system 500.
It should be noted that electronic equipment provided in an embodiment of the present invention, because the electronic equipment solves the principle of problem
Similar to foregoing audio data processing method, therefore, the implementation process and implementation principle of electronic equipment may refer to foregoing
Implementation process and the implementation principle description of method, repeat part and repeat no more.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware
Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of audio data processing method, it is characterised in that methods described includes:
When electronic equipment receives the first data by HDMI HDMI,
Obtain the voice data in the first data;
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which;
According to switch element group state in which, first object output unit, N are determined in N number of output unit of electronic equipment
For the positive integer more than or equal to 2;
Control first object output unit exports to the voice data.
2. according to the method for claim 1, it is characterised in that the switch element group includes M switch element, and M is big
In the positive integer equal to 1;
The state of the switch element group is 2MIt is individual;
2MEffective status is determined in individual state;
The effective status according to determined by, determines first object output unit.
3. method according to claim 1 or 2, it is characterised in that when the switch element group includes a switch element
When, methods described also includes:
The switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by described the
One output unit exports to the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by described the
Two output units export to the voice data;
Wherein, the electronic equipment comprises at least the first output unit and the second output unit.
4. according to the method for claim 2, it is characterised in that methods described also includes:
When the switch element group includes 2 switch elements, the switch element group state in which is first state to the
Four states;
Retain the effective status in first state to the 4th state, delete the disarmed state in first state to the 4th state;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and exported by described second
Unit exports to the voice data;
Wherein, the electronic equipment includes the first output unit and the second output unit.
5. according to the method for claim 1, it is characterised in that methods described also includes:
During control first object output unit exports to the voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines that the second target is defeated
Go out unit, control the voice data to switch to the second target output unit by first object output unit and exported.
6. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Communicator, for receiving the first data by HDMI HDMI, obtain in the first data
Voice data;
Memory, for storing voice data processing routine;
Processor, for performing following operate when performing voice data processing routine:
Triggering command is obtained, the triggering command is used to characterize the instruction that triggering voice data is exported;
The triggering command is responded, obtains switch element group state in which;
According to switch element group state in which, first object output unit, N are determined in N number of output unit of electronic equipment
For the positive integer more than or equal to 2;
Control first object output unit exports to the voice data.
7. electronic equipment according to claim 6, it is characterised in that the processor, be additionally operable to performing voice data
Performed during processing routine:
The switch element group includes M switch element, and M is the positive integer more than or equal to 1;
The state of the switch element group is 2MIt is individual;
2MEffective status is determined in individual state;
The effective status according to determined by, determines first object output unit.
8. the electronic equipment according to claim 6 or 7, it is characterised in that the processor, be additionally operable to performing audio number
Performed during according to processing routine:
When the switch element group includes a switch element, methods described also includes:
The switch element group state in which includes first state and the second state;
When the switch element is in first state, the first output unit of the electronic equipment is controlled to open and by described the
One output unit exports to the voice data;
When the switch element is in the second state, the second output unit of the electronic equipment is controlled to open and by described the
Two output units export to the voice data;
Wherein, the electronic equipment comprises at least the first output unit and the second output unit.
9. electronic equipment according to claim 7, it is characterised in that the processor, be additionally operable to performing voice data
Performed during processing routine:
When the switch element group includes 2 switch elements, the switch element group state in which is first state to the
Four states;
Retain the effective status in first state to the 4th state, delete the disarmed state in first state to the 4th state;
When effective status is first state and the second state, the first output unit of the electronic equipment is controlled to open and by institute
The first output unit is stated to export the voice data;
When effective status is four state, the second output unit of the electronic equipment is controlled to open and exported by described second
Unit exports to the voice data;
Wherein, the electronic equipment includes the first output unit and the second output unit.
10. electronic equipment according to claim 6, it is characterised in that the processor, be additionally operable to performing voice data
Performed during processing routine:
During control first object output unit exports to the voice data,
Switching command is obtained, the switching command is used to characterize the switching to output unit;
The switching command is responded, in other output units in addition to first object output unit, determines that the second target is defeated
Go out unit, control the voice data to switch to the second target output unit by first object output unit and exported.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710846535.4A CN107678728A (en) | 2017-09-19 | 2017-09-19 | Audio data processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710846535.4A CN107678728A (en) | 2017-09-19 | 2017-09-19 | Audio data processing method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107678728A true CN107678728A (en) | 2018-02-09 |
Family
ID=61136564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710846535.4A Pending CN107678728A (en) | 2017-09-19 | 2017-09-19 | Audio data processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107678728A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491181A (en) * | 2018-03-27 | 2018-09-04 | 联想(北京)有限公司 | A kind of audio output device and method |
CN113360126A (en) * | 2021-05-31 | 2021-09-07 | 联想(北京)有限公司 | Electronic equipment and control method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753316A (en) * | 2004-09-21 | 2006-03-29 | 华为技术有限公司 | Audio frequency output channel switching device and method |
CN101005582A (en) * | 2007-01-17 | 2007-07-25 | 上海晖悦数字视频科技有限公司 | Digital TV set with blue tooth transmission audio frequency function and blue tooth transmission method |
CN102665005A (en) * | 2012-04-26 | 2012-09-12 | 网经科技(苏州)有限公司 | Wireless multimedia terminal |
CN203193782U (en) * | 2013-03-04 | 2013-09-11 | 王莉 | Micro projector having HDMI and MHL double interfaces and wireless interface |
CN104506859A (en) * | 2014-12-31 | 2015-04-08 | 深圳创维-Rgb电子有限公司 | Television core test circuit and system |
-
2017
- 2017-09-19 CN CN201710846535.4A patent/CN107678728A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1753316A (en) * | 2004-09-21 | 2006-03-29 | 华为技术有限公司 | Audio frequency output channel switching device and method |
CN101005582A (en) * | 2007-01-17 | 2007-07-25 | 上海晖悦数字视频科技有限公司 | Digital TV set with blue tooth transmission audio frequency function and blue tooth transmission method |
CN102665005A (en) * | 2012-04-26 | 2012-09-12 | 网经科技(苏州)有限公司 | Wireless multimedia terminal |
CN203193782U (en) * | 2013-03-04 | 2013-09-11 | 王莉 | Micro projector having HDMI and MHL double interfaces and wireless interface |
CN104506859A (en) * | 2014-12-31 | 2015-04-08 | 深圳创维-Rgb电子有限公司 | Television core test circuit and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491181A (en) * | 2018-03-27 | 2018-09-04 | 联想(北京)有限公司 | A kind of audio output device and method |
CN108491181B (en) * | 2018-03-27 | 2021-04-13 | 联想(北京)有限公司 | Audio output device and method |
CN113360126A (en) * | 2021-05-31 | 2021-09-07 | 联想(北京)有限公司 | Electronic equipment and control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11630636B2 (en) | Changing companion communication device behavior based on status of wearable device | |
US8320586B2 (en) | System and method for reducing volume spike in an electronic device | |
CN106874233A (en) | A kind of Type C interface control circuit, control method and mobile terminal | |
CN111629304A (en) | Loudspeaker control method and device and electronic equipment | |
CN106527899A (en) | Full-screen playing mode control method and mobile terminal | |
CN107678728A (en) | Audio data processing method and electronic equipment | |
CN102937886A (en) | Audio frequency multidevice channel outputting method and device | |
CN107526601A (en) | A kind of mobile terminal method of adjustment, mobile terminal and storage medium | |
CN108153458A (en) | A kind of dialog box processing method, terminal device and computer readable storage medium | |
CN105430724B (en) | Frequency range processing method, device and communication terminal in a kind of communication terminal | |
CN108664430B (en) | Equipment identification method and device, storage medium and electronic equipment | |
CN105811515A (en) | Method and system for charging universal serial bus Bluetooth headset through mobile terminal | |
CN107193662A (en) | A kind of information synchronization method and mobile terminal based on dual system | |
CN107018557A (en) | A kind of terminal control method and terminal | |
CN108304135A (en) | A kind of method of adjustment and terminal of virtual modifier key | |
CN103813235A (en) | Information processing method and device | |
CN105099383A (en) | Information processing method and electronic equipment | |
CN107810640A (en) | Multi-media signal abnormality eliminating method and display device | |
CN103853609B (en) | A kind for the treatment of method and apparatus of signal | |
CN205121564U (en) | Embedded spare still original mounting encrypts in system | |
CN106954138A (en) | A kind of information processing method and electronic equipment | |
TW201500927A (en) | Systems and methods for recovering higher speed communication between devices | |
CN116390067A (en) | Earphone reconnection method and device, storage medium and electronic equipment | |
CN105335268B (en) | For controlling the method and apparatus of the NFC components in mobile equipment and mobile equipment | |
CN108228250A (en) | The display methods and terminal of a kind of application interface |
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 |