CN107493558B - A kind of voice signal control method and mobile terminal - Google Patents

A kind of voice signal control method and mobile terminal Download PDF

Info

Publication number
CN107493558B
CN107493558B CN201710800213.6A CN201710800213A CN107493558B CN 107493558 B CN107493558 B CN 107493558B CN 201710800213 A CN201710800213 A CN 201710800213A CN 107493558 B CN107493558 B CN 107493558B
Authority
CN
China
Prior art keywords
earpiece
target
mobile terminal
except
earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710800213.6A
Other languages
Chinese (zh)
Other versions
CN107493558A (en
Inventor
王东生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710800213.6A priority Critical patent/CN107493558B/en
Publication of CN107493558A publication Critical patent/CN107493558A/en
Application granted granted Critical
Publication of CN107493558B publication Critical patent/CN107493558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/305Electronic adaptation of stereophonic audio signals to reverberation of the listening space
    • H04S7/306For headphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Telephone Set Structure (AREA)

Abstract

The present invention provides a kind of voice signal control method and mobile terminal, the mobile terminal are connect with earphone, and the earphone includes two earpieces, wherein, this method comprises: detecting the earphone of the mobile terminal access with the presence or absence of target earpiece, wherein the target earpiece is the earpiece there are failure;The voice signal of first sound channel and the voice signal of second sound channel are carried out synthesis processing, obtain mixed sound signal by the target earpiece if it exists;The mixed sound signal is sent to another earpiece except the target earpiece, so that the earpiece can play the mixed sound signal.In this way, the mixed sound signal that the sound rendering of two sound channels is obtained, another earpiece being sent to except the target earpiece make mobile terminal that can still guarantee relatively good result of broadcast.

Description

A kind of voice signal control method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of voice signal control method and mobile terminals.
Background technique
With the rapid development of mobile terminal, mobile terminal has become essential a kind of tool in people's life, And the various aspects for user's life are brought great convenience.Mobile terminal, which is substantially all, can play audio or view Frequently, user can be used mobile terminal and watch some films or some songs of appreciation etc..In order to experience better sound effect Fruit, user can put on earphone to experience the voice signal of mobile terminal playing.
For existing mobile terminal when being played out using earphone, what the earpiece in left side played is the sound letter of L channel Number, what the earpiece on right side played is the voice signal of right channel.When there is the failure of side earpiece, user can only obtain one The voice signal of sound channel causes the result of broadcast of mobile terminal poor in this way.
Summary of the invention
The embodiment of the present invention provides a kind of voice signal control method and mobile terminal, to solve the ear of mobile terminal access When machine has the failure of side earpiece, the poor problem of result of broadcast.
In a first aspect, the movement the embodiment of the invention provides a kind of voice signal control method, applied to connection earphone Terminal, the earphone include two earpieces, which comprises
The earphone of the mobile terminal access is detected with the presence or absence of target earpiece, wherein the target earpiece is the presence of event The earpiece of barrier;
The target earpiece if it exists, the voice signal of the first sound channel and the voice signal of second sound channel are carried out at synthesis Reason, obtains mixed sound signal;
The mixed sound signal is sent to another earpiece except the target earpiece, so that the earpiece can play The mixed sound signal.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, and the mobile terminal is connect with earphone, the ear Machine includes two earpieces, which is characterized in that the mobile terminal includes:
Detection module, for detecting the earphone of the mobile terminal access with the presence or absence of target earpiece, wherein the target Earpiece is the earpiece there are failure;
Synthesis module, if there are the target earpieces for detection module detection, by the voice signal of the first sound channel Synthesis processing is carried out with the voice signal of second sound channel, obtains mixed sound signal;
Sending module, another earpiece for being sent to the mixed sound signal except the target earpiece, with The earpiece is set to can play the mixed sound signal.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, comprising: memory, processor and are stored in institute The computer program that can be run on memory and on the processor is stated, the processor executes real when the computer program Step in existing above sound signal control method.
In this way, detecting the earphone of the mobile terminal access with the presence or absence of target earpiece in the embodiment of the present invention, wherein The target earpiece is the earpiece there are failure;The target earpiece if it exists, by the voice signal and the rising tone of the first sound channel The voice signal in road carries out synthesis processing, obtains mixed sound signal;The mixed sound signal is sent to the target to listen Another earpiece except cylinder, so that the earpiece can play the mixed sound signal.In this way, by the sound rendering of two sound channels The mixed sound signal of acquisition, another earpiece being sent to except the target earpiece, guarantee that mobile terminal still can Relatively good result of broadcast.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart for the voice signal control method that one embodiment of the invention provides;
Fig. 2 is the flow chart for the voice signal control method that further embodiment of this invention provides;
Fig. 3 is one of the structure chart of mobile terminal that one embodiment of the invention provides;
Fig. 4 is one of the structure chart of detection module of mobile terminal that one embodiment of the invention provides;
Fig. 5 is the two of the structure chart of the detection module for the mobile terminal that one embodiment of the invention provides;
Fig. 6 is the three of the structure chart of the detection module for the mobile terminal that one embodiment of the invention provides;
Fig. 7 is the two of the structure chart for the mobile terminal that one embodiment of the invention provides;
Fig. 8 is the structure chart for the mobile terminal that further embodiment of this invention provides;
Fig. 9 is the structure chart for the mobile terminal that further embodiment of this invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is the flow chart of voice signal control method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to engaging lug The mobile terminal of machine, the earphone include two earpieces, as shown in Figure 1, comprising the following steps:
The earphone that step 101, the detection mobile terminal access whether there is target earpiece, wherein the target earpiece For there are the earpieces of failure.
In the embodiment of the present invention, above-mentioned target earpiece can be the left earpiece for the earphone connecting with mobile terminal, Huo Zheye It can be the right earpiece of earphone.The connection type of the earphone and mobile terminal can be wired connection, or be also possible to wireless Connection etc..Above-mentioned target earpiece is the earpiece there are failure, and can be target earpiece can not play voice signal, or can also Be target earpiece play voice signal volume very little, or be also possible to target earpiece broadcasting voice signal there are miscellaneous Sound etc..
Step 102, if it exists the target earpiece, by the voice signal of the first sound channel and the voice signal of second sound channel into Row synthesis processing, obtains mixed sound signal.
In the embodiment of the present invention, the voice signal of above-mentioned first sound channel can be the voice signal of L channel, be also possible to The voice signal of right channel;The voice signal of above-mentioned second sound channel can be the voice signal of L channel, be also possible to right channel Voice signal.Certainly, if the voice signal of the first sound channel is the voice signal of L channel, the voice signal of second sound channel here It can be the voice signal of right channel;If the voice signal of the first sound channel is the voice signal of right channel, the sound of second sound channel Sound signal can be the voice signal of L channel.
It is above-mentioned to carry out the voice signal of the first sound channel and the voice signal of second sound channel at synthesis in the embodiment of the present invention Reason, can be and directly carry out simple superposition processing, or the synthesis processing etc. that certain algorithms carry out also can be used.And During synthesis is handled, it can be filtered or be denoised etc. processing, have the voice signal after synthesis relatively good Result of broadcast.It it should be noted that if target earpiece is not present, can continue to test, process can also be terminated, the present invention is implemented Fig. 1 of example is illustrated with terminating process.
The mixed sound signal is sent to another earpiece except the target earpiece by step 103, so that this is listened Cylinder can play the mixed sound signal.
In the embodiment of the present invention, another earpiece except above-mentioned target earpiece can be the left earpiece of earphone, can also be with It is the right earpiece etc. of earphone.In this way by the way that mixed sound signal is sent to another earpiece except target earpiece, this is listened Cylinder can play the mixed sound signal, and user can hear the compound voice message that the sound rendering of two sound channels obtains Number, make mobile terminal that can still guarantee relatively good result of broadcast, user there can also be better experience.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
A kind of voice signal control method of the embodiment of the present invention, the earphone for detecting the mobile terminal access whether there is Target earpiece, wherein the target earpiece is the earpiece there are failure;The target earpiece if it exists, by the sound of the first sound channel The voice signal of sound signal and second sound channel carries out synthesis processing, obtains mixed sound signal;The mixed sound signal is sent out It send to another earpiece except the target earpiece, so that the earpiece can play the mixed sound signal.In this way, by two The mixed sound signal that the sound rendering of sound channel obtains, another earpiece being sent to except the target earpiece make mobile whole End can still guarantee relatively good result of broadcast.
Referring to fig. 2, Fig. 2 is the flow chart of voice signal control method provided in an embodiment of the present invention, is applied to engaging lug The mobile terminal of machine, the earphone include two earpieces.The main distinction of the present embodiment and last embodiment is in this method Whether the play mode for also judging mobile terminal switches to preset mode, if play mode switches to preset mode, will mix Voice signal is sent to another earpiece except target earpiece.As shown in Figure 2, comprising the following steps:
The earphone that step 201, the detection mobile terminal access whether there is target earpiece, wherein the target earpiece For there are the earpieces of failure.
In the embodiment of the present invention, above-mentioned target earpiece can be the left earpiece for the earphone connecting with mobile terminal, Huo Zheye It can be the right earpiece of earphone.The connection type of the earphone and mobile terminal can be wired connection, or be also possible to wireless Connection etc..Above-mentioned target earpiece is the earpiece there are failure, and can be target earpiece can not play voice signal, or can also Be target earpiece play voice signal volume very little, or be also possible to target earpiece broadcasting voice signal there are miscellaneous Sound etc..
Step 202, if it exists the target earpiece, by the voice signal of the first sound channel and the voice signal of second sound channel into Row synthesis processing, obtains mixed sound signal.
In the embodiment of the present invention, the voice signal of above-mentioned first sound channel can be the voice signal of L channel, be also possible to The voice signal of right channel;The voice signal of above-mentioned second sound channel can be the voice signal of L channel, be also possible to right channel Voice signal.Certainly, if the voice signal of the first sound channel is the voice signal of L channel, the voice signal of second sound channel here It can be the voice signal of right channel;If the voice signal of the first sound channel is the voice signal of right channel, the sound of second sound channel Sound signal can be the voice signal of L channel.
It is above-mentioned to carry out the voice signal of the first sound channel and the voice signal of second sound channel at synthesis in the embodiment of the present invention Reason, can be and directly carry out simple superposition processing, or the synthesis processing etc. that certain algorithms carry out also can be used.And During synthesis is handled, it can be filtered or be denoised etc. processing, have the voice signal after synthesis relatively good Result of broadcast.It it should be noted that if target earpiece is not present, can continue to test, process can also be terminated, the present invention is implemented Fig. 2 of example is illustrated with terminating process.
Step 203 judges whether the play mode of the mobile terminal switches to preset mode.
In the embodiment of the present invention, the title of above-mentioned preset mode can be arbitrarily by user setting, such as can be emergency mould Formula, or mixed mode etc. can also be.It is above-mentioned to switch to preset mode, it can show that a button switches over, or Can also be switched in setting etc., this embodiment of the present invention is not construed as limiting.
If step 204, the play mode switch to the preset mode, the mixed sound signal is sent to described Another earpiece except target earpiece.
In the embodiment of the present invention, another earpiece except above-mentioned target earpiece can be the left earpiece of earphone, can also be with It is the right earpiece etc. of earphone.In this way by the way that mixed sound signal is sent to another earpiece except target earpiece, this is listened Cylinder can play the mixed sound signal, and user can hear the compound voice message that the sound rendering of two sound channels obtains Number, make mobile terminal that can still guarantee relatively good result of broadcast, user there can also be better experience.By judging whether It is switched to preset mode, mixed sound signal is just sent to another except target earpiece when being switched to preset mode The operation that family carries out selectivity can be used in earpiece in this way.Because there may be times when user it is busy needs go to hurry, at this time without when Between operate mobile terminal, then regardless of earphone result of broadcast how, all do not affect user, default mould can be not turned at this time Formula reduces the operation of mobile terminal, so that the power consumption of mobile terminal comparatively can be saved.It should be noted that if institute It states play mode and does not switch to the preset mode, with no treatment, or process can also can be terminated, the present invention is real Fig. 2 in example is applied to be illustrated to terminate process.
Optionally, the step of earphone of the detection mobile terminal access whether there is target earpiece, comprising:
Detect the impedance value of each earpiece of the earphone;
From the impedance value of each earpiece, the impedance value except default impedance value range is judged whether there is;
Impedance value except the default impedance value range if it exists, by impedance value except the default impedance value range Earpiece be determined as the target earpiece.
In present embodiment, above-mentioned default impedance value range can be 16 Europe between 32 Europe, can be 15 Europe to 30 Europe Between, or it is also possible to any customized range of user, and in general this range can indicate listening for earphone Impedance when cylinder works normally.Earphone damage is typically all that perhaps short-circuit impedance at this time is very big or impedance is 0 for internal open circuit, It is easy to judge target earpiece at this time, i.e., earpiece of the impedance value except the default impedance value range is determined as the mesh Mark earpiece.Target earpiece is determined by way of judging whether there is the impedance value except default impedance value range, can make mesh The determination for marking earpiece is more accurate, so as to targeted processing mode.
Optionally, the step of earphone of the detection mobile terminal access whether there is target earpiece, comprising:
Detect the performance number of each earpiece of the earphone;
From the performance number of each earpiece, the performance number except predetermined power range is judged whether there is;
Performance number except the predetermined power range if it exists, by performance number listening except the predetermined power range Cylinder is determined as the target earpiece.
In present embodiment, above-mentioned predetermined power range can be 500 milliwatts between 800 milliwatts, can be 400 milliwatts To between 1000 milliwatts, or it is also possible to any customized range of user, and this range in general can be with table Show the power when earpiece of earphone works normally.In general, if the power of some earpiece of earphone work is not in this range It is interior, so that it may which that determining this earpiece, there are failures, are then assured that the earpiece is target earpiece.By judging whether there is The mode of performance number except predetermined power range determines target earpiece, and the determination of target earpiece can be made more accurate, thus Targetedly processing mode can be taken target earpiece.
Optionally, before the performance number judged whether there is except predetermined power range the step of, the method Further include:
Read the volume value of the mobile terminal setting;
According to preset incidence relation, the corresponding power bracket of the volume value is obtained;
By the corresponding power bracket of the volume value, it is determined as the predetermined power range.
In present embodiment, the volume value of above-mentioned mobile terminal setting can be 30%, 50% or other numerical value etc. Deng.Under different volume values, in general the broadcasting power of earpiece is different, in general volume is bigger, the function of earpiece Rate is also bigger.It is above-mentioned according to preset incidence relation, obtain the corresponding power bracket of the volume value and be understood that.Example Such as: when volume is 30%, can be according to the power bracket that preset incidence relation obtains is 300 milliwatts between 600 milliwatts; When volume is 50%, can be according to the power bracket that preset incidence relation obtains is 400 milliwatts between 800 milliwatts etc. Deng.Certainly, incidence relation here can be the reasonable incidence relation that user is arbitrarily arranged, and not limit this present embodiment It is fixed.In this way, determine different power brackets by different volume values, can make mobile terminal to the judgement of target earpiece more Finely, more accurately.
A kind of voice signal control method of the embodiment of the present invention, the earphone for detecting the mobile terminal access whether there is Target earpiece, wherein the target earpiece is the earpiece there are failure;The target earpiece if it exists, by the sound of the first sound channel The voice signal of sound signal and second sound channel carries out synthesis processing, obtains mixed sound signal;Judge broadcasting for the mobile terminal Whether mode playback switches to preset mode;If the play mode switches to the preset mode, by the mixed sound signal Another earpiece being sent to except the target earpiece.In this way, the compound voice message that the sound rendering of two sound channels is obtained Number, another earpiece being sent to except the target earpiece makes mobile terminal that can still guarantee relatively good result of broadcast. And under preset mode, the mixed sound signal is sent to another earpiece except the target earpiece, it can be more Meet the individual demand of user.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, is able to achieve sound in above-described embodiment The details of sound signal control method, and reach identical effect.As shown in figure 3, mobile terminal 300 includes detection module 301, closes At module 302 and sending module 303, detection module 301 and synthesis module 302 are connected, synthesis module 302 and sending module 303 Connection, in which:
Detection module 301, for detecting the earphone of the mobile terminal access with the presence or absence of target earpiece, wherein described Target earpiece is the earpiece there are failure;
Synthesis module 302 believes the sound of the first sound channel if there are the target earpieces for detection module detection Number synthesis processing is carried out with the voice signal of second sound channel, obtains mixed sound signal;
Sending module 303, another earpiece for being sent to the mixed sound signal except the target earpiece, So that the earpiece can play the mixed sound signal.
Optionally, as shown in figure 4, the detection module 301, comprising:
First detection sub-module 3011, the impedance value of each earpiece for detecting the earphone;
First judging submodule 3012, for judging whether there is default impedance from the impedance value of each earpiece The impedance value being worth except range;
First determines submodule 3013, if there are the default impedance values for first judging submodule 3012 judgement Earpiece of the impedance value except the default impedance value range is determined as the target earpiece by the impedance value except range.
Optionally, as shown in figure 5, the detection module 301, comprising:
Second detection sub-module 3014, the performance number of each earpiece for detecting the earphone;
Second judgment submodule 3015, for judging whether there is predetermined power from the performance number of each earpiece Performance number except range;
Second determines submodule 3016, if there are the predetermined power models for the second judgment submodule 3015 judgement Earpiece of the performance number except the predetermined power range is determined as the target earpiece by the performance number except enclosing.
Optionally, as shown in fig. 6, the detection module 301 further include:
Reading submodule 3017, for reading the volume value of the mobile terminal setting;
Acquisition submodule 3018, for obtaining the corresponding power bracket of the volume value according to preset incidence relation;
Third determines submodule 3019, for being determined as the predetermined power for the corresponding power bracket of the volume value Range.
Optionally, as shown in fig. 7, the mobile terminal 300 further include:
Judgment module 304, for judging whether the play mode of the mobile terminal switches to preset mode;
The sending module 303, is used for:
If the judgment module 304 judges that the play mode switches to the preset mode, by the compound voice message Another earpiece number being sent to except the target earpiece.
Mobile terminal 300 is able to achieve each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to avoid It repeats, which is not described herein again.
The mobile terminal 300 of the embodiment of the present invention, the earphone for detecting the mobile terminal access whether there is target earpiece, Wherein, the target earpiece is the earpiece there are failure;The target earpiece if it exists, by the voice signal of the first sound channel and The voice signal of two sound channels carries out synthesis processing, obtains mixed sound signal;The mixed sound signal is sent to the mesh Another earpiece except earpiece is marked, so that the earpiece can play the mixed sound signal.In this way, by the sound of two sound channels The mixed sound signal obtained is synthesized, another earpiece being sent to except the target earpiece makes mobile terminal still can be with Guarantee relatively good result of broadcast.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, is able to achieve sound in above-described embodiment The details of sound signal control method, and reach identical effect.As shown in figure 8, mobile terminal 800 includes: at least one processing Device 801, memory 802, at least one network interface 804 and user interface 803.Various components in mobile terminal 800 pass through Bus system 805 is coupled.It is understood that bus system 805 is for realizing the connection communication between these components.Total linear system System 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But for clear theory For the sake of bright, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable P ROM, EPROM), electrically erasable programmable read-only memory (Electrically EP ROM, EEPROM) Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as outside Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program or instruction of calling memory 802 to store, specifically, can be application The program or instruction stored in program 8022, computer program can realize following steps when being executed by processor 801: described in detection The earphone of mobile terminal access whether there is target earpiece, wherein the target earpiece is the earpiece there are failure;Institute if it exists Target earpiece is stated, the voice signal of the first sound channel and the voice signal of second sound channel are subjected to synthesis processing, obtain mixed sound Signal;The mixed sound signal is sent to another earpiece except the target earpiece, so that the earpiece can play institute State mixed sound signal.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: detecting each of described earphone The impedance value of earpiece;From the impedance value of each earpiece, the impedance value except default impedance value range is judged whether there is; Impedance value except the default impedance value range if it exists, earpiece of the impedance value except the default impedance value range is true It is set to the target earpiece.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: detecting each of described earphone The performance number of earpiece;From the performance number of each earpiece, the performance number except predetermined power range is judged whether there is;If There are the performance numbers except the predetermined power range, and earpiece of the performance number except the predetermined power range is determined as institute State target earpiece.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: reading the mobile terminal and set The volume value set;According to preset incidence relation, the corresponding power bracket of the volume value is obtained;The volume value is corresponding Power bracket is determined as the predetermined power range.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: judging the mobile terminal Whether play mode switches to preset mode;If the play mode switches to the preset mode, by the compound voice message Another earpiece number being sent to except the target earpiece.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 800 of the embodiment of the present invention, the earphone for detecting the mobile terminal access whether there is target earpiece, Wherein, the target earpiece is the earpiece there are failure;The target earpiece if it exists, by the voice signal of the first sound channel and The voice signal of two sound channels carries out synthesis processing, obtains mixed sound signal;The mixed sound signal is sent to the mesh Another earpiece except earpiece is marked, so that the earpiece can play the mixed sound signal.In this way, by the sound of two sound channels The mixed sound signal obtained is synthesized, another earpiece being sent to except the target earpiece makes mobile terminal still can be with Guarantee relatively good result of broadcast.
It is the structure chart that the present invention implements the mobile terminal provided referring to Fig. 9, Fig. 9, which can be realized above-mentioned The details of voice signal control method, and reach identical effect.As shown in figure 9, mobile terminal 900 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, processor 950, voicefrequency circuit 960, Communication module 970 and power supply 980.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 950 is given again, and can be received order that processor 950 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device 950 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 950 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900 Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/ Or the data in the second memory 922, computer program can realize following steps when being executed by processor 950: described in detection The earphone of mobile terminal access whether there is target earpiece, wherein the target earpiece is the earpiece there are failure;Institute if it exists Target earpiece is stated, the voice signal of the first sound channel and the voice signal of second sound channel are subjected to synthesis processing, obtain mixed sound Signal;The mixed sound signal is sent to another earpiece except the target earpiece, so that the earpiece can play institute State mixed sound signal.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: detecting each of described earphone The impedance value of earpiece;From the impedance value of each earpiece, the impedance value except default impedance value range is judged whether there is; Impedance value except the default impedance value range if it exists, earpiece of the impedance value except the default impedance value range is true It is set to the target earpiece.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: detecting each of described earphone The performance number of earpiece;From the performance number of each earpiece, the performance number except predetermined power range is judged whether there is;If There are the performance numbers except the predetermined power range, and earpiece of the performance number except the predetermined power range is determined as institute State target earpiece.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: reading the mobile terminal and set The volume value set;According to preset incidence relation, the corresponding power bracket of the volume value is obtained;The volume value is corresponding Power bracket is determined as the predetermined power range.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: judging the mobile terminal Whether play mode switches to preset mode;If the play mode switches to the preset mode, by the compound voice message Another earpiece number being sent to except the target earpiece.
Mobile terminal 900 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 900 of the embodiment of the present invention, the earphone for detecting the mobile terminal access whether there is target earpiece, Wherein, the target earpiece is the earpiece there are failure;The target earpiece if it exists, by the voice signal of the first sound channel and The voice signal of two sound channels carries out synthesis processing, obtains mixed sound signal;The mixed sound signal is sent to the mesh Another earpiece except earpiece is marked, so that the earpiece can play the mixed sound signal.In this way, by the sound of two sound channels The mixed sound signal obtained is synthesized, another earpiece being sent to except the target earpiece makes mobile terminal still can be with Guarantee relatively good result of broadcast.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is computer program, the computer program realizes following steps when being executed by processor: detecting the mobile terminal access Earphone whether there is target earpiece, wherein the target earpiece is the earpiece there are failure;The target earpiece if it exists, will The voice signal of first sound channel and the voice signal of second sound channel carry out synthesis processing, obtain mixed sound signal;It will be described mixed Chorus sound signal is sent to another earpiece except the target earpiece, so that the earpiece can play the compound voice message Number.
Optionally, computer program, which is performed, can also be achieved following steps: detect the resistance of each earpiece of the earphone Anti- value;From the impedance value of each earpiece, the impedance value except default impedance value range is judged whether there is;Institute if it exists The impedance value except default impedance value range is stated, earpiece of the impedance value except the default impedance value range is determined as described Target earpiece.
Optionally, computer program, which is performed, can also be achieved following steps: detect the function of each earpiece of the earphone Rate value;From the performance number of each earpiece, the performance number except predetermined power range is judged whether there is;It is described if it exists Earpiece of the performance number except the predetermined power range is determined as the target and listened by the performance number except predetermined power range Cylinder.
Optionally, computer program, which is performed, can also be achieved following steps: read the volume of the mobile terminal setting Value;According to preset incidence relation, the corresponding power bracket of the volume value is obtained;By the corresponding power model of the volume value It encloses, is determined as the predetermined power range.
Optionally, computer program, which is performed, can also be achieved following steps: judge the play mode of the mobile terminal Whether preset mode is switched to;If the play mode switches to the preset mode, the mixed sound signal is sent to Another earpiece except the target earpiece.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (9)

1. a kind of voice signal control method, applied to the mobile terminal of connection earphone, the earphone includes two earpieces, special Sign is, comprising:
The earphone of the mobile terminal access is detected with the presence or absence of target earpiece, wherein the target earpiece is that there are failures Earpiece;
The voice signal of first sound channel and the voice signal of second sound channel are carried out synthesis processing by the target earpiece if it exists, Obtain mixed sound signal;
The mixed sound signal is sent to another earpiece except the target earpiece, so that the earpiece is playable described Mixed sound signal;
The step of earphone of the detection mobile terminal access whether there is target earpiece, comprising:
Detect the performance number of each earpiece of the earphone;
From the performance number of each earpiece, the performance number except predetermined power range is judged whether there is;
Performance number except the predetermined power range if it exists, earpiece of the performance number except the predetermined power range is true It is set to the target earpiece.
2. the method according to claim 1, wherein whether the earphone of the detection mobile terminal access is deposited The target earpiece the step of, comprising:
Detect the impedance value of each earpiece of the earphone;
From the impedance value of each earpiece, the impedance value except default impedance value range is judged whether there is;
Impedance value except the default impedance value range if it exists, by impedance value listening except the default impedance value range Cylinder is determined as the target earpiece.
3. the method according to claim 1, wherein being judged whether there is except predetermined power range described Before the step of performance number, the method also includes:
Read the volume value of the mobile terminal setting;
According to preset incidence relation, the corresponding power bracket of the volume value is obtained;
By the corresponding power bracket of the volume value, it is determined as the predetermined power range.
4. according to the method in any one of claims 1 to 3, which is characterized in that believe in the sound by the first sound channel It is described by the mixing after the step of number carrying out synthesis processing with the voice signal of second sound channel, obtain mixed sound signal Voice signal was sent to before the step of another earpiece except the target earpiece, the method also includes:
Judge whether the play mode of the mobile terminal switches to preset mode;
The step of described another earpiece being sent to the mixed sound signal except the target earpiece, comprising:
If the play mode switches to the preset mode, the mixed sound signal is sent to except the target earpiece Another earpiece.
5. a kind of mobile terminal, the mobile terminal is connect with earphone, and the earphone includes two earpieces, which is characterized in that institute Stating mobile terminal includes:
Detection module, for detecting the earphone of the mobile terminal access with the presence or absence of target earpiece, wherein the target earpiece For there are the earpieces of failure;
Synthesis module, if for detection module detection there are the target earpiece, by the voice signal of the first sound channel and the The voice signal of two sound channels carries out synthesis processing, obtains mixed sound signal;
Sending module, another earpiece for being sent to the mixed sound signal except the target earpiece, so that should Earpiece can play the mixed sound signal;
The detection module, comprising:
Second detection sub-module, the performance number of each earpiece for detecting the earphone;
Second judgment submodule, for judging whether there is except predetermined power range from the performance number of each earpiece Performance number;
Second determines submodule, if there are the power except the predetermined power range for second judgment submodule judgement Value, is determined as the target earpiece for earpiece of the performance number except the predetermined power range.
6. mobile terminal according to claim 5, which is characterized in that the detection module, comprising:
First detection sub-module, the impedance value of each earpiece for detecting the earphone;
First judging submodule, for from the impedance value of each earpiece, judge whether there is default impedance value range it Outer impedance value;
First determines submodule, if there are the resistances except the default impedance value range for first judging submodule judgement Earpiece of the impedance value except the default impedance value range is determined as the target earpiece by anti-value.
7. mobile terminal according to claim 5, which is characterized in that the detection module further include:
Reading submodule, for reading the volume value of the mobile terminal setting;
Acquisition submodule, for obtaining the corresponding power bracket of the volume value according to preset incidence relation;
Third determines submodule, for being determined as the predetermined power range for the corresponding power bracket of the volume value.
8. mobile terminal according to any one of claims 5 to 7, which is characterized in that the mobile terminal further include:
Judgment module, for judging whether the play mode of the mobile terminal switches to preset mode;
The sending module, is used for:
If the judgment module judges that the play mode switches to the preset mode, the mixed sound signal is sent to Another earpiece except the target earpiece.
9. a kind of mobile terminal characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor is realized when executing the computer program as in Claims 1-4 Step in described in any item voice signal control methods.
CN201710800213.6A 2017-09-07 2017-09-07 A kind of voice signal control method and mobile terminal Active CN107493558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710800213.6A CN107493558B (en) 2017-09-07 2017-09-07 A kind of voice signal control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710800213.6A CN107493558B (en) 2017-09-07 2017-09-07 A kind of voice signal control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107493558A CN107493558A (en) 2017-12-19
CN107493558B true CN107493558B (en) 2019-01-15

Family

ID=60652506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710800213.6A Active CN107493558B (en) 2017-09-07 2017-09-07 A kind of voice signal control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107493558B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604643B (en) * 2022-12-12 2023-03-17 杭州兆华电子股份有限公司 Automatic detection and positioning method for poor production of mobile phone charger

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044199A (en) * 1989-01-10 1990-07-25 任天堂株式会社 Can produce the electronic game computer of pseudostereo
WO2017035281A2 (en) * 2015-08-25 2017-03-02 Dolby International Ab Audio encoding and decoding using presentation transform parameters
CN106937233A (en) * 2017-02-24 2017-07-07 上海与德信息技术有限公司 The method and device of audio fault detect
CN107920321A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 A kind of loudspeaker faults treating method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1044199A (en) * 1989-01-10 1990-07-25 任天堂株式会社 Can produce the electronic game computer of pseudostereo
WO2017035281A2 (en) * 2015-08-25 2017-03-02 Dolby International Ab Audio encoding and decoding using presentation transform parameters
CN107920321A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 A kind of loudspeaker faults treating method and apparatus
CN106937233A (en) * 2017-02-24 2017-07-07 上海与德信息技术有限公司 The method and device of audio fault detect

Also Published As

Publication number Publication date
CN107493558A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN106205580B (en) A kind of audio data processing method and terminal
CN106504777B (en) A kind of processing method and mobile terminal of recording data
CN106973167B (en) A kind of income prompting method and mobile terminal
CN106817656B (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN106020612B (en) A kind of data display method and mobile terminal
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN106445235B (en) A kind of touch initial position recognition methods and mobile terminal
CN106341538B (en) A kind of method for pushing and mobile terminal of lyrics poster
CN106791015A (en) A kind of message is played and answering method and device
CN107423018B (en) A kind of multi-screen display method and terminal
CN106851486B (en) A kind of switching method and mobile terminal of earphone sound channel
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
CN106210231B (en) A kind of method and mobile terminal of information processing
CN105812976B (en) Earphone, method for adjusting the position of microphone on earphone, and a terminal
CN106648538B (en) A kind of audio frequency playing method and mobile terminal of mobile terminal
CN106648857A (en) Method for starting OTG function of mobile terminal and mobile terminal
CN106527937B (en) A kind of adding method and mobile terminal of mobile terminal widget
CN107562404A (en) A kind of audio frequency playing method, mobile terminal and computer-readable recording medium
CN108268395A (en) A kind of method and mobile terminal of data communication
CN107493558B (en) A kind of voice signal control method and mobile terminal
CN107678642A (en) The control method and mobile terminal of a kind of application
CN108271093A (en) The processing method and mobile terminal of a kind of access device
CN107172486A (en) A kind of video encoding/decoding method and mobile terminal
CN107026986A (en) The processing method and mobile terminal of a kind of video background music

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant