CN108366160A - Audio testing method, mobile terminal and computer readable storage medium - Google Patents

Audio testing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108366160A
CN108366160A CN201810076020.5A CN201810076020A CN108366160A CN 108366160 A CN108366160 A CN 108366160A CN 201810076020 A CN201810076020 A CN 201810076020A CN 108366160 A CN108366160 A CN 108366160A
Authority
CN
China
Prior art keywords
audio
test
access
frequency test
parts
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810076020.5A
Other languages
Chinese (zh)
Other versions
CN108366160B (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.)
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 CN201810076020.5A priority Critical patent/CN108366160B/en
Publication of CN108366160A publication Critical patent/CN108366160A/en
Application granted granted Critical
Publication of CN108366160B publication Critical patent/CN108366160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of audio testing method, mobile terminal and computer readable storage medium, the audio testing method includes the following steps:When detecting audio-frequency test instruction, attribute value is obtained from audio-frequency test instruction;Audio-frequency test access is determined according to attribute value;Obtain audio parts corresponding with audio-frequency test access;Using test source of sound as the input signal of audio parts, control audio parts work, and by the audio signal transmission of audio parts output to audio automated test device, so that performance of the audio automated test device according to test source of sound and audio signal analysis audio parts.Compared with prior art, the present invention uses the mode of attribute value that independent audio-frequency test access is arranged for each audio parts, realizes and audio-frequency test access is flexibly arranged for each audio parts, the scalability of audio-frequency test is strong;Meanwhile independent audio-frequency test access is set for each audio parts, test result can accurately reflect the performance of respective audio device.

Description

Audio testing method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to a kind of audio-frequency test technical field more particularly to audio testing method, mobile terminal and computers Readable storage medium storing program for executing.
Background technology
Currently, common test when audio-frequency test has been cell phone manufacturer's production, the test that different cell phone manufacturers uses Mode is mostly different, but the still system test that its test philosophy is generally taken.System test is broadcast by handset audio It puts, then audio automated test device acquires audio signal and compared and analyzed with the original audio signal of broadcasting, then Comparative analysis result and golden machine are verified into standard calibration to obtain test result.However, handset audio device includes loudspeaker, listens Multiple devices such as cylinder, main microphon, secondary microphone, system test can only reflect the overall performance of handset audio device, and can not Accurately reflect the performance of each audio parts, and the poor expandability of audio-frequency test.
Therefore, it is necessary to provide a kind of audio testing method, mobile terminal and computer readable storage medium to solve State technical problem.
Invention content
It is a primary object of the present invention to propose a kind of audio testing method, mobile terminal and computer-readable storage medium Matter, it is intended to it can not accurately reflect the performance of each audio parts when solving system test, the poor expandability of audio-frequency test Technical problem.
First, to achieve the above object, the present invention provides a kind of audio testing method, the audio testing method include with Lower step:
When detecting audio-frequency test instruction, attribute value is obtained from audio-frequency test instruction;
Audio-frequency test access is determined according to the attribute value;
Obtain audio parts corresponding with the audio-frequency test access;
Will test source of sound as the input signal of the audio parts, control the audio parts work, and by the sound The audio signal transmission of frequency device output is to audio automated test device, so that the audio automated test device is according to institute State the performance of audio parts described in test source of sound and the audio signal analysis.
Optionally, further include after described the step of determining audio-frequency test access according to the attribute value:
Obtain the corresponding sound effect parameters of the audio-frequency test access;
While control audio parts work, according to the sound effect parameters to being transmitted in the audio-frequency test access It tests source of sound and carries out corresponding audio effect processing, to obtain the audio signal after audio effect processing.
Optionally, the audio parts include audio input device and audio output device, the audio-frequency test access packet Audio input device detection access and audio output device test access are included, wherein each audio-frequency test access corresponds to one The attribute value.
Optionally, when the audio parts are audio output device, the source of sound that will test is as the audio device The input signal of part, controls audio parts work, and the audio signal transmission that the audio parts are exported to audio from The step of dynamicization test equipment includes:
It controls mobile terminal and opens the audio output device, using the test source of sound as the audio output device Input signal;
Start the standard microphone of the audio automated test device to acquire the sound of the audio output device output Frequency signal.
Optionally, when the audio parts are audio input device, the source of sound that will test is as the audio parts Input signal, control audio parts work, and the audio signal transmission that the audio parts are exported is automatic to audio Change test equipment the step of include:
Control audio input device records the test source of sound that the audio automated test device plays;
The collected test source of sound of the audio input device is exported to the audio to automate by earphone access and is surveyed Try equipment.
Optionally, the audio input device be main microphon or secondary microphone, the audio output device be loudspeaker or Receiver, the audio input device detection access are main microphon test access or secondary microphone test access, and the audio is defeated It is loudspeaker test access or receiver test access to go out device detection access.
Optionally, further include before described the step of determining audio-frequency test access according to the attribute value:
The correspondence of the attribute value and audio-frequency test access of user setting is received and stored, wherein each audio is surveyed It pings road and corresponds to an audio xml configuration files, the audio xml configuration files include that the audio-frequency test access opens when institute The tinymix accesses that need to start.
Optionally, described the step of controlling the audio parts work, includes:
Obtain audio xml configuration files corresponding with the audio-frequency test access;
The tinymix accesses in the audio xml configuration files are opened to realize that the control audio parts work.
Meanwhile the present invention also provides a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute The audio-frequency test program that can be run on memory and on the processor is stated, the audio-frequency test program is held by the processor The step of audio testing method as described above is realized when row.
In addition, the present invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium There are audio-frequency test program, the audio-frequency test program to be performed the step of realizing audio testing method as described above.
Compared to the prior art, audio testing method proposed by the invention, mobile terminal and computer-readable storage medium Matter obtains attribute value from audio-frequency test instruction, sound is determined according to the attribute value when detecting audio-frequency test instruction Frequency test access obtains audio parts corresponding with the audio-frequency test access, then will test source of sound as the audio device The input signal of part, controls audio parts work, and the audio signal transmission that the audio parts are exported to audio from Dynamicization test equipment, so that the audio automated test device is according to described in the test source of sound and the audio signal analysis The performance of audio parts is led to since the present invention uses the mode of attribute value that independent audio-frequency test is arranged for each audio parts Road, realizes and audio-frequency test access is flexibly arranged for each audio parts, and the scalability of audio-frequency test is strong;Meanwhile being Independent audio-frequency test access is arranged in each audio parts, and test result can accurately reflect the performance of respective audio device.
Description of the drawings
The hardware architecture diagram of Fig. 1 one optional mobile terminals of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the implementation process diagram of audio testing method first embodiment of the present invention;
Fig. 4 is the implementation process diagram of audio testing method second embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of audio-frequency test program first embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of audio-frequency test program second embodiment of the present invention;
Fig. 7 be audio automated test device to mobile terminal carry out audio-frequency test when one embodiment schematic diagram;
The schematic diagram for another embodiment that Fig. 8 is audio automated test device when carrying out audio-frequency test to mobile terminal.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
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 subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal DigitalAssistant, PDA), portable matchmaker Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except 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, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components 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 constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Either combine certain components or different components 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, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless 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 Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex 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, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing 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, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further 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 sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of 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 sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch 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 It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, 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 the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly 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 Audio data, phone directory etc.) etc..In addition, memory 109 may 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 entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, 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 Manage device, wherein application processor mainly handles information system, user interface and application program etc., and modem processor is main Processing wireless 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) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into 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 System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN 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 details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber location-server) 2032, other MME2033, SGW (Serving Gate Way, gateway) 2034, PGW (PDN Gate Way, 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 The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may 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 the following new network system etc., it does not limit herein.
Based on 100 hardware configuration of above-mentioned mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
First, the present invention proposes that a kind of audio testing method, the audio testing method are applied to move described in Fig. 1 to Fig. 2 Terminal.As shown in figure 3, being the implementing procedure figure of audio testing method first embodiment of the present invention.In the present embodiment, according to not With demand, the execution sequence of the step in flow chart shown in Fig. 3 can change, and certain steps can be omitted.The audio Test method includes:
When detecting audio-frequency test instruction, attribute value is obtained from audio-frequency test instruction by step S301.
Audio-frequency test on mobile terminal usually requires to realize by audio automated test device, and audio automation is surveyed Sound card and analysis software are provided in examination equipment, audio testing method of the present invention is applied to audio automated test device to moving During dynamic terminal carries out audio-frequency test.Referring to FIG. 7, Fig. 7 is audio automated test device carries out sound to mobile terminal The schematic diagram of one embodiment when frequency is tested, as shown in fig. 7, when the analysis software on audio automated test device is wanted to test certain When the performance of a audio parts, need to send audio-frequency test instruction to mobile terminal, when mobile terminal detects that audio-frequency test refers to When enabling, audio-frequency test can be executed to corresponding audio parts.Wherein, the audio parts on mobile terminal generally include audio input Device and audio output device two types, audio input device generally comprise main microphon and secondary microphone, audio output device Part generally comprises loudspeaker and receiver, and it is to test main microphon, secondary microphone, loudspeaker or receiver that audio-frequency test is carried out in the present invention Performance.System test in compared with the prior art, the present invention can carry out independent performance test to each audio parts, be This, the present invention be respectively by the way of attribute loudspeaker, receiver, main microphon, secondary microphone setting audio-frequency test access, for Different audio parts, audio-frequency test access have different attribute values, i.e., attribute value is for distinguishing different audio-frequency tests Access.Wherein, each audio parts setting audio-frequency test access is realized by QACT tools, and audio-frequency test access is from control For the angle for making stream, be using attribute (attribute is denoted as attribute value in the present invention) go to specify which audio parts work or One group of audio parts work of person, can be regarded as the TCH test channel specially opened for a certain test purpose.
Step S302 determines audio-frequency test access according to the attribute value.
In the present embodiment, audio-frequency test access includes main microphon test access, secondary microphone test access, loudspeaker test Four kinds of access and receiver test access, wherein main microphon test access and secondary microphone test access are audio input device Test access, loudspeaker test access and receiver test access are audio output device test access.Certainly, if on mobile terminal Audio parts in addition to main microphon, secondary microphone, loudspeaker and receiver, also other audio parts then similarly can be right Corresponding audio-frequency test access is arranged in other audio parts, i.e. the present invention can be that audio survey is flexibly arranged in each audio parts Road is pinged, the scalability of audio-frequency test is strong.Since attribute value and audio-frequency test access are one-to-one, according to acquisition To attribute value can determine audio-frequency test access.
Step S303 obtains audio parts corresponding with the audio-frequency test access.
Specifically, audio-frequency test access has one-to-one relationship with audio parts, such as main microphon test access, secondary wheat Gram wind test access, loudspeaker test access, receiver test access correspond respectively to main microphon, secondary microphone, loudspeaker and listen Cylinder.
Step S304 controls the audio parts work using test source of sound as the input signal of the audio parts, and The audio signal transmission that the audio parts are exported is to audio automated test device, so that the audio automatic test is set The standby performance according to audio parts described in the test source of sound and the audio signal analysis.
In the present invention, after mobile terminal determines audio parts by attribute value, audio parts work can be controlled with to it Carry out audio-frequency test.Specifically, when audio parts are audio output device, i.e., the described audio-frequency test access is audio output device It is described using test source of sound as the input signal of the audio parts when test access, the audio parts work is controlled, and will Audio signal transmission to the step of audio automated test device of audio parts output includes:(1) mobile terminal is controlled Audio output device is opened, using the test source of sound as the input signal of the audio output device;(2) start the audio The standard microphone of automated test device acquires the audio signal of audio output device output.By taking loudspeaker as an example, when When carrying out audio-frequency test to loudspeaker, mobile terminal controls loudspeaker and plays pre-set test source of sound, while audio automation is surveyed Try equipment and the audio signal that loudspeaker play received by standard microphone, then analysis software again the audio signal that receives with Built-in test source of sound is compared, so as to obtain the distortion factor and true loudness that loudspeaker work under the present circumstances Value, and then the correlated performance of loudspeaker can be obtained.Since receiver and loudspeaker belong to audio output device, test philosophy is phase With, the test process of receiver is no longer specifically described herein.In addition, the testing audio that loudspeaker or receiver play can be by built-in Source of sound mode realizes that this certain built-in source of sound is also that audio automation equipment is specified.When audio parts are audio input Device, i.e., when the described audio-frequency test access is audio input device detection access, the source of sound that will test is as the audio device The input signal of part, controls audio parts work, and the audio signal transmission that the audio parts are exported to audio from The step of dynamicization test equipment includes:(1) control audio input device records the survey that the audio automated test device plays Audition source;(2) the collected test source of sound of the audio input device is exported by earphone access to the audio and is automated Test equipment.By taking main microphon as an example, when carrying out audio-frequency test to main microphon, audio automated test device passes through artificial Mouth plays test source of sound, and mobile terminal control main microphon records the test source of sound of broadcasting, then again the survey of recording Audition source gives audio automated test device, audio automated test device to analyze it place again by earphone tunnel Reason to obtain the loudness value of main microphon with being distorted angle value, and then analyzes the performance of main microphon.It similarly, can be to pair Microphone carries out audio-frequency test, since its test philosophy is identical, no longer specifically describes the test process of secondary microphone herein.
S301 to S304 through the above steps, audio testing method of the present invention is when detecting audio-frequency test instruction, from institute It states in audio-frequency test instruction and obtains attribute value, audio-frequency test access is determined according to the attribute value, is obtained and the audio-frequency test The corresponding audio parts of access control the audio parts then using test source of sound as the input signal of the audio parts Work, and the audio signal transmission that the audio parts are exported is to audio automated test device, so that the audio is automatic Change performance of the test equipment according to audio parts described in the test source of sound and the audio signal analysis, since the present invention uses The mode of attribute value is that independent audio-frequency test access is arranged in each audio parts, realize for each audio parts it is flexible Audio-frequency test access is set, and the scalability of audio-frequency test is strong;Meanwhile independent audio-frequency test is set for each audio parts and is led to Road, test result can accurately reflect the performance of respective audio device.
Further, it is based on above-mentioned first embodiment, proposes the second embodiment of audio testing method of the present invention.Such as Fig. 4 It is shown, it is the implementing procedure figure of audio testing method second embodiment of the present invention.In the present embodiment, according to different requirements, The execution sequence of step in flow chart shown in Fig. 4 can change, and certain steps can be omitted.The audio testing method packet It includes:
Step S401 receives and stores the correspondence of the attribute value and audio-frequency test access of user setting, wherein each The audio-frequency test access corresponds to an audio xml configuration files, and the audio xml configuration files include that the audio-frequency test is logical The tinymix accesses of road required startup when opening.
In order to realize above-mentioned audio testing method, the present invention need to application layer, HAL layers, audio xml configuration files and AcdbID is designed.Wherein, application layer refers to APP, i.e., the audio-frequency test APP that the present invention develops, audio-frequency test APP installations In on mobile terminal, for realizing the audio testing method of the present invention, user can be each audio in audio-frequency test APP Device sets property, and when audio-frequency test APP receives audio-frequency test instruction, the attribute value in being instructed according to audio-frequency test can Determine audio-frequency test access.
Audio xml configuration files are specially this file of mixer_paths_mtp.xml, and following institute is stored in this document Show<Path name=" ">…</path>The configuration access of this kind of format, it is certain combination of tinymix accesses, such as loudspeaker It needs to open multiple tinymix accesses when broadcasting, is then stored in the audio xml configuration files when loudspeaker play and needs to open Multiple tinymix accesses.Such as the partial content in audio xml configuration files is as follows:
Then tinymix accesses refer to tinymixRX1MIX1INP1RX1, i.e., above in file<path>It is exactly one group The switch of tinymix, its main function are can to open many necessary tinymix accesses for audio-frequency test access.This hair It is as follows for defining the audio xml configuration files of audio-frequency test access in bright:
<Path name=" speaker-test ">…</path>
<Path name=" receiver-test ">…</path>
<Path name=" mic1-test ">…</path>
<Path name=" mic2-test ">…</path>
Wherein, the audio-frequency test access that audio xml configuration files define can be connected with HAL layers, eventually at HAL layers Audio xml configuration files are mapped to, each path (i.e. audio-frequency test access) is made to come into force.
HAL layers are audio hardware level of abstraction, and HAL layers need to cooperate and could work with audio xml configuration files, HAL Layer correspond to android audio frames AudioFlinger.cpp, AudioPolicyService.cpp the two service, AudioPolicyService practical is not a true equipment, only allows manufacturer square by the way of virtual unit Just customization " the audio strategy " of oneself.The task of the level of abstraction is that AudioFlinger/AudioPolicyService is true Positive associates with hardware device, but ensures that the variation of bottom does not impact upper layer again, so HAL layers are The place that android is changed to mobile phone business men suggestion, and the other parts of audio frame are then generally without modification.Specifically, When xml configuration files are associated with HAL layers, mapping relations are illustrated below:[SND_DEVICE_OUT_SPEAKER_TEST] =" speaker-test ", wherein " speaker-test " is referred in audio xml configuration files<Path name=" speaker-test">…</path>, SND_DEVICE_OUT_SPEAKER is that the equipment sound card suggested in Android system is set Constant is set, HAL layers can be associated with audio xml configuration files by above-mentioned mapping relations.Similarly, for other audios The audio xml configuration files of test access, are arranged following mapping relations:
[SND_DEVICE_OUT_RECEIVER_TEST]=" receiver-test "
[SND_DEVICE_OUT_MIC1_TEST]=" mic1-test "
[SND_DEVICE_OUT_MIC2_TEST]=" mic2-test "
In addition, HAL layers can also be associated together with acdbID, mapping relations are as follows:
[SND_DEVICE_OUT_SPEAKER_TEST]=" 205 "
[SND_DEVICE_OUT_RECEIVER_TEST]=" 204 "
[SND_DEVICE_OUT_MIC1_TEST]=" 202 "
[SND_DEVICE_OUT_MIC2_TEST]=" 201 "
Wherein 201,202,204,205 indicate that the value of acdbID, different acdbID represent different sound effect parameters.This Outside, calling logic can also distinguish between by attribute value at HAL layers, such as:When calling audio output device, then calling logic is Plartform_get_output_snd_device, and when calling audio input device, calling logic plartform_ get_inputput_snd_device.Above two calling logic determines that the present invention will not by android system frame This interface is modified, when audio parts using when be bound to call above-mentioned calling logic.And in order to distinguish in the present invention Audio-frequency test access and audio work access when mobile terminal normal use (i.e. voice-frequency channel), the present invention is using attribute value Mode remove the access for specifying us to need selection, such as:When carrying out loudspeaker test, if not specified attribute value, can select The loudspeaker broadcasting access (audio work access) for selecting acquiescence plays out, and when specified attribute debug.audio.speaker's When attribute value is true, then this audio-frequency test access of SND_DEVICE_OUT_SPEAKER_TEST can be selected to be tested, i.e., It is that audio-frequency test is carried out to loudspeaker at this time.
When detecting audio-frequency test instruction, attribute value is obtained from audio-frequency test instruction by step S402.
Step S403 determines audio-frequency test access according to the attribute value, obtains corresponding with the audio-frequency test access Audio parts and the corresponding sound effect parameters of the audio-frequency test access.
In the present embodiment, each audio parts setting audio-frequency test access is realized by QACT tools, and audio is surveyed Pinging road can illustrate in terms of two, be that (attribute corresponds to an attribute using attribute for the angle of control stream Value) which audio parts work or which group audio parts work gone to specify, can be regarded as a certain test purpose and The TCH test channel specially opened;For audio angle, the audio of normal use can be distinguished by adding additional acdbID User is the sound effect parameters of the audio-frequency test access setting when device sound effect parameters and test, it may also be said to be for a certain survey Examination purpose takes individual audio access.It should be noted that when audio parts are carried out with the audio-frequency test in production process When, empty are set as to the sound effect parameters of audio-frequency test access, that is, without using additional sound effect parameters so as to more true Reflect the performance of audio parts, and tested if it is research and development, then audio effect processing can be added as needed on, to which research and development can make Whether some indexs that audio is tested with audio automated test device meet the design requirement of engineer, that is, facilitate audio work Cheng Shi flexibly debugs sound effect parameters, and can corresponding sound effect parameters the sound that user uses be applied to when audio frequency effect is good Frequency active channel, i.e. regular channels, regular channels refer to the channel for having added sound effect algorithms when our mobile phone normal uses, are to supply It uses, therefore some uncertain sound effect algorithms can be tested in audio-frequency test access in advance to user, obtained The best sound effect parameters are added in the audio work access that user uses again after best sound effect parameters.
Step S404, when the audio parts are audio output device, control mobile terminal opens audio output device, It is logical to the audio-frequency test according to the sound effect parameters using the test source of sound as the input signal of the audio output device The test source of sound transmitted in road carries out corresponding audio effect processing, and the standard microphone for starting the audio automated test device is come The audio signal for acquiring the audio output device output, so that the audio automated test device is according to the test source of sound With the performance of audio parts described in the audio signal analysis.
The present embodiment is by taking the audio-frequency test in R&D process as an example, when user is that audio-frequency test access is joined provided with audio After counting and getting the sound effect parameters, the audio-frequency test can will be led to according to the sound effect parameters during audio-frequency test The test source of sound transmitted in road carries out corresponding audio effect processing, to obtain the audio signal after audio effect processing.Specifically, sound Effect refers to that additional algorithm process is added when audio parts work:Such as echo cancellation, noise reduction process etc., audio parts add Summation tone effect mainly adds additional optimization algorithm, and the sound quality presented to make audio parts play is more in line with the spy of human ear Property, sound more comfortable and clear.In addition, the control audio parts include the step of work:It obtains and the sound The corresponding audio xml configuration files of frequency test access;The tinymix accesses in the audio xml configuration files are opened to realize Control the audio parts work.
Step S405, when the audio parts are audio input device, control audio input device records the audio The test source of sound that automated test device plays, while the survey according to the sound effect parameters to being transmitted in the audio-frequency test access Audition source carries out corresponding audio effect processing, the test source of sound after audio effect processing is exported by earphone access automatic to the audio Change test equipment, so that the audio automated test device is according to sound described in the test source of sound and the audio signal analysis The performance of frequency device.Referring to FIG. 8, Fig. 8 is audio automated test device when carrying out audio-frequency test to mobile terminal another reality The schematic diagram of example is applied, as shown in figure 8, audio-frequency test process includes the following steps:1. audio automated test device sends audio Test is instructed to the audio-frequency test APP on mobile terminal;2. audio-frequency test APP obtains attribute value and attribute value is sent to HAL Layer;3.HAL layers determine audio-frequency test access according to attribute value;4. audio-frequency test APP analyzes to obtain audio parts according to attribute value ID and be sent to audio-frequency test access, in the present embodiment while carrying out audio-frequency test can according to acdbID carry out audio at Reason;The 5.HAL layers of audio parts selected according to the ID of audio parts when audio-frequency test;6. feeding back the selection result of audio parts extremely Application layer;7. controlling audio parts work;8. audio parts exports audio signal is to audio automated test device;9. audio is certainly The performance that dynamicization test equipment passes through analysis software audio parts.
S401 to S405 through the above steps, audio testing method of the present invention is due to using the mode of attribute value for each sound Independent audio-frequency test access is arranged in frequency device, realizes and audio-frequency test access, sound is flexibly arranged for each audio parts The scalability of frequency test is strong;Meanwhile independent audio-frequency test access is set for each audio parts, test result can be accurate The really performance of reflection respective audio device;In addition, in research and development test phase, sound effect parameters are set for each audio-frequency test access, Realize the design requirement for whether meeting engineer by some indexs of audio automated test device test audio, i.e., it is convenient Audio engineer flexibly debugs sound effect parameters, when audio frequency effect is good can corresponding sound effect parameters be applied to user The audio work access used.
Meanwhile the present invention also proposes a kind of mobile terminal, the mobile terminal includes memory, processor and is stored in institute State the audio-frequency test program 400 that can be run on memory and on the processor.As shown in figure 5, being audio-frequency test of the present invention The high-level schematic functional block diagram of 400 first embodiment of program.In the present embodiment, the audio-frequency test program 400 can be divided At one or more modules, for example, in Figure 5, the audio-frequency test program 400 can be divided into attribute value acquisition module 401, audio-frequency test access determining module 402, audio parts acquisition module 403 and control module 404.The so-called mould of the present invention Block refers to a series of a kind of acquisition machine program instruction sections that can complete specific function, softer more suitable for describing than obtaining machine program Implementation procedure of the part in the mobile terminal.The concrete function of above-mentioned each function module 401-404 will be carried out below detailed Description.Wherein:
The attribute value acquisition module 401, for detect audio-frequency test instruction when, from the audio-frequency test instruction in Obtain attribute value.
Audio-frequency test on mobile terminal usually requires to realize by audio automated test device, and audio automation is surveyed Sound card and analysis software are provided in examination equipment, audio testing method of the present invention is applied to audio automated test device to moving During dynamic terminal carries out audio-frequency test.Referring to FIG. 7, Fig. 7 is audio automated test device carries out sound to mobile terminal The schematic diagram of one embodiment when frequency is tested, as shown in fig. 7, when the analysis software on audio automated test device is wanted to test certain When the performance of a audio parts, need to send audio-frequency test instruction to mobile terminal, when mobile terminal detects that audio-frequency test refers to When enabling, audio-frequency test can be executed to corresponding audio parts.Wherein, the audio parts on mobile terminal generally include audio input Device and audio output device two types, audio input device generally comprise main microphon and secondary microphone, audio output device Part generally comprises loudspeaker and receiver, and it is to test main microphon, secondary microphone, loudspeaker or receiver that audio-frequency test is carried out in the present invention Performance.System test in compared with the prior art, the present invention can carry out independent performance test to each audio parts, be This, the present invention be respectively by the way of attribute loudspeaker, receiver, main microphon, secondary microphone setting audio-frequency test access, for Different audio parts, audio-frequency test access have different attribute values, i.e., attribute value is for distinguishing different audio-frequency tests Access.Wherein, each audio parts setting audio-frequency test access is realized by QACT tools, and audio-frequency test access is from control For the angle for making stream, be using attribute (attribute is denoted as attribute value in the present invention) go to specify which audio parts work or One group of audio parts work of person, can be regarded as the TCH test channel specially opened for a certain test purpose.
The audio-frequency test access determining module 402, for determining audio-frequency test access according to the attribute value.
In the present embodiment, audio-frequency test access includes main microphon test access, secondary microphone test access, loudspeaker test Four kinds of access and receiver test access, wherein main microphon test access and secondary microphone test access are audio input device Test access, loudspeaker test access and receiver test access are audio output device test access.Certainly, if on mobile terminal Audio parts in addition to main microphon, secondary microphone, loudspeaker and receiver, also other audio parts then similarly can be right Corresponding audio-frequency test access is arranged in other audio parts, i.e. the present invention can be that audio survey is flexibly arranged in each audio parts Road is pinged, the scalability of audio-frequency test is strong.Since attribute value and audio-frequency test access are one-to-one, according to acquisition To attribute value can determine audio-frequency test access.
The audio parts acquisition module 403, for obtaining audio parts corresponding with the audio-frequency test access.Specifically , audio-frequency test access has one-to-one relationship with audio parts, as main microphon test access, secondary microphone test are logical Road, loudspeaker test access, receiver test access correspond respectively to main microphon, secondary microphone, loudspeaker and receiver.
The control module 404 controls the audio for that will test input signal of the source of sound as the audio parts Device works, and the audio signal transmission that the audio parts are exported is to audio automated test device, so that the audio Automated test device is according to the performance for testing audio parts described in source of sound and the audio signal analysis.
In the present invention, after mobile terminal determines audio parts by attribute value, audio parts work can be controlled with to it Carry out audio-frequency test.Specifically, when audio parts are audio output device, i.e., the described audio-frequency test access is audio output device It is described using test source of sound as the input signal of the audio parts when test access, the audio parts work is controlled, and will Audio signal transmission to the step of audio automated test device of audio parts output includes:(1) mobile terminal is controlled Audio output device is opened, using the test source of sound as the input signal of the audio output device;(2) start the audio The standard microphone of automated test device acquires the audio signal of audio output device output.By taking loudspeaker as an example, when When carrying out audio-frequency test to loudspeaker, mobile terminal controls loudspeaker and plays pre-set test source of sound, while audio automation is surveyed Try equipment and the audio signal that loudspeaker play received by standard microphone, then analysis software again the audio signal that receives with Built-in test source of sound is compared, so as to obtain the distortion factor and true loudness that loudspeaker work under the present circumstances Value, and then the correlated performance of loudspeaker can be obtained.Since receiver and loudspeaker belong to audio output device, test philosophy is phase With, the test process of receiver is no longer specifically described herein.In addition, the testing audio that loudspeaker or receiver play can be by built-in Source of sound mode realizes that this certain built-in source of sound is also that audio automation equipment is specified.When audio parts are audio input Device, i.e., when the described audio-frequency test access is audio input device detection access, the source of sound that will test is as the audio device The input signal of part, controls audio parts work, and the audio signal transmission that the audio parts are exported to audio from The step of dynamicization test equipment includes:(1) control audio input device records the survey that the audio automated test device plays Audition source;(2) the collected test source of sound of the audio input device is exported by earphone access to the audio and is automated Test equipment.By taking main microphon as an example, when carrying out audio-frequency test to main microphon, audio automated test device passes through artificial Mouth plays test source of sound, and mobile terminal control main microphon records the test source of sound of broadcasting, then again the survey of recording Audition source gives audio automated test device, audio automated test device to analyze it place again by earphone tunnel Reason to obtain the loudness value of main microphon with being distorted angle value, and then analyzes the performance of main microphon.It similarly, can be to pair Microphone carries out audio-frequency test, since its test philosophy is identical, no longer specifically describes the test process of secondary microphone herein.
By above-mentioned module 401 to 404, audio-frequency test program of the present invention is when detecting audio-frequency test instruction, from described Attribute value is obtained in audio-frequency test instruction, audio-frequency test access is determined according to the attribute value, is obtained logical with the audio-frequency test The corresponding audio parts in road control the audio parts work then using test source of sound as the input signal of the audio parts Make, and the audio signal transmission that the audio parts are exported is to audio automated test device, so that the audio automates Test equipment belongs to according to the performance of audio parts described in the test source of sound and the audio signal analysis since the present invention uses Property value mode be that independent audio-frequency test access is arranged in each audio parts, realize and flexibly set for each audio parts Audio-frequency test access is set, the scalability of audio-frequency test is strong;Meanwhile independent audio-frequency test is set for each audio parts and is led to Road, test result can accurately reflect the performance of respective audio device.
Further, the first embodiment based on aforementioned present invention audio-frequency test program 400 proposes audio-frequency test of the present invention The second embodiment of program 400.Referring to FIG. 6, Fig. 6 is the function module of 400 second embodiment of audio-frequency test program of the present invention Schematic diagram, compared with first embodiment, in the present embodiment, audio-frequency test program 400 further includes setup module 405, sound effect parameters Acquisition module 406 and audio test module 407.In the present embodiment, each function module is described as follows:
The setup module 405, the attribute value pass corresponding with audio-frequency test access for receiving and storing user setting System, wherein each audio-frequency test access corresponds to an audio xml configuration files, the audio xml configuration files include institute State the tinymix accesses of required startup when audio-frequency test access is opened.
In order to realize above-mentioned audio-frequency test program, the present invention need to application layer, HAL layers, audio xml configuration files and AcdbID is designed.Wherein, application layer refers to APP, i.e., the audio-frequency test APP that the present invention develops, audio-frequency test APP installations In on mobile terminal, for realizing the audio testing method of the present invention, user can be each audio in audio-frequency test APP Device sets property, and when audio-frequency test APP receives audio-frequency test instruction, the attribute value in being instructed according to audio-frequency test can Determine audio-frequency test access.
Audio xml configuration files are specially this file of mixer_paths_mtp.xml, and following institute is stored in this document Show<Path name=" ">…</path>The configuration access of this kind of format, it is certain combination of tinymix accesses, such as loudspeaker It needs to open multiple tinymix accesses when broadcasting, is then stored in the audio xml configuration files when loudspeaker play and needs to open Multiple tinymix accesses.Such as the partial content in audio xml configuration files is as follows:
Then tinymix accesses refer to tinymixRX1MIX1INP1RX1, i.e., above in file<path>It is exactly one group The switch of tinymix, its main function are can to open many necessary tinymix accesses for audio-frequency test access.This hair It is as follows for defining the audio xml configuration files of audio-frequency test access in bright:
<Path name=" speaker-test ">…</path>
<Path name=" receiver-test ">…</path>
<Path name=" mic1-test ">…</path>
<Path name=" mic2-test ">…</path>
Wherein, the audio-frequency test access that audio xml configuration files define can be connected with HAL layers, eventually at HAL layers Audio xml configuration files are mapped to, each path (i.e. audio-frequency test access) is made to come into force.
HAL layers are audio hardware level of abstraction, and HAL layers need to cooperate and could work with audio xml configuration files, HAL Layer correspond to android audio frames AudioFlinger.cpp, AudioPolicyService.cpp the two service, AudioPolicyService practical is not a true equipment, only allows manufacturer square by the way of virtual unit Just customization " the audio strategy " of oneself.The task of the level of abstraction is that AudioFlinger/AudioPolicyService is true Positive associates with hardware device, but ensures that the variation of bottom does not impact upper layer again, so HAL layers are The place that android is changed to mobile phone business men suggestion, and the other parts of audio frame are then generally without modification.Specifically, When xml configuration files are associated with HAL layers, mapping relations are illustrated below:[SND_DEVICE_OUT_SPEAKER_TEST] =" speaker-test ", wherein " speaker-test " is referred in audio xml configuration files<Path name=" speaker-test">…</path>, SND_DEVICE_OUT_SPEAKER is that the equipment sound card suggested in Android system is set Constant is set, HAL layers can be associated with audio xml configuration files by above-mentioned mapping relations.Similarly, for other audios The audio xml configuration files of test access, are arranged following mapping relations:
[SND_DEVICE_OUT_RECEIVER_TEST]=" receiver-test "
[SND_DEVICE_OUT_MIC1_TEST]=" mic1-test "
[SND_DEVICE_OUT_MIC2_TEST]=" mic2-test "
In addition, HAL layers can also be associated together with acdbID, mapping relations are as follows:
[SND_DEVICE_OUT_SPEAKER_TEST]=" 205 "
[SND_DEVICE_OUT_RECEIVER_TEST]=" 204 "
[SND_DEVICE_OUT_MIC1_TEST]=" 202 "
[SND_DEVICE_OUT_MIC2_TEST]=" 201 "
Wherein 201,202,204,205 indicate that the value of acdbID, different acdbID represent different sound effect parameters.This Outside, calling logic can also distinguish between by attribute value at HAL layers, such as:When calling audio output device, then calling logic is Plartform_get_output_snd_device, and when calling audio input device, calling logic plartform_ get_inputput_snd_device.Above two calling logic determines that the present invention will not by android system frame This interface is modified, when audio parts using when be bound to call above-mentioned calling logic.And in order to distinguish in the present invention Audio-frequency test access and audio work access when mobile terminal normal use (i.e. voice-frequency channel), the present invention is using attribute value Mode remove the access for specifying us to need selection, such as:When carrying out loudspeaker test, if not specified attribute value, can select The loudspeaker broadcasting access (audio work access) for selecting acquiescence plays out, and when specified attribute debug.audio.speaker's When attribute value is true, then this audio-frequency test access of SND_DEVICE_OUT_SPEAKER_TEST can be selected to be tested, i.e., It is that audio-frequency test is carried out to loudspeaker at this time.
The sound effect parameters acquisition module 406, for obtaining the corresponding sound effect parameters of audio-frequency test access.The present embodiment In, each audio parts setting audio-frequency test access is realized by QACT tools, and audio-frequency test access can be from two Aspect illustrates, and is using attribute (attribute corresponds to an attribute value) to go which sound specified for the angle of control stream Frequency device works or which group audio parts work, and it is logical to can be regarded as the test specially opened for a certain test purpose Road;For audio angle, by add additional acdbID can distinguish normal use audio parts sound effect parameters and User is the sound effect parameters of the audio-frequency test access setting when test, it may also be said to is taken individually for a certain test purpose Audio access.It should be noted that when audio parts are carried out with the audio-frequency test in production process, to audio-frequency test access Sound effect parameters be set as empty, that is, without using additional sound effect parameters so as to the more true property of reflection audio parts Can, and tested if it is research and development, then it can be added as needed on audio effect processing, to which research and development can use audio automatic test Whether some indexs of equipment test audio meet the design requirement of engineer, that is, facilitate audio engineer and flexibly debug sound Parameter is imitated, corresponding sound effect parameters can be applied to the audio work access that user uses when audio frequency effect is good, i.e., often Channel is advised, regular channels refer to the channel for having added sound effect algorithms when our mobile phone normal uses, are supplied with what user used, because This in advance can test some uncertain sound effect algorithms in audio-frequency test access, after obtaining best sound effect parameters The best sound effect parameters are added in the audio work access that user uses again.
The audio test module 407 is used for while controlling the audio parts work, according to the sound effect parameters Corresponding audio effect processing is carried out to the test source of sound transmitted in the audio-frequency test access, to obtain the sound after audio effect processing Frequency signal.The present embodiment by taking the audio-frequency test in R&D process as an example, when user be audio-frequency test access be provided with sound effect parameters, It, can will be according to the sound effect parameters in the audio-frequency test access during audio-frequency test and after getting the sound effect parameters The test source of sound of transmission carries out corresponding audio effect processing, to obtain the audio signal after audio effect processing.Specifically, audio is Finger adds additional algorithm process when audio parts work:For example echo cancellation, noise reduction process etc., audio parts add sound Effect mainly adds additional optimization algorithm, and the sound quality presented to make audio parts play is more in line with the characteristic of human ear, listens Get up more comfortable and clear.In addition, the control audio parts include the step of work:It obtains and the audio-frequency test The corresponding audio xml configuration files of access;The tinymix accesses in the audio xml configuration files are opened to realize control institute State audio parts work.Referring to FIG. 8, Fig. 8 be audio automated test device to mobile terminal carry out audio-frequency test when it is another The schematic diagram of embodiment, as shown in figure 8, audio-frequency test process includes the following steps:1. audio automated test device sends sound Frequency test is instructed to the audio-frequency test APP on mobile terminal;2. audio-frequency test APP obtains attribute value and is sent to attribute value HAL layers;3.HAL layers determine audio-frequency test access according to attribute value;4. audio-frequency test APP analyzes to obtain audio device according to attribute value The ID of part is simultaneously sent to audio-frequency test access, and audio can be carried out according to acdbID while carrying out audio-frequency test in the present embodiment Processing;The 5.HAL layers of audio parts selected according to the ID of audio parts when audio-frequency test;6. feeding back the selection result of audio parts To application layer;7. controlling audio parts work;8. audio parts exports audio signal is to audio automated test device;9. audio The performance that automated test device passes through analysis software audio parts.
By above-mentioned module 401 to 407, audio-frequency test program of the present invention is due to using the mode of attribute value for each audio Independent audio-frequency test access is arranged in device, realizes and audio-frequency test access, audio is flexibly arranged for each audio parts The scalability of test is strong;Meanwhile independent audio-frequency test access is set for each audio parts, test result can be accurate Reflect the performance of respective audio device;In addition, in research and development test phase, sound effect parameters are set for each audio-frequency test access, it is real The design requirement for whether meeting engineer by some indexs of audio automated test device test audio showed, that is, has been facilitated Audio engineer flexibly debugs sound effect parameters, and can corresponding sound effect parameters be applied to user when audio frequency effect is good makes Audio work access.
In addition, the present invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium There are audio-frequency test program, the audio-frequency test program to be performed the step of realizing the audio testing method described in Fig. 3 to Fig. 4.
It should be noted that herein, the terms "include", "comprise" 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 include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can 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 this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer is fixed Position server, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of audio testing method, which is characterized in that the audio testing method includes the following steps:
When detecting audio-frequency test instruction, attribute value is obtained from audio-frequency test instruction;
Audio-frequency test access is determined according to the attribute value;
Obtain audio parts corresponding with the audio-frequency test access;
Will test source of sound as the input signal of the audio parts, control the audio parts work, and by the audio device The audio signal transmission of part output is to audio automated test device, so that the audio automated test device is according to the survey The performance of audio parts described in audition source and the audio signal analysis.
2. audio testing method as described in claim 1, which is characterized in that described to determine audio-frequency test according to the attribute value Further include after the step of access:
Obtain the corresponding sound effect parameters of the audio-frequency test access;
While controlling the audio parts work, the test according to the sound effect parameters to being transmitted in the audio-frequency test access Source of sound carries out corresponding audio effect processing, to obtain the audio signal after audio effect processing.
3. audio testing method as described in claim 1, which is characterized in that the audio parts include audio input device and Audio output device, the audio-frequency test access include audio input device detection access and audio output device test access, Wherein each audio-frequency test access corresponds to an attribute value.
4. audio testing method as claimed in claim 3, which is characterized in that when the audio parts are audio output device When, it is described will test source of sound as the input signal of the audio parts, control the audio parts work, and by the audio Device output audio signal transmission to the step of audio automated test device include:
It controls mobile terminal and opens the audio output device, using the test source of sound as the input of the audio output device Signal;
Start the standard microphone of the audio automated test device to acquire the audio letter of the audio output device output Number.
5. audio testing method as claimed in claim 3, which is characterized in that when the audio parts are audio input device When, it is described will test source of sound as the input signal of the audio parts, control the audio parts work, and by the audio Device output audio signal transmission to the step of audio automated test device include:
Control audio input device records the test source of sound that the audio automated test device plays;
The collected test source of sound of the audio input device is exported by earphone access to the audio automatic test and is set It is standby.
6. audio testing method as claimed in claim 3, which is characterized in that the audio input device is main microphon or pair Microphone, the audio output device are loudspeaker or receiver, and the audio input device detection access is that main microphon test is logical Road or secondary microphone test access, the audio output device test access are loudspeaker test access or receiver test access.
7. such as claim 1 to 6 any one of them audio testing method, which is characterized in that described true according to the attribute value Further include before the step of accordatura frequency test access:
The correspondence of the attribute value and audio-frequency test access of user setting is received and stored, wherein each audio-frequency test is logical Road corresponds to an audio xml configuration files, and the audio xml configuration files include required when the audio-frequency test access is opened open Dynamic tinymix accesses.
8. audio testing method as claimed in claim 7, which is characterized in that the step of control audio parts work Including:
Obtain audio xml configuration files corresponding with the audio-frequency test access;
The tinymix accesses in the audio xml configuration files are opened to realize that the control audio parts work.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory Audio-frequency test program that is upper and can running on the processor, the audio-frequency test program are realized when being executed by the processor Such as the step of audio testing method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with audio survey on the computer readable storage medium Program is tried, the audio-frequency test program is performed realization such as audio testing method described in any item of the claim 1 to 8 Step.
CN201810076020.5A 2018-01-26 2018-01-26 Audio testing method, mobile terminal and computer readable storage medium Active CN108366160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810076020.5A CN108366160B (en) 2018-01-26 2018-01-26 Audio testing method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810076020.5A CN108366160B (en) 2018-01-26 2018-01-26 Audio testing method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108366160A true CN108366160A (en) 2018-08-03
CN108366160B CN108366160B (en) 2021-03-26

Family

ID=63007194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810076020.5A Active CN108366160B (en) 2018-01-26 2018-01-26 Audio testing method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108366160B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195089A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for loudspeaker electro mechanical parameter in product
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product
CN110166923A (en) * 2019-05-30 2019-08-23 厦门盈趣科技股份有限公司 Audio frequency apparatus test macro and method
CN110177166A (en) * 2019-06-10 2019-08-27 深圳市中诺通讯有限公司 A kind of mobile phone audio test method and system
CN111613242A (en) * 2019-02-25 2020-09-01 杭州海康威视数字技术股份有限公司 Method and device for testing audio line of equipment and electronic equipment
CN114650456A (en) * 2020-12-17 2022-06-21 深圳Tcl新技术有限公司 Configuration method, system, storage medium and configuration equipment of audio descriptor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638756A (en) * 2012-04-26 2012-08-15 青岛海信移动通信技术股份有限公司 Mobile terminal voice frequency test method, test device and mobile terminal
CN103179240A (en) * 2011-12-20 2013-06-26 比亚迪股份有限公司 Audio test method and system for mobile terminal
CN104601769A (en) * 2014-12-18 2015-05-06 上海斐讯数据通信技术有限公司 Automatic mobile phone main board audio testing system
CN105657632A (en) * 2016-01-08 2016-06-08 深圳市金立通信设备有限公司 Audio test method and system and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179240A (en) * 2011-12-20 2013-06-26 比亚迪股份有限公司 Audio test method and system for mobile terminal
CN102638756A (en) * 2012-04-26 2012-08-15 青岛海信移动通信技术股份有限公司 Mobile terminal voice frequency test method, test device and mobile terminal
CN104601769A (en) * 2014-12-18 2015-05-06 上海斐讯数据通信技术有限公司 Automatic mobile phone main board audio testing system
CN105657632A (en) * 2016-01-08 2016-06-08 深圳市金立通信设备有限公司 Audio test method and system and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195089A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for loudspeaker electro mechanical parameter in product
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product
CN111613242A (en) * 2019-02-25 2020-09-01 杭州海康威视数字技术股份有限公司 Method and device for testing audio line of equipment and electronic equipment
CN111613242B (en) * 2019-02-25 2023-03-07 杭州海康威视数字技术股份有限公司 Method and device for testing audio line of equipment and electronic equipment
CN110166923A (en) * 2019-05-30 2019-08-23 厦门盈趣科技股份有限公司 Audio frequency apparatus test macro and method
CN110177166A (en) * 2019-06-10 2019-08-27 深圳市中诺通讯有限公司 A kind of mobile phone audio test method and system
CN114650456A (en) * 2020-12-17 2022-06-21 深圳Tcl新技术有限公司 Configuration method, system, storage medium and configuration equipment of audio descriptor
CN114650456B (en) * 2020-12-17 2023-07-25 深圳Tcl新技术有限公司 Configuration method, system, storage medium and configuration equipment of audio descriptor

Also Published As

Publication number Publication date
CN108366160B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108366160A (en) Audio testing method, mobile terminal and computer readable storage medium
CN108196778A (en) Control method, mobile terminal and the computer readable storage medium of screen state
CN107425888A (en) Multi-input/output antenna, mobile terminal and antenna switching method
CN108234766A (en) Microphone switching method, mobile terminal and computer readable storage medium
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN107995060A (en) Audio frequency of mobile terminal test method, device and computer-readable recording medium
CN107135308A (en) Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing
CN108418948A (en) A kind of based reminding method, mobile terminal and computer storage media
CN107678634A (en) The method to set up and terminal of game mode, computer-readable recording medium
CN108512625A (en) Anti-interference method, mobile terminal and the storage medium of camera
CN107580350A (en) A kind of signal intensity switching method, equipment and computer-readable recording medium
CN107526561A (en) Method for information display, mobile terminal and the storage medium of screen prjection
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN108600520A (en) Reception state control method, mobile terminal and computer readable storage medium
CN108307483A (en) wireless network connecting method and mobile terminal
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN108391190A (en) A kind of noise-reduction method, earphone and computer readable storage medium
CN108762631A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109842725A (en) A kind of method for controlling volume of mobile terminal, mobile terminal and storage medium
CN108600489A (en) Receiver, the calibration method of loud speaker, mobile terminal and readable storage medium storing program for executing
CN107682541A (en) Audio control method, mobile terminal and the storage medium of screen prjection
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN107493396A (en) Button screen method, terminal and computer-readable recording medium
CN107197101A (en) Audio regulation method, mobile terminal and computer-readable recording medium
CN108540697A (en) It is double before and after one kind to take the photograph circuit structure and its 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