CN107241642B - A kind of playback method and terminal - Google Patents

A kind of playback method and terminal Download PDF

Info

Publication number
CN107241642B
CN107241642B CN201710628907.6A CN201710628907A CN107241642B CN 107241642 B CN107241642 B CN 107241642B CN 201710628907 A CN201710628907 A CN 201710628907A CN 107241642 B CN107241642 B CN 107241642B
Authority
CN
China
Prior art keywords
playback equipment
terminal
audio signal
working condition
sound
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
CN201710628907.6A
Other languages
Chinese (zh)
Other versions
CN107241642A (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 CN201710628907.6A priority Critical patent/CN107241642B/en
Publication of CN107241642A publication Critical patent/CN107241642A/en
Application granted granted Critical
Publication of CN107241642B publication Critical patent/CN107241642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4425Monitoring of client processing errors or hardware failure

Abstract

The present invention provides a kind of playback method and terminal.The playback method is applied to terminal, comprising: when the terminal passes through playback equipment output audio signal, judges whether the playback equipment is in normal working condition;If the playback equipment is in normal working condition, the audio signal is exported by the playback equipment;If the playback equipment is in improper working condition, stops through the playback equipment output audio signal and/or issue standby signal.The present invention is able to solve user when carrying out audio external play using the playback equipment that connect with terminal, if playback equipment failure, will appear the problem of user can't hear the prompt tone of phone or short message.

Description

A kind of playback method and terminal
Technical field
The present invention relates to field of computer technology more particularly to a kind of playback method and terminals.
Background technique
In the prior art, terminal have the function of play video, audio file, and can also by with terminal it is wired or The playback equipment of wireless connection plays audio, for example, user plays music by vehicle-mounted Bluetooth acoustic enclosure external speaker when driving Or broadcast.
Existing terminal, can be because when by carrying out audio broadcasting with the external speaker of the wired or wireless connection of terminal Occur playing exception for certain reasons, for example, the reasons such as the damage of playback equipment, the damage of terminal, poor contact.If In audio playing process, occurs playing exception, the use of the other functions of terminal may be will affect.For example, if terminal is mobile phone, Will lead to incoming call, information etc. notify it is noiseless, sometimes even can make user that can not receive important information or incoming call in time, together When will affect the usage experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of playback method and terminal, is set with solving user using the broadcasting connecting with terminal It is standby when carrying out audio external play, if playback equipment breaks down, it will appear the prompt tone that user can't hear phone or short message Problem.
In a first aspect, the embodiment of the present invention provides a kind of playback method, it is applied to terminal, comprising:
When the terminal passes through playback equipment output audio signal, judge whether the playback equipment is in normal work Make state;
If the playback equipment is in normal working condition, the audio is exported by the playback equipment and is believed Number;
If the playback equipment is in improper working condition, stop exporting audio letter by the playback equipment Number and/or issue standby signal;
The playback equipment is the playback equipment with audio external play function;It is described to judge whether the playback equipment is in Normal working condition, comprising:
When the terminal exports the audio signal by playback equipment, the sound of the terminal surrounding environment is acquired;
Judge the audio signal whether exported comprising the playback equipment in the sound of the terminal surrounding environment;
If not including the audio signal of playback equipment output in the sound of the terminal surrounding environment, really The fixed playback equipment is in improper working condition.
Second aspect, the embodiment of the present invention provide a kind of terminal, comprising:
Working condition judgment module: for being broadcast described in judgement when the terminal passes through playback equipment output audio signal Put whether equipment is in normal working condition;
First playing control module: it if being in normal working condition for the playback equipment, is broadcast by described It puts equipment and exports the audio signal;
Second playing control module: if being in improper working condition for the playback equipment, stopping passes through The playback equipment output audio signal and/or sending standby signal;
The playback equipment is the playback equipment with audio external play function;The working condition judgment module, comprising:
Ambient sound acquisition unit: for acquiring institute when the terminal exports the audio signal by playback equipment State the sound of terminal surrounding environment;
Whether ambient sound analytical unit: including the playback equipment in the sound for judging the terminal surrounding environment The audio signal of output;
First judging unit: if for not including playback equipment output in the sound of the terminal surrounding environment The audio signal, it is determined that the playback equipment is in improper working condition.
The third aspect, the embodiment of the present invention provide a kind of terminal, comprising: memory, processor and are stored in the storage On device and the computer program that can run on the processor, the processor execute any one embodiment of the present invention and are mentioned Step in the playback method of confession.
The embodiment of the present invention is by judging whether playback equipment is in when terminal passes through playback equipment output audio signal Normal working condition, and when playback equipment is in abnormal operating state, change terminal output audio signal state or Person issues standby signal and allows users to know that terminal failure occurs by playback equipment playing audio signal, so as to It is connect by wired or wireless mode with playback equipment in terminal, and by being played when playback equipment playing audio signal In the case where failure, terminal or playback equipment are adjusted in time, are avoided because playback equipment does not have sound to export and cause to send a telegram here, disappear Cease that noiseless or sound is too small so that user can not discover incoming call or message, can not view incoming call or message etc. in time Situation.In addition, the communication prompts sound such as terminal caller, short message will not when terminal does not pass through playback equipment output audio signal It is exported by playback equipment, it, also can be effective in the case where user is not actively adjusted the output mode of audio signal It avoids missing incoming call, information etc. because notification signal is not received by.
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.
Figure 1A is playback method flow diagram provided in an embodiment of the present invention;
Figure 1B is step 101 flow diagram of Figure 1A;
Fig. 2 is the playback method flow diagram that another embodiment of the present invention provides;
Fig. 3 is the playback method flow diagram that another embodiment of the present invention provides;
Fig. 4 A is the terminal structure schematic diagram that an embodiment of the present invention provides;
Fig. 4 B is the working condition judgment module structural schematic diagram of Fig. 4 A;
Fig. 5 is the terminal structure schematic diagram that another embodiment of the present invention provides;
Fig. 6 is the terminal structure schematic diagram that another embodiment of the present invention provides;
Fig. 7 is the terminal structure schematic diagram that another embodiment of the invention provides;
Fig. 8 is the terminal structure schematic diagram that another embodiment of the invention provides;
Fig. 9 is the terminal structure schematic diagram that another embodiment of the invention provides;
Figure 10 is the terminal structure schematic diagram that another embodiment of the 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.
Figure 1A is playback method flow chart provided in an embodiment of the present invention, is applied to terminal, comprising:
Step 101: when terminal receives the operational order of playback equipment output audio signal, whether judging playback equipment In normal working condition.
In the embodiment of the present invention, above-mentioned 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..
In the above-described embodiments, the playback equipment can be the playback equipment with terminal wired connection, for example, wired ear Machine, wired speaker etc.;It can also be the playback equipment wirelessly connecting with terminal, for example, bluetooth headset, Baffle Box of Bluetooth Deng.
In the above-described embodiments, the audio signal can be the play signal of pure audio files, be also possible to video text The audio signal that part plays.It is above-mentioned that the step of whether playback equipment is in normal working condition judged, detecting end End is connected to playback equipment and terminal is to starting to execute after playback equipment output audio signal.
In the specific embodiment of the invention, judge whether the playback equipment is in normal working condition, can be logical It crosses and playback equipment broadcasting situation is detected to judge;It is also possible to judge by detecting audio signal.Detection Operation, which can be, to be continuously carried out, and is also possible to execute according to certain time interval.
In the specific embodiment of the invention, above-mentioned playback equipment is in normal working condition, refers to that playback equipment can incite somebody to action The working condition that the audio signal of terminal conveying plays back.
Step 102: if playback equipment is in normal working condition, passing through playback equipment output audio signal.
In a particular embodiment, above-mentioned normal working condition, refer to normal quantity play output audio signal and The working condition of apparent signal corruption is not present in the audio signal played out.
In a particular embodiment, if returning to judgement by judging that the playback equipment is in the state worked normally The step of whether playback equipment is in normal working condition.
Step 103: if playback equipment is in improper working condition, stopping exporting audio letter by playback equipment Number and/or issue standby signal.In step 103, it determines that playback equipment is under improper working condition, stops by broadcasting Put equipment output audio signal;Or determine that playback equipment is under improper working condition, issue the user with standby signal;Or In the case where determining the normal working condition of playback equipment, stop through playback equipment output audio signal, and issue the user with simultaneously Standby signal.
It is automatic to carry out when detecting that playback equipment is in improper working condition in the specific embodiment of the invention The switching of play mode, for example, the mode put outside the pattern switching to terminal played by playback equipment;Or issue prompt letter It number allows users to know currently playing unit exception, thus allows for handling manually, for example, disconnecting playback equipment and end Electrical connection, inspection playback equipment, inspection terminal, adjustment terminal volume between end etc..
Above-mentioned abnormal operating state, i.e. playback equipment are not on the state of normal working condition, including because eventually The reason of end and lead to not the state by playback equipment normal play audio signal, because the reason of playback equipment cause Mistake can not be electrically connected or is wirelessly connected with terminal by the state of playback equipment normal play audio signal, because of playback equipment And lead to not the state by playback equipment normal play audio signal.
Above-mentioned standby signal can be vibration prompting signal, light cue signal, picture indication signal etc., terminal not In the case where exporting failure there are sound, above-mentioned standby signal be can also be through the directly outer auditory tone cues letter for putting output of terminal Number.
The embodiment of the present invention is by judging whether playback equipment is in when terminal passes through playback equipment output audio signal Normal working condition, and when playback equipment is in abnormal operating state, change terminal output audio signal state or Person issues standby signal and allows users to know that terminal failure occurs by playback equipment playing audio signal, so as to It is connect by wired or wireless mode with playback equipment in terminal, and by being played when playback equipment playing audio signal In the case where failure, terminal or playback equipment are adjusted in time, are avoided because playback equipment does not have sound to export and cause to send a telegram here, disappear Cease that noiseless or sound is too small so that user can not discover incoming call or message, can not view incoming call or message etc. in time Situation.In addition, the communication prompts sound such as terminal caller, short message will not when terminal does not pass through playback equipment output audio signal It is exported by playback equipment, it, also can be effective in the case where user is not actively adjusted the output mode of audio signal It avoids missing incoming call, information etc. because notification signal is not received by.
In the above-described embodiments, B, the playback equipment are the playback equipment with audio external play function referring to Fig.1;It is described Step 101, comprising:
Step 1011: when the terminal exports the audio signal by playback equipment, acquiring the terminal surrounding ring The sound in border;
Step 1012: judging the sound whether exported comprising the playback equipment in the sound of the terminal surrounding environment Frequency signal;
Step 1013: if not including the audio of playback equipment output in the sound of the terminal surrounding environment Signal, it is determined that the playback equipment is in improper working condition.
When external speaker normal play audio signal, can be collected in playing environment and the consistent letter of audio signal Number.In above-described embodiment, there are when the audio signal in the sound of terminal surrounding environment, then it is assumed that playback equipment is in just Normal working condition.When playback equipment is the playback equipment put outside, can by detection external environment in audio signal come It determines whether terminal is in normal condition by the process of playback equipment output audio signal, is directly played by audio signal As a result judge, judgment accuracy with higher.When executing above-described embodiment, terminal surrounding environment can be carried out by microphone Sound acquisition.
In other embodiments of the present invention, when playback equipment is the playback equipment with interior playing function, such as earphone etc..In In this case, whether the general connection by between the whether normal output audio signal of detection terminal, terminal and playback equipment It is normal to judge whether playback equipment is in normal working condition.When terminal can not normal output audio signal or terminal with In the case that connection between playback equipment disconnects, playback equipment can not necessarily be in normal working condition, therefore, In When detecting that such case occurs, it may be determined that playback equipment is in improper working condition.
In the specific embodiment of the invention, whether judge in the sound of the terminal surrounding environment comprising the playback equipment The audio signal of output, comprising:
The sound of the terminal surrounding environment is parsed, the waveform of the sound of terminal surrounding environment is obtained;
Judge to whether there is and the consistent voice signal of audio signal waveform in the sound of terminal surrounding environment;
If it exists in the consistent voice signal of audio signal waveform, then it is assumed that in the sound of the terminal surrounding environment The audio signal comprising playback equipment output.
In some embodiments, if including the described of playback equipment output in the sound of the terminal surrounding environment Audio signal then can determine that the playback equipment is in normal working condition.And in further embodiments, terminal surrounding ring When in the sound in border including the audio signal that terminal is exported by playback equipment, it can not illustrate that playback equipment is in normal Working condition, playback equipment may be former so that audio signal is set through playing because of poor contact, playback equipment exception etc. After standby output, volume is abnormal, therefore, in the following embodiments, is in improper work in order to which playback equipment is further discharged State, need to exclude in the sound of playback equipment ambient enviroment comprising audio signal but volume to be significantly less than playback equipment preset The case where broadcast sound volume, such as following embodiments.
In another embodiment of the invention, referring to Fig. 2, on the basis of Figure 1B, the playback equipment is with audio The playback equipment of outer playing function;It is described to judge whether the playback equipment is in normal working condition, comprising:
Step 1011: when the terminal exports the audio signal by playback equipment, acquiring the terminal surrounding ring The sound in border;
Step 1012: judging the sound whether exported comprising the playback equipment in the sound of the terminal surrounding environment Frequency signal;
Step 1013: if not including the audio of playback equipment output in the sound of the terminal surrounding environment Signal, it is determined that the playback equipment is in improper working condition.
Step 1014: if including the audio letter of playback equipment output in the sound of the terminal surrounding environment Number, then first volume value of the audio signal in the terminal surrounding environment is detected, and obtain the terminal and pass through broadcasting The second volume value when equipment output audio signal;
Step 1015: if first volume value is less than second volume value, and first volume value and described the When the difference of the volume of two volume values is greater than preset threshold, determine that the playback equipment is in improper working condition, into step Rapid 103.
In the above-described embodiments, it is contemplated that when a kind of situation that playback equipment is in improper working condition may be only Be can not according to the volume playing audio signal of setting, generally can by audio signal with significantly lower than setting volume volume into Row plays, therefore, when there are the audio signals that terminal is exported to playback equipment in the sound for detecting terminal surrounding environment, still The when first volume of the audio signal in terminal surrounding environment is significantly less than terminal by playback equipment output audio signal When two volumes, it is believed that mistake occurs in playing process, i.e. playback equipment is in improper working condition.
In the above-described embodiments, the first volume can be calculated according to the amplitude for the audio signal for including in ambient enviroment and be obtained ;The duplication size for the audio signal that second volume can be exported according to terminal by playback equipment, which calculates, to be obtained.
In the specific embodiment of the invention, when second volume can be terminal to playback equipment output audio signal, The volume of terminal setting;When being also possible to terminal to playback equipment output audio signal, playback equipment carries out audio signal outer The volume put.
Optionally, the playback equipment is the playback equipment with audio external play function;Judging that the playback equipment is It is no to be in front of normal working condition, further includes: to detect the operational order of playback equipment output audio signal.Specifically, In one embodiment, playback equipment is bluetooth playback equipment, and terminal is mobile phone, after mobile phone connects bluetooth playback equipment, Judge whether mobile phone passes through bluetooth playback equipment and carry out audio external play by detection signal output.Then by mobile microphone or Other voice collection devices carry out the acquisition of the sound of mobile phone ambient enviroment, and according to the sound of collected mobile phone ambient enviroment Judge whether bluetooth playback equipment is in normal working condition.
In an embodiment of the present invention, referring to Fig. 3, which comprises
Step 301: determining that the terminal carries out audio external play by the playback equipment;
Step 302: when the terminal receives playback equipment and exports the operational order of the audio signal, by described Microphone acquires the sound of the ambient enviroment of the terminal;
Step 303: judging the sound whether exported comprising the playback equipment in the sound of the terminal surrounding environment Frequency signal;
Step 304: if not including the audio of playback equipment output in the sound of the terminal surrounding environment Signal, it is determined that the playback equipment is in improper working condition;
Step 305: stopping through the playback equipment output audio signal and/or issue standby signal.
In the above-described embodiments, can determine whether terminal connects and have by the connection protocol between terminal and playback equipment The playback equipment of outer playing function, when terminal is connect by way of being electrically connected or being wirelessly connected with playback equipment, terminal with Connection relationship between playback equipment is established and terminal is by passing through Mike's elegance of terminal after playback equipment output audio signal The voice signal for collecting ambient enviroment makes it possible to judge whether set comprising terminal to broadcasting in the voice signal of terminal surrounding environment The audio signal of standby output.
It is optionally, described to stop by after the playback equipment output audio signal or sending standby signal, further includes:
The audio signal is exported by the loudspeaker of terminal.
In some embodiment of the invention, after the audio signal by playback equipment output, further includes:
Determine apart from last time execute it is described judge the step of whether playback equipment is in normal working condition when Between whether reach prefixed time interval;
If so, judging the playback equipment when terminal executes the step for passing through playback equipment output audio signal Whether normal working condition is in.
In embodiments of the present invention, terminal plays out mould after determining that playback equipment is in improper working condition The switching of formula allows users to the audio signal for hearing terminal output by terminal speaker output audio signal, thus When terminal receives incoming call or information, user can hear incoming call or information alert sound, avoid missing in an emergency situation logical News notice;Or user is made to recognize that playback equipment is in improper working condition and stops using terminal to playback equipment Output audio signal.
The present invention also provides a kind of terminal, structure is as shown in Figure 4 A, comprising:
Working condition judgment module 401: the operation for receiving playback equipment output audio signal in the terminal refers to When enabling, judge whether the playback equipment is in normal working condition;
First playing control module 402: if being in normal working condition for the playback equipment, by described Playback equipment exports the audio signal;
Second playing control module 403: if being in improper working condition for the playback equipment, stop logical It crosses the playback equipment output audio signal or issues standby signal;
The playback equipment is the playback equipment with audio external play function;The working condition judgment module 401, structure As shown in Figure 4 B, comprising:
Ambient sound acquisition unit 4011: for adopting when the terminal exports the audio signal by playback equipment Collect the sound of the terminal surrounding environment;
Whether ambient sound analytical unit 4012: including the broadcasting in the sound for judging the terminal surrounding environment The audio signal of equipment output;
First judging unit 4013: if defeated for not including the playback equipment in the sound of the terminal surrounding environment The audio signal out, it is determined that the playback equipment is in improper working condition.
Terminal provided by the above embodiment of the present invention can judge that broadcasting is set in playback equipment output audio signal It is standby whether to be in normal working condition, and when playback equipment is in improper worker's brass, stop setting by playing Standby output audio signal issues the user with standby signal, no matter is off playback equipment output audio signal or sends out to user Standby signal out can help user to discover the case where playback equipment breaks down, and allow users to handle it in time, Avoid the problem that user is detectable playback equipment playing audio signal and goes wrong and miss the communication notifications such as incoming call or message.
Optionally, the playback equipment is the playback equipment with audio external play function;The working condition judgment module, Further include:
Volume acquiring unit: if for the institute comprising playback equipment output in the sound of the terminal surrounding environment Audio signal is stated, then detects first volume value of the audio signal in the terminal surrounding environment, and obtain the terminal Pass through the second volume value of playback equipment output audio signal;
Second judgment unit: for being less than second volume value, and first volume value when first volume value And when the difference of the volume of second volume value is greater than preset threshold, determine that the playback equipment is in improper work shape State.
Optionally, referring to Fig. 5, on the basis of fig. 4, the terminal further include:
Audio external play detection module 400: for determining that the terminal carries out audio broadcasting by the playback equipment.
Optionally, referring to Fig. 6, on the basis of fig. 4, the terminal further include:
Switching module 404: for stopping through the playback equipment output audio signal in the second playing control module or After issuing standby signal, the audio signal is exported by the loudspeaker of terminal.
Optionally, referring to Fig. 7, on the basis of fig. 4, the terminal further include:
Timing module 405: for described judging whether the playback equipment is in normal work executing apart from last time When the time of the step of state reaches prefixed time interval, the working condition judgment module is triggered.
Terminal provided in an embodiment of the present invention can be connected via wire or wirelessly playback equipment output audio in terminal When signal, standby signal is issued according to the working condition of playback equipment or stops avoiding by playback equipment output audio signal When the process of playback equipment output audio signal breaks down, the voice signal of terminal is set still through the broadcasting connecting with terminal Standby output, and lead to that user is detectable and leakage occurs and answers a call or miss short message etc. as a result, so as to promote user experience.
It is the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, can be realized in above-described embodiment The details of the discharging method of application program, and reach identical effect.As shown in figure 8, mobile terminal 800 includes: at least one Processor 801, memory 802, at least one network interface 804 and user interface 803.Various components in mobile terminal 800 It is coupled by bus system 805.It is understood that bus system 805 is for realizing the connection communication between these components.Always Linear system system 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But in order to clear For the sake of Chu's explanation, 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 PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.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 DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, 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 and arbitrarily its It is suitble to the memory of 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, processor 801 are used for: passing through playback equipment output audio signal in the terminal When, judge whether the playback equipment is in normal working condition;If the playback equipment is in normal working condition, The audio signal is then exported by the playback equipment;If the playback equipment is in improper working condition, stop Only pass through the playback equipment output audio signal and/or sending standby 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 GateArray, 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, the playback equipment is the playback equipment with audio external play function;Processor 801 is also used to: in institute When stating terminal and exporting the audio signal by playback equipment, the sound of the terminal surrounding environment is acquired;Judge the terminal The audio signal whether exported comprising the playback equipment in the sound of ambient enviroment;If the terminal surrounding environment The audio signal of playback equipment output is not included in sound, it is determined that the playback equipment is in improper work State.
Optionally, processor 801 is also used to: if defeated comprising the playback equipment in the sound of the terminal surrounding environment The audio signal out then detects first volume of the audio signal in the terminal surrounding environment, and described in acquisition Terminal passes through the second volume when playback equipment output audio signal;When first volume is less than second volume, and institute When stating the difference of the volume of the first volume and second volume greater than preset threshold, determine that the playback equipment is in improper Working condition.
Optionally, processor 801 is also used to: detecting that the terminal carries out audio external play by the playback equipment.
Optionally, processor 801 is also used to: exporting the audio signal by terminal speaker.
Optionally, processor 801 is also used to: being determined to execute apart from last time and described is judged whether the playback equipment is in just The time of the step of normal working condition reaches prefixed time interval;Sound is exported by playback equipment in the terminal described in returning When frequency signal, the step of whether playback equipment is in normal working condition judged.
In the embodiment of the present invention, can when terminal is connected via wire or wirelessly playback equipment output audio signal, Standby signal is issued according to the working condition of playback equipment or stops avoiding playback equipment by playback equipment output audio signal When the process of output audio signal breaks down, user is detectable and leakage occurs and answers a call or miss short message etc. as a result, in turn Also it avoids user and delays the processing to emergency because missed messages notify, promote user experience.
Referring to Fig. 9, Fig. 9 is the structure chart of mobile terminal provided in an embodiment of the present invention, above-described embodiment can be realized The details of the discharging method of middle application program, 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, audio Circuit 960, communication module 970 and power supply 980 further include camera (not shown).
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.
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, processor 950 are used for: when the terminal passes through playback equipment output audio signal, Judge whether the playback equipment is in normal working condition;If the playback equipment is in normal working condition, The audio signal is exported by the playback equipment;If the playback equipment is in improper working condition, stop By the playback equipment output audio signal and/or issue standby signal.
Optionally, the playback equipment is the playback equipment with audio external play function;Processor 950 is also used to: in institute When stating terminal and exporting the audio signal by playback equipment, the sound of the terminal surrounding environment is acquired;Judge the terminal The audio signal whether exported comprising the playback equipment in the sound of ambient enviroment;If the terminal surrounding environment The audio signal of playback equipment output is not included in sound, it is determined that the playback equipment is in improper work State.
Optionally, processor 950 is also used to: if defeated comprising the playback equipment in the sound of the terminal surrounding environment The audio signal out then detects first volume of the audio signal in the terminal surrounding environment, and described in acquisition Terminal passes through the second volume when playback equipment output audio signal;When first volume is less than second volume, and institute When stating the difference of the volume of the first volume and second volume greater than preset threshold, determine that the playback equipment is in improper Working condition.
Optionally, processor 950 is also used to: detecting that the terminal carries out audio external play by the playback equipment.
Optionally, processor 950 is also used to: exporting the audio signal by terminal speaker.
Optionally, processor 950 is also used to: being determined to execute apart from last time and described is judged whether the playback equipment is in just The time of the step of normal working condition reaches prefixed time interval;Sound is exported by playback equipment in the terminal described in returning When frequency signal, the step of whether playback equipment is in normal working condition judged.
In the embodiment of the present invention, can when terminal is connected via wire or wirelessly playback equipment output audio signal, Standby signal is issued according to the working condition of playback equipment or stops avoiding playback equipment by playback equipment output audio signal When the process of output audio signal breaks down, user is detectable and leakage occurs and answers a call or miss short message etc. as a result, in turn Also it avoids user and delays the processing to emergency because missed messages notify, promote user experience.
Further, the embodiment of the present invention also provides a kind of terminal, as shown in Figure 10, terminal 1000 include: memory 1001, Processor 1002 and it is stored in the computer program 1003 that can be run on the memory 1001 and on the processor 1002, The processor 1002 realizes the acoustic signal processing method as described in any one embodiment of the present invention when executing described program In step.
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 playback method is applied to terminal characterized by comprising
When the terminal receives the operational order of playback equipment output audio signal, judge whether the playback equipment is in Normal working condition;
If the playback equipment is in normal working condition, the audio signal is exported by the playback equipment;
If the playback equipment is in improper working condition, stopping passes through the playback equipment output audio signal And/or issue standby signal;
Wherein, the playback equipment is the playback equipment with audio external play function, described to judge whether the playback equipment is located In normal working condition, comprising:
When the terminal exports the audio signal by playback equipment, the sound of the terminal surrounding environment is acquired;
Judge the audio signal whether exported comprising the playback equipment in the sound of the terminal surrounding environment;
If not including the audio signal of playback equipment output in the sound of the terminal surrounding environment, it is determined that institute It states playback equipment and is in improper working condition;
It is described to stop by after the playback equipment output audio signal or sending standby signal, further includes:
The audio signal is exported by the loudspeaker of the terminal.
2. judging whether the playback equipment is in normal work the method according to claim 1, wherein described Make state, further includes:
If the audio signal comprising playback equipment output in the sound of the terminal surrounding environment, described in detection First volume value of the audio signal in the terminal surrounding environment, and obtain the terminal and audio letter is exported by playback equipment Number the second volume value;
If first volume value is less than second volume value, and the volume of first volume value and second volume value Difference be greater than preset threshold when, determine that the playback equipment is in improper working condition.
3. judging whether the playback equipment is in normal work the method according to claim 1, wherein described Before making state, further includes:
Determine that the terminal carries out audio broadcasting by the playback equipment.
4. the method according to claim 1, wherein described export the audio signal by the playback equipment Later, further includes:
Determine that executing the time for judging the step of whether playback equipment is in normal working condition apart from last time is It is no to reach prefixed time interval;
If so, whether judging the playback equipment when terminal executes the step for passing through playback equipment output audio signal In normal working condition.
5. a kind of terminal characterized by comprising
Working condition judgment module: when for receiving the operational order of playback equipment output audio signal in the terminal, sentence Whether the playback equipment that breaks is in normal working condition;
First playing control module: it if being in normal working condition for the playback equipment, is set by the broadcasting It is standby to export the audio signal;
Second playing control module: if being in improper working condition for the playback equipment, stop by described Playback equipment output audio signal and/or sending standby signal;
The playback equipment is the playback equipment with audio external play function;The working condition judgment module, comprising:
Ambient sound acquisition unit: for acquiring the end when the terminal exports the audio signal by playback equipment Hold the sound of ambient enviroment;
Ambient sound analytical unit: whether exported comprising the playback equipment in the sound for judging the terminal surrounding environment The audio signal;
First judging unit: if for not including described in playback equipment output in the sound of the terminal surrounding environment Audio signal, it is determined that the playback equipment is in improper working condition;
The terminal further include:
Switching module: for stopping through the playback equipment output audio signal in the second playing control module or issuing prompt After signal, the audio signal is exported by the loudspeaker of the terminal.
6. terminal according to claim 5, which is characterized in that the working condition judgment module, further includes:
Volume acquiring unit: if for the sound comprising playback equipment output in the sound of the terminal surrounding environment Frequency signal then detects first volume value of the audio signal in the terminal surrounding environment, and obtains the terminal and pass through Second volume value of playback equipment output audio signal;
Second judgment unit: if being less than second volume value, and first volume value and institute for first volume value When stating the difference of the volume of the second volume value greater than preset threshold, determine that the playback equipment is in improper working condition.
7. terminal according to claim 5, which is characterized in that the terminal further include:
Audio external play detection module: for determining that the terminal carries out audio broadcasting by the playback equipment.
8. terminal according to claim 5, which is characterized in that the terminal further include:
Timing module: for executing the step for judging the playback equipment and whether being in normal working condition apart from last time When the rapid time reaches prefixed time interval, the working condition judgment module is triggered.
9. a kind of terminal characterized by comprising memory, processor and be stored on the memory and can be at the place The computer program run on reason device, the processor are realized as described in any one of Claims 1 to 4 when executing described program Playback method in step.
CN201710628907.6A 2017-07-28 2017-07-28 A kind of playback method and terminal Active CN107241642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710628907.6A CN107241642B (en) 2017-07-28 2017-07-28 A kind of playback method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710628907.6A CN107241642B (en) 2017-07-28 2017-07-28 A kind of playback method and terminal

Publications (2)

Publication Number Publication Date
CN107241642A CN107241642A (en) 2017-10-10
CN107241642B true CN107241642B (en) 2019-11-22

Family

ID=59988330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710628907.6A Active CN107241642B (en) 2017-07-28 2017-07-28 A kind of playback method and terminal

Country Status (1)

Country Link
CN (1) CN107241642B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020027828A1 (en) * 2018-08-01 2020-02-06 Google Llc Detecting audio paths between mobile devices and external devices
CN109994111B (en) * 2019-02-26 2021-11-23 维沃移动通信有限公司 Interaction method, interaction device and mobile terminal
CN111669576B (en) * 2020-06-19 2021-11-19 海信视像科技股份有限公司 Method and device for identifying volume output abnormality of smart television and electronic equipment
CN112468960B (en) * 2020-11-24 2023-05-23 惠州Tcl移动通信有限公司 Method, device, terminal and medium for switching frequency modulation broadcast signals of vehicle-mounted terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468930A (en) * 2013-09-17 2015-03-25 中兴通讯股份有限公司 Method and device for playback loudness adjustment
CN104662874A (en) * 2013-05-29 2015-05-27 旭化成微电子株式会社 Controller, control method, and program
WO2015108794A1 (en) * 2014-01-18 2015-07-23 Microsoft Technology Licensing, Llc Dynamic calibration of an audio system
CN104869505A (en) * 2015-03-23 2015-08-26 广东欧珀移动通信有限公司 Volume control method, playing device, mobile terminal and system
CN105828135A (en) * 2016-03-22 2016-08-03 广东欧珀移动通信有限公司 Playing control method and device in audio-video playing system and playing device
CN106095380A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Acoustical signal acquisition methods and device
CN106254641A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 The earphone monitoring method and system of smart machine
CN106714059A (en) * 2015-11-13 2017-05-24 钰太芯微电子科技(上海)有限公司 Self-calibration method based on MEMS microphone and microphone
CN106782589A (en) * 2016-12-12 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its pronunciation inputting method and device
CN106817656A (en) * 2017-03-22 2017-06-09 维沃移动通信有限公司 A kind of outer method and mobile terminal for putting sound system audio calibration

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104662874A (en) * 2013-05-29 2015-05-27 旭化成微电子株式会社 Controller, control method, and program
CN104468930A (en) * 2013-09-17 2015-03-25 中兴通讯股份有限公司 Method and device for playback loudness adjustment
WO2015108794A1 (en) * 2014-01-18 2015-07-23 Microsoft Technology Licensing, Llc Dynamic calibration of an audio system
CN104869505A (en) * 2015-03-23 2015-08-26 广东欧珀移动通信有限公司 Volume control method, playing device, mobile terminal and system
CN106714059A (en) * 2015-11-13 2017-05-24 钰太芯微电子科技(上海)有限公司 Self-calibration method based on MEMS microphone and microphone
CN105828135A (en) * 2016-03-22 2016-08-03 广东欧珀移动通信有限公司 Playing control method and device in audio-video playing system and playing device
CN106095380A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 Acoustical signal acquisition methods and device
CN106254641A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 The earphone monitoring method and system of smart machine
CN106782589A (en) * 2016-12-12 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its pronunciation inputting method and device
CN106817656A (en) * 2017-03-22 2017-06-09 维沃移动通信有限公司 A kind of outer method and mobile terminal for putting sound system audio calibration

Also Published As

Publication number Publication date
CN107241642A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107241642B (en) A kind of playback method and terminal
CN106303804B (en) A kind of control method and mobile terminal of microphone
CN104360653B (en) Troubleshooting methodology and device
CN104571498B (en) A kind of application program launching method
CN106341535B (en) A kind of audio play control method and mobile terminal
CN108519871A (en) Acoustic signal processing method and Related product
CN106791109A (en) A kind of sound prompting method and mobile terminal
WO2018201944A1 (en) Apparatus control method and device
CN105138319B (en) Event-prompting method and device
CN107105367A (en) A kind of acoustic signal processing method and terminal
CN105635449A (en) Alarm clock control method and mobile terminal
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
CN103888601B (en) Information prompting method, device and terminal
CN104580730A (en) Alarm clock prompting method and device
CN105527850A (en) Power-cut reminding method and device
CN104935729B (en) Audio-frequency inputting method and device
WO2020103070A1 (en) Method and apparatus for processing application program, and electronic device
CN105117899A (en) Reminding method and apparatus
CN105554266A (en) Message reminding processing method, device and equipment
CN105468236A (en) Message prompting method and apparatus and terminal
CN104702756A (en) Detecting method and detecting device for soundless call
CN106254192A (en) Reminding method, suggestion device and prompt system
CN105141769A (en) Communication message processing method and device as well as terminal
CN105100484A (en) Method, device and system for ending voice call
CN106131312A (en) The player method of speech message, device and mobile terminal

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