CN106886388A - The method and terminal of a kind of playing audio-fequency data - Google Patents

The method and terminal of a kind of playing audio-fequency data Download PDF

Info

Publication number
CN106886388A
CN106886388A CN201710095937.5A CN201710095937A CN106886388A CN 106886388 A CN106886388 A CN 106886388A CN 201710095937 A CN201710095937 A CN 201710095937A CN 106886388 A CN106886388 A CN 106886388A
Authority
CN
China
Prior art keywords
data
terminal
played
earphone
played data
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
CN201710095937.5A
Other languages
Chinese (zh)
Other versions
CN106886388B (en
Inventor
陈金泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710095937.5A priority Critical patent/CN106886388B/en
Publication of CN106886388A publication Critical patent/CN106886388A/en
Application granted granted Critical
Publication of CN106886388B publication Critical patent/CN106886388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The embodiment provides the method and terminal of a kind of playing audio-fequency data, wherein the method includes:When the play instruction of voice data is received, whether the play mode for judging terminal is earphone play mode;If the play mode of terminal is earphone play mode, data processing is carried out to voice data, obtain second played data of the output to the first played data of the earphone being connected with terminal and output to the loudspeaker of terminal;Wherein, the first played data is different from the second played data;First played data is played by earphone, and the broadcasting of voice data is formed by loudspeaker the second played data of broadcasting simultaneously.Embodiments of the invention can lift sound Ambience during by earphone playing audio-fequency data.

Description

The method and terminal of a kind of playing audio-fequency data
Technical field
The present invention relates to technical field of electronic equipment, the method and terminal of more particularly to a kind of playing audio-fequency data.
Background technology
When current using terminal is listened music, sees video, in the case where earphone is not inserted into, terminal is raised one's voice by itself Device playing audio-fequency data, and when earphone is inserted, terminal passes through earphone playing audio-fequency data.
Wherein when by earphone playing audio-fequency data, sound sounds that comparing is inaccessible, causes sound Ambience poor.
The content of the invention
The purpose of the embodiment of the present invention is the method and terminal for providing a kind of playing audio-fequency data, to solve to pass through earphone During playing audio-fequency data, sound sounds that comparing is inaccessible, the problem for causing sound Ambience poor.
In order to achieve the above object, The embodiment provides a kind of method of playing audio-fequency data, the method bag Include:
When the play instruction of voice data is received, whether the play mode for judging terminal is earphone play mode;
If the play mode of terminal is earphone play mode, carry out data processing to voice data, obtain output to Terminal connection earphone the first played data and output to terminal loudspeaker the second played data;Wherein, first broadcast Put data different from the second played data;
First played data is played by earphone, and audio number is formed by loudspeaker the second played data of broadcasting simultaneously According to broadcasting.
Embodiments of the invention additionally provide a kind of terminal, and the terminal includes:
Judge module, whether the play mode for when the play instruction of voice data is received, judging terminal is ear Machine sowing mode playback, and if terminal play mode be earphone play mode, trigger processing module;
Processing module, for the triggering according to judge module, carries out data processing to voice data, obtain output to end Hold the first played data of the earphone of connection and export to the second played data of the loudspeaker of terminal;Wherein, first play Data are different from the second played data;
Playing module, number is played for playing the first played data by earphone, and playing second by loudspeaker simultaneously According to the broadcasting of formation voice data.
Such scheme of the invention at least includes following beneficial effect:
In an embodiment of the present invention, by when the play instruction of voice data is received, judging the broadcasting mould of terminal Whether formula is earphone play mode, and if terminal play mode be earphone play mode, voice data is carried out at data Reason, obtains second broadcasting number of the output to the first played data of the earphone being connected with terminal and output to the loudspeaker of terminal According to (second played data is different from the first played data), the first played data is played eventually through earphone, and pass through simultaneously Loudspeaker plays the second played data, forms the broadcasting of voice data, solves during by earphone playing audio-fequency data, and sound is listened Comparing of getting up is inaccessible, the problem for causing sound Ambience poor, sound when having reached lifting by earphone playing audio-fequency data The effect of Ambience.
Brief description of the drawings
Fig. 1 is the flow chart of the method for playing audio-fequency data in first embodiment of the invention;
Fig. 2 is the flow chart of the method for playing audio-fequency data in second embodiment of the invention;
Fig. 3 is the flow chart of the method for playing audio-fequency data in an instantiation of the invention;
Fig. 4 is the structural representation of terminal in third embodiment of the invention;
Fig. 5 is the structural representation of terminal in fourth embodiment of the invention;
Fig. 6 is the structural representation of terminal in fifth embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
First embodiment
As shown in figure 1, the first embodiment of the present invention provides a kind of method of playing audio-fequency data, the method includes:
Step 101, when the play instruction of voice data is received, whether the play mode for judging terminal is that earphone is played Pattern.
Wherein, in an embodiment of the present invention, the play mode of terminal includes:Earphone play mode and/or loudspeaker are broadcast Mode playback.And used as an example, above-mentioned terminal can be the equipment such as smart mobile phone, panel computer.
Wherein, after above-mentioned steps 101 have been performed, the above method also comprises the following steps:If the play mode of terminal It is loudspeaker play mode, then by the loudspeaker playing audio-fequency data of terminal.That is, when the play mode of terminal is broadcast for loudspeaker During mode playback, by the loudspeaker normal play voice data of terminal.
Step 102, if the play mode of terminal is earphone play mode, data processing is carried out to voice data, is obtained Export the first played data of the earphone being extremely connected with terminal and export to the second played data of the loudspeaker of terminal.
Wherein, the first played data is different from the second played data, so that follow-up earphone and loudspeaker play audio simultaneously Sound Ambience can be lifted during data.
Wherein, in an embodiment of the present invention, when the play mode of terminal is earphone play mode, voice data is entered Row data processing, obtains output to the first played data of earphone be connected with terminal and exports to the of the loudspeaker of terminal The specific implementation of two played datas can be:Detection terminal whether receive audio enhancing instruction, and if terminal receive Audio enhancing instruction, then carry out data processing to voice data, obtains the first broadcasting number of output to the earphone being connected with terminal According to this and output to terminal loudspeaker the second played data.Certainly whether audio enhancing instruction is received in detection terminal After step, the above method also comprises the following steps:If terminal does not receive audio enhancing instruction, audio is played by earphone Data.When i.e., equivalent to audio enhancing need not be carried out to the voice data that earphone is played, audio number is directly played by earphone According to so that user will not cause noise jamming in the voice data for listening earphone to play to the environment where terminal.
In this as an example, can by the setting interface of terminal set one be used for control audio it is enhanced switch come Realize the enhanced open and close of audio.Specifically, when the switch is open, it is determined that terminal have received audio enhancing and refer to Order, and when the switch is closed, it is determined that terminal does not receive audio enhancing instruction.
Step 103, the first played data is played by earphone, and simultaneously by loudspeaker the second played data of broadcasting, shape Into the broadcasting of voice data.
Wherein, in an embodiment of the present invention, while earphone plays the first played data, open loudspeaker and play the Two played datas, i.e. equivalent to earphone and loudspeaker while playing audio-fequency data.It can be seen that, in an embodiment of the present invention, pass through Increase the mode of sounding point, the effect of sound Ambience when having reached lifting by earphone playing audio-fequency data.
As can be seen here, in an embodiment of the present invention, by when the play instruction of voice data is received, judging terminal Play mode whether be earphone play mode, and if terminal play mode be earphone play mode, voice data is entered Row data processing, obtains output to the first played data of earphone be connected with terminal and exports to the of the loudspeaker of terminal Two played datas (second played data is different from the first played data), the first played data is played eventually through earphone, and The second played data is played by loudspeaker simultaneously, the broadcasting of voice data is formed, solved by earphone playing audio-fequency data When, sound sounds that comparing is inaccessible, the problem for causing sound Ambience poor, has reached lifting by earphone playing audio-fequency data When sound Ambience effect.
Second embodiment
As shown in Fig. 2 the second embodiment of the present invention provides a kind of method of playing audio-fequency data, the method includes:
Step 201, when the play instruction of voice data is received, whether the play mode for judging terminal is that earphone is played Pattern.
Wherein, in an embodiment of the present invention, the play mode of terminal includes:Earphone play mode and/or loudspeaker are broadcast Mode playback.And used as an example, above-mentioned terminal can be the equipment such as smart mobile phone, panel computer.
Wherein, after above-mentioned steps 201 have been performed, the above method also comprises the following steps:If the play mode of terminal It is loudspeaker play mode, then by the loudspeaker playing audio-fequency data of terminal.That is, when the play mode of terminal is broadcast for loudspeaker During mode playback, by the loudspeaker normal play voice data of terminal.
Step 202, if the play mode of terminal is earphone play mode, obtains the dual channel data of voice data.
Wherein, in an embodiment of the present invention, above-mentioned dual channel data can be left channel data and right data, i.e., For the channel data that general earphone is played.And in an embodiment of the present invention, can using at present obtain dual channel data by the way of, The dual channel data of voice data is obtained, therefore here, the concrete mode for obtaining dual channel data is not repeated excessively.
Additionally, in an embodiment of the present invention, when the play mode of terminal is earphone play mode, only when terminal connects When receiving audio enhancing instruction, the dual channel data of voice data can be just obtained;And work as terminal and do not receive audio enhancing instruction When, terminal will be by earphone playing audio-fequency data.
Step 203, according to dual channel data, obtains output to the first played data of the earphone being connected with terminal and defeated Go out to the second played data of the loudspeaker of terminal.
Wherein, the first played data is data of the output to the earphone being connected with terminal, and the second played data is to export extremely The data of the loudspeaker of terminal, and the first played data is different from the second played data.It should be noted that in reality of the invention Apply in example, it is in order that earphone subsequently plays audio number with loudspeaker simultaneously to obtain the first played data and the second played data According to, reach lifting sound Ambience effect.
Step 204, the first played data is played by earphone, and simultaneously by loudspeaker the second played data of broadcasting, shape Into the broadcasting of voice data.
Wherein, in an embodiment of the present invention, the corresponding relation of play mode and broadcast sound volume can be prestored in terminal. The corresponding relation is specifically included:When the play mode of terminal is earphone play mode, the broadcast sound volume of earphone;When broadcasting for terminal When mode playback is loudspeaker play mode, the broadcast sound volume of loudspeaker;When the play mode of terminal is earphone play mode and is raised During sound device play mode, the broadcast sound volume of earphone and the broadcast sound volume of loudspeaker.And for ease of lifting sound surrounding effect, terminal The broadcast sound volume of loudspeaker of play mode when being earphone play mode and loudspeaker play mode should be greater than, the broadcasting of terminal The broadcast sound volume of loudspeaker when pattern is loudspeaker play mode.
Wherein, in an embodiment of the present invention, above-mentioned steps 203 include two kinds of concrete implementation modes.Wherein, step 203 the first specific implementation comprises the following steps:First using dual channel data as the first played data, and to alliteration The default frequency range of track data is filtered treatment, obtains the channel data after filtering process;Then by the sound channel after filtering process Data are used as the second played data.Wherein, above-mentioned default frequency range can be low frequency, or high frequency.It should be noted that right The default frequency range of dual channel data is filtered treatment and can both be realized by software algorithm, can also be realized by hardware filtering. But no matter being filtered by any realization in this two filtering mode, it belongs to public affairs for a person skilled in the art Know general knowledge.Therefore here, not repeated excessively the concrete mode for filtering.
Wherein, second specific implementation of above-mentioned steps 203 comprises the following steps:Dual channel data is carried out first Conversion process, obtains at least three channel datas of the voice data in different sound channels;Then by least three channel datas Two channel datas as the first played data, and by the channel number at least three channel datas in addition to two channel datas According to as the second played data.
If it should be noted that step 203 uses the first specific implementation, then the audio number that step 204 is played According to should be 2.1 channel sounds, and if step 203 uses second specific implementation, then the voice data that step 204 is played A.0 (A is the integer more than or equal to three, and A is the channel number of above-mentioned at least three channel data) channel sound is should be, quite In surround sound effect.
Wherein, in an embodiment of the present invention, after above-mentioned steps 204 have been performed, the above method also includes following step Suddenly:The first volume adjusting instruction of the volume for adjusting the first played data is received, and tune is instructed according to the first volume adjusting Save the volume of the first played data;And/or, the second volume adjusting instruction of the volume for adjusting the second played data is received, And according to the volume of the second volume adjusting instruction the second played data of regulation.It can be seen that, in an embodiment of the present invention, can individually, The first played data is adjusted with the volume of the second played data respectively, so that sound surrounding effect is more preferably.
Here, implement that the above method is expanded on further with one, as shown in figure 3, in this example, the above method includes Following steps:
Step 301, when receiving the play instruction of voice data, whether the play mode for judging terminal is that earphone plays mould Formula, if the play mode of terminal is loudspeaker play mode, performs step 302, if the play mode of terminal is played for earphone Pattern, then perform step 303;
Step 302, by the loudspeaker playing audio-fequency data of terminal;
Whether step 303, detection terminal receives audio enhancing instruction, if not receiving audio enhancing instruction, performs Step 304, and if receiving audio strengthens instruction, execution step 305.
Step 304, by earphone playing audio-fequency data;
Step 305, by earphone and loudspeaker while playing audio-fequency data.
It can be seen that, in an embodiment of the present invention, by when the play instruction of voice data is received, judging broadcasting for terminal Whether mode playback is earphone play mode, and if the play mode of terminal is earphone play mode, obtain the double of voice data Channel data, according to dual channel data, obtains the first played data and second played data different from the first played data, The first played data is played eventually through earphone, and voice data is formed by loudspeaker the second played data of broadcasting simultaneously Play, solve during by earphone playing audio-fequency data, sound sounds that comparing is inaccessible, cause that sound Ambience is poor to ask Topic, the effect of sound Ambience when having reached lifting by earphone playing audio-fequency data.
3rd embodiment
As shown in figure 4, the third embodiment of the present invention provides a kind of terminal, the terminal 400 includes:
Judge module 401, for when the play instruction of voice data is received, judge terminal play mode whether be Earphone play mode, and if terminal play mode be earphone play mode, trigger processing module 402;
Processing module 402, for the triggering according to judge module 401, data processing is carried out to voice data, is exported To the first played data of earphone be connected with terminal and export to the second played data of the loudspeaker of terminal;Wherein, One played data is different from the second played data;
Playing module 403, plays for playing the first played data by earphone, and playing second by loudspeaker simultaneously Data, form the broadcasting of voice data.
Wherein, above-mentioned terminal 400 can be the equipment such as smart mobile phone, panel computer.
Optionally, processing module 402, specifically for detection terminal whether receive audio enhancing instruction, and if terminal connect Audio enhancing instruction is received, then data processing is carried out to voice data, obtain the earphone that output is extremely connected with terminal first is broadcast Put the second played data of data and output to the loudspeaker of terminal.
Optionally, processing module 402 includes:
First treatment submodule, the dual channel data for obtaining voice data;
Second processing submodule, for according to dual channel data, obtain the earphone that output is extremely connected with terminal first to be broadcast Put the second played data of data and output to the loudspeaker of terminal.
Optionally, second processing submodule includes:
First processing units, for using dual channel data as the first played data, and to the default frequency of dual channel data Section is filtered treatment, obtains the channel data after filtering process;
Second processing unit, for using the channel data after filtering process as the second played data.
Optionally, second processing submodule includes:
3rd processing unit, for carrying out conversion process to dual channel data, obtains voice data in different sound channels extremely Few three channel datas;
Fourth processing unit, for using two channel datas at least three channel datas as the first played data, And using the channel data at least three channel datas in addition to two channel datas as the second played data.
Optionally, terminal also includes:
First adjustment module, the first volume adjusting instruction for receiving the volume for adjusting the first played data, and According to the volume of the first volume adjusting instruction the first played data of regulation;And/or
Second adjustment module, the second volume adjusting instruction for receiving the volume for adjusting the second played data, and According to the volume of the second volume adjusting instruction the second played data of regulation.In an embodiment of the present invention, terminal is by receiving To voice data play instruction when, whether the play mode for judging terminal is earphone play mode, and if terminal broadcasting mould Formula is earphone play mode, then data processing is carried out to voice data, and obtain the earphone that output is extremely connected with terminal first is broadcast Second played data (second played data is different from the first played data) of data and output to the loudspeaker of terminal is put, The first played data is played eventually through earphone, and voice data is formed by loudspeaker the second played data of broadcasting simultaneously Play, solve during by earphone playing audio-fequency data, sound sounds that comparing is inaccessible, cause that sound Ambience is poor to ask Topic, the effect of sound Ambience when having reached lifting by earphone playing audio-fequency data.
It should be noted that the terminal that third embodiment of the invention is provided is using the terminal of the above method, i.e., above-mentioned side All embodiments of method are applied to the terminal, and can reach same or analogous beneficial effect.
Fourth embodiment
As shown in figure 5, the fourth embodiment of the present invention provides a kind of terminal, the terminal 500 includes:At least one treatment Device 501, memory 502, at least one network interface 504 and other users interface 503.Each component in terminal 500 passes through Bus system 505 is coupled.It is understood that bus system 505 is used to realize the connection communication between these components.Total linear system 505 are united in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But for clear theory For the sake of bright, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside height Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 502 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 5022, comprising various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program for calling memory 502 to store or instruction, specifically, can be application The program stored in program 5022 or instruction, processor 501 are used to, when the play instruction of voice data is received, judge terminal Play mode whether be earphone play mode;If the play mode of terminal is earphone play mode, voice data is carried out Data processing, obtains output to the first played data of the earphone being connected with terminal and exports to the second of the loudspeaker of terminal Played data;Wherein, the first played data is different from the second played data;First played data is played by earphone, and simultaneously Second played data is played by loudspeaker, the broadcasting of voice data is formed.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501. Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 502, processor 501 reads the information in memory 502, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realize processor outside.
Alternatively, processor 501 is additionally operable to:Whether detection terminal receives audio enhancing instruction;If terminal receives sound Effect enhancing instruction, then carry out data processing to voice data, obtains the first played data of output to the earphone being connected with terminal And export to the second played data of the loudspeaker of terminal.
Alternatively, processor 501 is additionally operable to:Obtain the dual channel data of voice data;According to dual channel data, obtain defeated Go out to the earphone being connected with terminal the first played data and output to terminal loudspeaker the second played data.
Alternatively, processor 501 is additionally operable to:Using dual channel data as the first played data, and to dual channel data Default frequency range is filtered treatment, obtains the channel data after filtering process;Using the channel data after filtering process as second Played data.
Alternatively, processor 501 is additionally operable to:Carry out conversion process to dual channel data, obtain voice data not in unison At least three channel datas in road;Using two channel datas at least three channel datas as the first played data, and will Channel data at least three channel datas in addition to two channel datas is used as the second played data.
Alternatively, processor 501 is additionally operable to:The first volume adjusting for receiving the volume for adjusting the first played data refers to Order, and according to the volume of the first volume adjusting instruction the first played data of regulation;And/or, receive and play number for adjusting second According to volume the second volume adjusting instruct, and according to the second volume adjusting instruction regulation the second played data volume.
Terminal 500 can realize each process of terminal realization in previous embodiment, to avoid repeating, no longer go to live in the household of one's in-laws on getting married here State.
In the fourth embodiment of the present invention, terminal is by when the play instruction of voice data is received, judging terminal Play mode whether be earphone play mode, and if terminal play mode be earphone play mode, voice data is entered Row data processing, obtains output to the first played data of earphone be connected with terminal and exports to the of the loudspeaker of terminal Two played datas (second played data is different from the first played data), the first played data is played eventually through earphone, and The second played data is played by loudspeaker simultaneously, the broadcasting of voice data is formed, solved by earphone playing audio-fequency data When, sound sounds that comparing is inaccessible, the problem for causing sound Ambience poor, has reached lifting by earphone playing audio-fequency data When sound Ambience effect.
5th embodiment
As shown in fig. 6, the fifth embodiment of the present invention provides a kind of terminal, the terminal 600 can be mobile phone, flat board electricity Brain, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Terminal 600 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input block 630th, display unit 640, processor 660, voicefrequency circuit 670, WiFi (Wireless Fidelity) module 680 and power supply 690。
Wherein, input block 630 can be used to receive the numeral or character information of user input, and produce and terminal 600 User set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 630 can be with Including contact panel 631.Contact panel 631, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (ratio Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 631), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch controller two Individual part.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 660, and the order sent of receiving processor 660 and can be performed.Furthermore, it is possible to using resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input block 630 Other input equipments 632 can also be included, other input equipments 632 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one or more in action bars etc..
Wherein, display unit 640 can be used for display by the information of user input or be supplied to the information and terminal of user 600 various menu interfaces.Display unit 640 may include display panel 641, optionally, can use LCD or organic light emission two The forms such as pole pipe (Organic Light-Emitting Diode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of terminal 600, using various interfaces and connection whole mobile phone each Part, by running or performing software program of the storage in first memory 621 and/or module, and calls storage the Data in two memories 622, perform the various functions and processing data of terminal 600, so as to carry out overall prison to terminal 600 Control.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, processor 660 is for when the play instruction of voice data is received, judging terminal Play mode whether be earphone play mode;If the play mode of terminal is earphone play mode, voice data is carried out Data processing, obtains output to the first played data of the earphone being connected with terminal and exports to the second of the loudspeaker of terminal Played data;Wherein, the first played data is different from the second played data;First played data is played by earphone, and simultaneously Second played data is played by loudspeaker, the broadcasting of voice data is formed.
Alternatively, processor 660 is additionally operable to:Whether detection terminal receives audio enhancing instruction;If terminal receives sound Effect enhancing instruction, then carry out data processing to voice data, obtains the first played data of output to the earphone being connected with terminal And export to the second played data of the loudspeaker of terminal.
Alternatively, processor 660 is additionally operable to:Obtain the dual channel data of voice data;According to dual channel data, obtain defeated Go out to the earphone being connected with terminal the first played data and output to terminal loudspeaker the second played data.
Alternatively, processor 660 is additionally operable to:Using dual channel data as the first played data, and to dual channel data Default frequency range is filtered treatment, obtains the channel data after filtering process;Using the channel data after filtering process as second Played data.
Alternatively, processor 660 is additionally operable to:Carry out conversion process to dual channel data, obtain voice data not in unison At least three channel datas in road;Using two channel datas at least three channel datas as the first played data, and will Channel data at least three channel datas in addition to two channel datas is used as the second played data.
Alternatively, processor 660 is additionally operable to:The first volume adjusting for receiving the volume for adjusting the first played data refers to Order, and according to the volume of the first volume adjusting instruction the first played data of regulation;And/or, receive and play number for adjusting second According to volume the second volume adjusting instruct, and according to the second volume adjusting instruction regulation the second played data volume.
It can be seen that, in the fifth embodiment of the present invention, terminal is by when the play instruction of voice data is received, judging Whether the play mode of terminal is earphone play mode, and if terminal play mode be earphone play mode, to audio number According to data processing is carried out, output is obtained to the first played data of the earphone being connected with terminal and is exported to the loudspeaker of terminal The second played data (second played data is different from the first played data), eventually through earphone play first play number According to, and the broadcasting of voice data is formed by loudspeaker the second played data of broadcasting simultaneously, solve and audio is played by earphone During data, sound sounds that comparing is inaccessible, the problem for causing sound Ambience poor, has reached lifting and has played audio by earphone The effect of sound Ambience during data.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (12)

1. a kind of method of playing audio-fequency data, it is characterised in that methods described includes:
When the play instruction of voice data is received, whether the play mode for judging terminal is earphone play mode;
If the play mode of the terminal is earphone play mode, data processing is carried out to the voice data, exported To the first played data of earphone be connected with the terminal and export to the second played data of the loudspeaker of the terminal; Wherein, first played data is different from second played data;
First played data is played by the earphone, and plays described second by the loudspeaker simultaneously and play number According to the broadcasting of the formation voice data.
2. method according to claim 1, it is characterised in that described that data processing is carried out to the voice data, obtains Export the first played data of the earphone being extremely connected with the terminal and export to the second broadcasting of the loudspeaker of the terminal The step of data, including:
Detect whether the terminal receives audio enhancing instruction;
If the terminal receives the audio enhancing instruction, data processing is carried out to the voice data, obtain output extremely First played data of the earphone being connected with the terminal and output to the loudspeaker of the terminal the second played data.
3. method according to claim 1, it is characterised in that described that data processing is carried out to the voice data, obtains Export the first played data of the earphone being extremely connected with the terminal and export to the second broadcasting of the loudspeaker of the terminal The step of data, including:
Obtain the dual channel data of the voice data;
According to the dual channel data, output is obtained to the first played data of the earphone being connected with the terminal and is exported extremely Second played data of the loudspeaker of the terminal.
4. method according to claim 3, it is characterised in that described according to the dual channel data, obtain output to The step of the second played data of loudspeaker of first played data and output of the earphone of the terminal connection to the terminal Suddenly, including:
Using the dual channel data as first played data, and default frequency range to the dual channel data is filtered Treatment, obtains the channel data after filtering process;
Using the channel data after the filtering process as second played data.
5. method according to claim 3, it is characterised in that described according to the dual channel data, obtain output to The step of the second played data of loudspeaker of first played data and output of the earphone of the terminal connection to the terminal Suddenly, including:
Conversion process is carried out to the dual channel data, at least three channel numbers of the voice data in different sound channels are obtained According to;
Using two channel datas at least three channel data as first played data, and at least three by described in Channel data in individual channel data in addition to described two channel datas is used as second played data.
6. method according to claim 1, it is characterised in that play described first by the earphone and play number described According to, and second played data played by the loudspeaker simultaneously, the step of form the broadcasting of the voice data after, Methods described also includes:
The first volume adjusting instruction of the volume for adjusting first played data is received, and is adjusted according to first volume The volume of section instruction regulation first played data;And/or
The second volume adjusting instruction of the volume for adjusting second played data is received, and is adjusted according to second volume The volume of section instruction regulation second played data.
7. a kind of terminal, it is characterised in that the terminal includes:
Judge module, whether the play mode for when the play instruction of voice data is received, judging terminal is that earphone is broadcast Mode playback, and if the terminal play mode be earphone play mode, trigger processing module;
Processing module, for the triggering according to the judge module, data processing is carried out to the voice data, obtains output extremely First played data of the earphone being connected with the terminal and output to the loudspeaker of the terminal the second played data;Its In, first played data is different from second played data;
Playing module, for playing first played data by the earphone, and simultaneously by loudspeaker broadcasting institute The second played data is stated, the broadcasting of the voice data is formed.
8. terminal according to claim 7, it is characterised in that the processing module, specifically for detecting that the terminal is It is no to receive audio enhancing instruction, and if the terminal receives audio enhancing instruction, the voice data is carried out Data processing, obtains output to the first played data of the earphone being connected with the terminal and exports raising one's voice to the terminal Second played data of device.
9. terminal according to claim 7, it is characterised in that the processing module includes:
First treatment submodule, the dual channel data for obtaining the voice data;
Second processing submodule, for according to the dual channel data, obtaining output to the of the earphone being connected with the terminal One played data and output to the terminal loudspeaker the second played data.
10. terminal according to claim 9, it is characterised in that the second processing submodule includes:
First processing units, for using the dual channel data as first played data, and to the dual channel data Default frequency range be filtered treatment, obtain the channel data after filtering process;
Second processing unit, for using the channel data after the filtering process as second played data.
11. terminals according to claim 9, it is characterised in that the second processing submodule includes:
3rd processing unit, for carrying out conversion process to the dual channel data, obtains the voice data in different sound channels At least three channel datas;
Fourth processing unit, for playing number using two channel datas at least three channel data as described first According to, and played the channel data at least three channel data in addition to described two channel datas as described second Data.
12. terminals according to claim 7, it is characterised in that the terminal also includes:
First adjustment module, the first volume adjusting instruction for receiving the volume for adjusting first played data, and According to the volume of first volume adjusting instruction regulation first played data;And/or
Second adjustment module, the second volume adjusting instruction for receiving the volume for adjusting second played data, and According to the volume of second volume adjusting instruction regulation second played data.
CN201710095937.5A 2017-02-22 2017-02-22 Method and terminal for playing audio data Active CN106886388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710095937.5A CN106886388B (en) 2017-02-22 2017-02-22 Method and terminal for playing audio data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710095937.5A CN106886388B (en) 2017-02-22 2017-02-22 Method and terminal for playing audio data

Publications (2)

Publication Number Publication Date
CN106886388A true CN106886388A (en) 2017-06-23
CN106886388B CN106886388B (en) 2019-12-20

Family

ID=59178892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710095937.5A Active CN106886388B (en) 2017-02-22 2017-02-22 Method and terminal for playing audio data

Country Status (1)

Country Link
CN (1) CN106886388B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567840A (en) * 2020-11-27 2022-05-31 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130101131A1 (en) * 2011-10-21 2013-04-25 Chia-Chung LIN Headphone with speaker function
CN103929694A (en) * 2014-04-14 2014-07-16 杨璐馨 Earphone effect 3D sound hearing ring
CN204090123U (en) * 2014-06-13 2015-01-07 深圳Tcl新技术有限公司 Audio output control circuit and audio-frequence player device
CN105898503A (en) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 Playing control method, device and system for mobile terminal
CN106060719A (en) * 2016-05-31 2016-10-26 维沃移动通信有限公司 Terminal audio output control method and terminal
CN106209130A (en) * 2016-07-26 2016-12-07 维沃移动通信有限公司 A kind of wireless headset and the method utilizing wireless headset output voice data
CN106210312A (en) * 2016-07-11 2016-12-07 深圳天珑无线科技有限公司 A kind of played in stereo method based on mobile terminal, mobile terminal and system
CN106341719A (en) * 2016-09-12 2017-01-18 王海 Synchronized audio play method simultaneously using various kinds of play modules of equipment and apparatus thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130101131A1 (en) * 2011-10-21 2013-04-25 Chia-Chung LIN Headphone with speaker function
CN103929694A (en) * 2014-04-14 2014-07-16 杨璐馨 Earphone effect 3D sound hearing ring
CN204090123U (en) * 2014-06-13 2015-01-07 深圳Tcl新技术有限公司 Audio output control circuit and audio-frequence player device
CN105898503A (en) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 Playing control method, device and system for mobile terminal
CN106060719A (en) * 2016-05-31 2016-10-26 维沃移动通信有限公司 Terminal audio output control method and terminal
CN106210312A (en) * 2016-07-11 2016-12-07 深圳天珑无线科技有限公司 A kind of played in stereo method based on mobile terminal, mobile terminal and system
CN106209130A (en) * 2016-07-26 2016-12-07 维沃移动通信有限公司 A kind of wireless headset and the method utilizing wireless headset output voice data
CN106341719A (en) * 2016-09-12 2017-01-18 王海 Synchronized audio play method simultaneously using various kinds of play modules of equipment and apparatus thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567840A (en) * 2020-11-27 2022-05-31 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium
CN114567840B (en) * 2020-11-27 2024-02-06 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN106886388B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN106791109A (en) A kind of sound prompting method and mobile terminal
CN106341535B (en) A kind of audio play control method and mobile terminal
CN106357871A (en) Voice amplifying method and mobile terminal
CN106101929A (en) A kind of protection human ear audition method and mobile terminal
CN106851486B (en) A kind of switching method and mobile terminal of earphone sound channel
CN106024007B (en) A kind of sound processing method and mobile terminal
CN107071174B (en) A kind of method of speech processing and mobile terminal
CN106791015A (en) A kind of message is played and answering method and device
CN105260161A (en) Method for application software volume control and mobile terminal
CN107087072A (en) A kind of audio frequency playing method and mobile terminal
CN107277268A (en) A kind of audio frequency playing method and mobile terminal
CN106161804A (en) A kind of audio play control method and mobile terminal
CN106817656A (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN106060710B (en) A kind of audio-frequency inputting method and electronic equipment
CN106101409A (en) A kind of mobile terminal and control method
CN106714038A (en) Sound loudness control method and mobile terminal
CN106878868A (en) A kind of control device of loudspeaker, method and mobile terminal
CN106303841A (en) The changing method of a kind of audio frequency broadcast mode and mobile terminal
CN107071127A (en) A kind of way of recording and mobile terminal
CN106095310A (en) The control method of a kind of SOT state of termination and terminal
CN107819931A (en) A kind of audio frequency playing method and mobile terminal based on wireless headset
CN106886388A (en) The method and terminal of a kind of playing audio-fequency data
CN107690026A (en) A kind of signal processing method and mobile terminal
CN106973154A (en) A kind of reminding method and mobile terminal
CN106210335A (en) The detection method of a kind of audio parts duty and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171109

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200512

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.