CN104318925B - Audio data processing method and device - Google Patents

Audio data processing method and device Download PDF

Info

Publication number
CN104318925B
CN104318925B CN201410497865.3A CN201410497865A CN104318925B CN 104318925 B CN104318925 B CN 104318925B CN 201410497865 A CN201410497865 A CN 201410497865A CN 104318925 B CN104318925 B CN 104318925B
Authority
CN
China
Prior art keywords
audio
terminal
audio signal
signal
output interface
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
CN201410497865.3A
Other languages
Chinese (zh)
Other versions
CN104318925A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410497865.3A priority Critical patent/CN104318925B/en
Publication of CN104318925A publication Critical patent/CN104318925A/en
Application granted granted Critical
Publication of CN104318925B publication Critical patent/CN104318925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of audio data processing method and device, applied in terminal, methods described includes:Detect whether the audio output interface of the terminal exports local audio signal;When the audio output interface of the terminal exports local audio signal, the local audio signal is processed into the first voice data of preset standard coded format using the decoding chip being arranged on audio output interface;First voice data is sent to server.This method is in the voice data that acquisition terminal is played, and the CPU without terminal participates in audio decoder, it is possible to discharge the resource that CPU carries out occupancy during audio decoder, the other program tapes that run in terminal will not be influenceed, improve CPU operating efficiency.This method carries out audio decoder using single hardware device so that the function of the hardware device is single, compatibility compared with the music information of polymorphic type, can improve the reliability of audio data collecting simultaneously.

Description

Audio data processing method and device
Technical field
This disclosure relates to technical field of mobile terminals, more particularly to a kind of audio data processing method and device.
Background technology
As smart mobile phone is quickly popularized and mobile cloud big data business is developed rapidly, smart mobile phone is more and more New function widely excavated.User is no longer limited to voice call using mobile terminal and sends short message, and can be with Take pictures, recorded video, listen music, browse webpage, viewing Online Video etc..
Advantage of the high in the clouds big data business in traditional industries based on smart mobile phone, such as traditional logistics and banking Etc., the big data business based on smart mobile phone is the development trend of a following certainty., for the big data business of music Ask mobile phone the music of broadcasting can be uploaded into cloud server, in order to which server carries out music big data business statistics. In correlation technique, mobile phone is when playing music, and the CPU on mobile phone can directly obtain the audio letter sent to headphone circuit interface Number, and convert audio signals into after voice data and directly uploaded to cloud server, now CPU is mainly by software, to sound Frequency signal carries out audio decoder and obtains voice data, and this mode generally also turns into " soft decoding ".
But this audio decoder mode, on the one hand can take the substantial amounts of resources of CPU, cause the other tasks run on mobile phone Slack-off, the normal of influence mobile phone is used;On the other hand, the music information of some specific formats stored up for mobile phone EMS memory, it is considered to The problems such as to softwarecompatible, it is impossible to complete decoding using CPU, cause mobile phone in time can not play mobile phone musically Pass to cloud server.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of audio data processing method and device.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of audio data processing method, applied to terminal, the side Method includes:
Detect whether the audio output interface of the terminal exports local audio signal;
When the audio output interface of the terminal exports local audio signal, using being arranged on audio output interface The local audio signal is processed into the first voice data of preset standard coded format by decoding chip;
First voice data is sent to server.
With reference in a first aspect, in first aspect in the first possible implementation, methods described also includes:
When the audio output interface of the terminal plays local audio signal, a music push prompt is generated;
Judge whether to receive the agreement push operation that user inputs according to the music push prompt;
After the agreement push operation is received, generation pushes request and the push request is sent into server, The server can push request to terminal transmission network audio data according to described.
The first possible implementation with reference to first aspect, in second of possible implementation of first aspect, institute Stating method also includes:
Receive network audio data of the server according to the preset standard coded format for pushing and asking to send;
The network audio data is converted into network audio signal;
The network audio signal is sent to the audio output interface of the terminal.
With reference to second of possible implementation of first aspect, in first aspect in the third possible implementation, institute State and the network audio data is converted into network audio signal, including:
The network audio data is changed into the second data signal;
Second data signal is converted into the second analog signal;
Processing is amplified to second analog signal;
Processing is filtered to second analog signal after amplification and obtains network audio signal.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, the audio of the detection terminal is defeated Whether outgoing interface exports local audio signal, including:
Detect whether to receive audio signal in the audio output interface of the terminal;
When the audio output interface in the terminal receives audio signal, the sound is extracted from the audio signal The storage location of frequency signal;
Judge whether the storage location is located in the terminal;
When the storage location is located in the terminal, the audio output interface output local audio of the terminal is determined Signal.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, institute State and detect whether to receive audio signal on audio output interface, including:
Detect and whether send audio signal on the wireless transmission interface of the terminal, when transmission on the wireless transmission interface During audio signal, it is determined that the audio output interface in the terminal receives audio signal;
Or,
Detect whether the headphone circuit interface of the terminal transmits audio signal, when the headphone circuit interface of the terminal is passed During defeated audio signal, it is determined that the audio output interface in the terminal receives audio signal.
With reference in a first aspect, in the 6th kind of possible implementation of first aspect, described utilize is arranged on audio output The local audio signal is processed into the first voice data of preset standard coded format by the decoding chip on interface, including:
Analog-to-digital conversion is carried out to the local audio signal and obtains the first data signal;
The coded format of first data signal is obtained using the decoding chip being arranged on audio output interface;
The decoding file that prestores corresponding with the coded format is searched in the decoding chip;
Audio decoder is carried out to first data signal using the decoding file found and obtains preset standard volume First voice data of code form.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of audio-frequency data processing device, applied to terminal, the dress Put including:
Audio signal detection unit, for detecting whether the audio output interface of the terminal exports local audio signal;
Local audio signal processing unit, for when the terminal audio output interface export local audio signal when, The local audio signal is processed into preset standard coded format using the decoding chip being arranged on audio output interface First voice data;
Audio data transmission unit, for first voice data to be sent into server.
With reference to second aspect, in second aspect in the first possible implementation, described device also includes:
Push hint generating unit, for when the audio output interface of the terminal exports local audio signal, generating One music push prompt;
Operation judging unit, for judging whether to receive the agreement push that user inputs according to the music push prompt Operation;
Push request sending unit, for after the agreement push operation is received, generation to push request and will be described Push request and be sent to server, the server can push request to terminal transmission network audio data according to described.
The first possible implementation with reference to second aspect, in second of possible implementation of second aspect, institute Stating device also includes:
Audio data receipt unit, is encoded for receiving the server according to the preset standard for pushing request transmission The network audio data of form;
Network audio signal converting unit, for the network audio data to be converted into network audio signal;
Network audio signal transmitting element, the audio output for the network audio signal to be sent to the terminal connects Mouthful.
With reference to second of possible implementation of second aspect, in second aspect in the third possible implementation, institute Stating network audio signal converting unit includes:
Conversion subunit, for the network audio data to be converted into the second data signal;
Digital-to-analogue conversion subunit, for second data signal to be converted into the second analog signal;
Audio amplification subunit, for being amplified processing to second analog signal;
Filtering subunit, network audio letter is obtained for being filtered processing to second analog signal after amplification Number.
With reference to second aspect, in the 4th kind of possible implementation of second aspect, the audio signal detection unit, bag Include:
Audio signal detection sub-unit, for detecting whether to receive audio letter in the audio output interface of the terminal Number;
Storage location extraction subunit, for when the audio output interface in the terminal receives audio signal, from The storage location of the audio signal is extracted in the audio signal;
Storage location determination subunit, for judging whether the storage location is located in the terminal;
First determination subelement, for when the storage location is located in the terminal, determining the output of the terminal Interface exports local audio signal.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, institute Audio signal detection sub-unit is stated, including:
Whether audio letter is sent on wireless transmission interface detection sub-unit, the wireless transmission interface for detecting the terminal Number, the second determination subelement, for when sending audio signal on the wireless transmission interface, it is determined that in the audio of the terminal Output interface receives audio signal;
Or, headphone circuit interface detection sub-unit, for detecting whether the headphone circuit interface of the terminal exports sound Frequency interface, the 3rd determination subelement, for when the headphone circuit interface of the terminal exports COBBAIF, it is determined that at the end The audio output interface at end receives audio signal.
With reference to second aspect, in the 6th kind of possible implementation of second aspect, the local audio signal processing is single Member, including:
Analog-to-digital conversion subelement, the first data signal is obtained for carrying out analog-to-digital conversion to the local audio signal;
Format acquisition subunit, for obtaining first numeral using the decoding chip being arranged on audio output interface The coded format of signal;
Decoding file obtaining subunit, corresponding with the coded format for being searched in the decoding chip is advance The decoding file of storage;
Decoding subunit, for carrying out audio decoder to first data signal using the decoding file found Obtain first voice data of preset standard coded format.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of terminal, including:
Audio output interface;
Be connected processor with the audio output interface;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Detect whether the audio output interface of the terminal exports local audio signal;
When the audio output interface of the terminal exports local audio signal, using being arranged on audio output interface The local audio signal is processed into the first voice data of preset standard coded format by decoding chip;
First voice data is sent to server.
The technical scheme provided by this disclosed embodiment can include the following benefits:
This method that the embodiment of the present disclosure is provided, can be directly from terminal audio frequency output interface station acquisition terminal plays Audio signal, when collecting the audio signal of terminal plays, can also utilize the decoding being arranged on audio output interface Chip by the Audio Signal Processing collected into default identification code form the first voice data, and by the first audio number According to being sent to server.
Compared with correlation technique, this method is in the voice data that acquisition terminal is played, and the CPU without terminal participates in audio Decoding, it is possible to discharge the resource that CPU carries out occupancy during audio decoder, shadow will not be carried out to the other program tapes run in terminal Ring, improve CPU operating efficiency.This method carries out audio decoder using single hardware device so that the work(of the hardware device Can be single, compatibility compared with the music information of polymorphic type, the reliability of audio data collecting can be improved simultaneously.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of audio data processing method according to an exemplary embodiment.
Fig. 2 is the flow chart of step S101 in Fig. 1.
Fig. 3 is the flow chart of step S102 in Fig. 1.
Fig. 4 is a kind of flow chart of audio data processing method according to another exemplary embodiment.
Fig. 5 is a kind of schematic diagram of a scenario according to an exemplary embodiment.
Fig. 6 is a kind of flow chart of audio data processing method according to further example embodiment.
Fig. 7 is a kind of audio-frequency data processing device block diagram according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of terminal according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of audio data processing method according to an exemplary embodiment, as shown in figure 1, The audio data processing method is used in terminal, comprises the following steps.
In step S101, detect whether the audio output interface of the terminal exports local audio signal.
In the disclosed embodiments, a source of sound decoding chip can be increased on the audio output interface of terminal, to examine Whether the audio output interface for surveying terminal exports local audio signal.
As shown in Fig. 2 a specific implementation of the step may comprise steps of.
In step S1011, detect whether to receive audio signal in the audio output interface of the terminal.
In terminal plays music, user can be inserted an earphone into the earphone jack of terminal, connect by head circuit Mouth exports audio signal.For this mode, directly COBBAIF whether can be exported by test earphone circuit interface, and work as institute When stating the headphone circuit interface output COBBAIF of terminal, it is possible to it is determined that the audio output interface in the terminal receives sound Frequency signal.
In addition, user can also use bluetooth earphone, i.e., bluetooth earphone and terminal are subjected to Bluetooth pairing, believed by bluetooth Number to earphone send audio signal.For this mode, can also detect whether send audio on the wireless transmission interface of terminal Signal, the type of wireless transmission interface and is not construed as limiting here, as long as what can be used in existing terminal at present is wirelessly transferred Mode, and when sending audio signal on the wireless transmission interface, it is possible to it is determined that the audio in the terminal is defeated Outgoing interface receives audio signal.
When the audio output interface in the terminal receives audio signal, in step S1012, from audio letter The storage location of the audio signal is extracted in number.
The storage location of the audio can be carried in audio signal, for example:The knowledge of storage address, place storage device It Bian Hao not wait, can determine that audio signal is to be located at terminal local by storage location, also come from network.
In step S1013, judge whether the storage location is located in the terminal.
For example:Storage location is drive or the physical address of a storage region in terminal etc..
When the storage location is located in the terminal, in step S1014, determine that the audio output of the terminal connects Mouth output local audio signal.
When the audio output interface of the terminal exports local audio signal, in step s 102, using being arranged on sound The local audio signal is processed into the first voice data of preset standard coded format by the decoding chip on frequency output interface. Otherwise, flow is terminated.
In the disclosed embodiments, as shown in figure 3, step S102 may comprise steps of.
In step S1021, analog-to-digital conversion is carried out to the local audio signal and obtains the first data signal.
Normal conditions, the analog signal that the signal collected from the COBBAIF of terminal works for driving earphone, in order to Facilitate subsequent server to upload, so need local audio signal being converted into data signal by analog signal, and then obtain with Corresponding first data signal of local audio signal.
In step S1022, first data signal is obtained using the decoding chip being arranged on audio output interface Coded format.
In step S1023, the solution that prestores corresponding with the coded format is searched in the decoding chip Code file.
Due to being separately provided decoding chip, and the function of decoding chip is single, so various in decoding chip memory storage The decoding file of form, to realize the music information of compatible common all formats, and when the music information for having new form When, decoding chip targetedly can be updated to corresponding decoding file..
In step S1024, audio decoder is carried out to first data signal using the decoding file found and obtained First voice data of preset standard coded format.
The identification of subsequent server for convenience, in the disclosed embodiments, in addition it is also necessary to the first obtained data signal Decoded according to the decoding process of mark, obtain the first voice data of default identification code form.Due to being separately provided solution Code chip, and the function of decoding chip is single, it is possible to the music information of compatible common all formats.Meanwhile, utilize Decoding chip is decoded to data signal, can also be discharged the resource that CPU carries out occupancy during audio decoder, be improved CPU's Operating efficiency.
In step s 103, first voice data is sent to server.
Terminal can carry out the first voice data by data wire or wireless mode and be sent to server, and server is received After first voice data, the first voice data can be stored, so that the voice data of later use first carries out big data Business statistics.
This method that the embodiment of the present disclosure is provided, can be directly from terminal audio frequency output interface station acquisition terminal plays Audio signal, when collecting the audio signal of terminal plays, can also utilize the decoding being arranged on audio output interface Chip by the Audio Signal Processing collected into default identification code form the first voice data, and by the first audio number According to being sent to server.
Compared with correlation technique, this method is in the voice data that acquisition terminal is played, and the CPU without terminal participates in audio Decoding, it is possible to discharge the resource that CPU carries out occupancy during audio decoder, shadow will not be carried out to the other program tapes run in terminal Ring, improve CPU operating efficiency.This method carries out audio decoder using single hardware device so that the work(of the hardware device Can be single, compatibility compared with the music information of polymorphic type, the reliability of audio data collecting can be improved simultaneously.
Fig. 4 is a kind of flow chart of audio data processing method according to another exemplary embodiment, shown in Fig. 1 On the basis of embodiment, this method can also comprise the following steps.
When the audio output interface of the terminal exports local audio signal, in step s 201, a music is generated Push prompting.
When the audio output interface current state for detecting terminal is exports audio signal, user can be now pointed out to be It is no to need to receive network push music.As shown in figure 5, figure includes:Terminal 1, music-playing interface 2 and prompting frame 3.In prompting Whether there be prompting in frame 3 " receives music push" etc. similar prompting, and be additionally provided with prompting frame 3 "Yes" and "No" etc. Operational controls.
Prompting mode uses the form of prompting frame in Fig. 5, in disclosure other embodiments, and prompting can also be using ejection Frame pulls down the modes such as informing to realize.
In step S202, judge whether to receive the agreement push behaviour that user inputs according to the music push prompt Make;
By detecting the situation that is triggered of the operating space in Fig. 3 in prompting frame 3, when detecting user's click "Yes", It may determine that receiving the agreement push operation of user's input.
After the agreement push operation is received, in step S203, generation pushes request and asks described push It is sent to server.Otherwise, flow is terminated.
The server can push request to terminal transmission network audio data according to described.
Server can be asked according to the push, and push the sound matched to the terminal using big data business statistical result It is happy.
On the basis of embodiment of the method shown in Fig. 4, as shown in fig. 6, this method can also comprise the following steps.
In step S301, net of the server according to the preset standard coded format for pushing and asking to send is received Network voice data.
In step s 302, the network audio data is converted into network audio signal.
In the disclosed embodiments, a kind of specific implementation of the step may comprise steps of:
11) network audio data, is changed into the second data signal;
12) second data signal, is converted into the second analog signal;
13) processing, is amplified to second analog signal;
14) processing, is filtered to second analog signal after amplification and obtains network audio signal.
In disclosure other embodiments, step S302 can also include other Audio Signal Processings, for example:At distortion Reason, tone processing etc..
In step S303, the network audio signal is sent to the audio output interface of the terminal.
This method that the embodiment of the present disclosure is provided so that terminal can be according to the network audio for receiving the server transmission Data, and network audio signal can be obtained after handling network audio data, and audio output can be output to Interface, to realize that the online music by server push is played out in terminal.So when terminal uploaded according to terminal One voice data carry out big data business statistics, then according to statistical result can push music when it is more targeted, and And the music for enabling the music pushed to terminal to be played to the full extent with history in terminal matches, improve music and push Precision.
Fig. 7 is a kind of audio-frequency data processing device block diagram according to an exemplary embodiment.Reference picture 7, the device In application terminal, the device can include:Audio signal detection unit 11, local audio signal processing unit 12 and voice data Transmitting element 13.
The audio signal detection unit 11 is configured as detecting whether the audio output interface of the terminal exports this rock noise Frequency signal.
In the disclosed embodiment, the audio signal detection unit 11 can include:Audio signal detection sub-unit, storage position Extraction subelement, storage location determination subunit and the first determination subelement are put, wherein,
The audio signal detection sub-unit is configured as detecting whether to receive sound in the audio output interface of the terminal Frequency signal;
In disclosure one embodiment, the audio signal detection sub-unit can include:Wireless transmission interface detection Audio signal, the second determination subelement, for working as whether are sent on unit, the wireless transmission interface for detecting the terminal When stating transmission audio signal on wireless transmission interface, it is determined that the audio output interface in the terminal receives audio signal.
In the disclosure another embodiment, the audio signal detection sub-unit can include:Headphone circuit interface is detected Subelement, for detecting whether the headphone circuit interface of the terminal exports COBBAIF, the 3rd determination subelement, for working as When stating the headphone circuit interface output COBBAIF of terminal, it is determined that the audio output interface in the terminal receives audio letter Number.
The storage location extraction subunit is configured as receiving audio signal in the audio output interface of the terminal When, the storage location of the audio signal is extracted from the audio signal;
The storage location determination subunit is configured as judging whether the storage location is located in the terminal;
When first determination subelement is configured as the storage location in the terminal, the terminal is determined Output interface exports local audio signal.
The local audio signal processing unit 12 is configured as the audio output interface output local audio of the terminal During signal, the local audio signal is processed into preset standard coding using the decoding chip being arranged on audio output interface First voice data of form.
In the disclosed embodiments, the local audio signal processing unit 12 can include:Analog-to-digital conversion subelement, is used for Analog-to-digital conversion is carried out to the local audio signal and obtains the first data signal;Format acquisition subunit, is arranged on for utilizing Decoding chip on audio output interface obtains the coded format of first data signal;Decoding file obtaining subunit, is used In the decoding file that prestores corresponding with the coded format of the lookup in the decoding chip;Decoding subunit, is used Preset standard coded format is obtained in carrying out audio decoder to first data signal using the decoding file found First voice data.
The audio data transmission unit 13 is configured as first voice data being sent to server.
On the basis of embodiment illustrated in fig. 7, the device can also include:Push hint generating unit, operation judges list Member and push request sending unit, wherein,
When the push hint generating unit is configured as the audio output interface output local audio signal of the terminal, Generate a music push prompt;
The operation judging unit be configured as judging whether receiving user according to the music push prompt input it is same Meaning push operation;
The push request sending unit is configured as receiving after the agreement push operation, and generation pushes request and will The push request is sent to server, and the server can ask to send network audio data to terminal according to the push.
On the basis of embodiment illustrated in fig. 7, the device can also include:Audio data receipt unit, network audio letter Number converting unit and network audio signal transmitting element, wherein,
The audio data receipt unit is configured as receiving the server according to the pre- bidding for pushing and asking to send The network audio data of quasi- coded format;
The network audio signal converting unit is configured as the network audio data being converted into network audio signal;
In the disclosed embodiments, the network audio signal converting unit can include:Conversion subunit, digital-to-analogue conversion Unit, audio amplification subunit and filtering subunit, wherein,
The conversion subunit is configured as the network audio data being converted into the second data signal;Digital-to-analogue conversion Unit is configured as second data signal being converted into the second analog signal;The audio amplification subunit is configured as to institute State the second analog signal and be amplified processing;The filtering subunit, which is configured as being filtered processing to the signal after amplification, to be obtained Network audio signal.
The network audio signal transmitting element is configured as the network audio signal being sent to the audio of the terminal Output interface.
Compared with correlation technique, the device is in the voice data that acquisition terminal is played, and the CPU without terminal participates in audio Decoding, it is possible to discharge the resource that CPU carries out occupancy during audio decoder, shadow will not be carried out to the other program tapes run in terminal Ring, improve CPU operating efficiency.The device carries out audio decoder using single hardware device so that the work(of the hardware device Can be single, compatibility compared with the music information of polymorphic type, the reliability of audio data collecting can be improved simultaneously.
Fig. 8 is a kind of block diagram of terminal 800 according to an exemplary embodiment.For example, terminal 800 can be mobile Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, Personal digital assistant etc..
Reference picture 8, terminal 800 can include following one or more assemblies:Processing assembly 802, memory 804, power supply Component 806, multimedia groupware 808, audio output interface 810, the interface 812 of input/output (I/O), sensor cluster 814, And communication component 816.
The integrated operation of the usual control terminal 800 of processing assembly 802, such as with display, call, data communication, phase Machine operates the operation associated with record operation.Processing assembly 802 can refer to including one or more processors 820 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing assembly 802 can include one or more modules, just Interaction between processing assembly 802 and other assemblies.For example, processing assembly 802 can include multi-media module, it is many to facilitate Interaction between media component 808 and processing assembly 802.
Memory 804 is configured as storing various types of data supporting the operation in terminal 800.These data are shown Example includes the instruction of any application program or method for being operated in terminal 800, and contact data, telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of terminal 800.Power supply module 806 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between the terminal 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detection touches or slide related duration and pressure with described.In certain embodiments, many matchmakers Body component 808 includes a front camera and/or rear camera.When terminal 800 be in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and Rear camera can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio output interface 810 is configured as output and/or input audio signal.For example, audio output interface 810 includes One microphone (MIC), when terminal 800 is in operator scheme, when such as call model, logging mode and speech recognition mode, wheat Gram wind is configured as receiving external audio signal.The audio signal received can be further stored in memory 804 or warp Sent by communication component 816.In certain embodiments, audio output interface 810 also includes a loudspeaker, for exporting audio Signal.
I/O interfaces 812 is provide interface between processing assembly 802 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for terminal 800 is commented Estimate.For example, sensor cluster 814 can detect opening/closed mode of terminal 800, the relative positioning of component is for example described Component is the display and keypad of terminal 800, and sensor cluster 814 can also detect 800 1 components of terminal 800 or terminal Position change, the existence or non-existence that user contacts with terminal 800, the orientation of terminal 800 or acceleration/deceleration and terminal 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect in not any physical contact The presence of neighbouring object.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal 800 and other equipment.Terminal 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 800 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 820 of terminal 800.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that terminal is able to carry out a kind of audio data processing method, methods described includes:
Detect whether the audio output interface of the terminal exports local audio signal;
When the audio output interface of the terminal exports local audio signal, using being arranged on audio output interface The local audio signal is processed into the first voice data of preset standard coded format by decoding chip;
First voice data is sent to server.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (13)

1. a kind of audio data processing method, applied to terminal, it is characterised in that methods described includes:
Detect whether the audio output interface of the terminal exports local audio signal;
When the audio output interface of the terminal exports local audio signal, the decoding being arranged on audio output interface is utilized The local audio signal is processed into the first voice data of preset standard coded format by chip;
First voice data is sent to server;
Methods described also includes:
When the audio output interface of the terminal plays local audio signal, a music push prompt is generated;
Judge whether to receive the agreement push operation that user inputs according to the music push prompt;
After the agreement push operation is received, generation pushes request and the push request is sent into server, described Server can push request to terminal transmission network audio data according to described.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Receive network audio data of the server according to the preset standard coded format for pushing and asking to send;
The network audio data is converted into network audio signal;
The network audio signal is sent to the audio output interface of the terminal.
3. method according to claim 2, it is characterised in that described that the network audio data is converted into network audio Signal, including:
The network audio data is changed into the second data signal;
Second data signal is converted into the second analog signal;
Processing is amplified to second analog signal;
Processing is filtered to second analog signal after amplification and obtains network audio signal.
4. according to the method described in claim 1, it is characterised in that whether the audio output interface of the detection terminal is defeated Go out local audio signal, including:
Detect whether to receive audio signal in the audio output interface of the terminal;
When the audio output interface in the terminal receives audio signal, the audio letter is extracted from the audio signal Number storage location;
Judge whether the storage location is located in the terminal;
When the storage location is located in the terminal, the audio output interface output local audio letter of the terminal is determined Number.
5. method according to claim 4, it is characterised in that described to detect whether to receive sound on audio output interface Frequency signal, including:
Detect and whether send audio signal on the wireless transmission interface of the terminal, when sending audio on the wireless transmission interface During signal, it is determined that the audio output interface in the terminal receives audio signal;
Or,
Detect whether the headphone circuit interface of the terminal transmits audio signal, when the headphone circuit interface of the terminal transmits sound During frequency signal, it is determined that the audio output interface in the terminal receives audio signal.
6. according to the method described in claim 1, it is characterised in that described to utilize the decoding core being arranged on audio output interface The local audio signal is processed into the first voice data of preset standard coded format by piece, including:
Analog-to-digital conversion is carried out to the local audio signal and obtains the first data signal;
The coded format of first data signal is obtained using the decoding chip being arranged on audio output interface;
The decoding file that prestores corresponding with the coded format is searched in the decoding chip;
Audio decoder is carried out to first data signal using the decoding file found and obtains preset standard coding lattice First voice data of formula.
7. a kind of audio-frequency data processing device, applied to terminal, it is characterised in that described device includes:
Audio signal detection unit, for detecting whether the audio output interface of the terminal exports local audio signal;
Local audio signal processing unit, for when the audio output interface of the terminal exports local audio signal, utilizing The local audio signal is processed into the first of preset standard coded format by the decoding chip being arranged on audio output interface Voice data;
Audio data transmission unit, for first voice data to be sent into server;
Described device also includes:
Push hint generating unit, for when the audio output interface of the terminal exports local audio signal, generating one Music push prompt;
Operation judging unit, for judging whether to receive the agreement push behaviour that user inputs according to the music push prompt Make;
Push request sending unit, for after the agreement push operation is received, generation to push request and pushed described Request is sent to server, and the server can push request to terminal transmission network audio data according to described.
8. device according to claim 7, it is characterised in that described device also includes:
Audio data receipt unit, for receiving the server according to the preset standard coded format for pushing request transmission Network audio data;
Network audio signal converting unit, for the network audio data to be converted into network audio signal;
Network audio signal transmitting element, the audio output interface for the network audio signal to be sent to the terminal.
9. device according to claim 8, it is characterised in that the network audio signal converting unit includes:
Conversion subunit, for the network audio data to be converted into the second data signal;
Digital-to-analogue conversion subunit, for second data signal to be converted into the second analog signal;
Audio amplification subunit, for being amplified processing to second analog signal;
Filtering subunit, network audio signal is obtained for being filtered processing to second analog signal after amplification.
10. device according to claim 7, it is characterised in that the audio signal detection unit, including:
Audio signal detection sub-unit, for detecting whether to receive audio signal in the audio output interface of the terminal;
Storage location extraction subunit, for when the audio output interface in the terminal receives audio signal, from described The storage location of the audio signal is extracted in audio signal;
Storage location determination subunit, for judging whether the storage location is located in the terminal;
First determination subelement, for when the storage location is located in the terminal, determining the output interface of the terminal Export local audio signal.
11. device according to claim 10, it is characterised in that the audio signal detection sub-unit, including:
Whether audio signal is sent on wireless transmission interface detection sub-unit, the wireless transmission interface for detecting the terminal, Second determination subelement, for when sending audio signal on the wireless transmission interface, it is determined that the audio in the terminal is defeated Outgoing interface receives audio signal;
Or, headphone circuit interface detection sub-unit connects for detecting whether the headphone circuit interface of the terminal exports audio Mouthful, the 3rd determination subelement, for when the headphone circuit interface of the terminal exports COBBAIF, it is determined that in the terminal Audio output interface receives audio signal.
12. device according to claim 7, it is characterised in that the local audio signal processing unit, including:
Analog-to-digital conversion subelement, the first data signal is obtained for carrying out analog-to-digital conversion to the local audio signal;
Format acquisition subunit, for obtaining first data signal using the decoding chip being arranged on audio output interface Coded format;
Decoding file obtaining subunit, for searching corresponding with the coded format prestore in the decoding chip Decoding file;
Decoding subunit, is obtained for carrying out audio decoder to first data signal using the decoding file found First voice data of preset standard coded format.
13. a kind of voice data processing terminal, it is characterised in that including:
Audio output interface;
Be connected processor with the audio output interface;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Detect whether the audio output interface of the terminal exports local audio signal;
When the audio output interface of the terminal exports local audio signal, the decoding being arranged on audio output interface is utilized The local audio signal is processed into the first voice data of preset standard coded format by chip;
First voice data is sent to server;
When the audio output interface of the terminal plays local audio signal, a music push prompt is generated;
Judge whether to receive the agreement push operation that user inputs according to the music push prompt;
After the agreement push operation is received, generation pushes request and the push request is sent into server, described Server can push request to terminal transmission network audio data according to described.
CN201410497865.3A 2014-09-25 2014-09-25 Audio data processing method and device Active CN104318925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410497865.3A CN104318925B (en) 2014-09-25 2014-09-25 Audio data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410497865.3A CN104318925B (en) 2014-09-25 2014-09-25 Audio data processing method and device

Publications (2)

Publication Number Publication Date
CN104318925A CN104318925A (en) 2015-01-28
CN104318925B true CN104318925B (en) 2017-09-01

Family

ID=52374148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410497865.3A Active CN104318925B (en) 2014-09-25 2014-09-25 Audio data processing method and device

Country Status (1)

Country Link
CN (1) CN104318925B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472094B (en) * 2019-08-06 2023-03-31 沈阳大学 Traditional music recording method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225206B2 (en) * 2010-02-22 2012-07-17 Robert Bosch Gmbh User preference based collecting of music content
US20110295394A1 (en) * 2010-05-26 2011-12-01 Ping Zhao Method for outputting audio data having specific audio format to audio output device and associated circuit and multimedia player
US20130124584A1 (en) * 2011-11-16 2013-05-16 Google Inc. Start page for a user's personal music collection
US9407751B2 (en) * 2012-09-13 2016-08-02 Intel Corporation Methods and apparatus for improving user experience
CN103347070B (en) * 2013-06-28 2017-08-01 小米科技有限责任公司 Push method, terminal, server and the system of speech data
CN103327111A (en) * 2013-07-01 2013-09-25 百度在线网络技术(北京)有限公司 multimedia file recommendation method, system thereof and server
CN104021151A (en) * 2014-05-19 2014-09-03 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN104318925A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104318741B (en) Bluetooth equipment control method and device
WO2016177296A1 (en) Video generation method and apparatus
CN104065836A (en) Method and device for monitoring calls
CN105205955A (en) Method and device for sending out warning signal
CN104615655A (en) Information recommendation method and device
CN105163366A (en) Wireless network connection method and device
CN104958898A (en) Method, apparatus and system for controlling video games
CN106792448A (en) Bluetooth connecting method and device, system
CN105072246A (en) Information synchronization method, device and terminal
CN104837154A (en) Wireless access point control method and device
CN105654533A (en) Picture editing method and picture editing device
CN104636110A (en) Method and device for controlling volume
CN107105517A (en) Method for connecting network and device
CN107135452A (en) Audiphone adaptation method and device
CN106775777A (en) Content interaction method and device
CN105323152A (en) Message processing method, device and equipment
CN105094830A (en) Method and device for executing target functions
CN104333641B (en) Call method and device
CN105391624A (en) Notification message transmission method, device and system
CN104794074B (en) External equipment recognition methods and device
CN104503762A (en) Device and method for identifying electronic accessory
CN105208673A (en) Communication establishing method and device
CN105430639A (en) Information processing method and device
CN104318925B (en) Audio data processing method and device
CN104837020A (en) Video playing method and device

Legal Events

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