CN105679345A - Audio processing method and electronic equipment - Google Patents

Audio processing method and electronic equipment Download PDF

Info

Publication number
CN105679345A
CN105679345A CN201511001564.8A CN201511001564A CN105679345A CN 105679345 A CN105679345 A CN 105679345A CN 201511001564 A CN201511001564 A CN 201511001564A CN 105679345 A CN105679345 A CN 105679345A
Authority
CN
China
Prior art keywords
voice data
audio
channel
data
electronic equipment
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
CN201511001564.8A
Other languages
Chinese (zh)
Other versions
CN105679345B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201511001564.8A priority Critical patent/CN105679345B/en
Publication of CN105679345A publication Critical patent/CN105679345A/en
Application granted granted Critical
Publication of CN105679345B publication Critical patent/CN105679345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10592Audio or video recording specifically adapted for recording or reproducing multichannel signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an audio processing method and electronic equipment. The audio processing method comprises the steps of: decoding a first audio source file to obtain first channel audio data and second channel audio data; decoding a second audio source file to obtain third channel audio data and fourth channel audio data; acquiring first channel data based on the first channel audio data and the second channel audio data, wherein the first channel data is to be played by a fist channel output unit of audio output equipment; and acquiring second channel data based on the third channel audio data and the fourth channel audio data, wherein the second channel data is to be played by a second channel output unit of the audio output equipment.

Description

A kind of audio-frequency processing method and electronic equipment
Technical field
The present invention relates to communication technical field, particularly to a kind of audio-frequency processing method and electronic equipment.
Background technology
Along with the development of science and technology, in order to meet the demand that user's multifunction to electronic equipment designs, same electronic equipment can support various audio output apparatus, such as, and wired earphone, bluetooth earphone, built-in speaker, external voice box etc.
In the prior art, when the electronic equipment being connected to earphone by plays a piece of music and a video, music will be exported by L channel output unit and the R channel output unit of earphone, meanwhile, the voice data in video also will be exported by L channel output unit and the R channel output unit of earphone. But, when exporting multiple audio-source file by same audio output apparatus, there is the problem that the output of multiple audio-source file interferes simultaneously.
Summary of the invention
The embodiment of the present invention provides a kind of audio-frequency processing method and electronic equipment, for solving electronic equipment of the prior art when exporting multiple audio-source file by an audio output apparatus simultaneously, there is the technical problem that the output sound of multiple audio-source file interferes.
On the one hand, the embodiment of the present application provides a kind of audio-frequency processing method, comprises the following steps:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
Alternatively, described based on described first passage voice data and described second channel voice data, generate the first channel data, specifically include:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
Alternatively, described method also includes:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
Alternatively, if described active user's pattern of described electronic equipment is described single user mode, described method also includes:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
By described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
Alternatively, described second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data, including:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
Alternatively, described method also includes:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
On the other hand, the embodiment of the present application additionally provides a kind of electronic equipment, including:
Audio output apparatus, at least includes the first sound channel output unit and second sound channel output unit;
Processor, is connected with described audio output apparatus; Wherein, described processor is used for:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for described first sound channel output unit;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for described second sound channel output unit.
Alternatively, described processor specifically for:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
Alternatively, described processor is additionally operable to:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
Alternatively, if described active user's pattern of described electronic equipment is described single user mode, described processor is additionally operable to:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
By described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
Alternatively, described processor specifically for:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
Alternatively, described processor is additionally operable to:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
On the other hand, the embodiment of the present application additionally provides a kind of electronic equipment, including:
First decoding unit, for being decoded the first audio-source file, it is thus achieved that first passage voice data and second channel voice data;
Second decoding unit, for being decoded the second audio-source file, it is thus achieved that third channel voice data and fourth lane voice data;
First generates unit, based on described first passage voice data and described second channel voice data, generates the first channel data, and wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Second generates unit, based on described third channel voice data and described fourth lane voice data, generates second sound channel data, and wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
Said one in the embodiment of the present application or multiple technical scheme, at least have one or more technique effects following:
According to embodiments herein, when electronic equipment exports multiple audio-source file by same audio output apparatus simultaneously, respectively each audio-source file can be carried out Audio Processing, and then the channel data that each audio-source file is corresponding is exported from corresponding sound channel output unit, thus avoiding electronic equipment when exporting multiple audio-source file by an audio output apparatus simultaneously, the technical problem that output sound interferes, is effectively increased the audio output effect of electronic equipment.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below the accompanying drawing used required during embodiment is described is briefly described, it should be apparent that, the accompanying drawing in the following describes is only some embodiments of the present invention.
The flow chart of a kind of information processing method that Fig. 1 provides for the embodiment of the present application one;
The method flow diagram of step S103 in a kind of information processing method that Fig. 2 provides for the embodiment of the present application one;
For realizing the method flow diagram of switching between user model in a kind of information processing method that Fig. 3 provides for the embodiment of the present application one;
If active user's pattern of electronic equipment is method flow diagram during single user mode in a kind of information processing method that Fig. 4 provides for the embodiment of the present application one;
Method flow diagram when electronic equipment needs to play first multimedia file with multiple languages in a kind of information processing method that Fig. 5 provides for the embodiment of the present application one;
The structured flowchart of a kind of electronic equipment that Fig. 6 provides for the embodiment of the present application two;
The structured flowchart of a kind of electronic equipment that Fig. 7 provides for the embodiment of the present application three.
Detailed description of the invention
The embodiment of the present invention provides a kind of audio-frequency processing method and electronic equipment, for solving electronic equipment of the prior art when exporting multiple audio-source file by an audio output apparatus simultaneously, there is the technical problem that the output sound of multiple audio-source file interferes.
Technical scheme in the embodiment of the present application is solve above-mentioned technical problem, and general thought is as follows:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;And the second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
According in embodiments herein, when electronic equipment exports multiple audio-source file by same audio output apparatus simultaneously, respectively each audio-source file can be carried out Audio Processing, and then the channel data that each audio-source file is corresponding is exported from corresponding sound channel output unit, thus avoiding electronic equipment when exporting multiple audio-source file by an audio output apparatus simultaneously, the technical problem that output sound interferes, is effectively increased the audio output effect of electronic equipment.
In order to be better understood from technique scheme, below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical solution of the present invention, rather than the restriction to technical solution of the present invention, when not conflicting, the embodiment of the present application and the technical characteristic in embodiment can be combined with each other.
In the embodiment of the present application, electronic equipment is specially the equipment with audio playing function. Specifically, electronic equipment can be mobile phone, it is also possible to be panel computer, it is also possible to be desktop computer, etc., just differ at this and one schematically illustrate.
Embodiment one
Refer to Fig. 1, the embodiment of the present application one provides a kind of audio-frequency processing method, is applied to electronic equipment, and described method includes:
S101: the first audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
S102: the second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
S103: based on described first passage voice data and described second channel voice data, generate the first channel data, wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
S104: based on described third channel voice data and described fourth lane voice data, generates second sound channel data, and wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
In the embodiment of the present application, described electronic equipment can store different types of audio-source file simultaneously, such as, music file, recording file, the audio-source file corresponding with multimedia file, etc. Described audio-source file specifically can have following several audio format, CD form, WAVE, MP3 format, midi format, WMA form, RealAudio form, etc. Wherein, the audio-source file of every kind of form can also include multiple audio-source file. Additionally, described electronic equipment can also receive the audio-source file sent by another electronic equipment. Certainly, for a person skilled in the art, it is also possible to obtain different audio-source files according to being actually needed of user by described electronic equipment, just do not repeat one by one at this.
In the embodiment of the present application, described electronic equipment can export multiple audio-source file by an audio output apparatus simultaneously. Wherein, described audio output apparatus can be provided in the audio amplifier of described electronic equipment internal, it is also possible to is the earphone external with described electronic equipment, it is also possible to is the audio amplifier external with described electronic equipment, etc., just do not repeat one by one at this. Export described first audio-source file for described audio output apparatus below simultaneously and described second audio-source file is described in detail, wherein, described first audio-source file and described second audio-source file belong to stereo audio data source file. Now, step S101 to step S104 to implement process as follows:
Owing to each audio-source file is a kind of audio data file after overcompression, in order to ensure the effective broadcasting to every kind of audio-source file, it is necessary to every kind of audio-source file is decoded. Specifically, described first audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data; Meanwhile, described second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data. Such as, audio software after the two voice data source file being decoded, obtain two pulse code modulation (PulseModulation, i.e. PCM) voice data, PCM-A and PCM-B. Wherein, to obtaining this pulse code modulation voice data of PCM-A after described first audio-source file decoding, to obtaining this pulse code modulation voice data of PCM-B after described second audio-source file decoding. Wherein, each pulse code modulation voice data comprises the voice data of the left and right passage of the audio-source file of correspondence respectively. Such as, PCM-A includes left and right channel audio data respectively L1 and the R1 of described first audio-source file. PCM-B includes left and right channel audio data respectively L2 and the R2 of described second audio-source file. Certainly, for a person skilled in the art, it is also possible to as desired to design different decoding processes, just differ at this and one schematically illustrate.
Then, based on described first passage voice data and described second channel voice data, the first channel data is generated; Based on described third channel voice data and described fourth lane voice data, generate second sound channel data. Wherein, described first channel data is play for the first sound channel output unit of described audio output apparatus, and described second sound channel data are play for the second sound channel output unit of described audio output apparatus. In specific implementation process, the execution step of step S101 and step S102 is order in no particular order, and the two can also simultaneously, and step S103 and step S104 is order in no particular order, and the two can also be simultaneously. Certainly for there being other execution sequencing between these four steps of step S101 in the embodiment of the present application, step S102, step S103, step S104, just do not repeat one by one at this. The flow chart of the one of which audio-frequency processing method provided for the embodiment of the present application shown in Fig. 1. Specifically, based on the step S101 single channel audio data obtained, the mono data of newly-generated stereo audio data, such as, left mono data L and right mono data R. Then, newly-generated mono data is exported corresponding hardware system and carry out audio frequency output. Such as, left mono data L is exported by the left receiver of the earphone external with described electronic equipment.Right mono data R is exported by the right receiver of the earphone external with described electronic equipment, thus improve the sound effect of described electronic equipment. Give a concrete illustration, it is music mp3 file at described first audio-source file, when described second audio-source file is the audio-source file of the RealAudio form that video source file is corresponding, user will hear the sound corresponding with this music mp3 file by the described first sound channel output unit of described audio output apparatus. Additionally, user can also hear the sound corresponding with the audio-source file of this RealAudio form by the described second sound channel output unit of described audio output apparatus. Such as, at synchronization, user A can listen to music by described first sound channel output unit, and user B can listen to, by described second sound channel output unit, the sound that video file is corresponding.
In the embodiment of the present application, in order to obtain new mono data, it is necessary to the single channel audio data obtained after decoding are processed accordingly. Wherein, step S103: based on described third channel voice data and described fourth lane voice data, obtain second sound channel data, specifically include: described third channel voice data and described fourth lane voice data are mixed, it is thus achieved that the second mixing audio data; Described second mixing audio data is processed, it is thus achieved that described first channel data. Due in the embodiment of the present application, it is thus achieved that described first channel data and described second sound channel data to implement principle similar, specifically illustrate with the process that implements of step S102.
Refer to Fig. 2, step S103: based on described first passage voice data and described second channel voice data, it is thus achieved that the first channel data, specifically include:
S201: described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
S202: described first mixing audio data is processed, generates described first channel data.
In specific implementation process, step S201 to step S202 to implement process as follows:
First, first passage voice data and described second channel voice data described in single channel audio data will be obtained based on described first audio-source file and carry out mixed processing, it is thus achieved that described first mixing audio data; Then, described first mixing audio data is processed, it is thus achieved that described first channel data. Specifically, still explain for above-mentioned example. Left and right channel audio data L1 and the R1 of described first audio-source file is carried out voice data mixed processing and obtains new mixing audio data L1R1, left and right channel audio data L2 and the R2 of described second audio-source file is carried out voice data mixed processing and obtains mixing audio data L2R2. Then, the mixing audio data obtained is repacked generation monaural audio data. Such as, the mixing audio data L1R1 obtained is packaged into left channel audio data L, using the mixing audio data L2R2 obtained as being packaged into right audio channel data R. Then, left channel audio data L and right channel audio data R is carried out PCM synthesis, generate a PCM-C stereo audio data comprising left channel audio data L and right channel audio data R. Then, newly-generated PCM-C stereo audio data is exported the left and right receiver of such as earphone. Correspondingly, described first channel data that described first audio-source file is corresponding will export from left receiver, and the described second sound channel data that described second audio-source file is corresponding will export from right receiver.
In the embodiment of the present application, in order to ensure that described electronic equipment can bring good experience to user, in specific implementation process, described electronic equipment at least includes two kinds of mode of operations, such as, and single user mode and multi-user's sharing model.Additionally, described electronic equipment can also realize the switching between multiple-working mode. Specifically refer to shown in Fig. 3, described method also includes:
S301: whether the active user's pattern determining described electronic equipment is single user mode;
S302: when for being, is switched to multi-user's sharing model by described active user's pattern by described single user mode.
In specific implementation process, step S301 to step S302 to implement process as follows:
First, it is determined that whether active user's pattern of described electronic equipment is single user mode. When determining that described electronic equipment is currently operating under described single user mode, described active user's pattern can be switched to multi-user's sharing model by described electronic equipment automatically. Wherein, when described electronic equipment is under described single user mode, described electronic equipment to the output effect of audio-source file compared with the effect in technology, even if play to different user respectively through the different sound channel output units of same audio output apparatus, the sound of each user institute uppick is all identical, and when playing multiple audio-source file, the mixing sound that multiple for uppick audio-source files are formed by each user. When described electronic equipment is under described multi-user's sharing model, when described electronic equipment exports multiple audio-source file by audio output apparatus simultaneously, the sound that each sound channel output unit is corresponding by exporting one of them audio-source file. Such as, described first sound channel output unit exports the sound that described first audio-source file is corresponding, described second sound channel output unit exports sound corresponding to described second audio-source file, different users by different sound channel output units by sound different for uppick. Certainly, in specific implementation process, it is also possible to arrange a functional keys on described electronic equipment, described function button can be physical button, it is also possible to be virtual key, is used for switching described active user's pattern. Specifically, when the first operation for described function button being detected, respond described first operation, described active user's pattern of described electronic equipment is switched to another different user model. Certainly, in specific implementation process, when described active user's pattern of described electronic equipment is under described multi-user's sharing model, it is also possible to described multi-user's sharing model is switched to described single user mode. Principle owing to user model being switched over is similar, just no longer repeats one by one at this. Certainly, for for a person skilled in the art, it is also possible to set the concrete scheme of user model switching according to the use habit that user is actual, just differ at this and one illustrate.
In the embodiment of the present application, if described active user's pattern of described electronic equipment is described single user mode, refer to Fig. 4, described method also includes:
S401: described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
S402: by described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
S403: when determining that described electronic equipment receives the incoming call requests from another electronic equipment, is switched to described multi-user's sharing model by described active user's pattern from described single user mode.
In specific implementation process, step S401 to step S403 to implement process as follows:
In the embodiment of the present application, in described electronic device works at described single user mode, and when described first audio-source file is played out, first, described first audio-source file is decoded, it is thus achieved that the described first passage voice data that can effectively play and described second channel voice data. Then, by described first passage voice data by described first sound channel output unit output, and described second channel voice data is exported by described second sound channel output unit. Owing to, in specific implementation process, the concrete processing procedure of step S401 to step S402 is similar with the processing mode principle that step S101 and step S103 adopts, and does not just repeat one by one at this. When described active user's pattern of described electronic equipment is described single user mode, when receiving the incoming call requests from another electronic equipment, in order to ensure incoming call answering and sound corresponding to listening to audio source file simultaneously, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
Give a concrete illustration, user A and user B watches in the process of a movie program respectively with the left and right receiver of same earphone by smart mobile phone a, when this smart mobile phone a receives from the incoming call requests of the mobile phone b of user C, described single user mode switch to described multi-user mode, described electronic equipment would operate in described multi-user's sharing model. Now, after setting up the call connection corresponding with this incoming call requests, user A will realize call by left receiver with user C, and user B remains to continue to listen to this movie program by right receiver. It is, of course, also possible to be that the call set up between user B with user C is connected, user A is kept to continue to listen to this movie program. On the one hand, while ensureing the maximum service limits of described electronic equipment, resource also it is effectively saved; On the other hand, it is possible to what farthest meet multiple user listens to demand, good experience is brought to user.
In the embodiment of the present application, when determining that described electronic equipment receives the incoming call requests from another electronic equipment described, and by described active user's pattern from described single user mode be switched to described multi-user's sharing model time, step: the second audio-source file is decoded, obtain third channel voice data and fourth lane voice data, specifically include: the audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data. In specific implementation process, due to the decoding process to described audio user signal, and the described third channel voice data and described fourth lane voice data to obtaining processes accordingly, and then the process that played out by corresponding sound channel output unit is similar with the concrete handling principle of step S101 to step S104, just do not repeat one by one at this.
In the embodiment of the present application, refer to Fig. 5, described method also includes:
S501: determine that described active user's pattern is described multi-user's sharing model;
S502: obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
In specific implementation process, step S501 to step S502 to implement process as follows:
In the embodiment of the present application, the step of step S501 and step S502 performs step part sequencing, and the two can also be perform simultaneously.When the described active user's pattern determining described electronic equipment is described multi-user's sharing model, and when obtaining the first multimedia file needing to play. Even if when described first multimedia file includes the described second audio-source file of the described first audio-source file of corresponding first languages and corresponding second languages, on the one hand, described electronic equipment will support the output to described first audio-source file and described second audio-source file of the described audio output apparatus simultaneously; On the other hand, described electronic equipment can bring good audiovisual experience to user. Give a concrete illustration, it is under described multi-user's sharing model at described electronic equipment, when user A and user B is respectively through the left and right receiver same video frequency program of viewing of same earphone, user A will hear that by left receiver the Chinese of this video frequency program is dubbed, and user B will hear that by right receiver the English of this video frequency program is dubbed.
Embodiment two
Refer to Fig. 6, based on the inventive concept same with the embodiment of the present application one, the embodiment of the present application additionally provides a kind of electronic equipment, including:
Audio output apparatus 10, at least includes the first sound channel output unit 101 and second sound channel output unit 102;
Processor 20, is connected with audio output apparatus 10; Wherein, processor 20 is used for:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for the first sound channel output unit 101;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for second sound channel output unit 102.
Described processor specifically for:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
In the embodiment of the present application, processor 20 is additionally operable to:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
In the embodiment of the present application, if described active user's pattern of described electronic equipment is described single user mode, processor 20 is additionally operable to:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
Described first passage voice data is exported by the first sound channel output unit 101; And described second channel voice data is exported by second sound channel output unit 102;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
In the embodiment of the present application, processor 20 specifically for:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
In the embodiment of the present application, processor 20 specifically for:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
Embodiment three
Refer to Fig. 7, based on the inventive concept same with the embodiment of the present application one, the embodiment of the present application additionally provides a kind of electronic equipment, including:
First decoding unit 30, for being decoded the first audio-source file, it is thus achieved that first passage voice data and second channel voice data;
Second decoding unit 40, for being decoded the second audio-source file, it is thus achieved that third channel voice data and fourth lane voice data;
First generates unit 50, based on described first passage voice data and described second channel voice data, generates the first channel data, and wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Second generates unit 60, and based on described third channel voice data and described fourth lane voice data, it is thus achieved that second sound channel data, wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
In the embodiment of the present application, the first generation unit 50 specifically includes:
First generation module, for mixing described first passage voice data and described second channel voice data, it is thus achieved that the first mixing audio data;
Second generation module, for processing described first mixing audio data, it is thus achieved that described first channel data.
In the embodiment of the present application, described electronic equipment also includes:
Whether first determines unit, be single user mode for determining active user's pattern of described electronic equipment;
First switch unit, when for being, is switched to multi-user's sharing model by described active user's pattern by described single user mode.
In the embodiment of the present application, if described active user's pattern of described electronic equipment is described single user mode, described electronic equipment also includes:
First processing module, for exporting described first passage voice data by described first sound channel output unit; And described second channel voice data is exported by described second sound channel output unit;
First handover module, for when determining that described electronic equipment receives the incoming call requests from another electronic equipment, being switched to described multi-user's sharing model by described active user's pattern from described single user mode.
In the embodiment of the present application, when described electronic equipment is in described multi-user's sharing model, the second decoding unit 40 specifically for:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
In the embodiment of the present application, described electronic equipment also includes:
Second determines unit, is used for determining that described active user's pattern is described multi-user's sharing model;
First obtains unit, for obtaining the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, wherein, described first languages and described second languages differ.
By the one or more technical schemes in the embodiment of the present application, it is possible to achieve following one or more technique effects:
According to the application and embodiment, when electronic equipment exports multiple audio-source file by same audio output apparatus simultaneously, respectively each audio-source file can be carried out Audio Processing, and then the channel data that each audio-source file is corresponding is exported from corresponding sound channel output unit, thus avoiding electronic equipment when exporting multiple audio-source file by an audio output apparatus simultaneously, the technical problem that output sound interferes, is effectively increased the audio output effect of electronic equipment.
Due in the technical scheme of the embodiment of the present application, described first channel data corresponding for described first audio-source file is exported for the described first sound channel output unit of described audio output apparatus, described second sound channel data corresponding for described second audio-source file are exported for the described second sound channel output unit of described audio output apparatus, that is, multiple audio-source file can be play by same audio output apparatus simultaneously, while ensureing that user has experience, also efficiently solve resource.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program. Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect. And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe. It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Specifically, the computer program instructions that audio-frequency processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with audio-frequency processing method in storage medium is read by an electronic equipment or be performed, comprise the steps:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
Alternatively, in described storage medium storage and step, described based on described first passage voice data and described second channel voice data, it is thus achieved that the first channel data, corresponding computer instruction upon execution, specifically includes:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
Alternatively, upon execution, described method also includes the computer instruction corresponding with step stored in described storage medium:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
Alternatively, store in described storage medium and step, if described active user's pattern of described electronic equipment is described single user mode, upon execution, described method also includes corresponding computer instruction:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
By described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
Alternatively, in described storage medium storage and step, described second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data, corresponding computer instruction upon execution, including:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
Alternatively, upon execution, described method also includes the computer instruction corresponding with step stored in described storage medium:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment. So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art. So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (13)

1. an audio-frequency processing method, is applied to electronic equipment, and described method includes:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
2. the method for claim 1, it is characterised in that described based on described first passage voice data and described second channel voice data, generates the first channel data, specifically includes:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
3. the method for claim 1, it is characterised in that described method also includes:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
4. method as claimed in claim 3, it is characterised in that if described active user's pattern of described electronic equipment is described single user mode, described method also includes:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
By described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
5. method as claimed in claim 4, it is characterised in that described second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data, including:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
6. method as claimed in claim 3, it is characterised in that described method also includes:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
7. an electronic equipment, including:
Audio output apparatus, at least includes the first sound channel output unit and second sound channel output unit;
Processor, is connected with described audio output apparatus; Wherein, described processor is used for:
First audio-source file is decoded, it is thus achieved that first passage voice data and second channel voice data;
Second audio-source file is decoded, it is thus achieved that third channel voice data and fourth lane voice data;
Based on described first passage voice data and described second channel voice data, generating the first channel data, wherein, described first channel data is play for described first sound channel output unit;
Based on described third channel voice data and described fourth lane voice data, generating second sound channel data, wherein, described second sound channel data are play for described second sound channel output unit.
8. electronic equipment as claimed in claim 7, it is characterised in that described processor specifically for:
Described first passage voice data and described second channel voice data are mixed, it is thus achieved that the first mixing audio data;
Described first mixing audio data is processed, generates described first channel data.
9. electronic equipment as claimed in claim 7, it is characterised in that described processor is additionally operable to:
Whether the active user's pattern determining described electronic equipment is single user mode;
When for being, described active user's pattern is switched to multi-user's sharing model by described single user mode.
10. electronic equipment as claimed in claim 9, it is characterised in that if described active user's pattern of described electronic equipment is described single user mode, described processor is additionally operable to:
Described first audio-source file is decoded, it is thus achieved that described first passage voice data and described second channel voice data;
By described first passage voice data by described first sound channel output unit output; And described second channel voice data is exported by described second sound channel output unit;
When determining that described electronic equipment receives the incoming call requests from another electronic equipment, described active user's pattern is switched to described multi-user's sharing model from described single user mode.
11. electronic equipment as claimed in claim 10, it is characterised in that described processor specifically for:
Audio user signal from another electronic equipment described is decoded, it is thus achieved that described third channel voice data and described fourth lane voice data.
12. electronic equipment as claimed in claim 9, it is characterised in that described process is additionally operable to:
Determine that described active user's pattern is described multi-user's sharing model;
Obtain the first multimedia file needing to play, wherein, described first multimedia file includes the described first audio-source file of corresponding first languages and the described second audio-source file of corresponding second languages, and wherein, described first languages and described second languages differ.
13. an electronic equipment, including:
First decoding unit, for being decoded the first audio-source file, it is thus achieved that first passage voice data and second channel voice data;
Second decoding unit, for being decoded the second audio-source file, it is thus achieved that third channel voice data and fourth lane voice data;
First generates unit, based on described first passage voice data and described second channel voice data, generates the first channel data, and wherein, described first channel data is play for the first sound channel output unit of an audio output apparatus;
Second generates unit, based on described third channel voice data and described fourth lane voice data, generates second sound channel data, and wherein, described second sound channel data are play for the second sound channel output unit of described audio output apparatus.
CN201511001564.8A 2015-12-28 2015-12-28 Audio processing method and electronic equipment Active CN105679345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001564.8A CN105679345B (en) 2015-12-28 2015-12-28 Audio processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001564.8A CN105679345B (en) 2015-12-28 2015-12-28 Audio processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105679345A true CN105679345A (en) 2016-06-15
CN105679345B CN105679345B (en) 2020-11-20

Family

ID=56189594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001564.8A Active CN105679345B (en) 2015-12-28 2015-12-28 Audio processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105679345B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341757A (en) * 2016-09-30 2017-01-18 宇龙计算机通信科技(深圳)有限公司 Sound source simultaneous playing method, device and terminal
CN106358126A (en) * 2016-09-26 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Multi-audio frequency playing method, system and terminal
CN107155155A (en) * 2017-06-12 2017-09-12 宇龙计算机通信科技(深圳)有限公司 Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN107659551A (en) * 2016-07-25 2018-02-02 Gn 奥迪欧有限公司 For carrying out the System and method for of voice communication using LTE
CN108206886A (en) * 2017-09-08 2018-06-26 中兴通讯股份有限公司 A kind of audio frequency playing method and device and terminal
CN108334302A (en) * 2017-12-26 2018-07-27 努比亚技术有限公司 A kind of sound transmission method, mobile terminal and computer readable storage medium
CN112216310A (en) * 2019-07-09 2021-01-12 海信视像科技股份有限公司 Audio processing method and device and multi-channel system
CN112218016A (en) * 2019-07-09 2021-01-12 海信视像科技股份有限公司 Display device
CN114554270A (en) * 2022-02-28 2022-05-27 维沃移动通信有限公司 Audio and video playing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136232A (en) * 2007-10-15 2008-03-05 殷亮 Double subtitling double track data media and player having parent language of foreign languages
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
KR20130049611A (en) * 2011-11-04 2013-05-14 한국전자통신연구원 Apparatus and method for playing multimedia
CN105050002A (en) * 2015-08-05 2015-11-11 惠州Tcl移动通信有限公司 Method and system for playing multimedia of intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136232A (en) * 2007-10-15 2008-03-05 殷亮 Double subtitling double track data media and player having parent language of foreign languages
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
KR20130049611A (en) * 2011-11-04 2013-05-14 한국전자통신연구원 Apparatus and method for playing multimedia
CN105050002A (en) * 2015-08-05 2015-11-11 惠州Tcl移动通信有限公司 Method and system for playing multimedia of intelligent terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659551A (en) * 2016-07-25 2018-02-02 Gn 奥迪欧有限公司 For carrying out the System and method for of voice communication using LTE
CN106358126A (en) * 2016-09-26 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Multi-audio frequency playing method, system and terminal
CN106341757A (en) * 2016-09-30 2017-01-18 宇龙计算机通信科技(深圳)有限公司 Sound source simultaneous playing method, device and terminal
CN107155155A (en) * 2017-06-12 2017-09-12 宇龙计算机通信科技(深圳)有限公司 Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN108206886A (en) * 2017-09-08 2018-06-26 中兴通讯股份有限公司 A kind of audio frequency playing method and device and terminal
WO2019047712A1 (en) * 2017-09-08 2019-03-14 中兴通讯股份有限公司 Method and device for playing back audio, and terminal
US11120808B2 (en) 2017-09-08 2021-09-14 Xi'an Zhongxing New Software Co., Ltd. Audio playing method and apparatus, and terminal
CN108334302A (en) * 2017-12-26 2018-07-27 努比亚技术有限公司 A kind of sound transmission method, mobile terminal and computer readable storage medium
CN112216310A (en) * 2019-07-09 2021-01-12 海信视像科技股份有限公司 Audio processing method and device and multi-channel system
CN112218016A (en) * 2019-07-09 2021-01-12 海信视像科技股份有限公司 Display device
CN112216310B (en) * 2019-07-09 2021-10-26 海信视像科技股份有限公司 Audio processing method and device and multi-channel system
CN114554270A (en) * 2022-02-28 2022-05-27 维沃移动通信有限公司 Audio and video playing method and device

Also Published As

Publication number Publication date
CN105679345B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN105679345A (en) Audio processing method and electronic equipment
CN103295610B (en) A kind of method of audio plays and device
CN102568513B (en) Audio data processing method and interacting method
TWI450105B (en) Method, audio rendering device and machine-readable medium for spatial reformatting of multi-channel audio content
EP3364638B1 (en) Recording method, recording playing method and apparatus, and terminal
CN105630586A (en) Information processing method and electronic device
CN108111952B (en) Recording method, device, terminal and computer readable storage medium
CN105702271A (en) Multimedia playing method and electronic equipment
RU2607994C2 (en) Information sharing device, information sharing method, information sharing program and terminal device
WO2017117293A1 (en) Simultaneous binaural presentation of multiple audio streams
CN103823655A (en) Audio output method, electronic equipment and first audio output device
CN112105005B (en) Method and device for controlling Bluetooth equipment to play
KR20110050830A (en) Apparatus and method for playing the multisound channel content using dlna in portable communication system
CN111857473B (en) Audio playing method and device and electronic equipment
CN110868621B (en) Audio playing method, device, equipment and computer readable medium
WO2017101327A1 (en) Method and device for collective playback of high-fidelity sound by several players
CN103377674A (en) Audio player and control method thereof
CN108206886A (en) A kind of audio frequency playing method and device and terminal
WO2018144254A1 (en) Game streaming with spatial audio
CN104883644A (en) Information processing method and an electronic device
CN102664033A (en) Method of realizing multipoint break-point memory continue-play of portable speaker
CN111050270A (en) Multi-channel switching method and device for mobile terminal, mobile terminal and storage medium
CN105810221A (en) Wireless synchronous audio play system
CN104464763A (en) Method and device for processing information
CN103945305A (en) Information processing method and electronic equipment

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