CN105163241A - Audio playing method and device as well as electronic device - Google Patents

Audio playing method and device as well as electronic device Download PDF

Info

Publication number
CN105163241A
CN105163241A CN201510583889.5A CN201510583889A CN105163241A CN 105163241 A CN105163241 A CN 105163241A CN 201510583889 A CN201510583889 A CN 201510583889A CN 105163241 A CN105163241 A CN 105163241A
Authority
CN
China
Prior art keywords
audio amplifier
audio
channel
available
amplifier
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
CN201510583889.5A
Other languages
Chinese (zh)
Other versions
CN105163241B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510583889.5A priority Critical patent/CN105163241B/en
Publication of CN105163241A publication Critical patent/CN105163241A/en
Application granted granted Critical
Publication of CN105163241B publication Critical patent/CN105163241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stereophonic System (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention relates to an audio playing method and device as well as an electronic device. The method may comprise the following steps: determining a left channel sound box and a right channel sound box; obtaining left channel audio data and right channel audio data according to an audio to be played; and sending the left channel audio data to the left channel sound box and the right channel audio data to the right channel sound box so as to play the audio to be played in a stereo mode. According to the technical scheme of the audio playing method, a plurality of independent single-channel sound boxes can be combined for playing to achieve a stereo playing effect.

Description

Audio frequency playing method and device, electronic equipment
Technical field
The disclosure relates to audio frequency play-back technology field, particularly relates to audio frequency playing method and device, electronic equipment.
Background technology
Audio electrical signal can be converted to acoustical signal by audio amplifier, for listening to.Audio amplifier can be divided into monophony audio amplifier and stereo speaker etc. dissimilar usually; Wherein, the structure of monophony audio amplifier is simple, cheap, but deletion sites sense when playing, auditory perception is thiner, and stereo speaker can simulate source and the direction of sound, realize excellent position sense, but opposed configuration is complicated, price is higher.
But for the consideration of the aspects such as Financial cost, a lot of user is merely able to compromise and uses monophony audio amplifier, and cannot experience the result of broadcast of stereo speaker.
Summary of the invention
The disclosure provides audio frequency playing method and device, electronic equipment, to solve the deficiency in correlation technique.
According to the first aspect of disclosure embodiment, a kind of audio frequency playing method is provided, comprises:
Determine L channel audio amplifier and R channel audio amplifier;
Left audio data and right audio channel data are obtained according to audio frequency to be played;
Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
Optionally, describedly determine L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
According to the position of described available audio amplifier, in described available audio amplifier, determine described L channel audio amplifier and described R channel audio amplifier.
Optionally, the described position according to described available audio amplifier, in described available audio amplifier, determine described L channel audio amplifier and described R channel audio amplifier, comprising:
Obtain the target play sound effect of audio frequency to be played;
According to the position of described available audio amplifier, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect.
Optionally, the target play sound effect of described acquisition audio frequency to be played, comprising:
Obtain the position of target object of reference;
According to the position of described target object of reference, determine described target play sound effect.
Optionally, the target play sound effect of described acquisition audio frequency to be played, comprising:
According to the position of described available audio amplifier, obtain the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Export audio options interface, described audio options interface comprises the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Select operation in response to the audio received for described audio options interface, select the play sound effect of operation instruction to be defined as described target play sound effect described audio.
Optionally, described audio options interface also comprises the positional information of each available audio amplifier.
Optionally, describedly determine L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
Audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
Optionally, the described audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier, comprising in described available audio amplifier:
Obtain the target play sound effect of audio frequency to be played;
Audio frequency according to described available audio amplifier plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect in described available audio amplifier.
Optionally, the described audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier, comprising in described available audio amplifier:
Play attribute according to the audio frequency of described available audio amplifier, in described available audio amplifier, obtain the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier.
Optionally, describedly determine L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
Export audio amplifier and select interface, described audio amplifier is selected to comprise all described available audio amplifiers in interface;
Selecting the audio amplifier at interface to select operation in response to receiving for described audio amplifier, selecting the available audio amplifier of operation instruction to be defined as described L channel audio amplifier and described R channel audio amplifier described audio amplifier.
Optionally, described according to audio frequency acquisition left audio data to be played and right audio channel data, comprising:
When described audio frequency to be played is monophonic audio, obtain the dual-channel audio of described audio frequency to be played from network;
Resolve described dual-channel audio, obtain described left audio data and described right audio channel data.
Optionally, described method also comprises:
Obtain environment characteristic parameters, described environment characteristic parameters comprise following one of at least: time parameter, location parameters, ambient noise parameter;
According to described environment characteristic parameters, adjust the audio frequency play parameter of described L channel audio amplifier and described R channel audio amplifier.
According to the second aspect of disclosure embodiment, a kind of audio playing apparatus is provided, comprises:
Determining unit, is configured to determine L channel audio amplifier and R channel audio amplifier;
Acquiring unit, is configured to obtain left audio data and right audio channel data according to audio frequency to be played;
Transmitting element, the left audio data being configured to described acquiring unit to obtain are sent to the L channel audio amplifier that described determining unit is determined, the right audio channel data obtained by described acquiring unit are sent to the R channel audio amplifier that described determining unit is determined respectively, for being play described audio frequency to be played by stereo format.
Optionally, described determining unit comprises:
First obtains subelement, is configured to obtain all available audio amplifiers;
First determines subelement, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
Optionally, described first determines that subelement comprises:
First audio acquisition module, is configured to the target play sound effect obtaining audio frequency to be played;
First audio amplifier acquisition module, be configured to the position obtaining the available audio amplifier that subelement obtains according to described first, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is the target play sound effect that described first audio acquisition module obtains.
Optionally, described first audio acquisition module comprises:
Position acquisition submodule, is configured to the position obtaining target object of reference;
Determine submodule, be configured to the position of the target object of reference obtained according to described position acquisition submodule, determine described target play sound effect.
Optionally, described first audio acquisition module comprises:
Audio obtains submodule, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, obtains the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Interface output sub-module, is configured to export audio options interface, and described audio options interface comprises the play sound effect that described audio obtains the often kind of loudspeaker box combination formed between each available audio amplifier of submodule acquisition;
Audio determination submodule, the audio be configured in response to receiving the audio options interface exported for described interface output sub-module selects operation, selects the play sound effect of operation instruction to be defined as described target play sound effect described audio.
Optionally, described audio options interface also comprises the positional information of each available audio amplifier.
Optionally, described determining unit comprises:
Second obtains subelement, is configured to obtain all available audio amplifiers;
Second determines subelement, and the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
Optionally, described second determines that subelement comprises:
Second audio acquisition module, is configured to the target play sound effect obtaining audio frequency to be played;
Second audio amplifier acquisition module, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect in described available audio amplifier.
Optionally, described second determines that subelement comprises:
3rd audio amplifier acquisition module, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier in described available audio amplifier.
Optionally, described determining unit comprises:
3rd obtains subelement, is configured to obtain all available audio amplifiers;
Interface exports subelement, is configured to export audio amplifier and selects interface, comprises the available audio amplifier that all described 3rd acquisition subelements obtain in described audio amplifier selection interface;
Audio amplifier determination subelement, be configured to, in response to receiving the audio amplifier selection operation exporting the audio amplifier selection interface that subelement exports for described interface, select the available audio amplifier of operation instruction to be defined as described L channel audio amplifier and described R channel audio amplifier described audio amplifier.
Optionally, described acquiring unit comprises:
Search subelement, is configured to, when described audio frequency to be played is monophonic audio, obtain the dual-channel audio of described audio frequency to be played from network;
Resolve subelement, be configured to resolve the dual-channel audio that described search subelement searches, obtain described left audio data and described right audio channel data.
Optionally, also comprise:
Parameter acquiring unit, is configured to obtain environment characteristic parameters, described environment characteristic parameters comprise following one of at least: time parameter, location parameters, ambient noise parameter;
Parameter adjustment unit, is configured to the environment characteristic parameters obtained according to described parameter acquiring unit, adjusts the audio frequency play parameter of described L channel audio amplifier and described R channel audio amplifier.
According to the third aspect of disclosure embodiment, a kind of electronic equipment is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine L channel audio amplifier and R channel audio amplifier;
Left audio data and right audio channel data are obtained according to audio frequency to be played;
Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
From above-described embodiment, the disclosure is by choosing multiple stage audio amplifier, and play the left and right acoustic channels voice data of same audio frequency respectively, although make every platform audio amplifier all can not realize played in stereo, but via cooperatively interacting between multiple stage audio amplifier, can jointly realize stereosonic result of broadcast, contribute to the experience promoting user.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of a kind of audio frequency playing method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart choosing loudspeaker box combination according to an exemplary embodiment.
Fig. 3 is the flow chart that a kind of based target play sound effect according to an exemplary embodiment chooses loudspeaker box combination.
Fig. 4 is the schematic diagram that target play sound effect is determined in a kind of position according to target object of reference according to an exemplary embodiment.
Fig. 5 A-5B is the schematic diagram of a kind of audio options interface according to an exemplary embodiment.
Fig. 6 is a kind of flow chart choosing loudspeaker box combination based on audio frequency broadcasting attribute according to an exemplary embodiment.
Fig. 7 A-7B is a kind of terminal interface schematic diagram choosing loudspeaker box combination according to an exemplary embodiment.
Fig. 8 A-8B is the terminal interface schematic diagram of a kind of audio amplifier grouping according to an exemplary embodiment.
Fig. 9 is that a kind of according to an exemplary embodiment resolves and the flow chart of audio plays.
Figure 10-20 is block diagrams of a kind of audio playing apparatus according to an exemplary embodiment.
Figure 21 is the structural representation of a kind of device for audio frequency broadcasting according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the flow chart of a kind of audio frequency playing method according to an exemplary embodiment, and as shown in Figure 1, the method is used for, in terminal, can comprising the following steps:
In a step 102, L channel audio amplifier and R channel audio amplifier is determined.
In the present embodiment, can determine at least one L channel audio amplifier and at least one R channel audio amplifier respectively, the disclosure does not limit for audio amplifier quantity.
In the present embodiment, every platform audio amplifier can be all the audio amplifier of any type, and such as monophony audio amplifier etc., the disclosure does not limit this.In fact, every platform audio amplifier only needs to play monaural voice data, and by the cooperation between multiple stage audio amplifier, finally realizes stereosonic result of broadcast.
At step 104, left audio data and right audio channel data are obtained according to audio frequency to be played.
In the present embodiment, although have employed the describing mode of " step 102 " and " step 104 ", but data transitive relation as shown in Figure 1, there are not inevitable sequencing and the relations of dependence between step 102 and step 104, both can independently exist and perform.
In step 106, described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
From above-described embodiment, the disclosure is by choosing multiple stage audio amplifier, and play the left and right acoustic channels voice data of same audio frequency respectively, although make every platform audio amplifier all can not realize played in stereo, but via cooperatively interacting between multiple stage audio amplifier, can jointly realize stereosonic result of broadcast, contribute to the experience promoting user.
In embodiment of the present disclosure, stereosonic audio frequency playing process can be divided into two stages: choose audio amplifier and audio frequency broadcasting, below respectively for the multiple implementation in each stage, be described in detail to technical scheme of the present disclosure.
1, audio amplifier is chosen
Embodiment one: based on audio amplifier position
Fig. 2 is a kind of flow chart choosing loudspeaker box combination according to an exemplary embodiment, and as shown in Figure 2, the method is applied in terminal, can comprise the following steps:
In step 202., all available audio amplifiers are obtained.
In the present embodiment, terminal can detect available audio amplifiers all in the preset range of target object of reference, such as this preset range can be with target object of reference be the center of circle, the preset length border circular areas that is radius.Wherein, when terminal and audio amplifier are positioned at same local area network (LAN), target object of reference can be terminal, now directly can be detected all available audio amplifiers by terminal; When terminal and audio amplifier are not in same local area network (LAN), namely user carries out Long-distance Control by terminal to audio amplifier, then target object of reference can for being in any predefine object in same local area network (LAN) with audio amplifier, such as TV, router, sofa etc., now can (be such as fixed as router to process by equipment such as routers, or processed by the target object of reference with correlation function) obtain all available audio amplifiers, and inform long-range terminal.
In the present embodiment, the audio amplifier of surrounding can be detected in several ways.For example:
In a kind of situation, IMAQ can be carried out by camera to surrounding, and identify the audio amplifier comprised from collection image.
In another kind of situation, assuming that be built-in with electronic tag in each audio amplifier, such as RFID label tag, then can be read the RFID label tag in preset range, thus corresponding audio amplifier be detected by RFID reader.
In another situation, assuming that low-power consumption Bluetooth function supported by audio amplifier, then by carrying out scanning, match and being connected with each audio amplifier, corresponding audio amplifier can be detected.Certainly, can also detect available audio amplifier by other means, the disclosure does not limit this.
In step 204, the position of the available audio amplifier of every platform is obtained.
In step 206, loudspeaker box combination is determined.
In the present embodiment, loudspeaker box combination refers to the combination that selected L channel audio amplifier and R channel audio amplifier are formed, for realizing played in stereo.
In the present embodiment, propose with " position of available audio amplifier " for condition, determining the technical scheme of L channel audio amplifier and R channel audio amplifier, there is multiple feasible execution mode in this technical scheme, is illustrated below to wherein several execution mode.
Execution mode one: based target play sound effect
As an illustrative embodiments, the target play sound effect of audio frequency to be played can be obtained; According to the position of described available audio amplifier, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect.In this embodiment, target play sound effect can meet the play sound effect demand of user, thus by meeting situation to available audio amplifier to target play sound effect, chooses appropriate L channel audio amplifier and R channel audio amplifier.
Accordingly, Fig. 3 is the flow chart that a kind of based target play sound effect according to an exemplary embodiment chooses loudspeaker box combination, and as shown in Figure 3, the method can comprise the following steps:
In step 302, all available audio amplifiers are obtained.
In step 304, the position of the available audio amplifier of every platform is obtained.
The above-mentioned step 202-204 shown in step 302-304 and Fig. 2 is consistent, repeats no more herein.
Within step 306, target play sound effect is obtained.
In the present embodiment, target play sound effect can be determined in several ways, below wherein several mode is illustrated.
1) position of target object of reference is obtained; According to the position of target object of reference, determine target play sound effect.
In the present embodiment, target object of reference can be any predefined object such as user's (with " terminal substitutes "), sofa, router, intelligent television.The position of based target object of reference, can analyze the target play sound effect that this target object of reference is corresponding.For Fig. 4, hypothetical target object of reference is the user's (being positioned at the circle centre position of dashed circle) in Fig. 4, then for the position of this user, can determine when reaching target play sound effect, L channel audio amplifier should be positioned at direction, 45 °, this user left front as much as possible, R channel audio amplifier should be positioned at direction, 45 °, user right front as much as possible, and more near better with the distance of this user.
2) according to the position of available audio amplifier, the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier is obtained; Export audio options interface, audio options interface comprises the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier; Select operation in response to the audio received for audio options interface, selected by audio the play sound effect of operation instruction to be defined as target play sound effect.
In the present embodiment, for all available audio amplifier got, there is various different loudspeaker box combination between these audio amplifiers, then according to the position of each available audio amplifier, the play sound effect of often kind of loudspeaker box combination can be analyzed, therefrom select required target play sound effect for user.As indicated by figures 5 a-5b, in audio options interface shown in terminal, the audio combination that user can view current existence comprises three kinds, be respectively " audio 1 ", " audio 2 " and " audio 3 ", and user can carry out audition to often kind of audio respectively, to determine the required audio selected, suppose that user have chosen " audio 1 " for target play sound effect herein.
Further, audio options interface can also comprise the positional information of each available audio amplifier.Ratio as shown in Figure 5A, when user have chosen " audio 1 ", the loudspeaker box combination " A+B " being somebody's turn to do " audio 1 " corresponding can be illustrated in audio options interface, such as audio amplifier A wherein and target object of reference (are " I " in figure, i.e. user) between angle be left-leaning 45 °, distance is 1.5m, and the angle between audio amplifier B and target object of reference being Right deviation 42 °, apart from being 1.1m, showing the relative position relation between audio amplifier and target object of reference intuitively.
And in figure 5b, except showing audio amplifier corresponding to target play sound effect that user selected, the available audio amplifier that other are all can also be shown, and the relative position relation between each audio amplifier and target object of reference is shown.Such as in figure 5b, the angle between audio amplifier D and target object of reference is close to 45 °, and distance is between the two less than the distance of audio amplifier A and target object of reference, and thus user probably changes audio amplifier A into audio amplifier D, to obtaining better result of broadcast.
It should be noted that:
When illustrating the positional information of available audio amplifier, virtual schematic diagram used in Fig. 5 A-5B can be adopted, simulate the position relationship between available audio amplifier and target object of reference etc.; Or, also outdoor scene photo can be adopted, this outdoor scene photo can carry out gathering and processing obtaining for the first-class equipment of intelligent camera in region residing for terminal or audio amplifier, then user can drag this outdoor scene photo, the operation such as convergent-divergent, walk in region residing for audio amplifier (such as in certain room) seemingly, contribute to the experience promoting user.
Certainly, terminal can adopt any-mode to show the positional information of available audio amplifier, and such as except above-mentioned graphic form, also can adopt the modes such as list, the disclosure does not limit this.
In step 308, analyzing the play sound effect that each loudspeaker box combination of available audio amplifier is corresponding, when meeting target play sound effect, proceeding to step 310.
In the step 310, in the loudspeaker box combination meeting target play sound effect, determine L channel audio amplifier and R channel audio amplifier.
For Fig. 4.Hypothetical target object of reference is user self, the terminal of then being carried by user is detected the available audio amplifier in preset range, the border circular areas that this preset range can be is the center of circle with user, predeterminable range R is radius, the audio amplifier A shown in Fig. 4, audio amplifier B, audio amplifier C and audio amplifier D then can be detected, and audio amplifier E cannot be detected because of hypertelorism.
So, the position of based target object of reference, can determine that target play sound effect is mentioned above: L channel audio amplifier should be positioned at direction, 45 °, this user left front as much as possible, R channel audio amplifier should be positioned at direction, 45 °, user right front as much as possible, and more near better with the distance of this user.
Therefore, as shown in Figure 4: audio amplifier A is the most close with " direction, 45 °, user left front ", and audio amplifier D is than the angle of audio amplifier A is large but distance is near, audio amplifier B is the most close with " direction, 45 °, user right front " simultaneously, so loudspeaker box combination " A+B " and loudspeaker box combination " D+B " all may meet target play sound effect.Now, a loudspeaker box combination can be chosen arbitrarily, such that audio amplifier B is R channel audio amplifier, audio amplifier A or audio amplifier D is L channel audio amplifier; Or, can determine that audio amplifier B is R channel audio amplifier, and according to the respective weights of " angle " and " distance " that preset, calculate comprehensive grading corresponding to audio amplifier A and audio amplifier D respectively, thus determine that choosing audio amplifier A or audio amplifier D is L channel audio amplifier further.
For Fig. 5 A-5B.User is by checking all audios shown in audio options interface, and can by the audition to often kind of audio, choose certain target play sound effect, the loudspeaker box combination that then this target play sound effect is corresponding, namely be considered to meet target play sound effect, such as audio amplifier A as L channel audio amplifier, audio amplifier B as the loudspeaker box combination of R channel audio amplifier.In fact, when user is selected by audio options interface, only need to be concerned about interested audio, and without the need to considering the audio amplifier that often kind of audio is corresponding, namely audio amplifier can be " transparent " for user.
Execution mode two: based target position
As another illustrative embodiments, based on the target location determined, L channel audio amplifier and R channel audio amplifier can be chosen, and form corresponding loudspeaker box combination, realize played in stereo.
Wherein, target location can for meeting the position of predefine condition.For example, target location can be the present position of playback equipment, and such as playback equipment can be television set, then target location can be the both sides of television set; Or target location can be user-defined optional position, such as user defines that a target location is sofa left front, parlor, another target location is sofa right front, parlor.
Correspondingly, by obtaining the position of available audio amplifier, situation can be met according to available audio amplifier to target location, choosing the available audio amplifier meeting target location, as L channel audio amplifier and R channel audio amplifier.
Embodiment two: play attribute based on audio frequency
Fig. 6 is a kind of flow chart choosing loudspeaker box combination based on audio frequency broadcasting attribute according to an exemplary embodiment, and as shown in Figure 6, the method can comprise the following steps:
In step 602, all available audio amplifiers are obtained.
In step 604, the audio frequency obtaining the available audio amplifier of every platform plays attribute.
In the present embodiment, the audio frequency of available audio amplifier play attribute can comprise following one of at least: frequency characteristic, signal to noise ratio, dynamic range, transient response etc., the disclosure does not limit this.Audio frequency based on the available audio amplifier of every platform plays attribute, more adequately can analyze the actual play effect of available audio amplifier.
In the present embodiment, propose with " audio frequency of available audio amplifier plays attribute " as condition, determining the technical scheme of L channel audio amplifier and R channel audio amplifier, there is multiple feasible execution mode in this technical scheme, is illustrated below to wherein several execution mode.
Execution mode one: based target play sound effect
As an illustrative embodiments, the target play sound effect of audio frequency to be played can be obtained; Audio frequency according to available audio amplifier plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is target play sound effect in available audio amplifier.
In the present embodiment, with the step 306 shown in Fig. 3 analogously, can determine target play sound effect in several ways, the disclosure does not limit this.For example:
1) position of target object of reference can be obtained; According to the position of target object of reference, determine target play sound effect.Ratio as shown in Figure 4, hypothetical target object of reference is the user's (being positioned at the circle centre position of dashed circle) in Fig. 4, then for the position of this user, can determine when reaching target play sound effect, L channel audio amplifier should be positioned at direction, 45 °, this user left front as much as possible, R channel audio amplifier should be positioned at direction, 45 °, user right front as much as possible, and more near better with the distance of this user.
2) attribute can be play according to the audio frequency of available audio amplifier, obtain the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier; Export audio options interface, audio options interface comprises the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier; Select operation in response to the audio received for audio options interface, selected by audio the play sound effect of operation instruction to be defined as target play sound effect.Such as can pass through the audio options interface shown in Fig. 5 A-5B, choose target play sound effect by user.
Execution mode two: based on best play sound effect
As another illustrative embodiments, attribute can be play according to the audio frequency of available audio amplifier, in available audio amplifier, obtain the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier.
In the present embodiment, based on the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier and correspondence thereof, can by play sound effect corresponding to each loudspeaker box combination of terminal automatic comparison, thus automatically choose the loudspeaker box combination of play sound effect the best, and manually participate in without the need to user, improve automation and the intellectuality that process chosen by audio amplifier.
It is to be noted:
Determine in the processing procedure of loudspeaker box combination based on " position of audio amplifier " and " audio amplifier broadcasting attribute " respectively above-mentioned, if result is relevant to the position of target object of reference, then because the change in attitude, position etc. may occur target object of reference in audio frequency playing process, such as this target object of reference is user, and user may turn round in audio frequency playing process, the behavior such as to walk about, thus the broadcasting demand of user to audio amplifier is caused to change.
For example, assuming that user have chosen the audio amplifier A shown in Fig. 4 and audio amplifier B originally, then, when user moves to the lower right corner, become near user by causing audio amplifier A away from user, audio amplifier C and be positioned at the audio amplifier on the left of user.
Again for example, assuming that user is in the diagram towards the direction (i.e. the top of Fig. 4) residing for audio amplifier A and audio amplifier B, back to audio amplifier C, thus choose that audio amplifier A is L channel audio amplifier, to choose audio amplifier B be R channel audio amplifier; And when turning round towards audio amplifier C in the process of user at listening to audio, will the left side that audio amplifier A is changed to the right side of user, audio amplifier B is changed to user be caused.
Therefore, under a kind of mode, after determining the loudspeaker box combination chosen, can no longer close the motion conditions of target centroid object of reference; And under another kind of mode, can detect the position of target object of reference according to predeterminated frequency, and when position changes, the corresponding loudspeaker box combination chosen of adjustment in time, to be adapted to the situation after changing.
Embodiment three: select based on user
As an exemplary embodiment, all available audio amplifiers can be obtained; Export audio amplifier and select interface, audio amplifier is selected to comprise all available audio amplifiers in interface; Selecting the audio amplifier at interface to select operation in response to receiving for audio amplifier, being selected by audio amplifier the available audio amplifier of operation instruction to be defined as L channel audio amplifier and R channel audio amplifier.
In the present embodiment, user can divide two steps to determine L channel audio amplifier and R channel audio amplifier: first, choose interested multiple stage audio amplifier; Then, determine that the interested audio amplifier of every platform is L channel audio amplifier or R channel audio amplifier.
1) interested multiple stage audio amplifier is chosen.Mode as shown in Figure 7 A, the all audio amplifiers detected are carried out arrangement according to the form of list show, and user can by clicking the display of each audio amplifier rear " checking detail parameters ", checking corresponding audio amplifier and the relative position relation of self, the audio frequency of audio amplifier plays the data such as attribute; Or terminal also by mode as shown in Figure 7 B, can illustrate the information such as the relative position relation between user and each audio amplifier, is more convenient to user and checks.Wherein, user by clicking " again the detecting " shown in Fig. 7 A or 7B, can make terminal re-execute and detecting the audio amplifier in preset range; Certainly, terminal also can carry out periodicity detection according to predetermined time period voluntarily.
So, in the terminal interface shown in Fig. 7 A, user can select frame by clicking on the right side of every platform audio amplifier, and realize the selection to audio amplifier, the audio amplifier A in such as Fig. 7 A and audio amplifier B is all selected; Or in the terminal interface shown in Fig. 7 B, the icon that the audio amplifier chosen needed for user can directly click is corresponding, realize the selection to audio amplifier, the audio amplifier A in such as Fig. 7 B and audio amplifier B is all selected.
2) determine that the interested audio amplifier of every platform is L channel audio amplifier or R channel audio amplifier
In one case, when user is by after such as the interface shown in Fig. 7 A or 7B have chosen required multiple stage audio amplifier, such as user have chosen audio amplifier A and audio amplifier B, then user can view the audio amplifier selected in the terminal interface shown in Fig. 8 A, than audio amplifier A described above and audio amplifier B, so user can pass through icon drag corresponding for each audio amplifier to respective packets, realize the grouping to the audio amplifier selected, in such as Fig. 8 A by icon drag corresponding for audio amplifier A to " L channel " region time, be equivalent to this audio amplifier A to be dispensed to L channel group; Certainly, user also can be back to the interface shown in Fig. 7 A or 7B by clicking " reselecting audio amplifier ", reselects required multiple stage audio amplifier.In this embodiment, when user's icon corresponding to audio amplifier carries out drag operation, be equivalent to have issued corresponding user grouping instruction, to realize corresponding audio amplifier division operation.
In another case, as shown in Figure 8 B, user is when choosing required multiple stage audio amplifier, directly provide to every platform audio amplifier the option corresponding respectively to L channel group and R channel group, then when user have chosen audio amplifier A correspond to the option on " left side " time, be equivalent to choose audio amplifier A and be dispensed to L channel group, and when user have chosen audio amplifier B correspond to the option on " right side " time, be equivalent to choose audio amplifier B and be dispensed to R channel group.In this embodiment, above-mentioned " choosing interested multiple stage audio amplifier " and " determining that the interested audio amplifier of every platform is L channel audio amplifier or R channel audio amplifier " two steps are equivalent to merge, namely user is when choosing certain option, completes the selection to audio amplifier and division operation simultaneously.
2, audio frequency is play
Fig. 9 is that a kind of according to an exemplary embodiment resolves and the flow chart of audio plays, and as shown in Figure 9, the method is applied in terminal, can comprise the following steps:
In step 902, obtain audio frequency to be played.
In the present embodiment, audio frequency to be played can be the voice data of arbitrary format, and audio content can be all kinds such as music, speech, and the disclosure does not all limit.
In step 904, judge whether audio frequency to be played is dual-channel audio; If so, then proceed to step 908, otherwise proceed to step 906A or step 906B.
In step 906A, change audio frequency to be played.
In the present embodiment, when audio frequency to be played is monophonic audio, this monophonic audio can be converted to dual-channel audio, meet the dual-channel audio data demand of played in stereo.
In step 906B, the dual-channel audio that search is corresponding.
In the present embodiment, especially for the audio files such as song, although audio frequency to be played is monophony, but network probably exists corresponding dual-channel audio, thus terminal can be connected to the Internet, then according to the attribute information such as title, author of audio frequency to be played, search for and download corresponding dual-channel audio.
In step 908, dual-channel audio is resolved.
In the present embodiment, dual-channel audio can for being initially the audio frequency to be played of dual track, and the dual-channel audio that also can be converted to for step 906A can also search for for step 906B the dual-channel audio obtained.By resolving dual-channel audio, voice data corresponding to left and right sound channels can be obtained respectively, for played in stereo.
In step 910, the voice data of each sound channel is sent.
In the present embodiment, left audio data are sent to every platform audio amplifier of L channel group, right audio channel data are sent to every platform audio amplifier of R channel group, then all audio amplifiers coordinate jointly, can realize played in stereo.
In step 912, environment characteristic parameters is obtained.
In step 914, the audio frequency play parameter of adjustment audio amplifier.
In the present embodiment, environment characteristic parameters can comprise following one of at least: time parameter, location parameters, ambient noise parameter etc., certainly herein only for citing, also can adopt other environment characteristic parameters, the disclosure does not limit this.
In the present embodiment, audio frequency play parameter can comprise following one of at least: volume, sound towards etc., certainly herein only for citing, also can adopt other audio frequency play parameter, the disclosure does not limit this.
In the present embodiment, environmentally characteristic parameter adjusts the audio frequency play parameter of every platform audio amplifier, can be adapted to environment characteristic parameters as much as possible, thus maintains user's audibility corresponding to every platform audio amplifier.
For " time parameter ", if current time is the late into the night, then the volume of audio amplifier suitably can be reduced, to avoid the formation of noise; For " ambient noise parameter ", if ambient noise is comparatively large, then the volume of audio amplifier suitably can be promoted.
And for " location parameters ", multiple understanding can be there is.In a kind of situation, " location parameters " (after can determining self place by audio amplifier, can inform terminal for the place of audio amplifier; Or, detected voluntarily by terminal), if current location is outdoor, then may there is larger ambient noise, thus suitably can promote the volume of audio amplifier; In another kind of situation, " location parameters " can be the place of user, the i.e. geographical position of user, then when the geographical position of user changes, volume can be adjusted according to the distance change between user and audio amplifier, or also can change according to the direction between user and audio amplifier, control audio amplifier and the sound sent is adjusted to all the time towards user, guarantee that user's audibility is constant as much as possible.
Corresponding with the embodiment of aforesaid audio frequency playing method, the disclosure additionally provides the embodiment of audio playing apparatus.
Figure 10 is a kind of audio playing apparatus block diagram according to an exemplary embodiment.With reference to Figure 10, this device comprises determining unit 1001, acquiring unit 1002 and transmitting element 1003.
Wherein, determining unit 1001, is configured to determine L channel audio amplifier and R channel audio amplifier;
Acquiring unit 1002, is configured to obtain left audio data and right audio channel data according to audio frequency to be played;
Transmitting element 1003, the left audio data being configured to described acquiring unit to obtain are sent to the L channel audio amplifier that described determining unit is determined, the right audio channel data obtained by described acquiring unit are sent to the R channel audio amplifier that described determining unit is determined respectively, for being play described audio frequency to be played by stereo format.
Optionally, the audio amplifier of described L channel group is the audio amplifier be positioned on the left of user, and the audio amplifier of described R channel group is the audio amplifier being positioned at user right.
As shown in figure 11, Figure 11 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 10, and determining unit 1001 comprises: first obtains subelement 1001A and first determines subelement 1001B.
Wherein, first obtains subelement 1001A, is configured to obtain all available audio amplifiers;
First determines subelement 1001B, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
As shown in figure 12, Figure 12 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and first determines that subelement 1001B comprises: the first audio acquisition module 1001B1 and the first audio amplifier acquisition module 1001B2.
Wherein, the first audio acquisition module 1001B1, is configured to the target play sound effect obtaining audio frequency to be played;
First audio amplifier acquisition module 1001B2, be configured to the position obtaining the available audio amplifier that subelement obtains according to described first, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is the target play sound effect that described first audio acquisition module obtains.
As shown in figure 13, Figure 13 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 12, and the first audio acquisition module 1001B1 comprises: position acquisition submodule 1001B11 and determine submodule 1001B12.
Wherein, position acquisition submodule 1001B11, is configured to the position obtaining target object of reference;
Determine submodule 1001B12, be configured to the position of the target object of reference obtained according to described position acquisition submodule, determine described target play sound effect.
As shown in figure 14, Figure 14 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 12, and the first audio acquisition module 1001B1 comprises: audio obtains submodule 1001B13, interface output sub-module 1001B14 and audio determination submodule 1001B15.
Wherein, audio obtains submodule 1001B13, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, obtains the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Interface output sub-module 1001B14, is configured to export audio options interface, and described audio options interface comprises the play sound effect that described audio obtains the often kind of loudspeaker box combination formed between each available audio amplifier of submodule acquisition;
Audio determination submodule 1001B15, the audio be configured in response to receiving the audio options interface exported for described interface output sub-module selects operation, selects the play sound effect of operation instruction to be defined as described target play sound effect described audio.
Optionally, described audio options interface also comprises the positional information of each available audio amplifier.
As shown in figure 15, Figure 15 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 10, and determining unit 1001 comprises: second obtains subelement 1001C and second determines subelement 1001D.
Wherein, second obtains subelement 1001C, is configured to obtain all available audio amplifiers;
Second determines subelement 1001D, and the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
As shown in figure 16, Figure 16 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 15, and second determines that subelement 1001D comprises: the second audio acquisition module 1001D1 and the second audio amplifier acquisition module 1001D2.
Wherein, the second audio acquisition module 1001D1, is configured to the target play sound effect obtaining audio frequency to be played;
Second audio amplifier acquisition module 1001D2, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect in described available audio amplifier.
As shown in figure 17, Figure 17 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 15, and second determines that subelement comprises: the 3rd audio amplifier acquisition module 1001D3.
Wherein, 3rd audio amplifier acquisition module 1001D3, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier in described available audio amplifier.
As shown in figure 18, Figure 18 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 10, and determining unit 1001 comprises: the 3rd obtains subelement 1001E, interface exports subelement 1001F and audio amplifier determination subelement 1001G.
Wherein, the 3rd obtains subelement 1001E, is configured to obtain all available audio amplifiers;
Interface exports subelement 1001F, is configured to export audio amplifier and selects interface, comprises the available audio amplifier that all described 3rd acquisition subelements obtain in described audio amplifier selection interface;
Audio amplifier determination subelement 1001G, be configured to, in response to receiving the audio amplifier selection operation exporting the audio amplifier selection interface that subelement exports for described interface, select the available audio amplifier of operation instruction to be defined as described L channel audio amplifier and described R channel audio amplifier described audio amplifier.
As shown in figure 19, Figure 19 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 10, and acquiring unit 1002 comprises: search subelement 1002A and parsing subelement 1002B.
Wherein, search subelement 1002A, is configured to, when described audio frequency to be played is monophonic audio, obtain the dual-channel audio of described audio frequency to be played from network;
Resolve subelement 1002B, be configured to resolve the dual-channel audio that described search subelement searches, obtain described left audio data and described right audio channel data.
As shown in figure 20, Figure 20 is the block diagram of the another kind of audio playing apparatus according to an exemplary embodiment, and this embodiment, on aforementioned basis embodiment illustrated in fig. 10, can also comprise: parameter acquiring unit 1004 and parameter adjustment unit 1005.
Wherein, parameter acquiring unit 1004, is configured to obtain environment characteristic parameters, described environment characteristic parameters comprise following one of at least: time parameter, location parameters, ambient noise parameter;
Parameter adjustment unit 1005, is configured to the environment characteristic parameters obtained according to described parameter acquiring unit, adjusts the audio frequency play parameter of described L channel audio amplifier and described R channel audio amplifier.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of audio playing apparatus, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: determine L channel audio amplifier and R channel audio amplifier; Left audio data and right audio channel data are obtained according to audio frequency to be played; Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
Accordingly, the disclosure also provides a kind of terminal, described terminal includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to perform described more than one or one program package containing the instruction for carrying out following operation by more than one or one processor: determine L channel audio amplifier and R channel audio amplifier; Left audio data and right audio channel data are obtained according to audio frequency to be played; Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
Figure 21 is the block diagram of a kind of device 2100 for audio frequency broadcasting according to an exemplary embodiment.Such as, device 2100 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 21, device 2100 can comprise following one or more assembly: processing components 2102, memory 2104, power supply module 2106, multimedia groupware 2108, audio-frequency assembly 2110, the interface 2112 of I/O (I/O), sensor cluster 2114, and communications component 2116.
The integrated operation of the usual control device 2100 of processing components 2102, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 2102 can comprise one or more processor 2120 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 2102 can comprise one or more module, and what be convenient between processing components 2102 and other assemblies is mutual.Such as, processing components 2102 can comprise multi-media module, mutual with what facilitate between multimedia groupware 2108 and processing components 2102.
Memory 2104 is configured to store various types of data to be supported in the operation of device 2100.The example of these data comprises for any application program of operation on device 2100 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 2104 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 2106 is device 2100 provide electric power.Power supply module 2106 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 2100 and be associated.
Multimedia groupware 2108 is included in the screen providing an output interface between described device 2100 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 2108 comprises a front-facing camera and/or post-positioned pick-up head.When device 2100 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 2110 is configured to export and/or input audio signal.Such as, audio-frequency assembly 2110 comprises a microphone (MIC), and when device 2100 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 2104 further or be sent via communications component 2116.In certain embodiments, audio-frequency assembly 2110 also comprises a loud speaker, for output audio signal.
I/O interface 2112 is for providing interface between processing components 2102 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 2114 comprises one or more transducer, for providing the state estimation of various aspects for device 2100.Such as, sensor cluster 2114 can detect the opening/closing state of device 2100, the relative positioning of assembly, such as described assembly is display and the keypad of device 2100, the position of all right checkout gear 2100 of sensor cluster 2114 or device 2100 assemblies changes, the presence or absence that user contacts with device 2100, the variations in temperature of device 2100 orientation or acceleration/deceleration and device 2100.Sensor cluster 2114 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 2114 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 2114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 2116 is configured to the communication being convenient to wired or wireless mode between device 2100 and other equipment.Device 2100 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 2116 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 2116 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 2100 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 2104 of instruction, above-mentioned instruction can perform said method by the processor 2120 of device 2100.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (25)

1. an audio frequency playing method, is characterized in that, comprising:
Determine L channel audio amplifier and R channel audio amplifier;
Left audio data and right audio channel data are obtained according to audio frequency to be played;
Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
2. method according to claim 1, is characterized in that, describedly determines L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
According to the position of described available audio amplifier, in described available audio amplifier, determine described L channel audio amplifier and described R channel audio amplifier.
3. method according to claim 2, is characterized in that, the described position according to described available audio amplifier, determines described L channel audio amplifier and described R channel audio amplifier, comprising in described available audio amplifier:
Obtain the target play sound effect of audio frequency to be played;
According to the position of described available audio amplifier, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect.
4. method according to claim 3, is characterized in that, the target play sound effect of described acquisition audio frequency to be played, comprising:
Obtain the position of target object of reference;
According to the position of described target object of reference, determine described target play sound effect.
5. method according to claim 3, is characterized in that, the target play sound effect of described acquisition audio frequency to be played, comprising:
According to the position of described available audio amplifier, obtain the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Export audio options interface, described audio options interface comprises the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Select operation in response to the audio received for described audio options interface, select the play sound effect of operation instruction to be defined as described target play sound effect described audio.
6. method according to claim 5, is characterized in that, described audio options interface also comprises the positional information of each available audio amplifier.
7. method according to claim 1, is characterized in that, describedly determines L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
Audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
8. method according to claim 7, is characterized in that, the described audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier, comprising in described available audio amplifier:
Obtain the target play sound effect of audio frequency to be played;
Audio frequency according to described available audio amplifier plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect in described available audio amplifier.
9. method according to claim 7, is characterized in that, the described audio frequency according to described available audio amplifier plays attribute, determines described L channel audio amplifier and described R channel audio amplifier, comprising in described available audio amplifier:
Play attribute according to the audio frequency of described available audio amplifier, in described available audio amplifier, obtain the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier.
10. method according to claim 1, is characterized in that, describedly determines L channel audio amplifier and R channel audio amplifier, comprising:
Obtain all available audio amplifiers;
Export audio amplifier and select interface, described audio amplifier is selected to comprise all described available audio amplifiers in interface;
Selecting the audio amplifier at interface to select operation in response to receiving for described audio amplifier, selecting the available audio amplifier of operation instruction to be defined as described L channel audio amplifier and described R channel audio amplifier described audio amplifier.
11. methods according to claim 1, is characterized in that, described according to audio frequency acquisition left audio data to be played and right audio channel data, comprising:
When described audio frequency to be played is monophonic audio, obtain the dual-channel audio of described audio frequency to be played from network;
Resolve described dual-channel audio, obtain described left audio data and described right audio channel data.
12. methods according to claim 1, is characterized in that, described method also comprises:
Obtain environment characteristic parameters, described environment characteristic parameters comprise following one of at least: time parameter, location parameters, ambient noise parameter;
According to described environment characteristic parameters, adjust the audio frequency play parameter of described L channel audio amplifier and described R channel audio amplifier.
13. 1 kinds of audio playing apparatus, is characterized in that, comprising:
Determining unit, is configured to determine L channel audio amplifier and R channel audio amplifier;
Acquiring unit, is configured to obtain left audio data and right audio channel data according to audio frequency to be played;
Transmitting element, the left audio data being configured to described acquiring unit to obtain are sent to the L channel audio amplifier that described determining unit is determined, the right audio channel data obtained by described acquiring unit are sent to the R channel audio amplifier that described determining unit is determined respectively, for being play described audio frequency to be played by stereo format.
14. devices according to claim 13, is characterized in that, described determining unit comprises:
First obtains subelement, is configured to obtain all available audio amplifiers;
First determines subelement, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
15. devices according to claim 14, is characterized in that, described first determines that subelement comprises:
First audio acquisition module, is configured to the target play sound effect obtaining audio frequency to be played;
First audio amplifier acquisition module, be configured to the position obtaining the available audio amplifier that subelement obtains according to described first, in described available audio amplifier, obtain L channel audio amplifier and R channel audio amplifier that play sound effect is the target play sound effect that described first audio acquisition module obtains.
16. devices according to claim 15, is characterized in that, described first audio acquisition module comprises:
Position acquisition submodule, is configured to the position obtaining target object of reference;
Determine submodule, be configured to the position of the target object of reference obtained according to described position acquisition submodule, determine described target play sound effect.
17. devices according to claim 15, is characterized in that, described first audio acquisition module comprises:
Audio obtains submodule, is configured to the position obtaining the available audio amplifier that subelement obtains according to described first, obtains the play sound effect of the often kind of loudspeaker box combination formed between each available audio amplifier;
Interface output sub-module, is configured to export audio options interface, and described audio options interface comprises the play sound effect that described audio obtains the often kind of loudspeaker box combination formed between each available audio amplifier of submodule acquisition;
Audio determination submodule, the audio be configured in response to receiving the audio options interface exported for described interface output sub-module selects operation, selects the play sound effect of operation instruction to be defined as described target play sound effect described audio.
18. devices according to claim 17, is characterized in that, described audio options interface also comprises the positional information of each available audio amplifier.
19. devices according to claim 13, is characterized in that, described determining unit comprises:
Second obtains subelement, is configured to obtain all available audio amplifiers;
Second determines subelement, and the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, determines described L channel audio amplifier and described R channel audio amplifier in described available audio amplifier.
20. devices according to claim 19, is characterized in that, described second determines that subelement comprises:
Second audio acquisition module, is configured to the target play sound effect obtaining audio frequency to be played;
Second audio amplifier acquisition module, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains L channel audio amplifier and R channel audio amplifier that play sound effect is described target play sound effect in described available audio amplifier.
21. devices according to claim 19, is characterized in that, described second determines that subelement comprises:
3rd audio amplifier acquisition module, the audio frequency being configured to obtain according to described second the available audio amplifier that subelement obtains plays attribute, obtains the loudspeaker box combination of play sound effect the best, using as L channel audio amplifier and R channel audio amplifier in described available audio amplifier.
22. devices according to claim 13, is characterized in that, described determining unit comprises:
3rd obtains subelement, is configured to obtain all available audio amplifiers;
Interface exports subelement, is configured to export audio amplifier and selects interface, comprises the available audio amplifier that all described 3rd acquisition subelements obtain in described audio amplifier selection interface;
Audio amplifier determination subelement, be configured to, in response to receiving the audio amplifier selection operation exporting the audio amplifier selection interface that subelement exports for described interface, select the available audio amplifier of operation instruction to be defined as described L channel audio amplifier and described R channel audio amplifier described audio amplifier.
23. devices according to claim 13, is characterized in that, described acquiring unit comprises:
Search subelement, is configured to, when described audio frequency to be played is monophonic audio, obtain the dual-channel audio of described audio frequency to be played from network;
Resolve subelement, be configured to resolve the dual-channel audio that described search subelement searches, obtain described left audio data and described right audio channel data.
24. devices according to claim 13, is characterized in that, also comprise:
Parameter acquiring unit, is configured to obtain environment characteristic parameters, described environment characteristic parameters comprise following one of at least: time parameter, location parameters, ambient noise parameter;
Parameter adjustment unit, is configured to the environment characteristic parameters obtained according to described parameter acquiring unit, adjusts the audio frequency play parameter of described L channel audio amplifier and described R channel audio amplifier.
25. 1 kinds of electronic equipments, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine L channel audio amplifier and R channel audio amplifier;
Left audio data and right audio channel data are obtained according to audio frequency to be played;
Described left audio data are sent to described L channel audio amplifier, described right audio channel data are sent to described R channel audio amplifier, for being play described audio frequency to be played by stereo format.
CN201510583889.5A 2015-09-14 2015-09-14 Audio frequency playing method and device, electronic equipment Active CN105163241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510583889.5A CN105163241B (en) 2015-09-14 2015-09-14 Audio frequency playing method and device, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510583889.5A CN105163241B (en) 2015-09-14 2015-09-14 Audio frequency playing method and device, electronic equipment

Publications (2)

Publication Number Publication Date
CN105163241A true CN105163241A (en) 2015-12-16
CN105163241B CN105163241B (en) 2018-04-13

Family

ID=54803979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510583889.5A Active CN105163241B (en) 2015-09-14 2015-09-14 Audio frequency playing method and device, electronic equipment

Country Status (1)

Country Link
CN (1) CN105163241B (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303798A (en) * 2016-08-12 2017-01-04 张学伟 A kind of WIFI superposition audio amplifier
CN106488363A (en) * 2016-09-29 2017-03-08 Tcl通力电子(惠州)有限公司 Sound channel distribution method and device of audio output system
CN106550141A (en) * 2016-10-27 2017-03-29 乐视控股(北京)有限公司 A kind of terminal and terminal audio frequency control method for playing back and device
CN106878915A (en) * 2017-02-17 2017-06-20 广东欧珀移动通信有限公司 The control method of playback equipment, device and playback equipment and mobile terminal
CN107071552A (en) * 2017-02-15 2017-08-18 广东欧珀移动通信有限公司 Method to set up, device, playback equipment and the control terminal of playback equipment
CN107527635A (en) * 2017-08-29 2017-12-29 深圳市遥蓝儿童科技有限公司 More track audio playing apparatus and application process
CN107750035A (en) * 2017-10-31 2018-03-02 北京酷我科技有限公司 A kind of algorithm of audio playing animation effect
CN107817723A (en) * 2017-11-02 2018-03-20 成都吱吖科技有限公司 A kind of intelligent sound orientation control method for playing back of human body location aware
CN108777138A (en) * 2018-06-14 2018-11-09 厦门盈趣科技股份有限公司 Audio-frequency information acquisition methods and performance device
CN109831735A (en) * 2019-01-11 2019-05-31 歌尔科技有限公司 Suitable for the audio frequency playing method of indoor environment, equipment, system and storage medium
CN110035357A (en) * 2017-12-27 2019-07-19 央捷科斯欧洲公司 The method of the audio output of device and modification device
CN110418273A (en) * 2018-04-27 2019-11-05 深圳Tcl新技术有限公司 A kind of intelligence adjusts the method, apparatus and storage medium of effect of sound field
CN110786023A (en) * 2017-06-21 2020-02-11 雅马哈株式会社 Information processing device, information processing system, information processing program, and information processing method
USD882547S1 (en) 2017-12-27 2020-04-28 Yandex Europe Ag Speaker device
CN111901653A (en) * 2020-07-23 2020-11-06 海信视像科技股份有限公司 Configuration method of external sound equipment of display equipment and display equipment
CN112333531A (en) * 2020-07-09 2021-02-05 深圳Tcl新技术有限公司 Audio data playing method and device and readable storage medium
CN113411725A (en) * 2021-06-25 2021-09-17 Oppo广东移动通信有限公司 Audio playing method and device, mobile terminal and storage medium
CN113691861A (en) * 2021-10-22 2021-11-23 深圳市瑞荣达电子有限公司 Intelligent Bluetooth sound box sub-control adjusting system and method based on Internet
WO2022052760A1 (en) * 2020-09-14 2022-03-17 华为技术有限公司 Combined loudspeaker box configuration method, loudspeaker box, and electronic device
USD947152S1 (en) 2019-09-10 2022-03-29 Yandex Europe Ag Speaker device
CN114257924A (en) * 2020-09-24 2022-03-29 华为技术有限公司 Method for distributing sound channels and related equipment
CN115119214A (en) * 2021-03-22 2022-09-27 华为技术有限公司 Stereo networking method, system and related device
WO2024046182A1 (en) * 2022-08-30 2024-03-07 华为技术有限公司 Audio playback method and system, and related apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009135750A (en) * 2007-11-30 2009-06-18 Kyocera Corp Reproduction system, reproduction control device, reproduction control method and reproduction control program
CN102176765A (en) * 2011-01-31 2011-09-07 苏州佳世达电通有限公司 Method for controlling speaker on electronic device and electronic device
CN103096218A (en) * 2011-11-04 2013-05-08 宏碁股份有限公司 Stereoscopic sound effect device, stereoscopic sound effect system and stereoscopic sound effect playing method
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device
CN104185122A (en) * 2014-08-18 2014-12-03 广东欧珀移动通信有限公司 Control method and system for playing devices and master playing device
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009135750A (en) * 2007-11-30 2009-06-18 Kyocera Corp Reproduction system, reproduction control device, reproduction control method and reproduction control program
CN102176765A (en) * 2011-01-31 2011-09-07 苏州佳世达电通有限公司 Method for controlling speaker on electronic device and electronic device
CN103096218A (en) * 2011-11-04 2013-05-08 宏碁股份有限公司 Stereoscopic sound effect device, stereoscopic sound effect system and stereoscopic sound effect playing method
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device
CN104185122A (en) * 2014-08-18 2014-12-03 广东欧珀移动通信有限公司 Control method and system for playing devices and master playing device

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303798A (en) * 2016-08-12 2017-01-04 张学伟 A kind of WIFI superposition audio amplifier
CN106488363A (en) * 2016-09-29 2017-03-08 Tcl通力电子(惠州)有限公司 Sound channel distribution method and device of audio output system
CN106550141A (en) * 2016-10-27 2017-03-29 乐视控股(北京)有限公司 A kind of terminal and terminal audio frequency control method for playing back and device
CN107071552A (en) * 2017-02-15 2017-08-18 广东欧珀移动通信有限公司 Method to set up, device, playback equipment and the control terminal of playback equipment
CN106878915A (en) * 2017-02-17 2017-06-20 广东欧珀移动通信有限公司 The control method of playback equipment, device and playback equipment and mobile terminal
CN110786023A (en) * 2017-06-21 2020-02-11 雅马哈株式会社 Information processing device, information processing system, information processing program, and information processing method
US11172295B2 (en) 2017-06-21 2021-11-09 Yamaha Corporation Information processing device, information processing system, and information processing method
CN107527635A (en) * 2017-08-29 2017-12-29 深圳市遥蓝儿童科技有限公司 More track audio playing apparatus and application process
CN107527635B (en) * 2017-08-29 2020-09-11 深圳市美美兔科技有限公司 Multi-track audio playing device and application method
CN107750035A (en) * 2017-10-31 2018-03-02 北京酷我科技有限公司 A kind of algorithm of audio playing animation effect
CN107817723A (en) * 2017-11-02 2018-03-20 成都吱吖科技有限公司 A kind of intelligent sound orientation control method for playing back of human body location aware
CN110035357A (en) * 2017-12-27 2019-07-19 央捷科斯欧洲公司 The method of the audio output of device and modification device
USD882547S1 (en) 2017-12-27 2020-04-28 Yandex Europe Ag Speaker device
USD885366S1 (en) 2017-12-27 2020-05-26 Yandex Europe Ag Speaker device
CN110418273B (en) * 2018-04-27 2021-07-06 深圳Tcl新技术有限公司 Method and device for intelligently adjusting sound field effect and storage medium
CN110418273A (en) * 2018-04-27 2019-11-05 深圳Tcl新技术有限公司 A kind of intelligence adjusts the method, apparatus and storage medium of effect of sound field
CN108777138A (en) * 2018-06-14 2018-11-09 厦门盈趣科技股份有限公司 Audio-frequency information acquisition methods and performance device
CN108777138B (en) * 2018-06-14 2021-02-05 厦门盈趣科技股份有限公司 Audio information acquisition method and singing device
CN109831735A (en) * 2019-01-11 2019-05-31 歌尔科技有限公司 Suitable for the audio frequency playing method of indoor environment, equipment, system and storage medium
USD947152S1 (en) 2019-09-10 2022-03-29 Yandex Europe Ag Speaker device
CN112333531A (en) * 2020-07-09 2021-02-05 深圳Tcl新技术有限公司 Audio data playing method and device and readable storage medium
CN111901653A (en) * 2020-07-23 2020-11-06 海信视像科技股份有限公司 Configuration method of external sound equipment of display equipment and display equipment
WO2022052760A1 (en) * 2020-09-14 2022-03-17 华为技术有限公司 Combined loudspeaker box configuration method, loudspeaker box, and electronic device
CN114268896A (en) * 2020-09-14 2022-04-01 华为技术有限公司 Configuration method of combined sound box, sound box and electronic equipment
CN114268896B (en) * 2020-09-14 2023-04-28 华为技术有限公司 Configuration method of combined sound box, sound box and electronic equipment
CN114257924A (en) * 2020-09-24 2022-03-29 华为技术有限公司 Method for distributing sound channels and related equipment
CN115119214A (en) * 2021-03-22 2022-09-27 华为技术有限公司 Stereo networking method, system and related device
CN113411725A (en) * 2021-06-25 2021-09-17 Oppo广东移动通信有限公司 Audio playing method and device, mobile terminal and storage medium
CN113691861A (en) * 2021-10-22 2021-11-23 深圳市瑞荣达电子有限公司 Intelligent Bluetooth sound box sub-control adjusting system and method based on Internet
WO2024046182A1 (en) * 2022-08-30 2024-03-07 华为技术有限公司 Audio playback method and system, and related apparatus

Also Published As

Publication number Publication date
CN105163241B (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN105163241A (en) Audio playing method and device as well as electronic device
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
CN105242556A (en) A speech control method and device of intelligent devices, a control device and the intelligent device
KR102538775B1 (en) Method and apparatus for playing audio, electronic device, and storage medium
CN105828201A (en) Video processing method and device
CN105487863A (en) Interface setting method and device based on scene
CN104166688A (en) Directional information pushing method and device
CN105354017B (en) Information processing method and device
CN105407433A (en) Method and device for controlling sound output equipment
CN104834435A (en) Method and device for playing audio comments
CN106303187A (en) The acquisition method of voice messaging, device and terminal
AU2013211541A1 (en) Mobile apparatus and control method thereof
CN106024033A (en) Playing control method and apparatus
CN106357883A (en) Audio playing method and device thereof as well as playing system
CN106484856A (en) Audio frequency playing method and device
CN105101013A (en) Method and device for playing voice signals
CN104539871A (en) Multimedia call method and device
CN109302638A (en) Information processing method and device, electronic equipment and storage medium
CN105635846A (en) Equipment control method and device
CN105632542A (en) Audio playing method and apparatus
CN104486295A (en) Audio playing method and device
CN105516451A (en) Sound effect adjustment method and device
CN104702988A (en) AV (Audio/Video) playing method and device
CN107272896A (en) The method and device switched between VR patterns and non-VR patterns
CN104243607A (en) Method and device for acquiring equipment information

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