CN107707728A - A kind of audio transmission switching method, terminal and computer-readable recording medium - Google Patents

A kind of audio transmission switching method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107707728A
CN107707728A CN201710613206.5A CN201710613206A CN107707728A CN 107707728 A CN107707728 A CN 107707728A CN 201710613206 A CN201710613206 A CN 201710613206A CN 107707728 A CN107707728 A CN 107707728A
Authority
CN
China
Prior art keywords
acoustic component
audio file
terminal
operating conditions
normal operating
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.)
Withdrawn
Application number
CN201710613206.5A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710613206.5A priority Critical patent/CN107707728A/en
Publication of CN107707728A publication Critical patent/CN107707728A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Abstract

The embodiment of the invention discloses a kind of audio transmission switching method, and when the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is normal operating conditions;When the working condition of first acoustic component is not normal operating conditions, the task on the first acoustic component is switched on the second acoustic component according to preset rules, the task on first acoustic component is performed by second acoustic component.The embodiment of the present invention also provides a kind of terminal and computer-readable recording medium.Audio transmission switching method, terminal and computer-readable recording medium disclosed in the embodiment of the present invention, when the acoustic component of terminal breaks down, the automatic task that will appear from the acoustic component of failure is switched to normal acoustic component and performed, the normal use of terminal is not influenceed, the continuity of terminal works is ensure that, improves operating efficiency.

Description

A kind of audio transmission switching method, terminal and computer-readable recording medium
Technical field
The present invention relates to electronic technology field, more particularly to a kind of audio transmission switching method, terminal and computer-readable Storage medium.
Background technology
With the continuous development of internet and electronic technology, the intelligent mobile terminal such as mobile phone, tablet personal computer PAD is given birth in people Application in work is more and more extensive.The intelligent terminals such as mobile phone, PAD have acoustic component, such as audio outlet plug, microphone MIC, loudspeaker, it can export to listen by loudspeaker and sing or take phone.
In the prior art, when the acoustic component of terminal, such as during the failure such as microphone, loudspeaker, user can only be to going out The audio parts of existing failure place under repair, and can just be continuing with, and otherwise will be unable to normal use terminal, and when repairing, use Family will be unable to using terminal and be communicated with the external world, have a strong impact on the normal work life of user.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention provides a kind of audio transmission switching method, terminal and computer Readable storage medium storing program for executing, the work on the acoustic component of failure can be will appear from automatically when the acoustic component of terminal breaks down Task is switched to normal acoustic component and performed, and does not influence the normal use of terminal, ensure that the continuity of terminal works, improves Operating efficiency, meanwhile, improve Consumer's Experience.
The technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of audio transmission switching method, and methods described includes:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is just Normal working condition;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first audio Task on part is switched on the second acoustic component, and first acoustic component is performed by second acoustic component On task.
Further, when first acoustic component in terminal is started working, the work of first acoustic component is detected Make whether state is normal operating conditions, including:
When the first acoustic component of the terminal commences play out the first audio file, first acoustic component is played The voice signal of first audio file recorded, obtain the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, The working condition for determining first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition When, the working condition for determining first acoustic component is normal operating conditions.
Further, when first acoustic component in terminal is started working, the work of first acoustic component is detected Make whether state is normal operating conditions, including:
When the first acoustic component of the terminal starts to obtain voice signal, generated according to the voice signal of the acquisition 3rd audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the work of first acoustic component is determined State is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work of first acoustic component is determined It is normal operating conditions to make state.
Further, it is described that the task on the first acoustic component is switched to the second acoustic component according to preset rules On, including:
According to the operative scenario of the first acoustic component and pre-set priority relation list, determine that first acoustic component is cut Second acoustic component changed, the task on first acoustic component is switched on second acoustic component.
Further, the task on the first acoustic component is switched to the second audio portion according to preset rules described After on part, in addition to:
Display reminding information, the prompt message are used to remind the task on first acoustic component to have been switched to On second acoustic component.
The embodiment of the present invention also provides a kind of terminal, and the terminal includes:Processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the audio transmission changeover program stored in memory, to realize following steps:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is just Normal working condition;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first audio Task on part is switched on the second acoustic component, and first acoustic component is performed by second acoustic component On task.
Further, the processor is additionally operable to perform the audio transmission changeover program that stores in memory, with realize with Lower step:
When the first acoustic component of the terminal commences play out the first audio file, first acoustic component is played The voice signal of first audio file recorded, obtain the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, The working condition for determining first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition When, the working condition for determining first acoustic component is normal operating conditions
Further, the processor is additionally operable to perform the audio transmission changeover program that stores in memory, with realize with Lower step:
When the first acoustic component of the terminal starts to obtain voice signal, generated according to the voice signal of the acquisition 3rd audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the work of first acoustic component is determined State is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work of first acoustic component is determined It is normal operating conditions to make state.
Further, the processor is additionally operable to perform the audio transmission changeover program that stores in memory, with realize with Lower step:
According to the operative scenario of the first acoustic component and pre-set priority relation list, determine that first acoustic component is cut Second acoustic component changed, the task on first acoustic component is switched on second acoustic component.
Further, the task on the first acoustic component is switched to the second audio portion according to preset rules described After on part, the processor is additionally operable to perform the audio transmission changeover program stored in memory, to realize following steps:
Display reminding information, the prompt message are used to remind the task on first acoustic component to have been switched to On second acoustic component.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has One or more program, one or more of programs can be walked by one or more computing device so that realization is following Suddenly:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is just Normal working condition;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first audio Task on part is switched on the second acoustic component, and first acoustic component is performed by second acoustic component On task.
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
When the first acoustic component of the terminal commences play out the first audio file, first acoustic component is played The voice signal of first audio file recorded, obtain the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, The working condition for determining first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition When, the working condition for determining first acoustic component is normal operating conditions
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
When the first acoustic component of the terminal starts to obtain voice signal, generated according to the voice signal of the acquisition 3rd audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the work of first acoustic component is determined State is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work of first acoustic component is determined It is normal operating conditions to make state.
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
According to the operative scenario of the first acoustic component and pre-set priority relation list, determine that first acoustic component is cut Second acoustic component changed, the task on first acoustic component is switched on second acoustic component.
Further, the task on the first acoustic component is switched to the second audio portion according to preset rules described After on part, one or more of programs can also be by one or more of computing devices, to realize following steps:
Display reminding information, the prompt message are used to remind the task on first acoustic component to have been switched to On second acoustic component.
The embodiments of the invention provide a kind of audio transmission switching method, terminal and computer-readable recording medium, at end When first acoustic component at end is started working, whether the working condition for detecting first acoustic component is normal operating conditions; When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first acoustic component Task is switched on the second acoustic component, and the work on first acoustic component is performed by second acoustic component Task.Audio transmission switching method, terminal and computer-readable recording medium provided in an embodiment of the present invention, can be in terminal When acoustic component breaks down, it will appear from the task on the acoustic component of failure automatically and be switched to normal acoustic component holding OK, the normal use of terminal is not influenceed, ensure that the continuity of terminal works, improves operating efficiency, meanwhile, improve user Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is audio transmission switching method schematic flow sheet one provided in an embodiment of the present invention;
Fig. 4 is audio transmission switching method schematic flow sheet two provided in an embodiment of the present invention;
Fig. 5 is audio transmission switching terminal display example figure one provided in an embodiment of the present invention;
Fig. 6 is audio transmission switching terminal display example figure two provided in an embodiment of the present invention;
Fig. 7 is audio transmission switching method schematic flow sheet three provided in an embodiment of the present invention;
Fig. 8 is audio transmission switching terminal display example figure three provided in an embodiment of the present invention;
Fig. 9 is terminal structure schematic diagram provided in an embodiment of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving GateWay, Gateway) 2034, PGW (PDN GateWay, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and EPC203 between The control node of signaling, there is provided carrying and connection management.HSS2032 is used to provide some registers to manage such as homing position The function of register (not shown) etc, and some are preserved about the special letter of the users such as service features, data rate Breath.All customer data can be transmitted by SGW2034, PGW2035 can provide UE 201 IP address distribute with And other functions, PCRF2036 are the strategy and charging control policy decision point of business data flow and IP bearing resources, it is plan Available strategy and charging control decision-making are slightly selected and provided with charge execution function unit (not shown).
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
The embodiment of the present invention provides a kind of audio transmission switching method, as shown in figure 3, this method can include:
Step 301, when the first acoustic component of terminal is started working, detect the working condition of first acoustic component Whether it is normal operating conditions.
Specifically, in the embodiment of the present invention, when the first acoustic component of terminal is started working, first audio is detected Whether the working condition of part is that normal operating conditions can be realized by terminal, i.e. first sound of the terminal root in terminal itself When frequency part is started working, whether the working condition for detecting first acoustic component is normal operating conditions.The present invention is implemented Terminal in example can be with acoustic component mobile terminal, can be preferably to have the intelligent movable of multiple acoustic components whole End.
Wherein, mobile terminal refers to the equipment that can be used on the move, and broad sense is said including mobile phone, notebook, flat board Computer, POS, or even including vehicle-mounted computer.But refer to mobile phone or the intelligence with a variety of application functions in most cases Can mobile phone and tablet personal computer.As network and technology are towards the development in more and more broadband direction, Mobile Communication Industry will Move towards the real mobile message epoch.On the other hand, with the rapid development of integrated circuit technique, the disposal ability of mobile terminal Powerful disposal ability is had, it is flat that mobile terminal is being changed into an integrated information processing from simple call instrument Platform.This also adds broader development space to mobile terminal.Mobile terminal is as simple communication equipment with mobile logical The history of letter development existing decades.Mobile intelligent terminal be almost changed between a flash Internet service crucial entrance and Main innovation platform, new media, ecommerce and information service platform, Internet resources, mobile network resource and environment are handed over The most important hinge of mutual resource, its operating system and processor chips are even as current whole information and communication technology (ICT) industry Strategic high ground.Mobile intelligent terminal can be referred to as intelligent terminal, and mobile intelligent terminal possesses access the Internet capability, generally Various operating systems are carried, various functions can be customized according to user's request.Common intelligent terminal includes intelligent movable in life Terminal, vehicle intelligent terminal, intelligent television, wearable device etc..
Here, acoustic component, which is specifically as follows, has the part for playing sound or sound-recording function in terminal, such as Mike Wind, receiver, loudspeaker, microphone etc..
Wherein, microphone is properly termed as microphone again, is the energy conversion device that voice signal is converted to electric signal, by This English word transliteration of Microphone, is referred to as microphone, microphone.Twentieth century, microphone is by initially leading to Cross resistance conversion acoustic-electric and develop into inductance, condenser type conversion, a large amount of new microphone techniques gradually grow up, included among these The microphones such as aluminium strip, moving-coil, and it is currently being widely used capacitance microphone and electret microphone.
Wherein, receiver is a kind of accessory of the communication tools such as phone, intercom, mobile phone transmission sound, is the one of loudspeaker Kind.Can all there is a small film inside microphone and receiver, the film in microphone plays a part of eardrum in the ear of people, and you are to it Speak, film can vibrate, and film is connected to a small coil, and this coil is to change position with thin vibration of membrane, is talked about There is the permanent magnet (being fixed in microphone enclosure) that a fritter is fixed in cylinder.Film is flexible, typically both plays vibration Effect, also functions to the effect for coil being retracted initial position.Film one is fixed in microphone enclosure, a coil of ining succession.When During vibration of thin membrane, band moving winding vibrates, and the relative position of coil and permanent magnet changes, and this make it that the magnetic field through coil becomes Change, changes of magnetic field can produce induced electromotive force in coil, also just generate electric current.Specific sound has specific vibration, Specific vibration produces the electric current of particular form.So microphone just form sound " coding " into electric current.The principle of receiver It is the inverse process of microphone, structure is also about the same.Also there is a film in receiver, film is connected to a coil, equally also had One block permanent magnet.The electric current (such as microphone electric current that just " coding " completes) of particular form flows through the coil of receiver, thus So that magnetic field changes caused by coil, then the magnetic force between permanent magnet and coil changes, then permanent magnet and line The distance of circle can change.Vibration of thin membrane has thus been driven, has sent sound.
Here, the first acoustic component of terminal, which is started working, can specifically include two kinds of job categories:Obtain sound and defeated Go out sound, wherein, obtaining sound can include:Recording, voice communication when making a phone call etc.;Output sound can include:Play Music, playback file, voice communication when making a phone call etc..
Exemplary, during sound is obtained, whether the working condition of the first acoustic component of detection is normal work shape State is it is to be understood that in the microphone of mobile phone carries out Recording Process, and whether the microphone for detecting the recording damages, if the Mike Windage loss is bad, then it is assumed that and the recording working condition of the microphone is not normal operating conditions, if the microphone does not damage, work of recording Normally, then it is assumed that the recording working condition of the microphone is normal operating conditions.
Exemplary, during sound is exported, whether the working condition of the first acoustic component of detection is normal work shape It is to be understood that during the loudspeaker of mobile phone play out music, whether the loudspeaker that detection plays music damage state, if should Loudspeaker damage, then it is assumed that the broadcasting working condition of the loudspeaker is not normal operating conditions, if the loudspeaker do not damage, plays music work Make normal, then it is assumed that the broadcasting working condition of the loudspeaker is normal operating conditions.
Step 302, when the working condition of first acoustic component is not normal operating conditions, according to preset rules will Task on first acoustic component is switched on the second acoustic component, and described first is performed by second acoustic component Task on acoustic component.
Specifically, terminal can determine institute according to the operative scenario and pre-set priority relation list of the first acoustic component Second acoustic component of the first acoustic component switching is stated, the task on first acoustic component is switched to described On second acoustic component.
Here, operative scenario can include:Voice call scene, music scenario, driving scene etc. are listened, can also be other Scene, the embodiment of the present invention do not limited this.
Specifically, the preferred selection order that acoustic component switches in the case of different scenes is pre-set in terminal, so, After knowing current operative scenario, according to the preferential transfer sequence of the operative scenario subaudio frequency part acoustic component can be selected to enter Row switching, it is thus possible to so that obtain preferably input sound or output sound effect in different operative scenarios.
Exemplary, when terminal plays out music by loudspeaker, when event occur in the loudspeaker for detecting the broadcasting music During barrier, according to the preferred selection order for listening music scenario, prioritizing selection is switched to earphone, plays music by earphone, works as earphone When not connected, reselection is switched to receiver, and music is played by receiver.
Further, this method can also include:When the working condition of first acoustic component is normal operating conditions When, keep the task on first acoustic component.
Exemplary, when terminal plays out music by loudspeaker, when the loudspeaker for detecting the broadcasting music do not occur It during failure, then need not switch over, keep acoustic component used in current broadcasting constant, that is, continue through the loudspeaker and broadcast Put the music on.
Audio transmission switching method provided in an embodiment of the present invention, can be when the acoustic component of terminal breaks down, certainly The dynamic task that will appear from the acoustic component of failure is switched to normal acoustic component and performed, and not influenceing the normal of terminal makes With, the continuity of terminal works is ensure that, improves operating efficiency, meanwhile, improve Consumer's Experience.
The embodiment of the present invention provides a kind of audio transmission switching method, as shown in figure 4, this method can include:
Step 401, when the first acoustic component of terminal commences play out the first audio file, to first acoustic component The voice signal of first audio file played is recorded, and obtains the second audio file.
In the embodiment of the present invention, the voice signal of first audio file played to first acoustic component is carried out It can be realized by terminal that recording, which obtains the second audio file, and the terminal can be with acoustic component mobile terminal, preferably Can be the mobile intelligent terminal with multiple acoustic components.
Here, acoustic component, which is specifically as follows, has the part for playing sound in terminal, such as receiver, loudspeaker, earphone etc..
Audio transmission switching method provided in an embodiment of the present invention is applied to the operative scenario of terminal output sound.Wherein, Output sound can include:Play music, playback file, voice communication when making a phone call etc..
Exemplary, as shown in figure 5, loudspeaker are arranged on the bottom of mobile phone terminal, when passing through mobile phone to play music, pass through The loudspeaker output of terminal bottom plays the sound of music, is as shown in phantom in Figure 5 the sound transmission of example, in terminal plays sound The voice signal for the music that terminal backstage plays out to the loudspeaker is recorded when happy, obtains the audio file of recording.
Step 402, the frequency spectrum of second audio file and first audio file is subjected to analysis contrast.
Step 403, when the frequency spectrum difference between second audio file and first audio file meet it is first pre- If during condition, the working condition for determining first acoustic component is not normal operating conditions.
Specifically, after the sound recording for the audio file that terminal plays acoustic component, by the recording file and the broadcasting The frequency spectrum of audio file in itself carries out analysis contrast, when both difference are larger, determines that the acoustic component plays audio and is not Normally, i.e., the acoustic component breaks down, and the working condition of acoustic component is not normal operating conditions.
Step 404, it is unsatisfactory for second when the frequency spectrum difference between second audio file and first audio file During preparatory condition, the working condition for determining first acoustic component is normal operating conditions.
Specifically, after the sound recording for the audio file that terminal plays acoustic component, by the recording file and the broadcasting The frequency spectrum of audio file in itself carries out analysis contrast, when both difference are smaller, determines that the acoustic component plays audio as just Normal, i.e., the acoustic component does not break down, and the working condition of acoustic component is normal operating conditions.
After it is determined that the working condition of the first acoustic component is not normal operating conditions, i.e., after step 403, the party Method can also include:
Step 405, operative scenario and pre-set priority relation list according to the first acoustic component, determine first sound Second acoustic component of frequency part switching, second audio is switched to by the task on first acoustic component On part.
Here, operative scenario can include:Voice call scene, music scenario, driving scene etc. are listened, can also be other Scene, the embodiment of the present invention do not limited this.
Specifically, the preferred selection order that acoustic component switches in the case of different scenes is pre-set in terminal, so, After knowing current operative scenario, according to the preferential transfer sequence of the operative scenario subaudio frequency part acoustic component can be selected to enter Row switching, it is thus possible to so that obtain preferably input sound or output sound effect in different operative scenarios.
Exemplary, when terminal plays out music by loudspeaker, when event occur in the loudspeaker for detecting the broadcasting music During barrier, according to the preferred selection order for listening music scenario, prioritizing selection is switched to earphone, plays music by earphone, works as earphone When not connected, reselection is switched to receiver, and music is played by receiver.
Step 406, display reminding information, the prompt message are used to remind the task on first acoustic component Have been switched on second acoustic component.
Specifically, after the task on the first acoustic component is switched on the second acoustic component by terminal, can be at end Display reminding information on the display screen at end, i.e., the acoustic component of user job tasks carrying is reminded to send out by prompt message Changing, so, user's can know that the first acoustic component breaks down, so as to on-call maintenance.
It is exemplary, as shown in 6 figures, display reminding information on the display screen of terminal, remind user's music by Loudspeaker are switched to receiver, and the sound of music is played by the receiver at the top of mobile phone display screen, is as shown in phantom in Figure 6 example Sound transmission.
Audio transmission switching method provided in an embodiment of the present invention, can be when the acoustic component of terminal breaks down, certainly The dynamic task that will appear from the acoustic component of failure is switched to normal acoustic component and performed, and not influenceing the normal of terminal makes With, the continuity of terminal works is ensure that, improves operating efficiency, meanwhile, improve Consumer's Experience.
The embodiment of the present invention provides a kind of audio transmission switching method, as shown in fig. 7, this method can include:
Step 501, terminal the first acoustic component start obtain voice signal when, according to the voice signal of the acquisition The 3rd audio file is generated, spectrum analysis is carried out to the 3rd audio file.
In the embodiment of the present invention, the 3rd audio file is generated according to the voice signal of acquisition, to the 3rd audio file It can be realized by terminal to carry out spectrum analysis, and the terminal can be with acoustic component mobile terminal, can be preferably Mobile intelligent terminal with multiple acoustic components.
Here, acoustic component, which is specifically as follows, has the part for obtaining audio function in terminal, have recording work(in other words The part of energy, such as microphone, microphone etc..
Audio transmission switching method provided in an embodiment of the present invention is applied to the operative scenario that terminal obtains sound.Wherein, Obtaining sound can include:Recording, voice communication when making a phone call etc..
Exemplary, when the microphone of terminal is carried out in Recording Process, sound of the terminal backstage to the microphone location Signal carries out spectrum analysis, and whether the microphone for detecting the recording damages.
Step 502, when the 3rd audio file frequency spectrum meet the second preparatory condition when, determine first audio portion The working condition of part is not normal operating conditions.
Step 503, when the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, determine first audio The working condition of part is normal operating conditions.
Exemplary, terminal backstage carries out spectrum analysis whether to judge the acoustic component by the recording to acoustic component Normally, when the recording working condition of acoustic component is not normal operating conditions, then acoustic component damages;When the record of acoustic component When sound working condition is normal operating conditions, then acoustic component does not damage, and recording is working properly.
It can also include after step 502:
Step 504, operative scenario and pre-set priority relation list according to the first acoustic component, determine first sound Second acoustic component of frequency part switching, second audio is switched to by the task on first acoustic component On part.
Here, operative scenario can include:Voice call scene, music scenario, driving scene etc. are listened, can also be other Scene, the embodiment of the present invention do not limited this.
Specifically, the preferred selection order that acoustic component switches in the case of different scenes is pre-set in terminal, so, After knowing current operative scenario, according to the preferential transfer sequence of the operative scenario subaudio frequency part acoustic component can be selected to enter Row switching, it is thus possible to so that obtain preferably input sound or output sound effect in different operative scenarios.
Exemplary, terminal includes three microphones, microphone A, microphone B, microphone C, as shown in figure 8, in terminal When being recorded by microphone A, when the microphone A for detecting the recording breaks down, according to the preferential of playback scene Selecting sequence, selection is switched to microphone B, recorded by microphone B, and display reminding information, prompts microphone to switch.
Step 505, display reminding information, the prompt message are used to remind the task on first acoustic component Have been switched on second acoustic component.
Specifically, after the task on the first acoustic component is switched on the second acoustic component by terminal, can be at end Display reminding information on the display screen at end, i.e., the acoustic component of user job tasks carrying is reminded to send out by prompt message Changing, so, user's can know that the first acoustic component breaks down, so as to on-call maintenance.
Audio transmission switching method provided in an embodiment of the present invention, can be when the acoustic component of terminal breaks down, certainly The dynamic task that will appear from the acoustic component of failure is switched to normal acoustic component and performed, and not influenceing the normal of terminal makes With, the continuity of terminal works is ensure that, improves operating efficiency, meanwhile, improve Consumer's Experience.
The embodiment of the present invention also provides a kind of terminal 60, as shown in figure 9, the terminal includes:Processor 601, memory 602 and communication bus 603;
The communication bus 603 is used to realize the connection communication between processor 601 and memory 602;
The processor 601 is used to perform the audio transmission changeover program stored in memory 602, to realize following walk Suddenly:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is just Normal working condition;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first audio Task on part is switched on the second acoustic component, and first acoustic component is performed by second acoustic component On task.
Further, the processor 601 is additionally operable to perform the audio transmission changeover program stored in memory 602, with Realize following steps:
When the first acoustic component of the terminal commences play out the first audio file, first acoustic component is played The voice signal of first audio file recorded, obtain the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, The working condition for determining first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition When, the working condition for determining first acoustic component is normal operating conditions
Further, the processor 601 is additionally operable to perform the audio transmission changeover program stored in memory 602, with Realize following steps:
When the first acoustic component of the terminal starts to obtain voice signal, generated according to the voice signal of the acquisition 3rd audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the work of first acoustic component is determined State is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work of first acoustic component is determined It is normal operating conditions to make state.
Further, the processor 601 is additionally operable to perform the audio transmission changeover program stored in memory 602, with Realize following steps:
According to the operative scenario of the first acoustic component and pre-set priority relation list, determine that first acoustic component is cut Second acoustic component changed, the task on first acoustic component is switched on second acoustic component.
Further, the task on the first acoustic component is switched to the second audio portion according to preset rules described After on part, the processor 601 is additionally operable to perform the audio transmission changeover program stored in memory 602, following to realize Step:
Display reminding information, the prompt message are used to remind the task on first acoustic component to have been switched to On second acoustic component.
Here, memory 602 can be volatile memory or nonvolatile memory, may also comprise volatibility and Fei Yi Both the property lost memories.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory), can compile Journey read-only storage (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as Static RAM (SRAM, Static Random Access Memory), synchronous static RAM (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited Reservoir 602 is intended to the memory of including but not limited to these and any other suitable type.
Memory 602 in the embodiment of the present invention is used to store various types of data to support the operation of terminal 60.This The example of a little data includes:For any computer program operated in terminal 60, such as operating system and application program;Contact Personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system includes various system programs, such as ccf layer, Core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can include Various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various applications Business.Realize that the program of present invention method may be embodied in application program.
The method that the embodiments of the present invention disclose can apply in processor 601, or be realized by processor 601. Processor 601 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (DSP, Digital Signal Processor), or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 601 can be realized or held Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, it can be embodied directly at hardware decoding Reason device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at In storage medium, the storage medium is located at memory 602, and processor 601 reads the information in memory 602, with reference to its hardware The step of completing preceding method.
Specifically, the understanding of terminal provided in an embodiment of the present invention may be referred to above-mentioned audio transmission switching method embodiment Explanation, the embodiment of the present invention will not be repeated here.
Terminal provided in an embodiment of the present invention, failure can be will appear from automatically when the acoustic component of terminal breaks down Acoustic component on task be switched to normal acoustic component and perform, do not influence the normal use of terminal, ensure that end The continuity of work is held, improves operating efficiency, meanwhile, improve Consumer's Experience.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, such as including The memory of computer program, above computer program can be by the computing devices in server, to complete described in preceding method Step.Computer-readable recording medium can be that FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface are deposited The memories such as reservoir, CD or CD-ROM;Can also be the various equipment for including one of above-mentioned memory or any combination, such as Mobile phone, computer, tablet device, personal digital assistant etc..
The embodiment of the present invention also provides a kind of computer-readable recording medium, and the computer-readable recording medium storage has One or more program, one or more of programs can be walked by one or more computing device so that realization is following Suddenly:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is just Normal working condition;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first audio Task on part is switched on the second acoustic component, and first acoustic component is performed by second acoustic component On task.
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
When the first acoustic component of the terminal commences play out the first audio file, first acoustic component is played The voice signal of first audio file recorded, obtain the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, The working condition for determining first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition When, the working condition for determining first acoustic component is normal operating conditions
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
When the first acoustic component of the terminal starts to obtain voice signal, generated according to the voice signal of the acquisition 3rd audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the work of first acoustic component is determined State is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work of first acoustic component is determined It is normal operating conditions to make state.
Further, one or more of programs can also be by one or more of computing devices, to realize Following steps:
According to the operative scenario of the first acoustic component and pre-set priority relation list, determine that first acoustic component is cut Second acoustic component changed, the task on first acoustic component is switched on second acoustic component.
Further, the task on the first acoustic component is switched to the second audio portion according to preset rules described After on part, one or more of programs can also be by one or more of computing devices, to realize following steps:
Display reminding information, the prompt message are used to remind the task on first acoustic component to have been switched to On second acoustic component.
Computer-readable recording medium provided in an embodiment of the present invention, can terminal acoustic component break down when, The automatic task that will appear from the acoustic component of failure is switched to normal acoustic component and performed, and does not influence the normal of terminal Use, ensure that the continuity of terminal works, improve operating efficiency, meanwhile, improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of audio transmission switching method, it is characterised in that methods described includes:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is normal work Make state;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first acoustic component On task be switched on the second acoustic component, performed by second acoustic component on first acoustic component Task.
2. according to the method for claim 1, it is characterised in that when first acoustic component in terminal is started working, Whether the working condition for detecting first acoustic component is normal operating conditions, including:
When the first acoustic component of the terminal commences play out the first audio file, to the institute of first acoustic component broadcasting The voice signal for stating the first audio file is recorded, and obtains the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, it is determined that The working condition of first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition, really The working condition of fixed first acoustic component is normal operating conditions.
3. according to the method for claim 1, it is characterised in that when first acoustic component in terminal is started working, Whether the working condition for detecting first acoustic component is normal operating conditions, including:
When the first acoustic component of the terminal starts to obtain voice signal, the 3rd is generated according to the voice signal of the acquisition Audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the working condition of first acoustic component is determined It is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work shape of first acoustic component is determined State is normal operating conditions.
4. according to the method described in any one of claims 1 to 3, it is characterised in that it is described according to preset rules by the first audio Task on part is switched on the second acoustic component, including:
According to the operative scenario of the first acoustic component and pre-set priority relation list, the first acoustic component switching is determined Second acoustic component, the task on first acoustic component is switched on second acoustic component.
5. according to the method for claim 4, it is characterised in that it is described according to preset rules by the first acoustic component After task is switched on the second acoustic component, in addition to:
Display reminding information, the prompt message are described for reminding the task on first acoustic component to have been switched to On second acoustic component.
6. a kind of terminal, it is characterised in that the terminal includes:Processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used to perform the audio transmission changeover program stored in memory, to realize following steps:
When the first acoustic component of terminal is started working, whether the working condition for detecting first acoustic component is normal work Make state;
When the working condition of first acoustic component is not normal operating conditions, according to preset rules by the first acoustic component On task be switched on the second acoustic component, performed by second acoustic component on first acoustic component Task.
7. terminal according to claim 6, it is characterised in that the processor is additionally operable to perform the sound stored in memory Defeated changeover program is kept pouring in, to realize following steps:
When the first acoustic component of the terminal commences play out the first audio file, to the institute of first acoustic component broadcasting The voice signal for stating the first audio file is recorded, and obtains the second audio file;
The frequency spectrum of second audio file and first audio file is subjected to analysis contrast;
When the frequency spectrum difference between second audio file and first audio file meets the first preparatory condition, it is determined that The working condition of first acoustic component is not normal operating conditions;
When the frequency spectrum difference between second audio file and first audio file is unsatisfactory for the second preparatory condition, really The working condition of fixed first acoustic component is normal operating conditions.
8. terminal according to claim 6, it is characterised in that the processor is additionally operable to perform the sound stored in memory Defeated changeover program is kept pouring in, to realize following steps:
When the first acoustic component of the terminal starts to obtain voice signal, the 3rd is generated according to the voice signal of the acquisition Audio file, spectrum analysis is carried out to the 3rd audio file;
When the frequency spectrum of the 3rd audio file meets the second preparatory condition, the working condition of first acoustic component is determined It is not normal operating conditions;
When the frequency spectrum of the 3rd audio file is unsatisfactory for the second preparatory condition, the work shape of first acoustic component is determined State is normal operating conditions.
9. according to the terminal described in any one of claim 6 to 8, it is characterised in that the processor is additionally operable to perform memory The audio transmission changeover program of middle storage, to realize following steps:
According to the operative scenario of the first acoustic component and pre-set priority relation list, the first acoustic component switching is determined Second acoustic component, the task on first acoustic component is switched on second acoustic component.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize such as claim 1 to 5 The step of method described in any one.
CN201710613206.5A 2017-07-25 2017-07-25 A kind of audio transmission switching method, terminal and computer-readable recording medium Withdrawn CN107707728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710613206.5A CN107707728A (en) 2017-07-25 2017-07-25 A kind of audio transmission switching method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710613206.5A CN107707728A (en) 2017-07-25 2017-07-25 A kind of audio transmission switching method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107707728A true CN107707728A (en) 2018-02-16

Family

ID=61170094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710613206.5A Withdrawn CN107707728A (en) 2017-07-25 2017-07-25 A kind of audio transmission switching method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107707728A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743524A (en) * 2018-12-03 2019-05-10 视联动力信息技术股份有限公司 A kind of data processing method that view is networked and a kind of view networked system
CN110248264A (en) * 2019-04-25 2019-09-17 维沃移动通信有限公司 A kind of voice transmission control method and terminal device
CN110351213A (en) * 2018-04-02 2019-10-18 华为技术有限公司 Audio frequency playing method and equipment
WO2020097927A1 (en) * 2018-11-16 2020-05-22 深圳市欢太科技有限公司 Call control method and device, computer-readable storage medium and electronic device
CN112492340A (en) * 2020-11-27 2021-03-12 努比亚技术有限公司 Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
CN113766409A (en) * 2021-09-07 2021-12-07 深圳创维-Rgb电子有限公司 Microphone array adjusting method, intelligent terminal and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11220526A (en) * 1998-01-30 1999-08-10 Matsushita Electric Ind Co Ltd Handsfree device
CN104874061A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Respirator speaker state detection method and device
CN105323385A (en) * 2015-11-27 2016-02-10 Tcl移动通信科技(宁波)有限公司 Mobile terminal-based method and system for switching microphone during communication process
CN105848052A (en) * 2015-01-16 2016-08-10 宇龙计算机通信科技(深圳)有限公司 Microphone switching method and terminal
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device
CN106488376A (en) * 2016-10-28 2017-03-08 努比亚技术有限公司 The method and apparatus that a kind of audio components to mobile terminal carry out fault diagnosis
CN106875960A (en) * 2017-01-19 2017-06-20 努比亚技术有限公司 The player method and mobile terminal of a kind of audio file

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11220526A (en) * 1998-01-30 1999-08-10 Matsushita Electric Ind Co Ltd Handsfree device
CN104874061A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Respirator speaker state detection method and device
CN105848052A (en) * 2015-01-16 2016-08-10 宇龙计算机通信科技(深圳)有限公司 Microphone switching method and terminal
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device
CN105323385A (en) * 2015-11-27 2016-02-10 Tcl移动通信科技(宁波)有限公司 Mobile terminal-based method and system for switching microphone during communication process
CN106488376A (en) * 2016-10-28 2017-03-08 努比亚技术有限公司 The method and apparatus that a kind of audio components to mobile terminal carry out fault diagnosis
CN106875960A (en) * 2017-01-19 2017-06-20 努比亚技术有限公司 The player method and mobile terminal of a kind of audio file

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351213A (en) * 2018-04-02 2019-10-18 华为技术有限公司 Audio frequency playing method and equipment
WO2020097927A1 (en) * 2018-11-16 2020-05-22 深圳市欢太科技有限公司 Call control method and device, computer-readable storage medium and electronic device
CN109743524A (en) * 2018-12-03 2019-05-10 视联动力信息技术股份有限公司 A kind of data processing method that view is networked and a kind of view networked system
CN110248264A (en) * 2019-04-25 2019-09-17 维沃移动通信有限公司 A kind of voice transmission control method and terminal device
CN112492340A (en) * 2020-11-27 2021-03-12 努比亚技术有限公司 Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
CN112492340B (en) * 2020-11-27 2023-08-11 努比亚技术有限公司 Live broadcast audio acquisition method, mobile terminal and computer readable storage medium
CN113766409A (en) * 2021-09-07 2021-12-07 深圳创维-Rgb电子有限公司 Microphone array adjusting method, intelligent terminal and readable storage medium

Similar Documents

Publication Publication Date Title
CN107707728A (en) A kind of audio transmission switching method, terminal and computer-readable recording medium
CN107229402A (en) Dynamic screenshotss method, device and the readable storage medium storing program for executing of terminal
CN107027114A (en) A kind of SIM card switching method, equipment and computer-readable recording medium
CN107493497A (en) A kind of video broadcasting method, terminal and computer-readable recording medium
CN109618052A (en) A kind of call audio switching method and device, mobile terminal and readable storage medium storing program for executing
CN109032466A (en) Long screenshot method, mobile terminal and storage medium based on double screen
CN107729115A (en) A kind of display methods, equipment and computer-readable storage medium
CN109743764A (en) A kind of identification elevator scene method and device, mobile terminal device and storage medium
CN108234766A (en) Microphone switching method, mobile terminal and computer readable storage medium
CN107135308A (en) Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing
CN109739602A (en) A kind of mobile terminal wallpaper setting method and device, mobile terminal and storage medium
CN108540639A (en) Display processing method, equipment and the computer of Mosaic screen can storage mediums
CN107463255A (en) A kind of video broadcasting method, terminal and computer-readable recording medium
CN108307043A (en) Speech message conversion method, mobile terminal and computer readable storage medium
CN108418948A (en) A kind of based reminding method, mobile terminal and computer storage media
CN108234876A (en) A kind of tracking focusing method, terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN107567013A (en) A kind of signal switching method, terminal and computer-readable recording medium
CN107678671A (en) One kind applies startup method, terminal and computer-readable recording medium
CN107770356A (en) A kind of communication establishing method, equipment and computer-readable recording medium
CN108052812A (en) A kind of terminal alarms method, terminal and computer readable storage medium
CN107197101A (en) Audio regulation method, mobile terminal and computer-readable recording medium
CN109688268A (en) A kind of method and device, mobile terminal and the storage medium of mixed audio output
CN108769534A (en) A kind of focalization method and terminal
CN109725967A (en) The method of adjustment and device, mobile terminal and storage medium of horizontal/vertical screen display mistake

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180216